/* =====================================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
===================================================== */
:root {
  --red: #EC0004;
  --red-dark: #b00002;
  --dark: #1f1f1f;
  --gray: #f4f4f4;
  --white: #ffffff;
}

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 100px; 
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a, button { 
  touch-action: manipulation; 
}

:focus-visible { 
  outline: 3px solid rgba(236, 0, 4, 0.45); 
  outline-offset: 3px; 
}

/* =====================================================
   2. NAVBAR
===================================================== */
.navbar {
  background: rgba(255, 255, 255, 0.97);
  min-height: 88px;
  padding: 8px 0;
  transition: 0.35s ease;
}

.navbar.scrolled {
  box-shadow: 0 8px 28px rgba(25, 25, 25, 0.12);
}

.logo-navbar {
  height: 62px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--red) !important;
}

.nav-link {
  color: var(--red) !important;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.75rem 0.7rem !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: 0.35s;
}

.nav-link:hover::after { 
  width: 100%; 
}

.navbar-toggler { 
  border: 1px solid #eee; 
  padding: 0.45rem 0.65rem; 
}
/* =====================================================
   3. HERO SECTION (VERSIÓN SIMPLIFICADA EN 1 CAPA)
===================================================== */
.hero {
  min-height: 760px;
  min-height: min(850px, 100vh);
  padding: 145px 0 70px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  
  /* MISMA TÉCNICA LIMPIA: Un degradado oscuro uniforme + la imagen de fondo en cover */
  background: 
     linear-gradient(
      to bottom, 
      rgba(255, 23, 42, 0.85) 0%,        /* Transición suave arriba */
      rgba(255, 255, 255, 0.70) 20%,     /* Centro claro */
      rgba(255, 23, 42, 0.52) 80%,      /* Centro rojizo */
      rgba(255, 23, 42, 0.85) 100%       /* Transición suave abajo */
    ),
    url('/assets/img/mfondo2A.jpg') center/cover no-repeat fixed;

}

.hero .container { 
  position: relative; 
  z-index: 2; 
}

.hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 0, 0, 0.38);
  border-radius: 30px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.52);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero h1 {
  color: var(--red);
 -webkit-text-stroke: 2px white;
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
  animation: fadeDown 1s ease;
}

.pri {
  color: #ffffff; /* Texto blanco puro */
  max-width: 600px;
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.25rem);
  font-weight: 500;
  line-height: 1.6;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo negro semi-transparente */
  padding: 2px 10px; /* Espacio interno para que respire */
  border-radius: 8px; /* Bordes redondeados */
  backdrop-filter: blur(4px); /* Efecto desenfoque moderno por detrás */
  animation: fadeUp 1.2s ease;
}

.hero .hero-actions { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 12px; 
  margin-top: 24px; 
}

.hero .hero-actions .btn { 
  padding: 12px 19px; 
  border-radius: 9px; 
  font-weight: 700; 
}

.btn-outline-light:hover { 
  color: var(--red); 
}

/* 2. SECCIÓN SIGUIENTE (Sobre Transporte Anshelitus) */
#nosotros {
  position: relative;
  padding: 80px 0;
  
  /* Usa exactamente la misma regla background para enganchar el fondo */
  background: 
     linear-gradient(
      to bottom, 
      rgba(255, 23, 42, 0.85) 0%,        /* Transición suave arriba */
      rgba(255, 255, 255, 0.70) 20%,     /* Centro claro */
      rgba(255, 23, 42, 0.52) 80%,      /* Centro rojizo */
      rgba(255, 23, 42, 0.85) 100%       /* Transición suave abajo */
    ),
    url('/assets/img/fondomision.png') center/cover no-repeat fixed;
}
#encomiendas {
  position: relative;
  padding: 80px 0;
  
  /* Usa exactamente la misma regla background para enganchar el fondo */
  background: 
     linear-gradient(
      to bottom, 
      rgba(255, 23, 42, 0.85) 0%,        /* Transición suave arriba */
      rgba(255, 255, 255, 0.70) 20%,     /* Centro claro */
      rgba(255, 23, 42, 0.52) 80%,      /* Centro rojizo */
      rgba(255, 23, 42, 0.85) 100%       /* Transición suave abajo */
    ),
    url('/assets/img/fondocargo.png') center/cover no-repeat fixed;
}
#servicios-bus {
  position: relative;
  padding: 80px 0;
  
  /* Degradado con transición en TOP (inicio) y BOTTOM (final) */
  background: 
    linear-gradient(
      to bottom, 
      rgba(255, 23, 42, 0.85) 0%,        /* Transición suave arriba */
      rgba(255, 255, 255, 0.70) 20%,     /* Centro claro */
      rgba(255, 23, 42, 0.52) 80%,      /* Centro rojizo */
      rgba(255, 23, 42, 0.85) 100%       /* Transición suave abajo */
    ),
    url('/assets/img/fondoservicio.png') center/cover no-repeat fixed;
}

