:root {
  --primary: #003366;
  --secondary: #e31e24;
  --light: #f8f9fa;
  --gray: #6c757d;
  --light-gray: #f5f5f5;
  --dark: #212529;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
  background-color: #fff;
}

header {
  background: white;
  padding: 0.8rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  height: 70px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-links a:hover {
  color: var(--secondary);
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-toggle i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 0.5rem);
}

.dropdown-header {
  background: linear-gradient(135deg, var(--primary) 0%, #004d99 100%);
  color: white;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-header i {
  font-size: 1.2rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
  text-transform: none;
}

.dropdown-item:last-of-type {
  border-bottom: none;
}

.dropdown-item i {
  color: var(--secondary);
  font-size: 1.3rem;
  width: 30px;
  text-align: center;
}

.dropdown-item div {
  flex: 1;
}

.dropdown-item strong {
  display: block;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
  font-weight: 600;
}

.dropdown-item small {
  color: var(--gray);
  font-size: 0.8rem;
}

.dropdown-item:hover {
  background: #f8f9fa;
  padding-left: 1.5rem;
}

.dropdown-item:hover i {
  transform: scale(1.1);
}

.dropdown-footer {
  padding: 1rem 1.2rem;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}

.btn-cotizar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25d366;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: none;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-cotizar:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  color: white;
}

/* Mobile dropdown */
.mobile-dropdown {
  position: relative;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-dropdown-toggle i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f8f9fa;
}

.mobile-dropdown.active .mobile-dropdown-content {
  max-height: 600px;
}

.mobile-dropdown-header {
  background: var(--primary);
  color: white;
  padding: 0.7rem 2rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-dropdown-item {
  padding: 0.8rem 2rem 0.8rem 2.5rem !important;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #e0e0e0;
}

.mobile-dropdown-item i {
  color: var(--secondary);
  font-size: 1.1rem;
  width: 20px;
}

.mobile-cotizar {
  background: #25d366;
  color: white !important;
  margin: 0.8rem 1rem;
  padding: 0.8rem 1.5rem !important;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  border: none;
}

.mobile-cotizar:hover {
  background: #128C7E !important;
  color: white !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--primary);
  cursor: pointer;
}

/* ===== FIX PARA MENÚ MÓVIL - AGREGAR/REEMPLAZAR EN site.css ===== */

/* Menú móvil corregido */
/* ===== FIX PARA MENÚ MÓVIL - AGREGAR/REEMPLAZAR EN site.css ===== */

/* Menú móvil corregido */
.mobile-menu {
    display: none;
    position: fixed;
    top: 88px; /* Ajustar según altura del header */
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 999;
    max-height: 0; /* Inicia cerrado */
    overflow-y: auto; /* Scroll vertical si es necesario */
    overflow-x: hidden;
    transition: max-height 0.3s ease-in-out;
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

.mobile-menu.active {
    max-height: calc(100vh - 88px); /* Altura máxima = pantalla completa menos header */
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 0.5rem 0 1rem 0; /* Espacio arriba y abajo */
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #eee;
}

.mobile-menu li:last-child {
    border-bottom: none; /* Quitar borde del último elemento */
}

.mobile-menu a {
    display: block;
    padding: 1rem 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: var(--light-gray);
    color: var(--secondary);
    padding-left: 2.5rem;
}

/* Dropdown móvil */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.mobile-dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 800px; /* Aumentado para que quepa todo el contenido */
}

.mobile-dropdown-header {
    background: var(--primary);
    color: white;
    padding: 0.7rem 2rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-dropdown-item {
    padding: 0.8rem 2rem 0.8rem 2.5rem !important;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-dropdown-item i {
    color: var(--secondary);
    font-size: 1.1rem;
    width: 20px;
}

.mobile-cotizar {
    background: #25d366 !important;
    color: white !important;
    margin: 0.8rem 1rem;
    padding: 0.8rem 1.5rem !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 700;
    border: none;
}

.mobile-cotizar:hover {
    background: #128C7E !important;
    color: white !important;
    padding-left: 1.5rem !important; /* No cambiar padding en hover */
}

/* Botón de menú hamburguesa */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

/* Responsive - Mostrar menú móvil en tablets y móviles */
@media (max-width: 968px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    /* Ajustar altura del header en móvil */
    .mobile-menu {
        top: 80px; /* Ajustar según tu header móvil */
    }
    
    .mobile-menu.active {
        max-height: calc(100vh - 80px);
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .mobile-menu {
        top: 70px; /* Header más pequeño en móviles */
    }
    
    .mobile-menu.active {
        max-height: calc(100vh - 70px);
    }
    
    .mobile-menu a {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .mobile-dropdown-item {
        padding: 0.7rem 1.5rem 0.7rem 2rem !important;
        font-size: 0.85rem;
    }
}

/* Fix para asegurar que el contenido no se corte */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Prevenir que el body haga scroll cuando el menú está abierto */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Asegurar que los enlaces sean tocables en móvil */
.mobile-menu a,
.mobile-menu button {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    min-height: 44px; /* Tamaño mínimo recomendado para touch */
    display: flex;
    align-items: center;
}

/* Fix para que el último elemento sea visible */
.mobile-menu ul {
    padding-bottom: 2rem !important; /* Espacio extra al final */
}

/* Overlay para cerrar el menú al hacer clic fuera */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-menu-overlay.active {
    display: block;
}
/* Prevenir que el body haga scroll cuando el menú está abierto */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Asegurar que los enlaces sean tocables en móvil */
.mobile-menu a,
.mobile-menu button {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    min-height: 44px; /* Tamaño mínimo recomendado para touch */
    display: flex;
    align-items: center;
}

/* Fix para que el último elemento sea visible */
.mobile-menu ul {
    padding-bottom: 2rem !important; /* Espacio extra al final */
}

/* Overlay para cerrar el menú al hacer clic fuera */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-menu-overlay.active {
    display: block;
}

/* ===== HERO ===== */
/* ===== HERO - VIDEO PANTALLA COMPLETA SIN FONDO AZUL ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}

/* VIDEO: Debe cubrir TODA la pantalla */
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Overlay TRANSPARENTE (solo para legibilidad del texto) */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  padding: 2rem;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero .tagline {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #e31e24;
  font-weight: 600;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

/* BOTÓN WHATSAPP */
.cta-button {
  background: #25d366;
  color: white;
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  border: 2px solid transparent;
}

.cta-button i {
  font-size: 1.5rem;
}

.cta-button:hover {
  background: #128C7E;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
  border-color: white;
}

/* ===== RESPONSIVE ===== */

/* Tablets */
@media (max-width: 968px) {
  .hero {
    height: 85vh;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero .tagline {
    font-size: 1.3rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .cta-button {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
}

/* Móviles */
@media (max-width: 576px) {
  .hero {
    height: 100vh;
    min-height: -webkit-fill-available; /* Fix para Safari iOS */
  }

  /* Asegurar que el video cubra TODO en móvil */
  .hero-bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }

  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero h1 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
  }

  .hero .tagline {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .cta-button {
    width: 90%;
    max-width: 350px;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    justify-content: center;
  }

  .cta-button i {
    font-size: 1.3rem;
  }
}

/* iPhone y dispositivos pequeños */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .hero .tagline {
    font-size: 1rem;
  }

  .hero p {
    font-size: 0.85rem;
  }

  .cta-button {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Orientación horizontal en móviles */
@media (max-width: 968px) and (orientation: landscape) {
  .hero {
    height: 100vh;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .hero p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .cta-button {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }
}

/* Fix específico para iOS */
@supports (-webkit-touch-callout: none) {
  .hero {
    height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  .hero-bg-video {
    height: 100vh;
  }
}

/* Fallback si el video no carga */
.hero-bg-video:not([src]) {
  display: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/imagenfes1.png') center center / cover no-repeat;
  z-index: 0;
}

/* ===== SECCIONES ===== */
section:not(.hero) {
  padding: 4.5rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

#nosotros,
#ubicacion {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

#servicios,
#sedes,
#documentacion,
#estructura-institucional {
  padding-top: 4.8rem;
  padding-bottom: 4.8rem;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 2rem;
  color: var(--primary);
  font-weight: 700;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* ===== NUESTROS ESPECIALISTAS - NUEVO DISEÑO ===== */
#estructura-institucional {
  background: #f8fafc;
  padding: 5rem 2rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.specialists-container {
  max-width: 1000px;
  margin: 0 auto;
}

.specialists-carousel {
  overflow: hidden;
  padding: 2rem 0;
}

.specialists-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 2rem;
}

.specialist-card {
  min-width: 100%;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specialist-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.specialist-image {
  flex: 0 0 45%;
  height: 420px;
  overflow: hidden;
  background: #e2e8f0;
}

.specialist-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.specialist-card:hover .specialist-image img {
  transform: scale(1.05);
}

.specialist-info {
  flex: 1;
  padding: 3rem 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.specialist-info h3 {
  font-size: 2.2rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}

.specialist-role {
  font-size: 1.15rem;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

/* Controles de navegación */
.specialists-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.specialists-nav-btn {
  background: var(--primary);
  color: white;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.specialists-nav-btn:hover {
  background: var(--secondary);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(227, 30, 36, 0.3);
}

.specialists-nav-btn:active {
  transform: scale(0.95);
}

.specialists-indicators {
  display: flex;
  gap: 0.6rem;
}

.specialists-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.specialists-indicators button.active {
  background: var(--secondary);
  width: 28px;
  border-radius: 12px;
}

/* ===== SECCIÓN CONSULTAR CITA (NUEVA) ===== */
#consultar-cita-section {
  background: linear-gradient(135deg, var(--primary) 0%, #004d99 100%);
  padding: 4rem 2rem;
  margin: 0;
  max-width: 100%;
}

.consultar-cita-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.consultar-cita-icon {
  font-size: 4rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.consultar-cita-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.consultar-cita-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.6;
}

.btn-consultar-cita {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(227, 30, 36, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-consultar-cita:hover {
  background: #b81820;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(227, 30, 36, 0.6);
}

.btn-consultar-cita:active {
  transform: translateY(-1px);
}

/* ===== MODAL DE CITA ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  position: absolute;
  right: 1.2rem;
  top: 1rem;
  font-size: 1.8rem;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--secondary);
}

.modal-content h3 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.modal-content p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s;
  background: white;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.form-group input[type="date"] {
  cursor: pointer;
  color: var(--dark);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background: rgba(0, 51, 102, 0.1);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.submit-button {
  width: 100%;
  background: var(--secondary);
  color: white;
  border: none;
  padding: 0.9rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-button:hover {
  background: #b81820;
}

/* ===== MODAL DE CONFIRMACIÓN / CONSULTA ===== */
#confirmModal .modal-content {
  padding: 2.5rem 2rem;
  text-align: center;
}

.confirm-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.confirm-details {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 8px;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5;
}

.confirm-details p {
  margin: 0.4rem 0;
}

.confirm-close {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.9rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 0.8rem;
}

.confirm-close:hover {
  background: #0d6efd;
}

.view-cita-btn {
  width: 100%;
  background: var(--light-gray);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.8rem;
}

.view-cita-btn:hover {
  background: #e6f0ff;
  transform: translateY(-2px);
}

/* ===== BOTÓN DE CONSULTAR CITA EN MENÚ Y FOOTER ===== */
.nav-links #menuConsultarCita,
.mobile-menu #mobileConsultarCita {
  color: var(--secondary);
  font-weight: 700;
  position: relative;
}

.nav-links #menuConsultarCita::after,
.mobile-menu #mobileConsultarCita::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-links #menuConsultarCita:hover::after,
.mobile-menu #mobileConsultarCita:hover::after {
  width: 100%;
}

.footer-cita-link {
  margin-top: 1rem;
}

.footer-cita-link a {
  color: #a0aec0;
  text-decoration: underline;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-cita-link a:hover {
  color: white;
}

/* ===== RESTO DEL SITIO (NO MODIFICADO) ===== */
#nosotros {
  background: var(--light-gray);
}

.about-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto 2rem;
}

.about-content h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-text {
  font-size: 0.95rem;
  color: var(--gray);
  text-align: justify;
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.value-card {
  background: white;
  padding: 1.4rem;
  border-radius: 12px;
  text-align: left;
  border: 1px solid #eaeaea;
  transition: var(--transition);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  border-color: var(--secondary);
}

.value-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.value-icon {
  font-size: 1.8rem;
  color: var(--primary);
  min-width: 32px;
  text-align: center;
}

.value-card:hover .value-icon {
  color: var(--secondary);
}

.value-card h4 {
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.value-card p {
  color: var(--gray);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.value-card strong {
  color: var(--primary);
  font-weight: 600;
}

.commitment-badge {
  background: var(--secondary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.8rem;
  display: inline-block;
}

#servicios {
  background: white;
}

.services-carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.services-carousel {
  overflow: hidden;
}

.services-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
}

.service-card {
  min-width: calc(33.333% - 1.35rem);
  background: linear-gradient(135deg, var(--primary) 0%, #004d99 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 51, 102, 0.35);
}

.service-icon {
  font-size: 2.6rem;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.service-card ul {
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 0.8rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(227, 30, 36, 0.85);
  color: white;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-nav:hover {
  background: var(--secondary);
  transform: translateY(-50%) scale(1.1);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
}

.indicator.active {
  background: var(--secondary);
}

/* ===== SEDES - 4 COLUMNAS ===== */
#sedes {
  background: white;
  padding: 4.8rem 1rem;
}

.sedes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.sede-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sede-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.sede-header {
  background: var(--primary);
  color: white;
  padding: 1rem 1.2rem;
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sede-header h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.sede-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.9;
  justify-content: center;
}

.sede-address i {
  color: var(--secondary);
  font-size: 0.85rem;
}

.sede-image-container {
  aspect-ratio: 4/3;
  overflow: hidden;
  height: 200px;
}

.sede-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sede-card:hover .sede-image-container img {
  transform: scale(1.05);
}

.sede-footer {
  padding: 1rem 1.2rem;
  text-align: center;
}

.maps-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary);
  color: white;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(227, 30, 36, 0.3);
  white-space: nowrap;
}

.maps-button:hover {
  background: #b81820;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(227, 30, 36, 0.4);
}

.maps-button i {
  font-size: 0.95rem;
}

#ubicacion {
  background: var(--light-gray);
}

.location-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.location-info h3 {
  color: var(--primary);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.location-detail {
  margin-bottom: 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.location-detail i {
  color: var(--secondary);
  font-size: 1.3rem;
  margin-top: 0.25rem;
}

.location-detail div strong {
  color: var(--primary);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.3rem;
}

.location-detail div p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.map-container {
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

#documentacion {
  background: white;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.document-card {
  background: white;
  border-radius: 12px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid #eee;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.document-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary);
}

.doc-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(227, 30, 36, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.document-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin: 0.5rem 0 0.6rem;
  font-weight: 600;
}

.document-card p {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.download-link:hover {
  color: #b81820;
  text-decoration: underline;
}

.download-link.disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
  color: #777;
  text-decoration: none;
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  text-decoration: none;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}

footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 2rem 1.5rem;
}

.footer-tagline {
  color: var(--secondary);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

footer p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ===== MEDIA QUERIES ===== */

/* Pantallas grandes (1200px - 1400px) */
@media (max-width: 1400px) {
  .sedes-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }
  
  .sede-header h3 {
    font-size: 1.05rem;
  }
  
  .maps-button {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }
}

/* Tablets (hasta 1200px) */
@media (max-width: 1200px) {
  .sedes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .sede-header {
    min-height: 90px;
  }
  
  .sede-image-container {
    height: 220px;
  }
}

/* Tablets y móviles (hasta 968px) */
@media (max-width: 968px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

  nav {
    padding: 0 1rem;
  }

  header {
    padding: 0.6rem 0;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1.2rem;
  }

  section:not(.hero) {
    padding: 3rem 1.5rem;
  }

  #nosotros,
  #ubicacion {
    padding-top: 2.8rem;
    padding-bottom: 2.8rem;
  }

  #servicios,
  #sedes,
  #documentacion,
  #estructura-institucional {
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
  }

  .location-content {
    grid-template-columns: 1fr;
  }

  .map-container {
    height: 250px;
  }

  .service-card {
    min-width: 100%;
  }

  .services-carousel-container {
    padding: 0 20px;
  }

  .carousel-nav {
    display: none;
  }

  .documents-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .sedes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo {
    height: 64px;
  }

  /* Especialistas en tablet */
  .specialist-card {
    flex-direction: column;
    text-align: center;
  }

  .specialist-image {
    flex: 0 0 auto;
    width: 100%;
    height: 350px;
  }

  .specialist-info {
    padding: 2.5rem 2rem;
  }

  .specialists-nav-btn {
    width: 45px;
    height: 45px;
  }
}

/* Móviles (hasta 576px) */
@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .sede-header h3 {
    font-size: 1.1rem;
  }

  .sede-address {
    font-size: 0.8rem;
  }

  .logo {
    height: 45px;
  }

  .cta-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.9rem 1rem;
  }

  .mobile-menu-btn {
    font-size: 2rem;
  }

  .hero-bg-video {
    display: block;
    height: 100vh;
    object-fit: cover;
  }
  
  .hero {
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7)), url('../images/imagenfes1.png');
    background-size: cover;
    background-position: center;
  }

  section:not(.hero) {
    padding: 2.4rem 1.2rem;
  }

  #servicios,
  #sedes,
  #documentacion,
  #estructura-institucional {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* Sedes en móvil - 1 columna */
  .sedes-grid {
    grid-template-columns: 1fr;
  }
  
  .sede-header {
    min-height: auto;
    padding: 1.2rem 1.5rem;
  }
  
  .sede-header h3 {
    font-size: 1.2rem;
  }
  
  .sede-image-container {
    height: 240px;
  }
  
  .maps-button {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
  }

  /* Especialistas en móvil */
  #estructura-institucional {
    padding: 3rem 1.2rem;
  }

  .section-title {
    font-size: 2.1rem;
    margin-bottom: 0.3rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }

  .specialist-card {
    flex-direction: column;
  }

  .specialist-image {
    width: 100%;
    height: 280px;
  }

  .specialist-info {
    padding: 2rem 1.5rem;
  }

  .specialist-info h3 {
    font-size: 1.8rem;
  }

  .specialist-role {
    font-size: 1rem;
    letter-spacing: 1.5px;
  }

  .specialists-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Sección consultar cita en móvil */
  #consultar-cita-section {
    padding: 3rem 1.5rem;
  }

  .consultar-cita-icon {
    font-size: 3rem;
  }

  .consultar-cita-content h2 {
    font-size: 1.8rem;
  }

  .consultar-cita-content p {
    font-size: 1rem;
  }

  .btn-consultar-cita {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
  }

  /* Modal en móvil */
  .modal-content {
    margin: 10% auto;
    width: 95%;
    padding: 1.5rem;
  }

  .confirm-details {
    font-size: 0.9rem;
  }
}
/* ================================================= */
/* === NUEVO CARRUSEL MULTIMEDIA === */
/* ===== PUBLICACIONES Y MULTIMEDIA - NUEVO ESTILO ELEGANTE ===== */
#publicaciones-multimedia {
    background: #f9fbfd; /* Fondo suave y moderno */
    padding: 4rem 1.5rem;
    color: var(--dark);
    position: relative;
    overflow: hidden;
}

#publicaciones-multimedia::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    opacity: 0.06; /* Muy sutil */
    border-radius: 50%;
    z-index: 0;
}

#publicaciones-multimedia .section-title {
    position: relative;
    z-index: 1;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

#publicaciones-multimedia .section-title::after {
    background: var(--secondary);
}

.publicaciones-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.pub-tab-button {
    background: white;
    color: var(--primary);
    border: 2px solid #e2e8f0;
    padding: 0.9rem 2.5rem;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pub-tab-button:hover,
.pub-tab-button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.15);
}

.carousel-section {
    max-width: 1400px;
    margin: 0 auto 3rem;
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: none;
}

.carousel-section.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.carousel-container {
    position: relative;
    margin-bottom: 2rem;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 1rem);
    min-height: 380px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.carousel-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.item-image {
    width: 100%;
    height: 220px;
    background: #e2e8f0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img,
.item-image {
    object-fit: cover;
}

.item-icon {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    transition: opacity 0.3s;
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay i {
    font-size: 3.5rem;
    color: white;
}

.item-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.item-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-category {
    display: inline-block;
    background: rgba(0, 51, 102, 0.1);
    color: var(--primary);
    padding: 0.35rem 0.9rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    width: fit-content;
}

.item-title {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    flex: 1;
}

.item-description {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: auto;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(227, 30, 36, 0.85);
    color: white;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-nav:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 6px 16px rgba(227, 30, 36, 0.35);
}

.carousel-nav.prev { left: 1rem; }
.carousel-nav.next { right: 1rem; }

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.indicator-dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.indicator-dot.active {
    background: var(--secondary);
    width: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(227, 30, 36, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .carousel-item { flex: 0 0 calc(50% - 0.75rem); }
}

@media (max-width: 768px) {
    .carousel-item { flex: 0 0 100%; }
    .carousel-nav { width: 40px; height: 40px; font-size: 1rem; }
    .carousel-nav.prev { left: 0.5rem; }
    .carousel-nav.next { right: 0.5rem; }
    .carousel-section { padding: 2rem 1.5rem; }
}

@media (max-width: 576px) {
    .carousel-nav { width: 36px; height: 36px; font-size: 0.9rem; }
    .item-content { padding: 1.2rem; }
    .item-title { font-size: 1rem; }
}

/* === MODAL PARA VISUALIZAR CONTENIDO === */
.media-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.media-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-modal-content {
    background: white;
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.media-modal-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.media-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.close-media-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-media-modal:hover {
    background: var(--secondary);
    transform: rotate(90deg);
}

.media-modal-body {
    flex: 1;
    overflow: auto;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.media-modal-body iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.media-modal-body video {
    width: 100%;
    max-height: 70vh;
    background: #000;
}

.media-modal-footer {
    background: #f8f9fa;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #e0e0e0;
}

.btn-download-modal {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-download-modal:hover {
    background: #b81820;
    transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    #publicaciones-multimedia {
        padding: 3.5rem 1.5rem;
    }

    .publicaciones-tabs {
        flex-direction: column;
        max-width: 300px;
        margin: 0 auto 2.5rem;
    }

    .pub-tab-button {
        width: 100%;
        justify-content: center;
    }

    .publicaciones-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .media-modal-content {
        width: 98%;
        max-height: 98vh;
    }

    .media-modal-body iframe {
        height: 400px;
    }

    .media-modal-header {
        padding: 1rem 1.5rem;
    }

    .media-modal-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) { 
    #publicaciones-multimedia .section-title {
        font-size: 2rem;
    }

    .pub-tab-button {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
    }

    .publicacion-info h3 {
        font-size: 1.1rem;
    }

    .publicacion-info {
        padding: 1.5rem;
    }

    .media-modal-body iframe {
        height: 300px;
    }

    .media-modal-footer {
        padding: 1rem 1.5rem;
    }

    .btn-download-modal {
        width: 100%;
        justify-content: center;
    }
}
/* === MINI-CARRUSEL DENTRO DE TARJETAS === */
.mini-carousel {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
}
.mini-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}
.mini-slide {
    min-width: 100%;
    height: 100%;
    background: #e2e8f0;
    position: relative;
}
.mini-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mini-slide:hover::before {
    opacity: 1;
}
.mini-slide::before i {
    font-size: 3rem;
    color: white;
    opacity: 0.7;
}
/* === MINI-CARRUSEL DENTRO DE TARJETAS === */
.mini-carousel {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
}

.mini-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.mini-slide {
    min-width: 100%;
    height: 100%;
    background: #e2e8f0;
    position: relative;
}

.mini-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-slide:hover::before {
    opacity: 1;
}

.mini-slide::before i {
    font-size: 3rem;
    color: white;
    opacity: 0.7;
}

/* Flechas: ocultas por defecto, visibles solo al hacer hover en la tarjeta */
.mini-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(227, 30, 36, 0.85);
    color: white;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0; /* Ocultas por defecto */
    visibility: hidden; /* Asegura que no ocupen espacio */
}

.mini-carousel:hover .mini-nav {
    opacity: 1; /* Visibles al hacer hover */
    visibility: visible; /* Muestran su espacio */
}

.mini-nav:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 10px rgba(227, 30, 36, 0.3);
}

.mini-nav.prev {
    left: 10px;
}

.mini-nav.next {
    right: 10px;
}

/* ===== FIX TAMAÑO DE INDICADORES (CÍRCULOS) ===== */
/* BUSCA la sección .mini-indicators en tu site.css y REEMPLÁZALA con esto: */

.mini-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px; /* Espacio entre círculos - REDUCIDO */
    z-index: 10;
    pointer-events: auto;
}

.mini-indicators button {
    width: 8px; /* REDUCIDO de 10px o 12px */
    height: 8px; /* REDUCIDO de 10px o 12px */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6); /* Círculos inactivos más transparentes */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(227, 30, 36, 0.3);
    touch-action: manipulation;
}

/* Círculo activo (rojo y más grande) */
.mini-indicators button.active {
    background: #e31e24; /* Rojo de tu marca */
    width: 20px; /* Forma ovalada - REDUCIDO de 24px o 28px */
    border-radius: 10px; /* Mitad del width para forma ovalada */
}

/* Hover solo en desktop */
@media (min-width: 769px) {
    .mini-indicators button:hover {
        background: rgba(255, 255, 255, 0.9);
        transform: scale(1.3);
    }
    
    .mini-indicators button.active:hover {
        background: #e31e24;
    }
}

/* En móvil, hacer los círculos un poco más grandes para facilitar el toque */
@media (max-width: 768px) {
    .mini-indicators button {
        width: 10px; /* Un poco más grande en móvil */
        height: 10px;
        /* Aumentar área táctil invisible */
        position: relative;
    }
    
    /* Área táctil más grande sin cambiar tamaño visual */
    .mini-indicators button::before {
        content: '';
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
    
    .mini-indicators button.active {
        width: 24px; /* Ovalado activo en móvil */
        border-radius: 12px;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .mini-indicators {
        gap: 5px; /* Reducir espacio entre círculos */
    }
    
    .mini-indicators button {
        width: 8px;
        height: 8px;
    }
    
    .mini-indicators button.active {
        width: 20px;
        border-radius: 10px;
    }
}
/* ===== SECCIÓN NUESTRAS ÓPTICAS ===== */
#nuestras-opticas {
    background: white;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

#nuestras-opticas::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 60%);
    opacity: 0.04;
    border-radius: 50%;
}

.opticas-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.opticas-container .section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.opticas-container .section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.opticas-container .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.opticas-container .section-header p {
    color: var(--gray);
    font-size: 1.15rem;
    margin-top: 1.5rem;
}

.opticas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.optica-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}

.optica-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary);
}

/* Mini Carrusel */
.optica-gallery {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #e2e8f0;
}

.gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gallery-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.optica-card:hover .gallery-slide::before {
    opacity: 1;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(227, 30, 36, 0.9);
    color: white;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.optica-card:hover .gallery-nav {
    opacity: 1;
    visibility: visible;
}

.gallery-nav:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 15px;
}

.gallery-nav.next {
    right: 15px;
}

.gallery-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.gallery-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicators button.active {
    background: white;
    width: 28px;
    border-radius: 12px;
}

/* Contenido de la tarjeta */
.optica-content {
    padding: 2rem 1.8rem;
}

.optica-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.optica-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), #0055aa);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.optica-content h3 {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
}

