/* --- ESTILOS DEL CARRUSEL PRINCIPAL --- */
.main-carousel {
  width: 100%;
  max-width: 1200px; /* Mismo ancho que tu layout */
  margin: 20px auto; /* Centrado y con margen arriba/abajo */
  padding: 0 16px;   /* Un poco de respiro en móviles */
  box-sizing: border-box;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 350px; /* Altura del banner */
  overflow: hidden;
  border-radius: 16px; /* Bordes redondeados elegantes */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Las diapositivas */
/* Las diapositivas */
.banner-slide {
  display: none; 
  width: 100%;
  height: 100%;
  position: relative;
  
  /* CAMBIO: De 1s a 0.5s para que el cambio sea más "snappy" */
  animation: fadeEffect 0.5s; 
}

.banner-slide.active {
  display: block; /* Solo se muestra la activa */
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* La imagen cubre todo sin deformarse */
  filter: brightness(0.65); /* Oscurece un poco la imagen para leer el texto */
}

/* Texto sobre la imagen */
.banner-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: #fff;
  max-width: 600px;
  z-index: 2;
}

.banner-content h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.banner-btn {
  display: inline-block;
  background-color: #ce1d81; /* Tu color rosa/magenta institucional */
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, background-color 0.2s;
}

.banner-btn:hover {
  background-color: #a81568;
  transform: translateY(-2px);
}

/* Flechas (Next/Prev) */
.banner-arrow {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background: transparent;
  border: none;
  z-index: 3;
}

.banner-arrow.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.banner-arrow:hover {
  background-color: rgba(0,0,0,0.5);
}

/* Puntos (Dots) */
.banner-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  z-index: 3;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
  background-color: #fff;
  transform: scale(1.2);
}

/* Animación de desvanecimiento */
@keyframes fadeEffect {
  from {opacity: 0.4} 
  to {opacity: 1}
}

/* Responsive para móvil */
@media (max-width: 768px) {
  .carousel-container {
    height: 250px; /* Más bajito en celular */
  }
  .banner-content h2 {
    font-size: 1.5rem;
  }
  .banner-content {
    left: 20px;
    bottom: 20px;
    right: 20px;
  }
}

/*  SECCIONES INFORMATIVAS    *//* --- ESTILOS NEUTROS Y LIMPIOS --- */

/* 1. Contenedor del Dúo */
.info-duo-container {
  grid-column: 1 / -1; 
  display: flex;
  gap: 16px;
  margin-bottom: 16px; /* Espacio antes del banner largo */
}

/* Estilo base de las cajas del dúo */
.info-box {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: 8px;
  gap: 16px;
  background-color: #f8f9fa; /* Fondo gris muy pálido */
  border: 1px solid #eef0f2; /* Borde sutil */
  transition: all 0.2s ease;
}