#pqelegir {
  position: relative;
  padding: 80px 0;
  
  /* Usa exactamente la misma regla background para enganchar el fondo */
  background: 
    linear-gradient(
      to bottom, 
      rgba(255, 23, 42, 0.85) 0%,        /* Transición suave arriba */
      rgba(255, 255, 255, 0.70) 20%,     /* Centro claro */
      rgba(255, 23, 42, 0.52) 80%,      /* Centro rojizo */
      rgba(255, 23, 42, 0.85) 100%       /* Transición suave abajo */
    ),
    url('/assets/img/fondopq.png') center/cover no-repeat fixed;
}

/* =====================================================
   4. SEARCH GLASS CARD
===================================================== */
.search-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 26px;
  margin-top: 34px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.45s ease;
  position: relative;
  z-index: 100;
}

.search-card.fixed {
  position: fixed;
  top: 94px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 32px));
  padding: 20px 24px;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #eee;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  animation: searchFloat 0.5s ease;
  z-index: 99999 !important; 
}

/* 2. Asegurar que los bloques comunes de contenido tengan un z-index bajo y controlado */
.position-relative.text-white {
  position: relative;
  z-index: 1; /* Se mantiene en el fondo para que la tarjeta flotante pase por encima */
}

.search-card .search-heading { 
  color: #202532; 
  font-size: 1.05rem; 
  font-weight: 800; 
  margin: 0 35px 16px 0; 
}

.search-card .search-subtitle { 
  color: #697386; 
  font-size: 0.88rem; 
  margin-bottom: 16px; 
}

.search-card .form-control,
.search-card .btn-corp {
  height: 46px;
  border-radius: 8px;
}

.search-card input,
.search-card select {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #000;
  font-weight: 500;
}

.search-card input::placeholder { color: #555; }

.search-card input:focus, 
.search-card select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(236, 0, 4, 0.15);
}

.search-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(236, 0, 4, 0.12);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
  z-index: 99;
}

.search-close:hover {
  background: var(--red);
  color: var(--white);
  transform: rotate(90deg) scale(1.1);
}

.search-placeholder {
  height: 0;
  transition: 0.3s ease;
}
.search-placeholder.active { height: 170px; }

/* =====================================================
   5. BOTONES Y COMPONENTES GENERALES
===================================================== */
.btn-corp {
  background: var(--red);
  color: var(--white);
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.35s ease;
}

.btn-corp:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(236, 0, 4, 0.55);
}

.btn-corp:active { transform: scale(0.96); }

.section { padding: 82px 0; }

.section-gray, 
.section-rutas {
  background:  linear-gradient(
      to bottom, 
      rgba(255, 23, 42, 0.85) 0%,        /* Transición suave arriba */
      rgba(255, 255, 255, 0.70) 20%,     /* Centro claro */
      rgba(255, 23, 42, 0.52) 80%,      /* Centro rojizo */
      rgba(255, 23, 42, 0.85) 100%       /* Transición suave abajo */
    ),url('/assets/img/fondorutas.png') bottom left / 100% 100% no-repeat fixed;
  z-index: 1; 
  display: block;   
}

.section-title {
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: var(--red);
}

