/* =========================================
   NAVBAR CON FONDO COLLAGE Y DESENFOQUE
   ========================================= */

.navbar {
  position: relative;
  height: 90px;
  border-bottom: 4px solid #00A52B;
  border-top: 4px solid #2e2e2e;
  z-index: 100;
  display: flex;
  align-items: stretch;
  padding-top: 0;
  padding-bottom: 0;
  overflow: visible;
}

/* Fondo con collage */
.navbar-bg {
  position: absolute;
  inset: 0;
  background-image: url("/IMAGENES/Barra.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 110%;
  transition: filter 0.4s ease, background-size 0.4s ease, background-color 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

/* Desenfoque al pasar el mouse */
.navbar:hover .navbar-bg {
  filter: blur(4px) brightness(0.9);
  background-size: 120%;
  background-color: rgba(0, 0, 0, 0.25);
}

.navbar .navbar-toggler {
  position: relative;
  z-index: 30;
  background: rgba(0,0,0,0.85);
  border: 2px solid #0d5a28;
  border-radius: .75rem;
  padding: .45rem .65rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.55);
}
.navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 .18rem rgba(244,232,26,.35);
}
.navbar .navbar-toggler-icon {
  filter: invert(1) drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

/* Refuerzo visual en móvil */
@media (max-width: 992px) {
  .navbar {
    height: auto;
    padding: .4rem 0;
  }
  .navbar .navbar-toggler {
    background: #0d5a28;
    border-color: #f4e81a;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
  }
  .navbar .navbar-toggler-icon {
    filter: invert(1);
    opacity: 0.95;
  }
  .navbar-content {
    background: rgba(0,0,0,0.82);
    border-radius: 12px;
    padding: .75rem 1rem;
  }
  .navbar .nav-link {
    background: rgba(255,255,255,0.07);
    border-color: rgba(244,232,26,0.35);
    box-shadow: none;
  }
  .navbar .dropdown-menu {
    background: rgba(0,0,0,0.92);
    border-color: rgba(244,232,26,0.45);
    box-shadow: 0 18px 28px rgba(0,0,0,0.6);
  }
}

/* Contenido visible encima del fondo */
.navbar-content {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Logo */
.navbar-brand img {
  height: auto;
  max-height: 70px;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px #f4e81a);
}

/* Links de navegación */
.navbar .nav-link {
  position: relative;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  padding: .6rem 1rem;
  margin: 0 .2rem;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(13, 90, 40, 0.8);
  border-radius: .5rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.6);
  text-shadow: 0 1px 2px rgba(0,0,0,0.75);
  transition: all 0.18s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #0d5a28 !important;
  background-color: #f4e81a;
  border-color: #f4e81a;
  text-shadow: none;
  box-shadow: 0 0 10px rgba(244,232,26,0.8), 0 18px 32px rgba(0,0,0,0.8);
  transform: translateY(-1px) scale(1.03);
}

.navbar .nav-link.active {
  background-color: rgba(13, 90, 40, 0.9);
  border-color: #0d5a28;
  color: #fff !important;
}

/* Dropdown */
.navbar .nav-item.dropdown {
  position: relative;
  z-index: 20;
  overflow: visible;
}

.navbar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: .4rem;
  z-index: 9999;
  min-width: 200px;
  padding: .5rem 0;
  background-color: rgba(0,0,0,0.8);
  border: 2px solid rgba(13,90,40,0.8);
  border-radius: .6rem;
  box-shadow: 0 24px 36px rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
}

.navbar .dropdown-item {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: .65rem .9rem;
}

.navbar .dropdown-item:hover {
  background-color: #f4e81a;
  color: #0d5a28;
}

/* Buscador */
.navbar .form-control {
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid #ccc;
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: .5rem;
}

.navbar .btn-outline-success {
  color: #fff;
  border-color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: .5rem;
  transition: all 0.25s ease;
}

.navbar .btn-outline-success:hover {
  background-color: #f4e81a;
  border-color: #f4e81a;
  color: #0d5a28;
}

/* RESPONSIVE NAVBAR */
@media (max-width: 768px) {
  .navbar {
    height: auto;
    flex-wrap: wrap;
  }
  .navbar-bg {
    filter: none !important;
    background-size: cover;
  }
  .navbar-content {
    flex-wrap: wrap;
    gap: .75rem;
  }
  .navbar-brand img {
    max-height: 60px;
  }
  .navbar .nav-link {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    margin-bottom: .3rem;
  }
  .navbar .dropdown-menu {
    position: relative;
    min-width: 100%;
  }
}