.optica-location {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.optica-location i {
    color: var(--secondary);
    font-size: 1rem;
}

.optica-description {
    color: var(--dark);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.optica-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 51, 102, 0.08);
    color: var(--primary);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.feature-badge i {
    font-size: 0.75rem;
    color: var(--secondary);
}

.optica-footer {
    display: flex;
    gap: 0.8rem;
    padding-top: 1.2rem;
    border-top: 2px solid #f0f0f0;
}

.btn-maps,
.btn-whatsapp {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-maps {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.25);
}

.btn-maps:hover {
    background: #b81820;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(227, 30, 36, 0.35);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .opticas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    #nuestras-opticas {
        padding: 3.5rem 1.5rem;
    }

    .opticas-container .section-header h2 {
        font-size: 2rem;
    }

    .opticas-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .optica-gallery {
        height: 280px;
    }

    .optica-content {
        padding: 1.5rem;
    }

    .optica-content h3 {
        font-size: 1.2rem;
    }

    .optica-footer {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .opticas-container .section-header h2 {
        font-size: 1.8rem;
    }

    .opticas-container .section-header p {
        font-size: 1rem;
    }

    .optica-gallery {
        height: 240px;
    }

    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
/* ===== BOTÓN DESHABILITADO Y MENSAJE PRÓXIMAMENTE ===== */
.btn-consultar-cita.disabled {
    background: #9ca3af;
    color: #e5e7eb;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.6;
}

.btn-consultar-cita.disabled:hover {
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

.coming-soon-note {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.coming-soon-note i {
    color: #fbbf24;
    font-size: 1.1rem;
}

.btn-whatsapp-cita {
    background: #25d366;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    margin-top: 0.5rem;
}

.btn-whatsapp-cita:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Responsive */
@media (max-width: 576px) {
    .coming-soon-note {
        font-size: 0.85rem;
        text-align: center;
    }
    
    .btn-whatsapp-cita {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}
/* ===== NOTIFICACIÓN PRÓXIMAMENTE ===== */
.notification-proximamente {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #004d99 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideInRight 0.4s ease;
    max-width: 350px;
}

.notification-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.notification-content i {
    font-size: 2.5rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.notification-content p {
    margin: 0;
    line-height: 1.5;
}

.notification-content strong {
    font-size: 1.1rem;
}

.notification-proximamente.fade-out {
    animation: slideOutRight 0.3s ease;
    opacity: 0;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@media (max-width: 576px) {
    .notification-proximamente {
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 1.2rem 1.5rem;
    }
}
/* Deshabilitar SOLO el botón "Consultar tu cita" del modal de confirmación */
.view-cita-btn {
    background: #9ca3af !important;
    color: #e5e7eb !important;
    border: 1px solid #6b7280 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.view-cita-btn:hover {
    background: #9ca3af !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Cambiar el icono y texto */
.view-cita-btn::before {
    content: '⏰ ';
}
/* ===== SOLUCIÓN PARA VIDEO EN ANDROID ===== */
.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Asegurar que el video sea visible */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000; /* Fondo negro mientras carga */
}

/* Ocultar video en dispositivos móviles Android */
@media (max-width: 768px) {
  .hero-bg-video {
    display: none !important;
  }
  
  .hero {
    background: url('../images/imagenfes1.png') center center / cover no-repeat;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 51, 102, 0.75), rgba(0, 51, 102, 0.75));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 850px;
  padding: 2rem;
  animation: fadeInUp 1s;
}
/* ===== FIX CRÍTICO PARA HERO - AGREGAR AL FINAL DE site.css ===== */

/* Forzar que el hero no tenga márgenes ni padding */
#inicio.hero {
  margin: 0 !important;
  padding: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Asegurar que el video sea visible y ocupe todo */
.hero .hero-bg-video {
  visibility: visible !important;
  display: block !important;
  opacity: 1 !important;
  z-index: 1 !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Asegurar que el overlay sea semi-transparente */
.hero .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.4) 100%
  ) !important;
  opacity: 1 !important;
  z-index: 2 !important;
}

/* Contenido encima del video */
.hero .hero-content {
  z-index: 3 !important;
  position: relative !important;
}

/* Eliminar cualquier fondo azul heredado */
.hero::before,
.hero::after {
  display: none !important;
}

/* Desktop específico */
@media (min-width: 969px) {
  .hero {
    height: 100vh !important;
    min-height: 100vh !important;
  }
  
  .hero-bg-video {
    min-width: 100% !important;
    min-height: 100% !important;
  }
}
/* ===== MEJORA VISUAL PARA SWIPE ===== */
.mini-carousel {
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

.mini-track {
    will-change: transform;
    cursor: grab;
}

.mini-track:active {
    cursor: grabbing;
}

.carousel-wrapper {
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

/* Prevenir selección de texto durante swipe */
.carousel-item img,
.mini-slide {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}
/* ===== FIX PARA iPHONE - MEJORAR DETECCIÓN DE TAP/SWIPE ===== */
/* Agrega esto al final de tu site.css o reemplaza la sección de mini-carousels */

/* Mejorar área táctil en mini-carruseles */
.mini-carousel {
    touch-action: pan-y; /* Permitir scroll vertical, controlar horizontal */
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    overflow: hidden;
    cursor: grab;
    -webkit-tap-highlight-color: transparent; /* Quitar highlight azul en iOS */
}

.mini-carousel:active {
    cursor: grabbing;
}

.mini-track {
    will-change: transform;
    cursor: grab;
    display: flex;
    height: 100%;
    touch-action: pan-y;
    -webkit-transform: translateZ(0); /* Aceleración por hardware en iOS */
    transform: translateZ(0);
}

.mini-track:active {
    cursor: grabbing;
}

/* Las imágenes deben ser tocables pero no arrastrables */
.mini-slide {
    pointer-events: auto;
    -webkit-user-drag: none;
    user-select: none;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.mini-slide img {
    pointer-events: none; /* Las imágenes NO interceptan eventos */
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none; /* Deshabilitar menú contextual en iOS */
}

/* Los botones de navegación deben estar siempre accesibles */
.mini-nav {
    pointer-events: auto !important;
    z-index: 20;
    -webkit-tap-highlight-color: rgba(227, 30, 36, 0.3);
    touch-action: manipulation; /* Mejor respuesta táctil */
}

/* Indicadores también accesibles */
.mini-indicators {
    pointer-events: auto !important;
    z-index: 20;
}

.mini-indicators button {
    pointer-events: auto !important;
    -webkit-tap-highlight-color: rgba(227, 30, 36, 0.3);
    touch-action: manipulation;
    min-width: 32px; /* Área táctil mínima recomendada */
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FIX ESPECÍFICO PARA iOS SAFARI ===== */
@supports (-webkit-touch-callout: none) {
    .mini-carousel {
        -webkit-overflow-scrolling: touch;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mini-track {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    /* Evitar el delay de 300ms en iOS */
    .mini-carousel * {
        touch-action: manipulation;
    }
    
    /* Mejorar la respuesta táctil */
    .mini-carousel,
    .mini-nav,
    .mini-indicators button {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
    }
}

/* ===== MEJORAR VISIBILIDAD DE CONTROLES EN MÓVIL ===== */
@media (max-width: 768px) {
    /* Hacer las flechas más grandes y siempre visibles */
    .mini-nav {
        width: 44px; /* Tamaño mínimo recomendado para touch */
        height: 44px;
        font-size: 1.2rem;
        opacity: 0.95;
        background: rgba(227, 30, 36, 0.9) !important;
    }
    
    /* Mostrar SIEMPRE las flechas en móvil (no solo al hover) */
    .mini-carousel .mini-nav {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Hacer los indicadores más grandes y fáciles de tocar */
    .mini-indicators button {
        width: 12px;
        height: 12px;
        margin: 0 5px;
    }
    
    .mini-indicators button.active {
        width: 24px;
    }
    
    /* Aumentar el área táctil sin cambiar el tamaño visual */
    .mini-indicators button::before {
        content: '';
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
}

/* ===== OPTIMIZACIÓN DE RENDIMIENTO ===== */
.mini-carousel,
.carousel-wrapper {
    -webkit-overflow-scrolling: touch;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

.mini-track,
.carousel-track {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* ===== FEEDBACK VISUAL AL TOCAR ===== */
.mini-carousel:active .mini-track {
    transition: none;
}

.mini-nav:active {
    transform: translateY(-50%) scale(0.95);
    background: var(--secondary) !important;
}

.mini-indicators button:active {
    transform: scale(1.2);
}

/* ===== ACCESIBILIDAD ===== */
.mini-carousel:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Asegurar que los botones sean visibles para usuarios con teclado */
.mini-nav:focus,
.mini-indicators button:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ===== PREVENIR COMPORTAMIENTOS NO DESEADOS EN iOS ===== */
.mini-carousel img,
.mini-carousel video {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Evitar que el navegador intente hacer zoom al doble tap */
.mini-carousel * {
    touch-action: pan-y pinch-zoom;
}

/* Pero permitir zoom en el lightbox */
.media-modal-body img {
    touch-action: pinch-zoom;
}