.section-title::after {
  content: ""; 
  display: block; 
  width: 58px; 
  height: 4px; 
  margin: 15px auto 0;
  background: var(--red); 
  border-radius: 5px;
}

#rutas .section-intro { 
  max-width: 680px; 
  margin: 0 auto 38px; 
  color: #687080; 
}

/* =====================================================
   6. TARJETAS DE RUTAS
===================================================== */
.route-card {
  background: var(--white);
  border: 1px solid #e8eaf0;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(20, 25, 35, 0.06);
  transition: 0.45s ease;
  position: relative;
  overflow: hidden;
  color: #222;  
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.route-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, transparent, rgba(236, 0, 4, 0.08));
  opacity: 0;
  transition: 0.4s;
}

.route-price {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--red);
}

.route-features li {
  list-style: none;
  font-size: 14px;
  padding: 4px 0;
}

.route-card button {
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
}

.route-card:hover {
  background: linear-gradient(145deg, #fff, #fff5f5);
  color: #222;
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(30, 30, 30, 0.12);
  cursor: pointer;
}

.route-card:hover::before { opacity: 1; }

.route-card:hover .route-price, 
.route-card:hover p, 
.route-card:hover li {
  color: inherit !important;
}

/* =====================================================
   7. SERVICIOS Y TARJETAS A BORDO
===================================================== */
.service-card {
  background: var(--white);
  padding: 35px 25px;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 10px 28px rgba(20, 25, 35, 0.07);
  transition: 0.45s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-card * { position: relative; z-index: 2; }

.service-card i {
  font-size: 42px;
  color: var(--red);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(236, 0, 4, 0.35), transparent 60%);
  opacity: 0;
  transition: 0.45s;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #EC0004, #7a0002);
  opacity: 0;
  transition: 0.5s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(20, 25, 35, 0.13);
  color: var(--white);
}

.service-card:hover::after,
.service-card:hover::before { opacity: 1; }

.service-card:hover i, 
.service-card:hover p, 
.service-card:hover h6 {
  color: var(--white) !important;
}

.bus-service-card {
  background: var(--white);
  border-radius: 18px;
  border: 2px solid #eee;
  padding: 30px 20px;
  transition: all 0.4s ease;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.bus-service-card:hover {
  border-color: var(--red);
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(236, 0, 4, 0.2);
}

.badge-service {
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 700;
}

/* =====================================================
   8. MAPAS, SECCIÓN NOSOTROS Y LIBRO
===================================================== */
#nosotros .card { 
  border-radius: 16px !important; 
  transition: transform 0.25s ease, box-shadow 0.25s ease; 
}

#nosotros .card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 18px 40px rgba(20, 25, 35, 0.12) !important; 
}

.map-box {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  height: 280px;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.libro-box {
  background: #171a21;
  color: var(--white);
  border-radius: 16px;
  padding: 28px 30px;
  border-left: 6px solid var(--red);
}

.libro-box h5 { color: var(--white); }

/* =====================================================
   SECCIÓN PREGUNTAS FRECUENTES (FAQ) - MEJORADA
===================================================== */
#preguntas {
  background: #f8f9fa;
  padding: 90px 0;
}

.faq-accordion .faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px !important;
  margin-bottom: 16px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-accordion .faq-item:hover {
  border-color: rgba(236, 0, 4, 0.3);
  box-shadow: 0 8px 20px rgba(236, 0, 4, 0.08);
}

.faq-accordion .faq-header .btn-faq {
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  background: transparent;
  border: none;
  transition: color 0.3s ease;
}

.faq-accordion .faq-header .btn-faq:hover,
.faq-accordion .faq-header .btn-faq:not(.collapsed) {
  color: #EC0004;
}

.faq-accordion .faq-header .btn-faq .faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(236, 0, 4, 0.08);
  color: #EC0004;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-accordion .faq-header .btn-faq:not(.collapsed) .faq-icon {
  transform: rotate(180deg);
  background: #EC0004;
  color: #ffffff;
}

.faq-answer {
  padding: 0 22px 22px 22px;
  color: #475569;
  font-size: 0.96rem;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
  margin-top: 5px;
  padding-top: 15px;
}