/* =========================================
   SECCIÓN NOSOTROS / HERO
   ========================================= */
#nosotros {
  background-color: #ffffff;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

#nosotros h2 {
  font-size: 1.9rem;
  color: #0d5a28;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* estilos antiguos se mantienen para compatibilidad, pero se añaden nuevos bloques */

/* Carrusel */
#nosotros .carousel {
  border-radius: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

#nosotros .carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease-in-out;
}

#nosotros .carousel-item.active img {
  transform: scale(1.02);
}

/* =========================================
   CARRUSEL DE NOVEDADES
   ========================================= */
.coop-card {
  background-color: #fff;
  border-radius: .75rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* === Nueva sección Nosotros mejorada === */
.nosotros-hero {
  background: radial-gradient(circle at top right, rgba(244,232,26,.15), transparent 60%);
}
.nosotros-hero .hero-badge {
  display: inline-block;
  padding: .35rem .95rem;
  border-radius: 999px;
  background: rgba(244,232,26,.2);
  color: #0d5a28;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: .8rem;
  text-transform: uppercase;
}
.nosotros-hero .hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #0d5a28;
  margin: .8rem 0 1rem;
  line-height: 1.2;
}
.nosotros-hero .hero-text {
  font-size: 1rem;
  color: #425466;
  margin-bottom: 1.5rem;
}
.nosotros-hero .hero-actions .btn {
  border-radius: .8rem;
  font-weight: 600;
  padding-inline: 1.5rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.hero-stats .stat-card {
  background: #fff;
  border: 1px solid rgba(13,90,40,.08);
  border-radius: 1.1rem;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(13,90,40,.08);
}
.hero-stats h4 {
  font-size: 1.7rem;
  color: #0d5a28;
  font-weight: 800;
  margin-bottom: .3rem;
}
.hero-stats p {
  margin: 0;
  font-size: .85rem;
  color: #4b5563;
}

.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-section.show {
  opacity: 1;
  transform: none;
}

.mission-vision-section { background: #f9fafb; }
.mission-vision-section .mv-pill { transition: transform .2s ease, box-shadow .2s ease; }
.mission-vision-section .mv-pill:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(13,90,40,.12); }
.mission-vision-section .icon-circle { width: 48px; height: 48px; border-radius: 999px; background: rgba(13,90,40,.1); display:flex; align-items:center; justify-content:center; font-size:1.5rem; }
.mission-vision-section .stat-card { background:#fff; border:1px solid rgba(13,90,40,.08); border-radius:1rem; padding:1rem 1.25rem; box-shadow:0 10px 30px rgba(0,0,0,.07); }
.mv-illustration img { width:100%; height:100%; object-fit:cover; }

.historia-section {
  background: #f8faf9;
  border-radius: 32px;
}
.section-heading .section-pretitle {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .18em;
  color: #0d5a28;
  margin-bottom: .3rem;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.timeline-item {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.4rem;
  border: 1px solid rgba(13,90,40,.06);
  box-shadow: 0 15px 35px rgba(0,0,0,.06);
  transition: transform .2s ease, border-color .2s ease;
}
.timeline-item:hover,
.timeline-item.active {
  transform: translateY(-4px);
  border-color: #0d5a28;
}
.timeline-year-badge {
  display: inline-flex;
  padding: .25rem .9rem;
  border-radius: 999px;
  background: rgba(13,90,40,.1);
  color: #0d5a28;
  font-weight: 700;
  margin-bottom: .7rem;
}
.timeline-dots .t-dot {
  border: none;
  width: 10px;
  height: 10px;
  background: #cfd8dc;
  border-radius: 50%;
  margin: 0 5px;
  transition: background .2s ease;
}
.timeline-dots .t-dot.active {
  background: #0d5a28;
}

.mv-section {
  background: linear-gradient(135deg,#0d5a28,#1a7e3b 60%,#208845);
}
.mv-card {
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.5rem;
  min-height: 240px;
  box-shadow: 0 18px 40px rgba(0,0,0,.1);
}
.mv-card h3 {
  color: #0d5a28;
  font-weight: 700;
}
.mv-card ul {
  padding-left: 1.1rem;
  color: #5b6472;
  margin: .8rem 0 0;
}

.compromiso-section .chip {
  background: rgba(13,90,40,.1);
  color: #0d5a28;
  border-radius: 999px;
  padding: .35rem 1rem;
  font-weight: 600;
}
.compromiso-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(13,90,40,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}
.compromiso-card h4 {
  color: #0f5d2c;
  font-size: 1.05rem;
  font-weight: 700;
}
.compromiso-card p {
  margin: 0;
  color: #4a4f55;
  font-size: .92rem;
}

.organization-section { background:#f9fafb; }
.org-feature { display:flex; gap:12px; border:1px solid rgba(13,90,40,.08); border-radius:1rem; padding:1rem; background:#fff; box-shadow:0 10px 24px rgba(0,0,0,.05); }
.org-media-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: 240px 180px; gap:1rem; }
.org-media-grid .img-tall { grid-row: span 2; }
.org-media-grid .img-small img { height:100%; object-fit:cover; }
.org-stat-card { background:#fff; border:1px solid rgba(13,90,40,.1); padding:1.5rem; }
.org-graph { background:#fff; border:1px solid rgba(13,90,40,.1); }
.fade-in-up { opacity:0; transform:translateY(20px); transition:opacity .6s ease, transform .6s ease; }
.fade-in-up.show { opacity:1; transform:none; }

.valores-section {
  background: #fdfdfb;
}
.valores-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: .5rem;
}
.valor-card {
  flex: 0 0 260px;
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.1rem;
  border: 1px solid rgba(13,90,40,.08);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}
.valor-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline-grid {
    grid-template-columns: 1fr;
  }
  .valores-track {
    scroll-snap-type: x mandatory;
  }
  .valor-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}

.coop-card:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}

/* =========================================
   CARRUSEL SBS (RESPALDO INSTITUCIONAL)
   ========================================= */

#respaldo {
  background-color: #f9f9f9;
  padding: 4rem 0;
}

#carouselSBS .coop-card-img {
  background-color: #0d5a28;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 0.8rem;
  border-top-right-radius: 0.8rem;
  padding: 1rem;
  overflow: hidden;
}

#carouselSBS .coop-card-img img {
  max-height: 130px;
  width: auto;
  object-fit: contain;
  filter: none;
  transition: transform 0.3s ease;
}

#carouselSBS .coop-card:hover .coop-card-img img {
  transform: scale(1.06);
}

