 /* Reset y base */
    * { 
      box-sizing: border-box; 
      margin: 0; 
      padding: 0; 
    }
    
    html { 
      scroll-behavior: smooth; 
    }
    
    body {
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans";
      background: radial-gradient(1200px 900px at 30% -20%, #0d0d0d 0%, #050505 55%, #000 100%);
      color: #e5e7eb;
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* Header */
    header {
      position: sticky; 
      top: 0; 
      z-index: 100;
      display: flex; 
      justify-content: space-between; 
      align-items: center;
      padding: 1rem 2rem;
      background: rgba(0,0,0,.75);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid #1f1f1f;
    }
	
	section {
		scroll-margin-top: 100px; /* Ajusta según la altura de tu menú */
	}
    
    .logo { 
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    
    .logo-img { 
      max-width: 180px; 
      height: auto;
    }
    
    .phone-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: #8a1a96;
      text-decoration: none;
      font-weight: 600;
      transition: color 0.3s ease;
    }
    
    .phone-link:hover {
      color: #6a0d73;
    }
    
    .phone-link svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
    }
    
    .menu-toggle { 
      font-size: 1.8rem; 
      background: none; 
      border: none; 
      color: #fff; 
      cursor: pointer;
      transition: color 0.3s ease;
    }
    
    .menu-toggle:hover {
      color: #8a1a96;
    }
    
    nav.nav-links {
      display: none;
      flex-direction: column;
      gap: 1rem;
      position: absolute;
      top: 70px; 
      right: 2rem;
      background: #0a0a0a;
      padding: 1.5rem;
      border-radius: 12px;
      box-shadow: 0 12px 28px rgba(0,0,0,.55);
      border: 1px solid #1f1f1f;
    }
    
    nav.nav-links a {
      color: #fff; 
      text-decoration: none; 
      font-weight: 500;
      transition: color 0.3s ease;
      padding: 0.5rem;
    }
    
    nav.nav-links a:hover { 
      color: #8a1a96; 
    }
    
    @media (min-width: 768px) {
      .menu-toggle { 
        display: none; 
      }
      
      nav.nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        gap: 2rem;
        background: transparent;
        box-shadow: none;
        padding: 0;
        border: none;
      }
      
      nav.nav-links a {
        padding: 0;
      }
    }
    
    /* Secciones */
    section { 
      padding: 2rem 2rem; 
      max-width: 1200px; 
      margin: auto; 
    }
    
    h1 { 
      font-size: 2.0rem; 
      margin-bottom: 0.8rem; 
      color: #fff; 
      font-family: "Bell MT", Georgia, serif;
    }
    
    h2 { 
      font-size: 2rem; 
      margin-bottom: 1.5rem; 
      color: #fff; 
    }
    
    h3 { 
      font-size: 1.5rem; 
      margin-bottom: 1.5rem; 
      color: #8a1a96; 
    }
	
	h4 { 
      font-size: 1rem; 
      margin-bottom: 1.5rem; 
	  align:center;
	  align-items:center;
      color: #8a1a96; 
    }
    
    /* Cards de servicios */
    .services { 
      display: grid; 
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem; 
    }
    
    .card {
      background: #0b0b0b; 
      border: 1px solid #1f1f1f; 
      border-radius: 12px;
      padding: 1.5rem; 
      box-shadow: 0 6px 18px rgba(0,0,0,.5);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 24px rgba(138, 26, 150, 0.3);
    }
    
    .card h3 { 
      margin-bottom: .5rem; 
      color: #8a1a96; 
    }
    
    /* Carrusel - REVISADO */
    .carousel { 
      position: relative;
      overflow: hidden;
      width: 100vw; /* Ocupa todo el ancho del viewport */
      height: 60vh;
      margin-top: 5px;
      background: #000;
    }
    
    .slides { 
      display: flex; 
      transition: transform .6s ease-in-out; 
      height: 100%; 
      /* No se necesita width explícito, flexbox lo maneja */
    }
    
    /* APLICAR PROPIEDADES FLEX AL ITEM DIRECTO: <picture> */
    .slides picture {
      flex: 0 0 100%; /* El slide ocupa el 100% del ancho del carrusel */
      height: 100%;
      display: block; /* Asegura que el flexbox lo maneje correctamente */
    }
    
    /* ASEGURAR QUE LA IMAGEN OCUPA SU CONTENEDOR <picture> */
    .slides picture img { 
      width: 100%; 
      height: 100%; 
	  object-fit: cover;
	  object-position: center;
      display: block;
    }

    .carousel button {
      position: absolute; 
      top: 50%; 
      transform: translateY(-50%);
      background: rgba(138, 26, 150, 0.8); 
      border: none; 
      color: #fff;
      font-size: 2rem; 
      cursor: pointer; 
      padding: .5rem .8rem;
      border-radius: 8px;
      transition: background 0.3s ease;
      z-index: 10;
    }
    
    .carousel button:hover {
      background: rgba(138, 26, 150, 1);
    }
    
    .carousel .prev { left: 10px; }
    .carousel .next { right: 10px; }
    
    .indicators { 
      position: absolute; 
      bottom: 15px; 
      left: 50%; 
      transform: translateX(-50%);
      display: flex; 
      gap: .5rem;
      z-index: 10;
    }
    
    .indicators div { 
      width: 12px; 
      height: 12px; 
      border-radius: 50%; 
      background: #fff; 
      opacity: .5; 
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .indicators div:hover {
      opacity: .8;
    }
    
    .indicators .active { 
      background: #8a1a96; 
      opacity: 1; 
    }
	
	 /* Badges de estadísticas */
    .stats-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
      margin: 3rem 0;
    }

    .stat-box {
      text-align: center;
      padding: 2rem;
      background: linear-gradient(135deg, #0b0b0b, #0a0a0a);
      border: 1px solid #1f1f1f;
      border-radius: 16px;
      transition: all 0.3s ease;
    }

    .stat-box:hover {
      transform: translateY(-5px);
      border-color: #8a1a96;
      box-shadow: 0 10px 30px rgba(138, 26, 150, 0.3);
    }

    .stat-number {
      font-size: 3rem;
      font-weight: 700;
      color: #8a1a96;
      display: block;
      margin-bottom: 0.5rem;
    }

    .stat-label {
      color: #9ca3af;
      font-size: 1rem;
      font-weight: 500;
    }
	
	/* Recuadro de llamada*/
	.hero-cta {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 2rem;
    }

    .cta-primary {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 1rem 2rem;
      background: linear-gradient(135deg, #8a1a96, #6a0d73);
      color: white;
      text-decoration: none;
      border-radius: 10px;
      font-weight: 600;
      font-size: 1.1rem;
      transition: all 0.3s ease;
      box-shadow: 0 6px 20px rgba(138, 26, 150, 0.4);
    }

    .cta-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 30px rgba(138, 26, 150, 0.6);
    }

    .cta-secondary {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 1rem 2rem;
      background: transparent;
      color: #8a1a96;
      text-decoration: none;
      border-radius: 10px;
      font-weight: 600;
      font-size: 1.1rem;
      border: 2px solid #8a1a96;
      transition: all 0.3s ease;
    }

    .cta-secondary:hover {
      background: rgba(138, 26, 150, 0.1);
      transform: translateY(-3px);
    }
    
    
    /* Línea separadora */
    .linea {
      background: linear-gradient(90deg, transparent, #8a1a96, transparent);
      height: 5px;
      width: 100%;
      display: block;
      margin-bottom: 2rem;
      border-radius: 2px;
    }
    
    /* Galería Lightbox */
    .galeria {
      display: grid; 
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      width: 95%;
      margin: auto;
      gap: 15px;
      padding: 40px 0;
      overflow: hidden;
    }
    
    .galeria > a {
      display: block;
      position: relative;
      overflow: hidden;
      box-shadow: 0 0 6px rgba(0,0,0,.5);
      border-radius: 12px;
      transition: transform 0.3s ease;
    }
    
    .galeria a:hover {
      transform: scale(1.02);
    }
    
    .galeria a:hover img {
      filter: blur(2px);
      transform: rotate(3deg) scale(1.1);
    }
    
    .galeria img {
      width: 100%;
      vertical-align: top;
      height: 250px;
      object-fit: cover;
      transition: transform 0.5s ease, filter 0.3s ease;
    }
    
    /* Lightbox */
    .caixa {
      position: fixed;
      top: 0;
      left: 0;
      background: rgba(0,0,0,.95);
      width: 100%;
      height: 100vh;
      z-index: 1000;
      display: none;
      justify-content: center; /* Centramos la imagen en el centro */
      align-items: center;
      padding: 0; /* Eliminado el padding para que la imagen ocupe todo el espacio */
    }
    
    .caixa:target {
      display: flex;
    }
    
    .caixa img {
      /* La imagen ocupará el 100% del viewport manteniendo su ratio */
      width: 100%; 
      height: 100%; 
      max-width: 100vw;
      max-height: 100vh;
      object-fit: contain;
      box-shadow: none; /* Quitamos el box-shadow */
    }
    
    /* Botón Cerrar - MODIFICADO: Posición fija para estar siempre visible en la esquina */
    .close {
      display: block;
      position: fixed; /* Cambiado de 'absolute' a 'fixed' para asegurar visibilidad total */
      top: 20px;
      right: 20px;
      background: #8a1a96;
      color: #ffffff;
      text-decoration: none;
      width: 50px;
      height: 50px;
      text-align: center;
      line-height: 50px;
      border-radius: 50%;
      font-weight: bold;
      font-size: 18px;
      transition: all 0.3s ease;
      z-index: 1001;
    }
    
    .close:hover {
      background: #6a0d73;
      transform: scale(1.1);
    }
    
    /* Botones Anterior y Posterior - MODIFICADO: Posición fija para superponerlos a la imagen */
    .caixa .next {
      position: fixed;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      justify-content: center;
      align-items: center;
      background: rgba(138,26,150,0.8);
      color: #fff;
      height: 50px;
      width: 50px;
      text-decoration: none;
      border-radius: 50%;
      font-size: 18px;
      transition: all 0.3s ease;
      flex-shrink: 0;
      z-index: 1001; /* Aseguramos que estén sobre la imagen */
    }

    /* Posición específica para el botón Anterior (primer enlace .next) */
    .caixa .next:first-of-type {
      left: 20px;
    }
    
    /* Posición específica para el botón Posterior (segundo enlace .next) */
    .caixa .next:nth-of-type(2) {
      right: 20px;
    }
    
    .caixa .next:hover {
      background: #8a1a96;
      transform: translateY(-50%) scale(1.1);
    }
    
    /* Formulario */
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
    }
    
    .form-group {
      margin-bottom: 20px;
    }
    
    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      color: #e5e7eb;
    }
    
    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 14px;
      border: 1px solid #333;
      border-radius: 8px;
      font-size: 16px;
      background: #0b0b0b;
      color: #e5e7eb;
      transition: border-color 0.3s ease;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: #8a1a96;
    }
    
    .form-group input {
      min-height: 50px;
    }
    
    .form-group textarea {
      min-height: 120px;
      resize: vertical;
    }
    
    .form-group button {
      width: 100%;
      padding: 14px;
      background: linear-gradient(135deg, #8a1a96, #6a0d73);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .form-group button:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(138, 26, 150, 0.4);
    }
    
    @media (max-width: 768px) {
      .form-row {
        grid-template-columns: 1fr;
        gap: 0;
      }
    }
    
    /* Listas con check */
    .ul {
      list-style: none; 
      padding-left: 0;
      margin-left: 20px;
    }
    
    .ul li {
      margin-bottom: 8px;
    }
    
    .check-morado {
      color: #8a1a96;
      font-weight: bold;
      margin-right: 8px;
    }
    
    /* Footer Responsive Compacto */
    .footer {
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans";
      background: #0a0a0a;
      border-top: 2px solid #1f1f1f;
      color: #ddd;
      padding: 40px 20px 15px;
      margin-top: 60px;
      position: relative;
    }

    .footer-container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 30px;
      max-width: 1000px;
      margin: 0 auto 20px;
    }

    .footer-section h3, 
    .footer-section h4 {
      margin-bottom: 12px;
      color: #8a1a96;
      font-size: 1.1rem;
      font-weight: 700;
    }

    .footer-section p, 
    .footer-section ul, 
    .footer-section a {
      font-size: 13px;
      color: #bbb;
      text-decoration: none;
      margin-bottom: 6px;
      line-height: 1.6;
    }

    .footer-section ul {
      list-style: none;
      padding: 0;
    }

    .footer-section ul li {
      margin-bottom: 6px;
      transition: transform 0.3s ease;
    }

    .footer-section ul li:hover {
      transform: translateX(3px);
    }

    .footer-section ul li a {
      transition: color 0.3s ease;
    }

    .footer-section ul li a:hover {
      color: #8a1a96;
    }

    .footer-section a[href^="mailto"],
    .footer-section a[href^="tel"] {
      color: #8a1a96;
      font-weight: 600;
    }

    .footer-section a[href^="mailto"]:hover,
    .footer-section a[href^="tel"]:hover {
      text-decoration: underline;
    }
    
    .footer-bottom {
      text-align: center;
      border-top: 1px solid #1f1f1f;
      padding-top: 15px;
      margin-top: 20px;
      font-size: 12px;
      color: #777;
      max-width: 1000px;
      margin-left: auto;
      margin-right: auto;
    }

    /* Botón ir arriba en footer */
    #toTop {
      position: absolute;
      top: -25px;
      left: 50%;
      transform: translateX(-50%);
      background: linear-gradient(135deg, #8a1a96, #6a0d73);
      color: #fff;
      border: none;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(138, 26, 150, 0.5);
      font-size: 20px;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    #toTop:hover {
      transform: translateX(-50%) translateY(-5px);
      box-shadow: 0 10px 30px rgba(138, 26, 150, 0.7);
    }

    /* Responsive móviles - REVISADO */
    @media (max-width: 768px) {
      .carousel {
        height: 40vh;
      }

      .carousel button {
        font-size: 1.5rem;
        padding: .3rem .6rem;
      }

      .galeria {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      }
      
      .galeria img {
        height: 200px;
      }
      
      .caixa {
        padding: 0; /* Aseguramos que no haya padding */
      }
      
      .caixa img {
        width: 100%; /* Aseguramos que la imagen ocupe todo el ancho disponible */
      }
      
      .close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 16px;
      }
      
      .caixa .next {
        height: 45px;
        width: 45px;
        font-size: 16px;
      }
      
      /* Posición de botones en móvil */
      .caixa .next:first-of-type {
        left: 10px;
      }
      
      .caixa .next:nth-of-type(2) {
        right: 10px;
      }

      h1 {
        font-size: 1.6rem;
      }

      h2 {
        font-size: 1.7rem;
      }

      h3 {
        font-size: 1.3rem;
      }

      .footer {
        padding: 40px 15px 15px;
      }

      .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
      }

      .footer-section {
        text-align: center;
      }

      .footer-section h3, 
      .footer-section h4 {
        font-size: 1.2rem;
      }

      .footer-bottom {
        font-size: 12px;
      }

      #toTop {
        width: 45px;
        height: 45px;
        top: -22px;
      }
    }

    /* Responsive tablets */
    @media (min-width: 769px) and (max-width: 1024px) {
      .footer-container {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    /* Mejoras adicionales - REVISADO */
    @media (max-width: 400px) {
      .galeria {
        grid-template-columns: 1fr;
      }
      
      .caixa {
        padding: 0;
      }
      
      .caixa img {
        width: 100%;
      }
    }
	
	/* Sección Nosotros con imagen */
	.nosotros-flex {
		display: flex;
		gap: 2rem;
		align-items: flex-start;
		margin-bottom: 2rem;
	}

	.nosotros-flex img {
		width: 40%;
		height: auto;
		border-radius: 12px;
		box-shadow: 0 6px 18px rgba(0,0,0,.5);
		object-fit: cover;
	}

	.nosotros-flex .texto {
		flex: 1;
	}

	@media (max-width: 768px) {
		.nosotros-flex {
			flex-direction: column;
		}
    
		.nosotros-flex img {
			width: 100%;
		}
	}