.faq-answer ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.faq-answer ul li {
  margin-bottom: 6px;
}
/* =====================================================
   9. FOOTER CORPORATIVO
===================================================== */
.footer-ansh {
  background: linear-gradient(180deg, #ec0004 0%, #b80003 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.footer-ansh::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.25), transparent 45%);
  pointer-events: none;
}

.footer-ansh .footerizq {
  padding: 48px 20px;
  position: relative;
  z-index: 2;
}

.footer-ansh h5 {
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  position: relative;
}

.footer-ansh h5::after {
  content: '';
  width: 40px;
  height: 3px;
  background: var(--white);
  display: block;
  margin-top: 8px;
  border-radius: 3px;
}

.footer-ansh p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.95;
}

.footer-ansh .phone {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.visa-footer {
  max-width: 90px;
  margin-top: 10px;
  filter: brightness(1.1);
  transition: 0.3s;
}

.visa-footer:hover { transform: scale(1.05); }

.social-footer {
  display: flex;
  gap: 12px;
}

.social-footer a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--red);
  font-size: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transition: all 0.35s ease;
}

.social-footer a:hover {
  background-color: var(--red);
  color: var(--white);
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.footerbor {
  background: #8f0003;
  padding: 18px 0;
  font-size: 13px;
  position: absolute;
  width: 100%;
  bottom: 0;
}

.footerbor p { margin: 0; opacity: 0.9; }

/* =====================================================
   10. WIDGETS Y PREGUNTAS FRECUENTES (FAQ)
===================================================== */
.back-to-top {
  position: fixed;
  display: none;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  background: var(--red);
  color: var(--white);
  
  /* ESTAS TRES LÍNEAS CENTRAN LAS FLECHAS EXACTAMENTE EN EL MEDIO */
  display: flex;
  align-items: center;
  justify-content: center;
  
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background: #c80003;
  color: var(--white);
}

.floating-whatsapp {
  position: fixed;   
  bottom: 22px;
  left: 22px;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
}

.floating-whatsapp i {
  color: var(--white);
  font-size: 31px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.floating-whatsapp p { display: none; }  

.floating-whatsapp .close-button {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 20px;
  cursor: pointer;
  z-index: 3;
  color: #000;
  background: var(--white);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-whatsapp::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  z-index: 0;
  animation: pulse-border 1500ms ease-out infinite;
}

#preguntas { background: #f7f8fa; }

.faq-item { 
  border: 1px solid #e9eaf0; 
  border-radius: 12px; 
  margin-bottom: 12px; 
  overflow: hidden; 
  background: var(--white); 
}

.faq-item .btn { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  width: 100%; 
  padding: 18px 20px; 
  color: #242936; 
  font-weight: 700; 
  text-align: left; 
  white-space: normal; 
}

.faq-item .btn:hover { 
  color: var(--red); 
  text-decoration: none; 
}

.faq-item .faq-answer { 
  padding: 0 20px 18px; 
  color: #626b79; 
}

.faq-item .fa-chevron-down { 
  color: var(--red); 
  margin-left: 12px; 
}
/* =====================================================
   SECCIÓN DE INFORMACIÓN Y PROTOCOLOS (MASCOTAS / SEGURIDAD)
===================================================== */
#informacion-viaje {
  background: #f8f9fa;
  position: relative;
  
  /* Usa exactamente la misma regla background para enganchar el fondo */
   background:  linear-gradient(
      to bottom, 
      rgba(255, 23, 42, 0.85) 0%,        /* Transición suave arriba */
      rgba(255, 255, 255, 0.70) 20%,     /* Centro claro */
      rgba(255, 23, 42, 0.52) 80%,      /* Centro rojizo */
      rgba(255, 23, 42, 0.85) 100%       /* Transición suave abajo */
    ),
    url('/assets/img/fondoinfo.png') center/cover no-repeat fixed;
}

.info-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid #e9ecef;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(236, 0, 4, 0.12);
  border-color: rgba(236, 0, 4, 0.3);
}

