 :root {
      --primary: #0a0e27;
      --secondary: #1a1f3a;
      --accent: #00d9ff;
      --accent-dark: #00a8cc;
      --text: #e8edf3;
      --text-muted: #9ca3af;
      --card-bg: rgba(26, 31, 58, 0.6);
      --glass: rgba(255, 255, 255, 0.05);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
      color: var(--text);
      scroll-behavior: smooth;
      overflow-x: hidden;
      line-height: 1.6;
    }

    /* Navbar minimalista */
    .navbar {
      background: rgba(10, 14, 39, 0.8);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding: 1.2rem 0;
      transition: all 0.3s ease;
    }

    .navbar-brand {
      color: var(--text);
      font-weight: 600;
      font-size: 1.4rem;
      letter-spacing: -0.5px;
      transition: color 0.3s ease;
    }

    .navbar-brand:hover {
      color: var(--accent);
    }

    .navbar-logo {
      height: 42px;
      width: auto;
      filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.3));
    }

    /* Hero moderno */
    #hero-section {
      padding: 0 1rem;
      margin-top: 100px;
      margin-bottom: 80px;
    }

    .carousel-inner {
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    }

    .carousel-inner img {
      height: 75vh;
      object-fit: cover;
      filter: brightness(0.7);
    }

    .carousel-caption {
      bottom: 15%;
      left: 10%;
      right: 10%;
      text-align: left;
    }

    .carousel-caption h2 {
      font-weight: 700;
      font-size: 3.5rem;
      color: var(--text);
      margin-bottom: 1rem;
      line-height: 1.1;
      letter-spacing: -1px;
    }

    .carousel-caption p {
      font-size: 1.3rem;
      color: var(--text-muted);
      font-weight: 300;
      margin-bottom: 2rem;
    }

    .btn-modern {
      background: var(--accent);
      border: none;
      color: var(--primary);
      font-weight: 600;
      padding: 14px 36px;
      border-radius: 50px;
      font-size: 1rem;
      transition: all 0.3s ease;
      box-shadow: 0 4px 20px rgba(0, 217, 255, 0.4);
      text-decoration: none;
      display: inline-block;
    }

    .btn-modern:hover {
      background: var(--accent-dark);
      transform: translateY(-2px);
      box-shadow: 0 6px 30px rgba(0, 217, 255, 0.6);
      color: white;
    }

    /* Secciones */
    section {
      padding: 100px 0;
    }

    .section-title {
      font-size: 3rem;
      font-weight: 700;
      margin-bottom: 4rem;
      letter-spacing: -1px;
      color: var(--text);
    }

    .section-subtitle {
      font-size: 1.2rem;
      color: var(--text-muted);
      font-weight: 300;
      max-width: 700px;
      margin: 0 auto 4rem;
    }

    /* Cards con glassmorphism */
    .glass-card {
      background: var(--glass);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      padding: 3rem 2rem;
      transition: all 0.4s ease;
      height: 100%;
    }

    .glass-card:hover {
      transform: translateY(-10px);
      border-color: rgba(0, 217, 255, 0.3);
      box-shadow: 0 20px 60px rgba(0, 217, 255, 0.15);
    }

    .glass-card i {
      font-size: 3rem;
      color: var(--accent);
      margin-bottom: 1.5rem;
      display: block;
    }

    .glass-card h5 {
      font-size: 1.4rem;
      font-weight: 600;
      margin-bottom: 1rem;
      color: var(--text);
    }

    .glass-card p {
      color: var(--text-muted);
      font-size: 1rem;
      line-height: 1.7;
    }

    /* Galería minimalista */
    .gallery-img {
      width: 100%;
      height: 280px;
      object-fit: cover;
      border-radius: 16px;
      transition: all 0.4s ease;
      cursor: pointer;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .gallery-img:hover {
      transform: scale(1.05);
      box-shadow: 0 15px 40px rgba(0, 217, 255, 0.2);
      border-color: var(--accent);
    }

    /* Testimonios */
    .testimonial-card {
      background: var(--glass);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      padding: 2.5rem;
      transition: all 0.3s ease;
    }

    .testimonial-card:hover {
      border-color: rgba(0, 217, 255, 0.3);
    }

    .testimonial-card p {
      font-size: 1.1rem;
      color: var(--text-muted);
      font-style: italic;
      line-height: 1.8;
      margin-bottom: 1.5rem;
    }

    .testimonial-card h6 {
      color: var(--accent);
      font-weight: 600;
    }

    /* Footer minimalista */
    footer {
      background: rgba(10, 14, 39, 0.8);
      backdrop-filter: blur(20px);
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding: 2rem 0;
      margin-top: 80px;
    }

    footer p {
      color: var(--text-muted);
      font-size: 0.95rem;
    }

    /* Botones flotantes */
    .float-btn {
      position: fixed;
      right: 30px;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      transition: all 0.3s ease;
      z-index: 1050;
      text-decoration: none;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .whatsapp-btn {
      bottom: 30px;
      background: rgba(37, 211, 102, 0.9);
      color: white;
      box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    }

    .whatsapp-btn:hover {
      background: rgb(37, 211, 102);
      transform: scale(1.1);
      color: white;
    }

    .facebook-btn {
      bottom: 110px;
      background: rgba(24, 119, 242, 0.9);
      color: white;
      box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
    }

    .facebook-btn:hover {
      background: rgb(24, 119, 242);
      transform: scale(1.1);
      color: white;
    }

    /* Modal */
    .custom-modal {
      display: none;
      position: fixed;
      z-index: 2000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(10px);
      padding: 20px;
    }

    .custom-modal-content {
      margin: 5% auto;
      background: var(--secondary);
      padding: 2rem;
      border-radius: 20px;
      max-width: 500px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      animation: modalFade 0.3s ease;
    }

    @keyframes modalFade {
      from { opacity: 0; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1); }
    }

    .modal-img {
      width: 100%;
      border-radius: 12px;
      margin-bottom: 1rem;
    }

    .modal-text {
      color: var(--text-muted);
      font-size: 1.1rem;
    }

    .close-modal {
      color: var(--accent);
      float: right;
      font-size: 28px;
      font-weight: 300;
      cursor: pointer;
      line-height: 1;
      transition: color 0.3s ease;
    }

    .close-modal:hover {
      color: white;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .carousel-inner img {
        height: 60vh;
      }

      .carousel-caption h2 {
        font-size: 2.2rem;
      }

      .carousel-caption p {
        font-size: 1rem;
      }

      .section-title {
        font-size: 2.2rem;
      }

      .navbar-brand {
        font-size: 1.1rem;
      }

      .navbar-logo {
        height: 36px;
      }
    }

    @media (max-width: 576px) {
      #hero-section {
        margin-top: 80px;
      }

      .carousel-caption {
        left: 5%;
        right: 5%;
      }

      section {
        padding: 60px 0;
      }
    }

   .section-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.4), transparent);
  margin: -5px 0; /* antes era 80px, ahora más compacto */
  border-radius: 20px;
}