#carouselSBS .coop-card h5 {
  font-weight: 700;
  color: #0d5a28;
  margin-bottom: 0.4rem;
}

#carouselSBS .coop-card p {
  font-size: 0.93rem;
  color: #333;
  line-height: 1.55;
  padding: 0 1rem 1rem 1rem;
}

/* Flechas del carrusel */
#carouselSBS .carousel-control-prev-icon,
#carouselSBS .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  background-size: 55%;
  transition: background-color 0.3s ease;
}

#carouselSBS .carousel-control-prev-icon:hover,
#carouselSBS .carousel-control-next-icon:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive SBS */
@media (max-width: 992px) {
  #carouselSBS .coop-card-img {
    height: 170px;
  }
  #carouselSBS .coop-card-img img {
    max-height: 110px;
  }
}

@media (max-width: 768px) {
  #carouselSBS .coop-card-img {
    height: 150px;
  }
  #carouselSBS .coop-card-img img {
    max-height: 90px;
  }
}
/* ===========================
   FOOTER INSTITUCIONAL
   =========================== */

.site-footer {
  background-color: #0d5a28;            /* verde institucional */
  color: #fff;
  border-top: 4px solid #2e2e2e;        /* línea superior oscura como tu navbar */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-top: 1.2rem;
  padding-bottom: .6rem;
}

/* Marca / logo */
.footer-logo {
  width: 56px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0,0,0,.6));
}

.footer-badge {
  background-color: rgba(244,232,26,0.15) !important;
  color: #f4e81a !important;
  border: 1px solid rgba(244,232,26,0.4);
  font-size: .7rem;
  font-weight: 600;
  border-radius: .4rem;
  padding: .35rem .5rem;
  line-height: 1.2;
  display: inline-block;
}

/* Títulos de columna */
.footer-title {
  color: #f4e81a;               /* amarillo cooperativa */
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: .55rem;
}

/* Enlaces simples */
.footer-links li {
  margin-bottom: .25rem;
}

.footer-links a {
  color: #fff;
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  transition: color .2s ease, text-shadow .2s ease;
}