.info-box:hover {
  transform: translateY(-2px);
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Variantes de color (solo borde e icono) */
.info-box--neutral-blue { border-left: 4px solid #0f3c5f; }
.info-box--neutral-blue .info-box__icon { color: #0f3c5f; background-color: rgba(15, 60, 95, 0.08); }

.info-box--neutral-pink { border-left: 4px solid #ce1d81; }
.info-box--neutral-pink .info-box__icon { color: #ce1d81; background-color: rgba(206, 29, 129, 0.08); }

/* Icono del dúo */
.info-box__icon {
  width: 42px; height: 42px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-box__content h4 { margin: 0 0 6px 0; font-size: 16px; font-weight: 700; color: #2c3e50; }
.info-box__content p { margin: 0; font-size: 13px; line-height: 1.5; color: #5d6d7e; }


/* 2. Estilo del Banner Largo (El que faltaba) */
.info-banner-wide {
  grid-column: 1 / -1; 
  background-color: #ffffff; /* Blanco para destacar sobre el gris del fondo general */
  border: 1px solid #eef0f2;
  border-radius: 8px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px; /* Espacio antes del carrusel de registro */
  transition: transform 0.2s ease;
}

.info-banner-wide:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

/* Icono del banner largo (Verde seguridad) */
.info-banner__icon {
  color: #00ae6f; 
  background-color: rgba(0, 174, 111, 0.1);
  width: 48px; height: 48px; /* Un poco más grande */
  border-radius: 50%; /* Redondo */
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.info-banner__text { flex: 1; }
.info-banner__text h4 { margin: 0 0 4px 0; font-size: 16px; font-weight: 700; color: #333; }
.info-banner__text p { margin: 0; font-size: 13px; color: #666; }

.info-banner__link {
  color: #0f3c5f;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 20px;
  background-color: #f8f9fa; /* Botón sutil */
  transition: background 0.2s;
}

.info-banner__link:hover {
  background-color: #e3f2fd;
  color: #0b2d47;
}

/* Responsive */
@media (max-width: 600px) {
  .info-duo-container { flex-direction: column; }
  .info-banner-wide { flex-direction: column; text-align: center; }
  .info-banner__link { width: 100%; display: block; text-align: center; margin-top: 10px; }
}
/* --- RESPONSIVE OPTIMIZADO PARA IMAGEN ÚNICA --- */
@media (max-width: 768px) {

  /* 1. Hacemos el contenedor más alto */
  /* Si lo dejamos bajito, el texto tapa toda la foto. */
  .carousel-container {
    height: 420px; 
  }

  .main-carousel {
    padding: 0; /* Quitamos padding lateral para aprovechar todo el ancho */
    margin-top: 10px;
  }

  /* 2. Ajuste de la imagen: CENTRADO OBLIGATORIO */
  .banner-img {
    /* Esto asegura que se vea el centro de tu imagen panorámica */
    object-position: center center; 
  }

  /* 3. Contenedor del texto: DEGRADADO DE LECTURA */
  /* Esto crea un fondo oscuro suave detrás del texto para que se lea 
     sin importar qué colores tenga la foto detrás */
  .banner-content {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    padding: 24px 20px 40px 20px; /* Padding extra abajo para los puntos */
    box-sizing: border-box;
    text-align: center; /* Centramos el texto estéticamente */
    
    /* El truco mágico: Degradado negro que sube desde abajo */
    background: linear-gradient(
      to top, 
      rgba(0, 0, 0, 0.9) 0%, 
      rgba(0, 0, 0, 0.6) 50%, 
      transparent 100%
    );
  }

  /* 4. Título más compacto */
  .banner-content h2 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: none; /* El fondo oscuro ya nos da contraste */
  }

  /* 5. Texto limitado */
  .banner-content p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 16px;
    
    /* Limitamos a 3 líneas para que no tape toda la foto si es mucho texto */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 6. Botón ancho para dedo (touch friendly) */
  .banner-btn {
    display: block;
    width: 100%;
    max-width: 280px; /* Que no se estire infinito */
    margin: 0 auto;   /* Centrado */
    padding: 12px 0;
  }

  /* 7. Ajuste de flechas (opcional: a veces estorban en móvil) */
  .banner-arrow {
    padding: 10px;
    font-size: 18px;
    background: rgba(0,0,0,0.3); /* Un fondo suave para verlas */
  }
}
/* === BANNER BUZÓN: ESTILO "ELEGANCE" (Suave y con Icono Blanco) === */

.buzon-container-ref {
  /* 1. Layout */
  display: flex;
  flex-wrap: wrap; 
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  /* 2. FONDO MÁS TENUE / SUAVE */
  /* Antes era azul eléctrico. Ahora es un degradado de tu azul a uno un poco más claro y grisáceo (Satinado) */
  background: linear-gradient(135deg, #0B3B60 0%, #2c5282 100%);
  
  border: none;
  border-radius: 16px;
  padding: 25px 35px;
  
  /* Sombra más suave y relajada */
  box-shadow: 0 10px 30px -10px rgba(11, 59, 96, 0.4);
  
  width: 100%;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  transition: transform 0.3s ease;
}

.buzon-container-ref:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px -10px rgba(11, 59, 96, 0.5);
}

/* === 1. CORRECCIÓN DEL ICONO (AHORA BLANCO) === */
.bcr-icon-box {
  flex: 0 0 60px;
  height: 60px;
  
  /* Fondo semitransparente un poco más claro */
  background: rgba(255, 255, 255, 0.1); 
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* ESTO ES LO QUE ARREGLA EL COLOR DEL ICONO */
  color: #ffffff !important; 
}

.bcr-icon-box svg {
  width: 28px;
  height: 28px;
  stroke-width: 2px;
  stroke: #ffffff; /* Forzamos a que la línea sea blanca */
}

/* === 2. TEXTOS === */
.bcr-content {
  flex: 1 1 250px;
}

.bcr-content h3 {
  margin: 0 0 6px 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800; 
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bcr-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85); /* Un poco más suave para no cansar la vista */
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

/* === 3. BOTÓN === */
.bcr-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  
  background-color: #ffffff; 
  color: #0B3B60; 
  
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  
  padding: 14px 30px;
  border-radius: 50px;
  
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.bcr-btn:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.bcr-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
  stroke: #0B3B60; /* Flechita del botón azul */
}
.bcr-btn:hover svg {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 600px) {
  .buzon-container-ref {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }
  .bcr-icon-box {
    margin-bottom: 15px;
  }
  .bcr-btn {
    width: 100%;
    margin-top: 15px;
  }
}
/* ============================
   ANIMACIONES AL HACER SCROLL
   ============================ */

/* Estado inicial: oculto y ligeramente desplazado */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
  will-change: opacity, transform;
}

/* Cuando el elemento es visible en el viewport */
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variantes opcionales (puedes usarlas si quieres) */
.reveal-from-left {
  transform: translateX(-24px);
}

.reveal-from-right {
  transform: translateX(24px);
}

.reveal-from-left.is-visible,
.reveal-from-right.is-visible {
  transform: translateX(0);
}

/* Stagger sencillo usando data-atributos */
.reveal-on-scroll[data-reveal-delay="1"] {
  transition-delay: 0.1s;
}
.reveal-on-scroll[data-reveal-delay="2"] {
  transition-delay: 0.2s;
}
.reveal-on-scroll[data-reveal-delay="3"] {
  transition-delay: 0.3s;
}

/* Respeto a accesibilidad: si el usuario pide menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll.is-visible,
  .reveal-from-left,
  .reveal-from-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