/* Hero moderno */
#hero-section {
  padding: 2rem 1rem; /* un poco de espacio interno */
  margin-top: 80px; /* más separación del navbar */
  margin-bottom: 80px;
  position: relative; /* útil si quieres efectos posteriores */
}

/* Oculta las flechas del carrusel */
.carousel-control-prev,
.carousel-control-next {
  display: none !important;
}

/* ============================
   LOADER FULLSCREEN PARA iOS
   ============================ */

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    
    /* FULL SCREEN REAL EN TODOS LOS iPHONE */
    height: 100svh; /* iOS moderno */
    height: 100dvh; /* tamaño dinámico */
    height: 100vh;  /* fallback */

    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* más alto para iOS */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 1.1s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: auto;
}

/* Logo palpitando */
#loader img {
    width: 150px;
    animation: pulse 1.4s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Ocultarlo con animación */
#loader.hidden {
    opacity: 0;
    transform: translateY(-120px) scale(1.25);
    transition: opacity 0.8s ease, transform 1.1s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

/* Suavizado final del logo */
#loader.hidden img {
    transform: scale(2);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}


/* Transiciones suaves para el contenido */
.transicion-suave {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity .4s ease, transform .4s ease;
}

.transicion-suave.activo {
    opacity: 1;
    transform: translateY(0);
}


/* ============================
   FIXES ESPECIALES PARA iOS
   ============================ */

.navbar,
footer,
.glass-card,
.testimonial-card,
.custom-modal {
  background: rgba(10, 14, 39, 0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.carousel-inner img {
  height: 75svh;
  max-height: 75vh;
}

.btn-modern {
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.carousel-inner,
.gallery-img {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.gallery-img:hover {
  transform: scale(1.03);
}

.float-btn {
  -webkit-transform: translateZ(0);
}

.custom-modal-content {
  transform: translate3d(0,0,0);
}

/* ============================
   DESCRIPCIÓN EMPRESA
   ============================ */

#descripcion-empresa .info-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  padding: 3rem;
  margin-bottom: 3rem;
}

#descripcion-empresa h3 {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

#descripcion-empresa h4 {
  color: var(--text);
  font-weight: 600;
  margin-top: 1.5rem;
}

#descripcion-empresa p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.info-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.info-list li {
  padding-left: 1.8rem;
  margin-bottom: .8rem;
  position: relative;
  color: var(--text-muted);
}

.info-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.highlight-card {
  border: 1px solid rgba(0,217,255,0.35);
  box-shadow: 0 0 40px rgba(0,217,255,0.15);
}

.custom-accordion .accordion-item {
  background: rgba(255,255,255,0.08);
  border: none;
  margin-bottom: 15px;
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.custom-accordion .accordion-button {
  background: transparent;
  color: #fff;
  font-weight: 600;
}

.custom-accordion .accordion-button:not(.collapsed) {
  background: rgba(0,217,255,0.15);
  color: #00d9ff;
}

.custom-accordion .accordion-body {
  color: #ddd;
  line-height: 1.7;
}

/* Animación scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.gallery-grid {
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

/* Mobile ajuste fino */
@media (max-width: 576px) {
  .gallery-item {
    border-radius: 12px;
  }
}
/* ===== VIDEO RESPONSIVE SIN OVERFLOW ===== */

#video-promocional {
  padding: 60px 0;
  overflow: hidden; /* clave */
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
}

.video-wrapper::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* NO rompe ancho */
}
/* Flechas del accordion en blanco */
.custom-accordion .accordion-button::after {
  filter: brightness(0) invert(1);
}

/* Cuando está abierto, que sigan blancas */
.custom-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}
.contact-phone {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 28px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #00d9ff, #00a8cc);
  border-radius: 40px;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}

.contact-phone:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 217, 255, 0.35);
}