.footer-links a:hover {
  color: #f4e81a;
  text-shadow: 0 0 8px rgba(244,232,26,.8);
}

/* Contacto */
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  color: #fff;
  font-size: .88rem;
  margin-bottom: .5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
}

.footer-contact i {
  color: #f4e81a;
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.2;
}

/* Redes sociales */
.footer-social .social-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  line-height: 1;
  text-decoration: none;
  transition: all .2s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
  box-shadow: 0 8px 16px rgba(0,0,0,.5);
}

.footer-social .social-circle:hover {
  background-color: #f4e81a;
  color: #0d5a28;
  border-color: #f4e81a;
  box-shadow: 0 0 12px rgba(244,232,26,.9),
              0 16px 30px rgba(0,0,0,.8);
}

/* Línea separadora */
.footer-separator {
  border-color: rgba(255,255,255,.15);
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}

/* Legal/links finales */
.footer-legal {
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  text-decoration: none;
  transition: color .2s ease;
  display: inline-block;
  margin-top: .35rem;
}

.footer-legal:hover {
  color: #f4e81a;
  text-shadow: 0 0 8px rgba(244,232,26,.7);
}

/* Texto de "supervisados por SBS" */
.footer-cert {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}

/* ===========================
   BOTÓN FLOTANTE WHATSAPP
   =========================== */
.whatsapp-float {
  position: fixed;
  width: 58px;
  height: 58px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.8);
  background-color: #20b955;
  text-decoration: none;
  color: #fff;
}

/* Responsivo */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 28px;
    bottom: 20px;
    right: 20px;
  }
}


/* Responsive footer */
@media (max-width: 768px) {
  .footer-brand {
    text-align: center;
    flex-direction: column;
    align-items: center !important;
  }

  .footer-logo {
    margin-bottom: .75rem;
  }

  .footer-links,
  .footer-contact {
    font-size: .95rem;
  }

  .site-footer .row > div {
    text-align: center;
  }

  .footer-contact li {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }
}

/* =======================================================
   ESTILOS ESPECÍFICOS DEL SIMULADOR DE CRÉDITOS
   Mantiene la apariencia del sitio principal
========================================================== */