.info-card-header {
  padding: 24px 24px 18px;
  background: linear-gradient(135deg, rgba(236, 0, 4, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  border-bottom: 1px solid #f1f3f5;
}

.info-card-header .badge-info-type {
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-card-body {
  padding: 20px 24px;
  flex-grow: 1;
}

.info-card-img-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  max-height: 220px;
  cursor: pointer;
  background: #111;
}

.info-card-img-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.9;
}

.info-card-img-preview:hover img {
  transform: scale(1.05);
  opacity: 0.75;
}

.info-card-img-preview .overlay-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-card-img-preview:hover .overlay-zoom {
  opacity: 1;
}

.info-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-bullet-list li {
  font-size: 0.92rem;
  color: #495057;
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.info-bullet-list li i {
  color: var(--red);
  margin-top: 4px;
}

.info-card-footer {
  padding: 16px 24px 24px;
  background: var(--white);
  border-top: 1px solid #f1f3f5;
}

/* =====================================================
   VISOR A PANTALLA COMPLETA PARA AFICHES ALTOS
===================================================== */
.modal-afiche-fullscreen .modal-dialog {
  max-width: 98vw !important;
  height: 96vh;
  margin: 2vh auto;
}

.modal-afiche-fullscreen .modal-content {
  height: 100%;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  background: #0b0c10 !important;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

.modal-header-floating {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 17, 23, 0.9);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.modal-afiche-fullscreen .modal-body {
  flex-grow: 1;
  overflow: auto !important; /* Permite desplazamiento vertical y horizontal libre */
  padding-top: 60px !important; /* Espacio para que la barra superior no tape la imagen */
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.zoom-container {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.img-fluid-zoom {
  width: 100%;
  max-width: 800px; /* Ancho máximo amplio para lectura cómoda de texto pequeño */
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
/* =====================================================
   TRANSICIONES Y ANIMACIONES SUAVES ENTRE SECCIONES
===================================================== */
.section {
  position: relative;
  padding: 95px 0;
  transition: background 0.4s ease;
}

/* Sombra y separación elegante entre secciones claras y oscuras */
.section-gray + .section, 
.section + .section-gray,
.section-rutas + .section {
  box-shadow: inset 0 12px 20px -15px rgba(0, 0, 0, 0.06);
}

/* Estado inicial para los elementos antes de hacer scroll (Ocultos) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Estado final cuando el usuario llega a la sección (Visibles con animación) */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   11. ANIMACIONES & MEDIA QUERIES
===================================================== */
@keyframes pulse-border {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

@keyframes fadeUp { 
  from { opacity: 0; transform: translateY(30px); } 
  to { opacity: 1; transform: translateY(0); } 
}

@keyframes fadeDown { 
  from { opacity: 0; transform: translateY(-30px); } 
  to { opacity: 1; transform: translateY(0); } 
}

@media (max-width: 991.98px) {
  .navbar-collapse { padding: 10px 0 15px; }
  .navbar .nav-link { padding: 9px 0 !important; }
  .navbar .nav-link::after { display: none; }
  .hero { min-height: auto; padding: 130px 0 58px; }
  .search-card.fixed { top: 82px; }
  .search-placeholder.active { height: 235px; }
}

@media (max-width: 767.98px) {
  .logo-navbar { height: 52px; max-width: 155px; }
  .hero { padding: 115px 0 45px; }
  .hero h1 { font-size: 2.35rem; }
  .hero p { font-size: 1rem; }
  .hero .hero-actions .btn { width: 100%; }
  .search-card { margin-top: 26px; padding: 22px 16px; }
  .search-card.fixed { position: static; transform: none; width: 100%; margin-top: 20px; animation: none; }
  .search-placeholder.active { height: 0; }
  .search-close { top: 8px; right: 8px; }
  .section { padding: 60px 0; }
  .map-box { height: 230px; }
  .footer-ansh .footerizq { padding: 35px 18px; }
  .floating-whatsapp { left: 14px; bottom: 14px; }
  .back-to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { 
    scroll-behavior: auto !important; 
    animation-duration: 0.01ms !important; 
    animation-iteration-count: 1 !important; 
    transition-duration: 0.01ms !important; 
  }
}