/* Tarjetas (cuadro blanco con sombra suave) */
.card-custom {
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

/* Botón verde institucional */
.bg-coopac {
    background-color: #146b2f;
    color: #fff;
    transition: background-color 0.3s ease;
}

.bg-coopac:hover {
    background-color: #0f4d22;
    color: #fff;
}

/* Subtítulo debajo del título principal del simulador */
.subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Espaciado general para las secciones del simulador */
.simulador-section {
    padding: 3rem 0;
}

/* Ajustes responsivos suaves */
@media (max-width: 768px) {
    .card-custom {
        border-radius: 0.75rem;
    }
}
/* BOTÓN CENTRAL DE ACCESO PRIVADO */
.acceso-privado {
  text-align: center;
  margin-top: 1rem;
}

.btn-acceso {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0d5a28; /* verde institucional */
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-acceso:hover {
  background-color: #f4e81a;
  color: #0d5a28;
  transform: translateY(-2px);
}


/* =========================================
   MODAL COMUNICATIVO INSTITUCIONAL
   ========================================= */

.modal-comunicativo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-comunicativo-content {
    position: relative;
    background-color: #fff;
    border-radius: 0.5rem;
    max-width: 400px; /* Ancho típico para comunicados verticales */
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-comunicativo-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.modal-comunicativo-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-comunicativo-content .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.modal-comunicativo-content .carousel-item h5 {
    font-weight: bold;
    color: #333;
}

/* =========================================
   TARJETAS DE NOTICIAS
   ========================================= */
.noticia-card {
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.noticia-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* =========================================
   QUIÉNES SOMOS – Historia, Misión/Visión y Valores
   ========================================= */
/* Historia: banner superior */
.history-hero { background: linear-gradient(180deg, #0d5a28 0%, #146b2f 100%); position: relative; }
.history-hero:before,
.history-hero:after { content: ''; position: absolute; left: 0; right: 0; height: 18px; background: #0d5a28; border-radius: 100% 100% 0 0 / 60% 60% 0 0; }
.history-hero:before { top: -10px; opacity: .85; }
.history-hero:after  { bottom: -10px; opacity: .85; transform: scaleY(-1); }

/* Historia: línea de tiempo */
.timeline-wrap { position: relative; }
.timeline-card { display: none; background: #f8f9fa; border-radius: .75rem; padding: 1.25rem; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
.timeline-card.active { display: block; }
.timeline-year { color: #0d5a28; font-weight: 800; border-bottom: 3px solid #f4e81a; display: inline-block; padding-bottom: .25rem; margin-bottom: .75rem; }
.timeline-nav { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.timeline-nav .t-dot { min-width: 42px; height: 42px; padding: 0 14px; border-radius: 9999px; border: 2px solid #0d5a28; color: #0d5a28; background: #fff; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; transition: box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.timeline-nav .t-dot.active, .timeline-nav .t-dot:hover { background: #f4e81a; border-color: #f4e81a; color: #0d5a28; box-shadow: 0 6px 14px rgba(0,0,0,.12); }
.timeline-axis { display: flex; justify-content: space-between; max-width: 520px; margin: 0 auto; color: #1f2937; font-weight: 600; font-size: .9rem; }
.timeline-axis .tick { position: relative; padding-top: .75rem; }
.timeline-axis .tick:before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 9px; height: 9px; background: #0d5a28; border-radius: 999px; box-shadow: 0 0 0 4px rgba(13,90,40,.25); }
.timeline-axis .tick.active:before { background: #f4e81a; box-shadow: 0 0 0 4px rgba(244,232,26,.35); }

/* Misión y Visión: hero */
.mv-hero { position: relative; height: 220px; overflow: hidden; background-image: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.45)), url('/IMAGENES/INICIO2.png'); background-size: cover; background-position: center; }
.mv-hero-overlay { width: 100%; height: 100%; }

/* =========================================
   SERVICIOS – Hero y migas de pan
   ========================================= */
.sv-hero { position: relative; height: 180px; overflow: hidden;
  background: linear-gradient(180deg, #0d5a28 0%, #146b2f 100%);
}
.sv-hero .sv-hero-overlay { width:100%; height:100%; background: linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.35)); }
.sv-crumbs { color: rgba(255,255,255,.85); font-size: .9rem; }
.sv-crumbs a { color: #FFE006; text-decoration: none; }
.sv-crumbs a:hover { text-decoration: underline; }

/* Servicios – Secciones Ahorro y Créditos */
.service-hero { position: relative; min-height: 380px; overflow: hidden; }
.service-hero-overlay { width: 100%; height: 100%; padding: 3.5rem 0; background: linear-gradient(135deg, rgba(2,30,9,0.9), rgba(13,90,40,0.85)); backdrop-filter: blur(2px); }
.ahorro-hero { background-image: linear-gradient(rgba(0,0,0,.15),rgba(0,0,0,.25)), url('/IMAGENES/INICIO3.jpg'); background-size: cover; background-position: center; }
.hero-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.hero-stats-grid .stat-card { position: relative; padding: 1rem 1.25rem; border-radius: 1rem; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); color: #fff; text-align: left; box-shadow: 0 18px 32px rgba(0,0,0,.25); }
.hero-stats-grid .stat-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255,255,255,.1); pointer-events: none; }
.hero-stats-grid .stat-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .8px; opacity: .85; display: block; margin-bottom: .35rem; }
.hero-stats-grid .stat-value { font-size: 1.7rem; font-weight: 700; display: block; }
.service-section { position: relative; }
.service-stack-container { display: flex; flex-direction: column; gap: 2rem; }
.stack-block { padding: 3rem; border-radius: 1.5rem; background: #fff; border: 1px solid rgba(13,90,40,.08); box-shadow: 0 25px 50px rgba(15,50,30,.08); position: relative; overflow: hidden; }
.stack-block.stack-highlight { background: linear-gradient(140deg, rgba(13,90,40,.08), #ffffff 50%, rgba(13,90,40,.05)); border-color: rgba(13,90,40,.15); box-shadow: 0 30px 60px rgba(15,50,30,.15); }
.stack-block.stack-soft { background: #f6fbf5; border-color: rgba(13,90,40,.08); }
.stack-block.stack-white { background: #ffffff; }
.stack-divider { display: none; }
.section-heading h3 { color: #0d5a28; }
.info-pill,
.feature-card,
.ahorro-card,
.ahorro-highlight,
.credit-card,
.requisito-card,
.beneficios-list-card,
.complementario-card {
  /* Suavizamos el brillo: fondo casi plano y sombra ligera */
  background: #ffffff;
  border: 1px solid rgba(13,90,40,.07);
  border-radius: 1.25rem;
  box-shadow: 0 8px 20px rgba(0,40,20,.05);
  position: relative;
  overflow: hidden;
}
.info-pill::before,
.feature-card::before,
.ahorro-card::before,
.ahorro-highlight::before,
.credit-card::before,
.requisito-card::before,
.beneficios-list-card::before,
.complementario-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}
.info-pill { padding: 1.5rem; }
.info-pill .pill-label { display: inline-block; font-size: .8rem; letter-spacing: .5px; color: #0d5a28; font-weight: 700; text-transform: uppercase; margin-bottom: .45rem; }
.feature-card { padding: 1.5rem; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 25px 45px rgba(15,50,30,.12); }
.feature-icon { width: 56px; height: 56px; border-radius: 1rem; background: rgba(13,90,40,.1); color: #0d5a28; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
.ahorro-card { padding: 2rem; }
.ahorro-card .tag { font-size: .8rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.ahorro-highlight { background: #ffffff; }
.requisitos-list li { position: relative; padding-left: 1.4rem; margin-bottom: .5rem; font-weight: 600; color: #0d5a28; }
.requisitos-list li:before { content: '•'; position: absolute; left: 0; color: #f4c414; font-size: 1.2rem; line-height: 1; top: .15rem; }
.ficha-card { background: #fff; border-radius: 1.25rem; padding: 2rem; border: 1px solid rgba(13,90,40,.12); box-shadow: 0 18px 32px rgba(0,0,0,.08); }
.rate-card { position: relative; overflow: hidden; }
.rate-badge { background: #e8f7ee; border: 1px solid #0d5a28; border-radius: 999px; padding: .25rem .75rem; }
.rate-table table { border: 1px solid #e6edf3; }
.rate-table thead th { background: linear-gradient(180deg,#f1f6f2,#e5efe8); color: #0d5a28; font-weight: 700; border-bottom: 1px solid #d6e5d9; }
.rate-table tbody tr:nth-child(even) td { background: #f8fbf8; }
.rate-table tbody td { border-top: 1px solid #e6edf3; }
.credit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.5rem; }
.credit-card { padding: 1.75rem; }
.credit-pill { background: #f7fbf7; border-radius: 1rem; padding: 1rem 1.2rem; border: 1px dashed rgba(13,90,40,.25); }
.requisito-card { padding: 1.5rem; }
.beneficios-list-card { padding: 2rem; }
.beneficios-list-card ul li { margin-bottom: .6rem; }
.complementario-card { padding: 1.75rem; }
.agencias-hero-overlay { width: 100%; height: 100%; padding: 3rem 0; }
.agencies-section .section-heading h2,
.puntos-section .section-heading h3 { color: #0d5a28; }
.agency-card .card-header { padding-bottom: 0; }
.agency-photo { background: linear-gradient(135deg,#f9fbf7,#eef3ff); border-radius: 1.25rem; }
.agency-photo-inner { min-height: 230px; font-size: .95rem; text-transform: uppercase; letter-spacing: .4px; }
.agency-map iframe { border: 0; }
.punto-card { background: #fff; border: 1px solid rgba(13,90,40,.1); padding: 1rem 1.25rem; box-shadow: 0 10px 20px rgba(0,0,0,.06); border-radius: 1rem; }
.punto-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(13,90,40,.12); color: #0d5a28; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
@media (max-width: 768px) {
  .hero-stats .stat-card { margin-bottom: .5rem; }
  .service-hero-overlay { text-align: center; }
  .stack-block { padding: 2rem 1.5rem; }
}
@media (max-width: 576px) {
  .service-hero-overlay { padding: 2.5rem 0; }
  .hero-stats-grid .stat-card { text-align: center; }
}

/* Valores: carrusel */
.valores-carousel { padding: .5rem 3rem; }
.valor-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 999px; z-index: 5; }
#valorPrev { left: 0; }
#valorNext { right: 0; }
.valores-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem; scroll-behavior: smooth; }
.valores-track { scrollbar-width: none; -ms-overflow-style: none; }
.valores-track::-webkit-scrollbar { height: 0; display: none; }
.valores-track::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 4px; }
.valor-card { position: relative; scroll-snap-align: start; background: linear-gradient(180deg,#ffffff 0%, #f9fbf9 100%); border: 1px solid rgba(13,90,40,.15); border-radius: .9rem; padding: 1.25rem; text-align: center; box-shadow: 0 10px 22px rgba(13,90,40,.08); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; min-height: 220px; }
.valor-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(13,90,40,.16); border-color: rgba(13,90,40,.35); }
.valor-card::after { content:''; position:absolute; left:12px; right:12px; bottom:10px; height:6px; border-radius: 12px; background: rgba(13,90,40,.10); filter: blur(.5px); }
.valor-icon { width: 90px; height: 90px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: .75rem; box-shadow: inset 0 0 0 6px #fff, 0 6px 16px rgba(0,0,0,.08); }
.valor-title { font-weight: 700; margin-bottom: .25rem; }
.valor-text { color: #6c757d; font-size: .95rem; }
@media (max-width: 576px) { .valores-carousel { padding: .5rem 1.25rem; } .valores-track { grid-auto-columns: 85%; } }

/* Principios */
.principios-block {
  margin-top: 2rem;
}
.principios-intro {
  background: linear-gradient(135deg, #f5fff4 0%, #ffffff 100%);
  border: 1px solid rgba(13,90,40,.12);
}
.principios-intro h3 {
  color: #0d5a28;
}
.principios-intro .badge {
  font-size: .75rem;
  border-radius: 999px;
  padding: .45rem 1.25rem;
}
.principios-grid {
  position: relative;
}
.principio-card {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.35rem 1.35rem;
  box-shadow: 0 18px 28px rgba(15,50,30,.08);
  border: 1px solid rgba(13,90,40,.08);
  min-height: 160px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.principio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 40px rgba(15,50,30,.15);
}
.principio-card h5 {
  font-weight: 700;
  margin-bottom: .35rem;
  color: #0d5a28;
}
.principio-card p {
  font-size: .95rem;
  color: #5f6c65;
  margin-bottom: 0;
}
.principio-badge {
  width: 64px;
  height: 6px;
  border-radius: 999px;
  margin-bottom: 1rem;
  background: #0d5a28;
}
.bg-gradient-blue { background: linear-gradient(90deg,#3b82f6,#60a5fa); }
.bg-gradient-purple { background: linear-gradient(90deg,#c084fc,#8b5cf6); }
.bg-gradient-green { background: linear-gradient(90deg,#22c55e,#16a34a); }
.bg-gradient-orange { background: linear-gradient(90deg,#fb923c,#f97316); }
.bg-gradient-teal { background: linear-gradient(90deg,#2dd4bf,#14b8a6); }
.bg-gradient-gold { background: linear-gradient(90deg,#fbbf24,#f59e0b); }
.bg-gradient-sun { background: linear-gradient(90deg,#facc15,#fde047); }
.agencias-section .agency-row { padding: 1.5rem; border-radius: 1.5rem; background: #fff; border: 3px solid #15a64a; box-shadow: 0 30px 60px rgba(20,80,30,.18); }
.agencias-section .agency-row:nth-child(even) { background: #f2fff7; border-color: #0d8640; box-shadow: 0 30px 60px rgba(10,60,20,.22); }
.agency-photo-img { max-height: 280px; border-top-left-radius: 1.5rem; border-top-right-radius: 1.5rem; }
.agency-name { font-size: 1.4rem; font-weight: 800; color: #0c6b34; text-transform: uppercase; letter-spacing: .5px; }
.hero-transparencia { background: linear-gradient(135deg, rgba(13,90,40,.94), rgba(5,35,15,.85)), url('/IMAGENES/INICIO2.png'); background-size: cover; background-position: center; position: relative; border-top: 4px solid #baca17; overflow: hidden; }
.hero-transparencia::after { content:''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,0,0,.2), rgba(0,0,0,.5)); }
.hero-transparencia > .container { position: relative; }
.transparencia-card { border-radius: 1.25rem; border: 1px solid rgba(13,90,40,.12); background: #fff; }
.confianza-card { border-radius: 1rem; background: linear-gradient(120deg,#eefaf3,#fff); border: 1px solid rgba(13,90,40,.15); }
.agencias-hero { position: relative; min-height: 240px; background-image: linear-gradient(135deg, rgba(10,60,25,.92), rgba(5,25,10,.85)), url('/IMAGENES/INICIO2.png'); background-size: cover; background-position: center; overflow: hidden; border-top: 4px solid #baca17; }
