/* =========================================================
   main.css — Colegio de Farmacéuticos del Chaco
   Versión: 2.0 (Refactorizado y Optimizado)
   =========================================================

   TABLA DE CONTENIDOS:
   ---------------------
   1. VARIABLES CSS
   2. BASE & RESET
   3. TIPOGRAFÍA
   4. LAYOUT
      4.1 Navbar
      4.2 Secciones generales
      4.3 Footer
   5. COMPONENTES
      5.1 Scroll Indicators
      5.2 Carousel Base
      5.3 Cards
      5.4 Botones y Badges
   6. SECCIONES ESPECÍFICAS
      6.1 Hero Slider
      6.2 Institucional
      6.3 Agenda
      6.4 Información & Noticias
      6.5 Servicios
      6.6 Contacto
   7. UTILIDADES
   8. ANIMACIONES
   9. MEDIA QUERIES (Consolidadas)

   ========================================================= */

/* =========================================================
   1. VARIABLES CSS
   ========================================================= */
:root {
  /* Paleta de colores - Manual de Marca CFCh */
  --verde: #00953D;           /* Verde corporativo principal */
  --verde-oscuro: #007A32;    /* Verde oscuro para gradientes */
  --verde-claro: #00A844;     /* Verde claro para hover */
  --naranja: #E94E1B;         /* Naranja corporativo */
  --amarillo: #FFED00;        /* Amarillo corporativo */
  --dorado: #D79C4A;          /* Dorado 90 aniversario */
  --blanco: #ffffff;
  --gris-100: #f8f9fa;
  --gris-200: #e9ecef;
  --gris-300: #dee2e6;
  --gris-700: #495057;
  --rojo: #dc3545;
  --surface-1: #ffffff;
  --surface-2: #f8f9fa;
  --surface-border: rgba(0, 0, 0, 0.08);
  --surface-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  --surface-shadow-strong: 0 10px 28px rgba(0, 0, 0, 0.12);
  --section-divider: rgba(0, 0, 0, 0.06);
  --accent-soft: rgba(0, 149, 61, 0.12);
  --accent-border: rgba(0, 149, 61, 0.2);

  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.2);
  --shadow-verde: 0 4px 12px rgba(0, 149, 61, 0.35);
  --shadow-naranja: 0 6px 20px rgba(233, 78, 27, 0.45);
  --shadow-dorado: 0 4px 15px rgba(215, 156, 74, 0.4);

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s ease;

  /* Bordes */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 50%;

  /* Espaciado navbar */
  --navbar-height: 92px;
  --navbar-height-mobile: 76px;
}

/* =========================================================
   2. BASE & RESET
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================================================
   3. TIPOGRAFÍA
   ========================================================= */
html {
  scroll-behavior: smooth;
  /* Evitar saltos de layout por scrollbar */
  scrollbar-gutter: stable;
}

body {
  color: var(--gris-700);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Inter", Roboto, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Previene saltos de contenido */
  overflow-x: hidden;
}

/* Secciones con contenido dinámico - estabilidad */
section[id] {
  contain: layout style;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--verde);
}

/* =========================================================
   4. LAYOUT
   ========================================================= */

/* ---------------------------------------------------------
   4.1 Navbar
   --------------------------------------------------------- */
#navbar {
  transition: all var(--transition-fast);
  padding-block: 1rem;
  z-index: 1040;
  background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde) 50%, var(--verde-claro) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 149, 61, 0.25);
}

#navbar.navbar-shrink {
  padding-block: 0.35rem;
  background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde) 100%);
  box-shadow: 0 8px 24px rgba(0, 149, 61, 0.3);
}

/* Brand */
#navbar .navbar-brand {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--blanco);
  transition: all var(--transition-normal);
}

#navbar .navbar-brand:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

#navbar .navbar-brand span {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

/* Logo institucional */
.logo-cfch {
  height: 42px;
  width: auto;
  object-fit: contain;
  padding: 0.25rem;
  background: var(--blanco);
  border-radius: 0.7rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

#navbar.navbar-shrink .logo-cfch {
  height: 34px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Botón hamburguesa */
.navbar-toggler {
  border: none;
  background-color: rgba(255, 255, 255, 0.18);
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-normal),
    transform var(--transition-fast);
}

.navbar-toggler:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.navbar-toggler-icon {
  width: 1.7rem;
  height: 1.7rem;
  filter: invert(1) brightness(2);
}

/* Links del Navbar */
#navbar .navbar-nav {
  gap: 0.35rem;
  align-items: center;
}

#navbar .nav-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
}

#navbar .nav-link:hover {
  color: var(--blanco);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

#navbar .nav-link.active {
  color: var(--blanco);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Botón Ingresar del Navbar */
#loginBtn,
#userMenuBtn {
  cursor: pointer;
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all var(--transition-normal);
  font-weight: 600;
  color: var(--blanco) !important;
}

#loginBtn:hover,
#userMenuBtn:hover {
  background: var(--amarillo);
  color: #1d1d1d !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ---------------------------------------------------------
   4.2 Secciones generales
   --------------------------------------------------------- */
section {
  padding-top: var(--navbar-height);
}

section.vh-100 {
  min-height: 100vh;
  height: auto;
}

/* ---------------------------------------------------------
   4.3 Footer
   --------------------------------------------------------- */
.footer {
  background: linear-gradient(135deg, var(--verde-oscuro) 0%, var(--verde) 100%);
  color: var(--blanco);
  font-size: 0.95rem;
}

.footer a {
  color: var(--amarillo);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer a:hover {
  color: var(--naranja);
}

/* Elementos con acento dorado (90 aniversario) */
.accent-dorado {
  color: var(--dorado);
}

.bg-dorado {
  background-color: var(--dorado);
}

.border-dorado {
  border-color: var(--dorado) !important;
}

.badge-aniversario {
  background: linear-gradient(135deg, var(--dorado) 0%, #c4883f 100%);
  color: var(--blanco);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: var(--shadow-dorado);
}

.footer-logo {
  width: 80px;
  height: auto;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-social a {
  font-size: 1.4rem;
  color: var(--blanco);
  transition: all var(--transition-normal);
  display: inline-block;
}

.footer-social a:hover {
  color: var(--amarillo);
  transform: scale(1.15);
}

.footer-social i {
  font-size: 1.2rem;
  vertical-align: middle;
}

/* =========================================================
   5. COMPONENTES
   ========================================================= */

/* ---------------------------------------------------------
   5.1 Scroll Indicators (Navegación lateral)
   --------------------------------------------------------- */
.scroll-indicators {
  position: fixed;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1030;
  align-items: center;
  pointer-events: auto;
}

.scroll-dot {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--blanco);
  border: 1px solid var(--verde);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
}

.scroll-dot.active {
  background: var(--naranja);
  transform: scale(1.3);
  box-shadow: 0 0 0 2px rgba(233, 78, 27, 0.35);
}

/* ---------------------------------------------------------
   5.2 Carousel Base
   --------------------------------------------------------- */
.carousel-indicators [data-bs-target] {
  padding: 0;
  background-color: var(--naranja);
  opacity: 0.5;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.carousel-indicators .active {
  opacity: 1;
  background-color: var(--verde);
}

.carousel-item video {
  pointer-events: auto;
}

/* ---------------------------------------------------------
   5.3 Cards
   --------------------------------------------------------- */
/* Service Cards */
.service-card {
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--surface-shadow);
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card i {
  font-size: 2rem;
  color: var(--verde);
  margin-bottom: 0.75rem;
  transition: color var(--transition-normal);
}

.service-card h5 {
  color: var(--verde);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gris-700);
  margin-bottom: 1rem;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--surface-shadow-strong);
}

.service-card:hover i {
  color: var(--naranja);
}

.service-card .btn {
  font-weight: 500;
  border-radius: 999px;
  box-shadow: var(--shadow-verde);
  transition: all var(--transition-normal);
}

.service-card .btn:hover {
  box-shadow: var(--shadow-naranja);
  transform: translateY(-1px);
}

/* Service Card - Estado bloqueado */
.service-card.locked {
  opacity: 0.6;
  position: relative;
  pointer-events: none;
}

.service-card.locked::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.lock-badge {
  display: block;
  color: var(--rojo);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* =========================================================
   SERVICIOS - Nueva Sección Rediseñada
   ========================================================= */
.servicios-section {
  background: linear-gradient(180deg, var(--gris-100) 0%, var(--blanco) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.servicios-titulo {
  color: var(--verde);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.servicios-subtitulo {
  font-size: 1.1rem;
}

/* Servicio Card Base */
.servicio-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--surface-shadow);
  border: 1px solid var(--surface-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--surface-shadow-strong);
}

.servicio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 0;
}

.servicio-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--verde);
  transition: all var(--transition-normal);
}

.servicio-card:hover .servicio-icon {
  transform: scale(1.1);
}

.servicio-icon-naranja {
  background: rgba(233, 78, 27, 0.12);
  color: var(--naranja);
}

.servicio-icon-dorado {
  background: rgba(215, 156, 74, 0.15);
  color: var(--dorado);
}

.servicio-icon-verde {
  background: var(--accent-soft);
  color: var(--verde);
}

.servicio-icon-azul {
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
}

/* Badges */
.servicio-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.servicio-badge-publico {
  background: rgba(0, 149, 61, 0.1);
  color: var(--verde);
}

.servicio-badge-asociado {
  background: rgba(233, 78, 27, 0.1);
  color: var(--naranja);
}

.servicio-badge-login {
  background: rgba(108, 117, 125, 0.15);
  color: #6c757d;
}

.servicio-badge-destacado {
  background: linear-gradient(135deg, var(--dorado), #c7923d);
  color: var(--blanco);
}

.servicio-badge-info {
  background: rgba(0, 149, 61, 0.1);
  color: var(--verde);
}

/* Card Body */
.servicio-card-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
}

.servicio-titulo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.75rem;
}

.servicio-desc {
  font-size: 0.9rem;
  color: var(--gris-700);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* Features list */
.servicio-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.servicio-features li {
  font-size: 0.85rem;
  color: var(--gris-700);
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.servicio-features li i {
  color: var(--verde);
  font-size: 0.9rem;
}

.servicio-features-compact li {
  padding: 0.25rem 0;
}

/* Requisitos box */
.servicio-requisitos {
  background: var(--gris-100);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 0.5rem;
}

.servicio-requisitos h6 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--verde-oscuro);
  margin-bottom: 0.75rem;
}

.servicio-requisitos ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.servicio-requisitos ul li {
  font-size: 0.8rem;
  color: var(--gris-700);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.servicio-requisitos ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--dorado);
  font-weight: bold;
}

/* Beneficios Grid */
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.beneficio-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--gris-100);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: #212529;
  transition: all var(--transition-fast);
}

.beneficio-item:hover {
  background: var(--accent-soft);
}

.beneficio-item i {
  color: var(--verde);
  font-size: 1rem;
}

/* Card Footer */
.servicio-card-footer {
  padding: 1rem 1.5rem 1.5rem;
  margin-top: auto;
}

/* Botones de servicio */
.btn-servicio {
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  border: none;
}

.btn-servicio-primary {
  background: var(--verde);
  color: var(--blanco);
  box-shadow: var(--shadow-verde);
}

.btn-servicio-primary:hover {
  background: var(--verde-claro);
  color: var(--blanco);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 149, 61, 0.4);
}

.btn-servicio-naranja {
  background: var(--naranja);
  color: var(--blanco);
  box-shadow: var(--shadow-naranja);
}

.btn-servicio-naranja:hover {
  background: #d4431a;
  color: var(--blanco);
  transform: translateY(-2px);
}

.btn-servicio-dorado {
  background: linear-gradient(135deg, var(--dorado), #c7923d);
  color: var(--blanco);
  box-shadow: var(--shadow-dorado);
}

.btn-servicio-dorado:hover {
  background: linear-gradient(135deg, #c7923d, var(--dorado));
  color: var(--blanco);
  transform: translateY(-2px);
}

.btn-servicio-azul {
  background: #0d6efd;
  color: var(--blanco);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.35);
}

.btn-servicio-azul:hover {
  background: #0b5ed7;
  color: var(--blanco);
  transform: translateY(-2px);
}

.btn-servicio-disabled {
  background: var(--gris-200);
  color: var(--gris-700);
  cursor: pointer;
  box-shadow: none;
}

.btn-servicio-disabled:hover {
  background: var(--gris-300);
  color: #212529;
}

/* Card destacado */
.servicio-destacado {
  border: 2px solid var(--dorado);
  position: relative;
}

.servicio-destacado::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--dorado), var(--amarillo), var(--dorado));
}

/* Card bloqueado */
.servicio-locked {
  position: relative;
}

.servicio-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  border-radius: var(--radius-lg);
}

/* CTA Login */
.servicios-cta-login {
  padding-top: 1rem;
}

/* News Cards */
.news-card img {
  object-fit: cover;
  height: 160px;
}

/* Evento Cards */
.evento-card {
  transition: transform var(--transition-fast);
}

.evento-card:hover {
  transform: translateY(-5px);
}

.fecha-box {
  box-shadow: var(--shadow-sm);
}

/* Plan Cards (Seguro) */
.card-header.bg-success h5,
.card-header.bg-primary h5 {
  color: var(--blanco) !important;
  font-weight: 600;
}

.card-header.bg-warning h5 {
  color: #2c3e50 !important;
  font-weight: 600;
}

.card-header h5 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.card.border-success,
.card.border-warning,
.card.border-primary {
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  border-width: 2px !important;
}

.card.border-success:hover,
.card.border-warning:hover,
.card.border-primary:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ---------------------------------------------------------
   5.4 Services List
   --------------------------------------------------------- */
.services-list {
  border: none;
  background: transparent;
}

.services-list .list-group-item {
  border: none;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.services-list .list-group-item.active {
  font-weight: 600;
  background: transparent;
  color: var(--verde);
}

.services-list .list-group-item:hover {
  background: rgba(0, 149, 61, 0.1);
  color: var(--verde);
  cursor: pointer;
}

.services-list i {
  font-size: 1.1rem;
  vertical-align: middle;
}

.services-list .bi-lock-fill {
  opacity: 0.6;
  font-size: 0.95rem;
}

/* =========================================================
   6. SECCIONES ESPECÍFICAS
   ========================================================= */

/* ---------------------------------------------------------
   Consistencia visual: Hero / Institucional / Servicios
   --------------------------------------------------------- */
.hero-section,
.institucional-section,
#servicios {
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-2) 100%);
}

.hero-section {
  border-bottom: 1px solid var(--section-divider);
}

.institucional-section,
#servicios {
  border-top: 1px solid var(--section-divider);
}

.institucional-titulo,
#servicios h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-soft) 0%, rgba(0, 149, 61, 0.04) 100%);
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-sm);
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: 0.3px;
}

#servicios .text-center p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------
   6.1 Hero Slider
   --------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  height: 95vh;
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-2) 100%);
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
  height: 100%;
}

.hero-section img,
.hero-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Hero Slider - Controles de navegación circulares */
#heroSlider .hero-nav-btn {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity var(--transition-slow), transform var(--transition-normal);
  z-index: 20;
  background: transparent;
}

#heroSlider:hover .hero-nav-btn {
  opacity: 1;
}

#heroSlider.video-active .hero-nav-btn {
  opacity: 0 !important;
  pointer-events: none;
}

#heroSlider .carousel-control-prev.hero-nav-btn {
  left: 30px;
}

#heroSlider .carousel-control-next.hero-nav-btn {
  right: 30px;
}

#heroSlider .hero-nav-icon,
.institucional-nav-icon {
  width: 60px;
  height: 60px;
  background-color: var(--verde);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-verde);
  transition: all var(--transition-normal);
  border: 3px solid var(--blanco);
  position: relative;
}

#heroSlider .hero-nav-btn:hover .hero-nav-icon,
.institucional-nav:hover .institucional-nav-icon {
  background-color: var(--naranja);
  transform: scale(1.15);
  box-shadow: var(--shadow-naranja);
  border-color: var(--blanco);
}

#heroSlider .hero-nav-icon::before,
.institucional-nav-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  border: solid white;
  border-width: 0 3px 3px 0;
  display: inline-block;
  position: absolute;
}

#heroSlider .hero-nav-prev-icon::before {
  transform: rotate(135deg);
  margin-left: 6px;
}

#heroSlider .hero-nav-next-icon::before {
  transform: rotate(-45deg);
  margin-right: 6px;
}

#heroSlider:hover .carousel-control-prev.hero-nav-btn {
  transform: translateY(-50%) translateX(5px);
}

#heroSlider:hover .carousel-control-next.hero-nav-btn {
  transform: translateY(-50%) translateX(-5px);
}

/* Hero Slider - Indicadores circulares */
#heroSlider .hero-indicators,
.institucional-indicators {
  position: absolute;
  bottom: 25px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 15;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  border: 1px solid var(--section-divider);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}

#heroSlider .hero-indicator,
.institucional-indicators [data-bs-target] {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--blanco);
  border: 2px solid var(--verde);
  transition: all var(--transition-normal);
  cursor: pointer;
  padding: 0;
}

#heroSlider .hero-indicator:hover,
.institucional-indicators [data-bs-target]:hover {
  transform: scale(1.2);
  border-color: var(--naranja);
}

#heroSlider .hero-indicator.active,
.institucional-indicators .active {
  background: var(--naranja);
  border-color: var(--naranja);
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(233, 78, 27, 0.35);
}

/* Hero Slider - Slides clickeables */
#heroSlider .hero-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
}

#heroSlider .hero-slide-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#heroSlider .hero-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

#heroSlider .hero-slide-link:hover .hero-slide-overlay {
  opacity: 1;
}

#heroSlider .hero-slide-caption {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  background: var(--verde);
  color: var(--blanco);
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-verde);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

#heroSlider .hero-slide-link:hover .hero-slide-caption {
  background: var(--naranja);
  transform: translateY(-5px);
  box-shadow: var(--shadow-naranja);
}

/* Hero Slider - Slide de Logo */
#heroSlider .hero-logo-slide {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--verde) 0%,
    var(--verde-oscuro) 40%,
    var(--verde) 100%
  );
  position: relative;
  overflow: hidden;
}

/* Efecto decorativo con naranja/amarillo del logo */
#heroSlider .hero-logo-slide::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(233, 78, 27, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

#heroSlider .hero-logo-slide::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255, 237, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

#heroSlider .hero-logo-content {
  padding: 40px;
}

#heroSlider .hero-logo-img {
  width: 180px;
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  animation: logoFloat 4s ease-in-out infinite;
}

#heroSlider .hero-logo-title {
  color: var(--blanco) !important;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#heroSlider .hero-logo-subtitle {
  color: var(--amarillo);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

/* =========================================
   HERO SLIDE 2 - ÚLTIMA NOTICIA (centrado, colores verdes CFCh)
   ========================================= */

.hero-noticia-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* CRÍTICO: centra horizontalmente */
  text-decoration: none;
  color: var(--blanco);
}

.hero-noticia-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%);
  z-index: 0;
}

/* Sin marca de agua */
.hero-noticia-bg::after {
  display: none;
}

/* Cuando hay imagen de noticia como fondo */
.hero-noticia-bg.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-noticia-bg.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 149, 61, 0.85) 0%, rgba(0, 122, 50, 0.9) 100%);
  z-index: 1;
}

.hero-noticia-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 3rem;
  max-width: 800px;
  width: 100%;
  margin-top: -80px;
}

.hero-noticia-badge {
  position: absolute;
  top: -60px; /* Posición más arriba, fuera del contenido centrado */
  left: 2rem;
  display: inline-block;
  background: var(--verde-claro);
  color: var(--blanco);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
}

.hero-noticia-titulo {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  margin-top: 0; /* Asegurar que empiece desde arriba */
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  color: var(--blanco) !important;
}

.hero-noticia-desc {
  font-size: 1.15rem;
  color: var(--blanco) !important;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-noticia-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blanco);
  color: var(--verde);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition-normal);
}

.hero-noticia-slide:hover .hero-noticia-cta {
  background: var(--amarillo);
  color: var(--verde-oscuro);
  transform: translateX(5px);
}

/* Hero Slider - Slide de ANMAT */
.hero-anmat-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--blanco);
}

.hero-anmat-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  z-index: 0;
}

.hero-anmat-pattern {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.03) 20px,
    rgba(255, 255, 255, 0.03) 40px
  );
}

.hero-anmat-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem;
  max-width: 800px;
}

.hero-anmat-icon {
  font-size: 4rem;
  color: var(--amarillo);
  margin-bottom: 1rem;
  animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-anmat-badge {
  display: inline-block;
  background: var(--amarillo);
  color: #7f1d1d;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-anmat-titulo {
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-anmat-fecha {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.hero-anmat-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blanco);
  color: #b91c1c;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition-normal);
}

.hero-anmat-slide:hover .hero-anmat-cta {
  background: var(--amarillo);
  color: #7f1d1d;
  transform: translateX(5px);
}

/* =========================================
   HERO SLIDE 4 - ASOCIATE (centrado, colores verdes CFCh)
   ========================================= */

.hero-asociate-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* CRÍTICO: centra horizontalmente */
  text-decoration: none;
  color: var(--blanco);
}

.hero-asociate-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 50%, var(--verde-claro) 100%);
  z-index: 0;
}

/* Sin círculos decorativos */
.hero-asociate-circles {
  display: none;
}

.hero-asociate-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 700px;
  width: 100%;
  margin-top: -100px; /* Sube todo el contenido */
}

.hero-asociate-icon {
  font-size: 3.5rem;
  color: var(--amarillo);
  margin-bottom: 1rem;
}

.hero-asociate-titulo {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  color: var(--blanco) !important;
}

.hero-asociate-titulo strong {
  font-weight: 800;
  display: block;
}

.hero-asociate-desc {
  font-size: 1.15rem;
  color: var(--blanco) !important;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-asociate-beneficios {
  list-style: none;
  color: var(--blanco) !important;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.hero-asociate-beneficios li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-asociate-beneficios i {
  color: var(--amarillo);
}

.hero-asociate-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blanco);
  color: var(--verde);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.1rem;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-asociate-slide:hover .hero-asociate-cta {
  background: var(--amarillo);
  color: var(--verde-oscuro);
  transform: scale(1.05);
}

/* Hero Slider - Slide de Cierre */
.hero-cierre-slide {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 50%, var(--verde) 100%);
  position: relative;
  overflow: hidden;
}

.hero-cierre-slide::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse at center, rgba(233, 78, 27, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-cierre-slide::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255, 237, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-cierre-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero-cierre-logo-container {
  margin-bottom: 1.5rem;
}

.hero-cierre-logo {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.25));
  animation: floatLogo 6s ease-in-out infinite;
}

.hero-cierre-titulo {
  color: var(--blanco);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-cierre-subtitulo {
  color: var(--amarillo);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-cierre-aniversario {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--dorado) 0%, #c4883f 100%);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-dorado);
}

.hero-cierre-años {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blanco);
  line-height: 1;
}

.hero-cierre-años-texto {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blanco);
  opacity: 0.9;
}

.hero-cierre-lema {
  color: var(--blanco);
  font-size: 1.1rem;
  font-style: italic;
  opacity: 0.9;
  max-width: 400px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#heroSlider .carousel-item[data-slide-type="video"] video {
  pointer-events: auto;
}

/* ---------------------------------------------------------
   6.2 Institucional - UNA SOLA CARD CON IMAGEN INTEGRADA
   --------------------------------------------------------- */
.institucional-section {
  position: relative;
  padding-top: 2rem !important;
  padding-bottom: 4rem !important;
  margin-top: -1px;
  align-items: flex-start !important;
}

.institucional-block {
  width: 100%;
  max-width: 100%;
}

.institucional-titulo {
  margin: 0 auto 1.5rem;
  font-weight: 700;
  color: var(--verde);
}

/* Carousel institucional */
.institucional-carousel {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  background: transparent;
}

.institucional-carousel .carousel-item {
  min-height: 550px;
}

/* UNA SOLA CARD UNIFICADA */
.institucional-slide-content {
  height: 550px;
  display: flex;
  align-items: center;
  background: var(--surface-1);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  box-shadow: var(--surface-shadow-strong);
  overflow: hidden;
  margin: 0 2rem;
}

.institucional-slide-content .row {
  width: 100%;
  height: 100%;
  margin: 0;
}

/* Imagen 35% - SIN card propia */
.institucional-img-col {
  flex: 0 0 auto;
  width: 35%;
  max-width: 35%;
  height: 100%;
  padding: 0;
  overflow: hidden;
}

.institucional-img {
  width: 100%;
  /* height: 100%; */
  /* object-fit: cover; */
  /* border-radius: 0; */
  /* border: none; */
  /* box-shadow: none; */
}

/* Texto 65% - SIN card propia */
.institucional-text-col {
  flex: 0 0 auto;
  width: 65%;
  max-width: 65%;
  display: flex;
  align-items: center;
  padding: 0;
}

.institucional-text-box {
  padding: 2.5rem 3rem;
  padding-left: 3rem;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
}

.institucional-text-box::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 2.5rem;
  bottom: 2.5rem;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--verde) 0%, var(--naranja) 50%, var(--amarillo) 100%);
}

.institucional-slide-title {
  color: var(--verde);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
}



.institucional-text-box p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gris-700);
  margin-bottom: 1rem;
}

.institucional-text-box p:first-of-type {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2b2b2b;
}

/* Enlace COFA */
.cofa-link {
  color: var(--verde);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.cofa-link:hover {
  color: var(--naranja);
  text-decoration: underline;
}

/* Slide Filosofía */
.filosofia-vision {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.filosofia-subtitulo {
  color: var(--verde);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.filosofia-subtitulo i {
  color: var(--naranja);
}

.valores-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.valores-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.valores-list li:last-child {
  border-bottom: none;
}

.valores-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--verde) 0%, var(--naranja) 100%);
  border-radius: 50%;
}

/* Filosofía Visual - Parte de la misma card */
.filosofia-visual {
  flex: 0 0 auto;
  width: 35%;
  max-width: 35%;
  background: white;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.filosofia-icono-grande {
  text-align: center;
}

.filosofia-logo {
  width: 490px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
  animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.filosofia-lema {
  color: var(--blanco);
  font-size: 0.95rem;
  font-style: italic;
  opacity: 0.95;
  max-width: 250px;
  margin: 1rem auto 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Institucional - Comisión Directiva */
.institucional-comision {
    /* width: 100%; */
    /* max-width: 1000px; */
    margin: 0 auto;
    /* padding: 2rem 3rem; */
    /* background: var(--surface-1); */
    /* border: 1px solid var(--surface-border); */
    /* border-radius: 18px; */
    /* box-shadow: var(--surface-shadow); */
}

.institucional-comision .row > [class*="col-"] {
  background: var(--surface-2);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 1.25rem 1rem 1rem;
  box-shadow: var(--surface-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.institucional-foto-circular {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 5px solid var(--verde);
  box-shadow: 0 10px 26px rgba(0, 149, 61, 0.25);
  transition: all var(--transition-normal);
  margin-bottom: 1rem;
  background: var(--blanco);
}

.institucional-foto-circular:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 149, 61, 0.3);
  border-color: var(--naranja);
}

.institucional-nombre {
  color: var(--verde);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.institucional-cargo {
  color: var(--gris-700);
  font-size: 1rem;
  margin: 0;
}

/* Comisión principales */
.comision-principales {
  max-width: 900px;
  margin: 0 auto;
}

/* Vocales centrados */
.institucional-otros-cargos {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.comision-lista {
  background: rgba(0, 149, 61, 0.05);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
}

.otros-cargos-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.otros-cargos-grid span {
  margin: 0;
  padding: 0.5rem 0;
}

/* Controles de navegación */
.institucional-nav {
  width: 60px;
  height: 60px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity var(--transition-slow), transform var(--transition-normal);
  z-index: 10;
  background: transparent;
}

#institucionalSlider:hover .institucional-nav {
  opacity: 1;
}

.institucional-nav.carousel-control-prev {
  left: 30px;
}

.institucional-nav.carousel-control-next {
  right: 30px;
}

/* Responsive */
@media (max-width: 992px) {
  .institucional-slide-content {
    margin: 0 1rem;
    height: auto;
    min-height: 500px;
  }

  .institucional-carousel .carousel-item {
    min-height: auto;
  }

  .institucional-slide-content .row {
    flex-direction: column;
  }

  .institucional-img-col,
  .institucional-text-col,
  .filosofia-visual {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .institucional-img {
    height: 250px;
  }

  .institucional-text-box {
    padding: 1.5rem 2rem;
    padding-left: 2.5rem;
    height: auto;
    overflow-y: visible;
  }

  .institucional-text-box::before {
    left: 1rem;
    top: 1.5rem;
    bottom: 1.5rem;
  }

  .filosofia-visual {
    min-height: 200px;
  }

  .filosofia-logo {
    width: 120px;
  }

  .filosofia-lema {
    font-size: 0.85rem;
  }
}

/* Estilos de iconos compartidos con Hero */

.institucional-nav-prev::before {
  transform: rotate(135deg);
  margin-left: 6px;
}

.institucional-nav-next::before {
  transform: rotate(-45deg);
  margin-right: 6px;
}

#institucionalSlider:hover .carousel-control-prev.institucional-nav {
  transform: translateY(-50%) translateX(5px);
}

#institucionalSlider:hover .carousel-control-next.institucional-nav {
  transform: translateY(-50%) translateX(-5px);
}

/* Institucional - Indicadores */
/* Indicadores institucional - Bottom de la sección */
.institucional-section {
  position: relative;
}

.institucional-section .institucional-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

/* ---------------------------------------------------------
   6.3 Agenda (Carousel Multi-item con Touch Swipe)
   --------------------------------------------------------- */
.agenda-section {
  padding-top: calc(var(--navbar-height) + 2rem);
  padding-bottom: 4rem;
  min-height: 600px; /* Altura mínima para evitar saltos */
  background: linear-gradient(180deg, var(--blanco) 0%, var(--gris-100) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Estado de carga - evita saltos */
.agenda-section.agenda-loading {
  min-height: 600px;
}

.agenda-section.agenda-loaded {
  min-height: auto;
}

.agenda-titulo {
  color: var(--verde);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.agenda-subtitulo {
  font-size: 1.1rem;
}

/* Carousel wrapper */
.agenda-carousel-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 70px;
  position: relative;
}

.agenda-carousel {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none;
  user-select: none;
}

.agenda-carousel:active {
  cursor: grabbing;
}

.agenda-track {
  display: flex;
  transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 0; /* CAMBIADO: Sin gap para evitar cortes */
  will-change: transform;
}

.agenda-item {
  padding: 0 0.5rem; /* CAMBIADO: Padding interno en lugar de gap */
  transition: all var(--transition-normal);
  flex-shrink: 0; /* AGREGADO: Evita que se compriman */
}

.agenda-track.is-dragging {
  cursor: grabbing;
  transition: none;
}

/* Estado vacío */
.agenda-empty {
  width: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Items del carousel */


/* Cards de evento */
.agenda-card {
  border-radius: var(--radius-md);
  border: none;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.agenda-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.agenda-card-header {
  background: var(--verde);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.agenda-fecha {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--blanco);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  min-width: 70px;
}

.agenda-dia {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--verde);
  line-height: 1;
}

.agenda-mes {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--verde);
  text-transform: uppercase;
}

.agenda-card-header .badge {
  font-size: 0.7rem;
  padding: 0.4rem 0.8rem;
  text-transform: capitalize;
}

.agenda-card-title {
  color: var(--verde);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agenda-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.agenda-badge-inscripcion {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--naranja);
  color: var(--blanco);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: var(--shadow-sm);
}

/* Controles de navegación */
.agenda-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%);
  border: 3px solid var(--blanco);
  border-radius: var(--radius-full);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 149, 61, 0.35);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.agenda-nav:hover {
  background: linear-gradient(135deg, var(--naranja) 0%, #c94115 100%);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 20px rgba(233, 78, 27, 0.45);
}

.agenda-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.agenda-nav.disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

.agenda-nav-prev {
  left: 5px;
}

.agenda-nav-next {
  right: 5px;
}

.agenda-nav-icon {
  width: 14px;
  height: 14px;
  border: solid var(--blanco);
  border-width: 0 3px 3px 0;
  display: inline-block;
  transition: transform 0.2s ease;
}

.agenda-nav-prev .agenda-nav-icon {
  transform: rotate(135deg);
  margin-left: 4px;
}

.agenda-nav-next .agenda-nav-icon {
  transform: rotate(-45deg);
  margin-right: 4px;
}

.agenda-nav:hover .agenda-nav-icon {
  border-color: var(--amarillo);
}

/* Indicadores */
.agenda-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 0;
}

.agenda-indicator {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 2px solid var(--verde);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
}

.agenda-indicator:hover {
  background: rgba(0, 149, 61, 0.3);
  transform: scale(1.2);
}

.agenda-indicator.active {
  background: linear-gradient(135deg, var(--verde) 0%, var(--naranja) 100%);
  border-color: var(--verde);
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 149, 61, 0.4);
}

.agenda-indicator:hover {
  background: var(--verde);
  transform: scale(1.2);
}

.agenda-indicator.active {
  background: var(--naranja);
  border-color: var(--naranja);
  transform: scale(1.3);
}

/* ---------------------------------------------------------
   6.4 Información, Noticias & Boletines
   --------------------------------------------------------- */
.informacion-section {
  padding-top: calc(var(--navbar-height) + 2rem);
  padding-bottom: 3rem;
  min-height: 600px; /* Evita saltos mientras carga contenido */
}

/* Contenedor de noticias con altura mínima */
#newsGrid {
  min-height: 300px;
}

/* Contenedor ANMAT con altura mínima */
#anmatGrid {
  min-height: 200px;
}

.informacion-titulo {
  color: var(--verde);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

/* Grid de noticias */
#newsGrid {
  max-width: 1200px;
  margin: 0 auto;
}

.noticia-item {
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

/* Noticias extra (ocultas inicialmente, reveladas con toggle) */
.noticia-extra {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out, padding 0.4s ease-out;
}

.noticia-extra.noticia-visible {
  max-height: 600px;
  opacity: 1;
  overflow: visible;
  padding-top: calc(var(--bs-gutter-y) * 0.5) !important;
  padding-bottom: calc(var(--bs-gutter-y) * 0.5) !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* News Cards mejoradas */
.news-card {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card .card-img-top {
  height: 180px;
  object-fit: cover;
}

.news-card .card-title {
  color: var(--verde);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
}

.news-card .card-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Botón Mostrar más */
#btnMostrarMas {
  padding: 0.75rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all var(--transition-normal);
}

#btnMostrarMas:hover {
  background-color: var(--verde);
  color: var(--blanco);
  transform: translateY(-2px);
  box-shadow: var(--shadow-verde);
}

/* Separador */
.informacion-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--verde), transparent);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Sección ANMAT - Estilo corporativo */
.anmat-section {
  background: linear-gradient(135deg, rgba(0, 149, 61, 0.05) 0%, rgba(233, 78, 27, 0.05) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 1rem;
  border: 1px solid var(--accent-border);
}

.anmat-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.anmat-icon-container {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  font-size: 1.75rem;
  box-shadow: var(--shadow-verde);
}

.anmat-header-text {
  text-align: left;
}

.anmat-titulo {
  color: var(--verde);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
}

.anmat-subtitulo {
  color: var(--gris-700);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

/* ANMAT Cards - Estilo corporativo */
.anmat-card {
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--surface-border);
  background: var(--blanco);
  box-shadow: var(--surface-shadow);
}

.anmat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--surface-shadow-strong);
  border-color: var(--verde);
}

.anmat-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.anmat-badge {
  background: linear-gradient(135deg, var(--naranja) 0%, #d4431a 100%);
  color: var(--blanco);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.anmat-fecha {
  color: var(--gris-700);
  font-size: 0.75rem;
}

.anmat-card-titulo {
  color: #212529;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-anmat-link {
  background: transparent;
  color: var(--verde);
  border: 1px solid var(--verde);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.btn-anmat-link:hover {
  background: var(--verde);
  color: var(--blanco);
}

.btn-anmat-ver-mas {
  background: var(--verde);
  color: var(--blanco);
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-verde);
  transition: all var(--transition-normal);
}

.btn-anmat-ver-mas:hover {
  background: var(--verde-claro);
  color: var(--blanco);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 149, 61, 0.4);
}

/* Legacy instCarousel support */
#instCarousel {
  max-height: 360px;
}

#instCarousel img {
  object-fit: cover;
  height: 360px;
}

/* ---------------------------------------------------------
   6.5 Servicios
   --------------------------------------------------------- */
#servicios {
  padding-top: 5rem;
}

#servicios .container > .d-flex h1 {
  font-weight: 700;
}

/* =========================================================
   7. UTILIDADES
   ========================================================= */
.col-lg-2-4 {
  flex: 0 0 auto;
  width: 20%;
}

/* =========================================================
   8. ANIMACIONES
   ========================================================= */
@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* =========================================================
   9. MEDIA QUERIES (Consolidadas)
   ========================================================= */

/* ---------------------------------------------------------
   Desktop Grande (≥1200px)
   --------------------------------------------------------- */
@media (min-width: 1200px) {
  .agenda-carousel-wrapper {
    max-width: 1600px;
  }
}

/* ---------------------------------------------------------
   Tablet (≤992px)
   --------------------------------------------------------- */
@media (max-width: 992px) {
  /* Agenda */
  .agenda-carousel-wrapper {
    padding: 0 50px;
  }

  .agenda-nav {
    width: 45px;
    height: 45px;
  }

  .agenda-titulo {
    font-size: 2rem;
  }

  /* Institucional */
  .institucional-carousel .carousel-item,
  .institucional-slide-content {
    min-height: 650px;
    height: auto;
  }

  .institucional-img {
    height: 300px;
  }

  .institucional-text-box {
    padding: 2rem 2.25rem 2rem 2.9rem;
  }

  .institucional-text-box::before {
    left: 14px;
    top: 16px;
    bottom: 16px;
  }

  .institucional-foto-circular {
    width: 270px;
    height: 270px;
  }

  .institucional-nav.carousel-control-prev {
    left: 15px;
  }

  .institucional-nav.carousel-control-next {
    right: 15px;
  }

  .institucional-nav-icon {
    width: 50px;
    height: 50px;
  }

  .institucional-nav-icon::before {
    width: 14px;
    height: 14px;
  }

  /* Hero Slider */
  #heroSlider .carousel-control-prev.hero-nav-btn {
    left: 15px;
  }

  #heroSlider .carousel-control-next.hero-nav-btn {
    right: 15px;
  }

  #heroSlider .hero-nav-icon {
    width: 50px;
    height: 50px;
  }

  #heroSlider .hero-nav-icon::before {
    width: 14px;
    height: 14px;
  }

  #heroSlider .hero-logo-title {
    font-size: 2rem;
  }

  #heroSlider .hero-logo-subtitle {
    font-size: 1.2rem;
  }

  #heroSlider .partner-logo {
    height: 60px;
  }

  /* Utilidades */
  .col-lg-2-4 {
    width: 33.333%;
  }
}

/* ---------------------------------------------------------
   Secciones (≤991px)
   --------------------------------------------------------- */
@media (max-width: 991px) {
  section {
    padding-top: var(--navbar-height-mobile);
  }
}

/* ---------------------------------------------------------
   Tablet/Mobile (≤768px)
   --------------------------------------------------------- */
@media (max-width: 768px) {
  /* Hero */
  .hero-section {
    height: 80vh;
    min-height: 520px;
  }

  /* Agenda */
  .agenda-titulo {
    font-size: 1.75rem;
  }

  .agenda-carousel-wrapper {
    padding: 0 50px;
  }

  /* Informacion/Noticias */
  .informacion-titulo {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  /* Institucional */
  .institucional-titulo {
    font-size: 2rem;
    padding: 0.5rem 1.2rem;
  }

  .institucional-carousel .carousel-item,
  .institucional-slide-content {
    min-height: auto;
    height: auto;
  }

  .institucional-img {
    height: 250px;
  }

  .institucional-text-box {
    padding: 1.5rem 1.6rem 1.5rem 2.4rem;
  }

  .institucional-text-box::before {
    left: 12px;
    top: 12px;
    bottom: 12px;
    width: 5px;
  }

  .institucional-slide-title {
    font-size: 1.5rem;
  }

  .institucional-text-box p {
    font-size: 1rem;
  }

  .institucional-foto-circular {
    width: 240px;
    height: 240px;
    border-width: 4px;
  }

  .institucional-nombre {
    font-size: 1rem;
  }

  .institucional-cargo {
    font-size: 0.9rem;
  }

  .institucional-otros-cargos span {
    display: block;
    margin: 0.3rem 0;
  }

  /* Filosofía responsive */
  .filosofia-visual {
    min-height: 200px;
    padding: 2rem 1rem;
  }

  .filosofia-logo {
    width: 320px;
  }

  .filosofia-lema {
    font-size: 0.95rem;
  }

  .valores-list li {
    font-size: 0.85rem;
    padding: 0.4rem 0 0.4rem 1.25rem;
  }

  .filosofia-subtitulo {
    font-size: 1rem;
  }

  /* Comisión responsive */
  .comision-principales .institucional-foto-circular {
    width: 90px;
    height: 90px;
  }

  .comision-lista {
    padding: 1rem;
  }

  .otros-cargos-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }

  .otros-cargos-grid span {
    padding: 0.4rem 0;
  }

  .institucional-partners-logos {
    gap: 1.5rem;
  }

  .partner-logo-inst {
    max-width: 200px;
    height: 100px;
  }

  /* Institucional - Flechas siempre visibles */
  .institucional-nav {
    opacity: 0.85;
  }

  .institucional-nav.carousel-control-prev {
    left: 10px;
  }

  .institucional-nav.carousel-control-next {
    right: 10px;
  }

  .institucional-nav-icon {
    width: 42px;
    height: 42px;
    border-width: 2px;
  }

  .institucional-nav-icon::before {
    width: 12px;
    height: 12px;
    border-width: 0 2px 2px 0;
  }

  /* Footer */
  .footer {
    text-align: center;
  }

  .footer .col-md-4 {
    margin-bottom: 1rem;
  }
}

/* ---------------------------------------------------------
   Mobile (≤576px)
   --------------------------------------------------------- */
@media (max-width: 576px) {
  /* Scroll indicators */
  .scroll-indicators {
    right: 14px;
    gap: 0.6rem;
  }

  .scroll-dot {
    width: 12px;
    height: 12px;
  }

  /* Agenda */
  .agenda-carousel-wrapper {
    padding: 0 45px;
  }

  .agenda-nav {
    width: 38px;
    height: 38px;
    border-width: 2px;
  }

  .agenda-nav-icon {
    width: 10px;
    height: 10px;
    border-width: 0 2px 2px 0;
  }

  .agenda-titulo {
    font-size: 1.75rem;
  }

  .agenda-subtitulo {
    font-size: 1rem;
  }

  .agenda-card-header {
    padding: 0.75rem;
  }

  .agenda-dia {
    font-size: 1.5rem;
  }

  /* Informacion/Noticias */
  .informacion-titulo {
    font-size: 1.75rem;
  }

  .anmat-section {
    padding: 1.5rem;
  }

  .anmat-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .anmat-header-text {
    text-align: center;
  }

  .anmat-icon-container {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .anmat-titulo {
    font-size: 1.25rem;
  }

  .anmat-subtitulo {
    font-size: 0.8rem;
  }

  .anmat-card-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .anmat-card-titulo {
    font-size: 0.9rem;
  }

  .btn-anmat-link {
    width: 100%;
    text-align: center;
  }

  .btn-anmat-ver-mas {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Secciones vh-100 */
  section.vh-100 {
    min-height: unset !important;
    height: auto !important;
    padding-block: 3rem;
  }

  /* Hero Slider */
  #heroSlider .hero-nav-btn {
    opacity: 0.85;
  }

  #heroSlider .carousel-control-prev.hero-nav-btn {
    left: 10px;
  }

  #heroSlider .carousel-control-next.hero-nav-btn {
    right: 10px;
  }

  #heroSlider .hero-nav-icon {
    width: 42px;
    height: 42px;
    border-width: 2px;
  }

  #heroSlider .hero-nav-icon::before {
    width: 12px;
    height: 12px;
    border-width: 0 2px 2px 0;
  }

  #heroSlider .hero-indicators {
    gap: 8px;
    padding: 8px 15px;
    bottom: 15px;
  }

  #heroSlider .hero-indicator {
    width: 10px;
    height: 10px;
  }

  #heroSlider .hero-logo-img {
    width: 120px;
    margin-bottom: 20px;
  }

  #heroSlider .hero-logo-title {
    font-size: 1.5rem;
  }

  #heroSlider .hero-logo-subtitle {
    font-size: 1rem;
  }

  #heroSlider .hero-partners-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  #heroSlider .partner-logo {
    height: 50px;
    max-width: 120px;
  }

  #heroSlider .hero-slide-caption {
    font-size: 0.9rem;
    padding: 8px 18px;
  }

  #heroSlider .hero-slide-overlay {
    opacity: 1;
    padding: 20px;
  }

  /* Institucional - Título */
  .institucional-titulo {
    font-size: 1.75rem;
  }

  .institucional-comision,
  .institucional-partners {
    padding: 1.5rem 1rem;
  }

  /* Institucional - Fotos circulares (Bug 4 fix) */
  .institucional-foto-circular {
    width: 120px !important;
    height: 120px !important;
    border-width: 3px;
  }

  /* Institucional - Comisión Directiva fotos en columna vertical */
  .institucional-comision .row {
    flex-direction: column;
    align-items: center;
  }

  .institucional-comision .row > [class*="col-"] {
    width: 100%;
    max-width: 200px;
    margin-bottom: 1.5rem;
  }

  .institucional-nombre {
    font-size: 0.95rem;
  }

  .institucional-cargo {
    font-size: 0.85rem;
  }

  /* Institucional - Indicadores en mobile */
  .institucional-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    margin: 0 4px;
  }
}

/* ---------------------------------------------------------
   Mobile Pequeño (≤420px)
   --------------------------------------------------------- */
@media (max-width: 420px) {
  #instCarousel {
    text-align: center;
  }
}

/* ---------------------------------------------------------
   Mobile Muy Pequeño (≤400px)
   --------------------------------------------------------- */
@media (max-width: 400px) {
  /* Navbar */
  #navbar .navbar-brand {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
  }

  #navbar .logo-cfch {
    height: 36px !important;
  }

  #navbar .navbar-brand span {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  #navbar .container {
    padding-inline: 0.5rem;
  }

  .navbar-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* ---------------------------------------------------------
   Mobile Ultra Pequeño (≤340px)
   --------------------------------------------------------- */
@media (max-width: 340px) {
  #navbar .logo-cfch {
    height: 30px !important;
  }

  #navbar .navbar-brand span {
    display: none;
  }
}

/* =========================================================
   10. SWEETALERT2 - MODAL LOGIN PERSONALIZADO
   ========================================================= */

/* Backdrop con blur */
.swal2-container.swal2-backdrop-show {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Popup container - Login Modal */
.login-modal-popup {
  border-radius: var(--radius-lg) !important;
  padding: 2.5rem 2rem 2rem !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25) !important;
  font-family: "Inter", sans-serif;
  border-top: 4px solid var(--verde);
}

/* Título del Login */
.login-modal-title {
  color: var(--verde) !important;
  font-weight: 700 !important;
  font-size: 1.75rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem;
}

.login-modal-title i {
  font-size: 1.5rem;
}

/* Container del formulario */
.login-form-container {
  text-align: left;
  padding: 0.5rem 0;
}

.login-form-container .form-label {
  font-weight: 600;
  color: var(--gris-700);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.login-form-container .form-label i {
  color: var(--verde);
}

/* Input groups del Login */
.login-form-container .input-group {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow var(--transition-normal);
}

.login-form-container .input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 149, 61, 0.2);
}

.login-form-container .input-group-text {
  background: var(--verde);
  border: none;
  color: var(--blanco);
  padding: 0.75rem 1rem;
}

.login-form-container .form-control {
  border: 2px solid var(--gris-200);
  border-left: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color var(--transition-normal);
}

.login-form-container .form-control:focus {
  border-color: var(--verde);
  box-shadow: none;
}

.login-form-container .form-control::placeholder {
  color: #aaa;
}

/* Botón mostrar/ocultar contraseña */
.login-form-container #togglePass {
  border: 2px solid var(--gris-200);
  border-left: none;
  background: var(--blanco);
  color: var(--gris-700);
  transition: all var(--transition-normal);
}

.login-form-container #togglePass:hover {
  background: var(--gris-100);
  color: var(--verde);
}

/* Link "Olvidaste contraseña" */
.forgot-password-link {
  font-size: 0.9rem;
  color: var(--verde);
  text-decoration: none;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
}

.forgot-password-link:hover {
  color: var(--naranja);
  text-decoration: underline;
}

/* Botón confirmar (Entrar) - Login */
.login-btn-confirm {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%) !important;
  border-radius: var(--radius-sm) !important;
  padding: 14px 36px !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  transition: all var(--transition-normal) !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 149, 61, 0.3) !important;
}

.login-btn-confirm:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0, 149, 61, 0.4) !important;
}

.login-btn-confirm:focus {
  box-shadow: 0 0 0 3px rgba(0, 149, 61, 0.4) !important;
}

/* Botón cancelar - Login */
.login-btn-cancel {
  background: transparent !important;
  color: var(--gris-700) !important;
  border: 2px solid var(--gris-200) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 28px !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  transition: all var(--transition-normal) !important;
}

.login-btn-cancel:hover {
  background: var(--gris-100) !important;
  border-color: var(--gris-700) !important;
  color: var(--gris-700) !important;
}

/* Popup genérico de SweetAlert2 */
.swal2-popup.swal2-modal {
  border-radius: var(--radius-lg) !important;
  padding: 2rem !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: "Inter", sans-serif;
}

/* Título genérico */
.swal2-title {
  color: var(--verde) !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
}

/* Inputs genéricos de SweetAlert */
.swal2-input,
.swal2-textarea {
  border: 2px solid var(--gris-200) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 16px !important;
  font-size: 1rem !important;
  transition: all var(--transition-normal);
}

.swal2-input:focus,
.swal2-textarea:focus {
  border-color: var(--verde) !important;
  box-shadow: 0 0 0 3px rgba(0, 149, 61, 0.2) !important;
  outline: none !important;
}

.swal2-input::placeholder {
  color: #aaa;
}

/* Botón confirmar genérico */
.swal2-confirm.swal2-styled {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 32px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  transition: all var(--transition-normal) !important;
  border: none !important;
}

.swal2-confirm.swal2-styled:hover {
  background: linear-gradient(135deg, var(--verde-claro) 0%, var(--verde) 100%) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-verde) !important;
}

.swal2-confirm.swal2-styled:focus {
  box-shadow: 0 0 0 3px rgba(0, 149, 61, 0.4) !important;
}

/* Botón cancelar genérico */
.swal2-cancel.swal2-styled {
  background: transparent !important;
  color: var(--verde) !important;
  border: 2px solid var(--verde) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 32px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  transition: all var(--transition-normal) !important;
}

.swal2-cancel.swal2-styled:hover {
  background: var(--verde) !important;
  color: var(--blanco) !important;
}

/* Botón deny (si se usa) */
.swal2-deny.swal2-styled {
  background: var(--gris-200) !important;
  color: var(--gris-700) !important;
  border-radius: var(--radius-sm) !important;
}

/* Validation message */
.swal2-validation-message {
  background: rgba(220, 53, 69, 0.1) !important;
  color: var(--rojo) !important;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* =========================================================
   10.1 PÁGINA DE PERFIL
   ========================================================= */

/* Container principal */
.perfil-container {
  margin-top: 100px;
  min-height: 80vh;
  padding-bottom: 3rem;
}

/* Card de perfil (sidebar) */
.perfil-sidebar-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.perfil-sidebar-card .card-body {
  padding: 2rem;
}

/* Avatar circular con gradiente */
.perfil-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 149, 61, 0.3);
  border: 4px solid var(--blanco);
  position: relative;
}

.perfil-avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  border: 2px dashed var(--verde);
  opacity: 0.3;
}

.perfil-nombre {
  color: var(--verde);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.perfil-email {
  color: var(--gris-700);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Badge de rol */
.perfil-rol-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: capitalize;
}

.perfil-rol-badge.admin {
  background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
  color: var(--blanco);
}

.perfil-rol-badge.community_manager {
  background: linear-gradient(135deg, var(--naranja) 0%, #d97706 100%);
  color: var(--blanco);
}

.perfil-rol-badge.afiliado {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%);
  color: var(--blanco);
}

/* Card de próximos eventos (sidebar) */
.perfil-eventos-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.perfil-eventos-card .card-header {
  border-bottom: none;
  padding: 1rem 1.25rem;
}

.perfil-eventos-card .list-group-item {
  border-left: none;
  border-right: none;
  padding: 1rem 1.25rem;
  transition: background var(--transition-normal);
}

.perfil-eventos-card .list-group-item:hover {
  background: rgba(0, 149, 61, 0.05);
}

.perfil-dias-badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
}

/* Tabs de perfil */
.perfil-tabs {
  border-bottom: 2px solid var(--gris-200);
  margin-bottom: 1.5rem;
}

.perfil-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--gris-700);
  font-weight: 500;
  padding: 1rem 1.5rem;
  margin-bottom: -2px;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.perfil-tabs .nav-link:hover {
  color: var(--verde);
  border-bottom-color: rgba(0, 149, 61, 0.3);
}

.perfil-tabs .nav-link.active {
  color: var(--verde);
  border-bottom-color: var(--verde);
  background: transparent;
}

.perfil-tabs .nav-link i {
  font-size: 1.1rem;
}

/* Cards de contenido */
.perfil-content-card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.perfil-content-card .card-body {
  padding: 2rem;
}

.perfil-content-card .card-title {
  color: var(--verde);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Formularios de perfil */
.perfil-form-label {
  font-weight: 600;
  color: var(--gris-700);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.perfil-form-label i {
  color: var(--verde);
  font-size: 0.85rem;
}

.perfil-input {
  border: 2px solid var(--gris-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: all var(--transition-normal);
}

.perfil-input:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(0, 149, 61, 0.15);
}

.perfil-input:disabled,
.perfil-input:read-only {
  background: var(--gris-100);
  cursor: not-allowed;
}

/* Input groups con toggle password */
.perfil-input-group {
  position: relative;
}

.perfil-input-group .form-control {
  padding-right: 3rem;
}

.perfil-toggle-pass {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 2.75rem;
  background: transparent;
  border: none;
  color: var(--gris-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-normal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.perfil-toggle-pass:hover {
  color: var(--verde);
  background: var(--gris-100);
}

/* Botones de acción */
.perfil-btn-primary {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--blanco);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 15px rgba(0, 149, 61, 0.3);
}

.perfil-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 149, 61, 0.4);
  color: var(--blanco);
}

/* Lista de eventos */
.perfil-evento-item {
  border: none;
  border-bottom: 1px solid var(--gris-200);
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
}

.perfil-evento-item:last-child {
  border-bottom: none;
}

.perfil-evento-item:hover {
  background: rgba(0, 149, 61, 0.03);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: var(--radius-sm);
}

.perfil-evento-fecha {
  min-width: 70px;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
}

.perfil-evento-fecha .dia {
  font-size: 1.5rem;
  line-height: 1;
  display: block;
}

.perfil-evento-fecha .mes {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.perfil-evento-titulo {
  color: var(--verde);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* Alert sin eventos */
.perfil-alert-info {
  background: rgba(0, 149, 61, 0.1);
  border: none;
  border-left: 4px solid var(--verde);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  color: var(--verde-oscuro);
}

.perfil-alert-info a {
  color: var(--verde);
  font-weight: 600;
}

/* Sección de seguridad - Tips */
.perfil-security-tips {
  background: var(--gris-100);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1.5rem;
}

.perfil-security-tips h6 {
  color: var(--verde);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.perfil-security-tips ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--gris-700);
}

.perfil-security-tips li {
  margin-bottom: 0.25rem;
}

/* =========================================================
   11. MOBILE REFINEMENTS (≤768px)
   ========================================================= */

@media (max-width: 768px) {
  /* ---------------------------------------------------------
     11.1 Scroll Indicators - OCULTAR en mobile
     --------------------------------------------------------- */
  .scroll-indicators,
  .scroll-dot {
    display: none !important;
  }

  /* ---------------------------------------------------------
     11.2 Institucional - OCULTAR flechas en mobile
     --------------------------------------------------------- */
  #institucionalSlider .carousel-control-prev,
  #institucionalSlider .carousel-control-next,
  .institucional-nav,
  .institucional-nav-icon {
    display: none !important;
  }

  /* Touch-friendly carousel */
  #institucionalSlider {
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 40px; /* Espacio para indicadores */
  }

  /* Indicadores centrados */
  .institucional-indicators {
    bottom: 10px;
  }

  /* ---------------------------------------------------------
     11.3 Agenda - Cards completas y flechas flotantes
     --------------------------------------------------------- */
  .agenda-carousel-wrapper {
    padding: 0 50px !important; /* Espacio para flechas */
    position: relative;
  }

  /* Cards completas sin corte */
  .agenda-item {
    padding: 0 8px;
  }

  .agenda-card {
    width: 100%;
    min-height: auto;
  }

  /* Flechas flotantes de agenda */
  .agenda-nav {
    position: absolute;
    width: 40px !important;
    height: 40px !important;
    background: var(--verde);
    border-radius: var(--radius-full);
    border: 2px solid var(--blanco);
    box-shadow: var(--shadow-md);
    opacity: 1 !important;
    z-index: 10;
  }

  .agenda-nav-prev {
    left: 5px !important;
  }

  .agenda-nav-next {
    right: 5px !important;
  }

  .agenda-nav:hover {
    background: var(--naranja);
  }

  .agenda-nav-icon {
    width: 12px;
    height: 12px;
    border-width: 0 2px 2px 0;
  }

  /* ---------------------------------------------------------
     11.4 Hero - Mejoras mobile
     --------------------------------------------------------- */
  .hero-section {
    height: 70vh;
    min-height: 400px;
  }

  /* Hero slides - Ajustes mobile */
  .hero-noticia-content,
  .hero-anmat-content,
  .hero-asociate-content {
    padding: 1.5rem;
  }

  .hero-noticia-titulo,
  .hero-anmat-titulo {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .hero-noticia-desc {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .hero-noticia-badge,
  .hero-anmat-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
  }

  .hero-noticia-cta,
  .hero-anmat-cta,
  .hero-asociate-cta {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero-asociate-titulo {
    font-size: 1.5rem;
  }

  .hero-asociate-desc {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .hero-asociate-beneficios {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .hero-asociate-beneficios li {
    font-size: 0.85rem;
  }

  .hero-asociate-icon,
  .hero-anmat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  /* Slide de cierre mobile */
  .hero-cierre-logo {
    width: 100px;
    max-width: 100px;
  }

  .hero-cierre-titulo {
    font-size: 1.5rem;
  }

  .hero-cierre-subtitulo {
    font-size: 1rem;
  }

  .hero-cierre-aniversario {
    margin: 1rem 0;
  }

  .hero-cierre-años {
    font-size: 2.5rem;
  }

  .hero-cierre-años-texto {
    font-size: 0.85rem;
  }

  .hero-cierre-lema {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  /* ---------------------------------------------------------
     11.5 Servicios - Mejoras mobile
     --------------------------------------------------------- */
  .servicios-section {
    padding: 3rem 0;
    min-height: auto;
  }

  .servicios-titulo {
    font-size: 1.75rem;
  }

  .servicio-card-header {
    padding: 1.25rem 1.25rem 0;
  }

  .servicio-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .servicio-card-body {
    padding: 1rem 1.25rem;
  }

  .servicio-titulo {
    font-size: 1.05rem;
  }

  .servicio-desc {
    font-size: 0.85rem;
  }

  .servicio-features li {
    font-size: 0.8rem;
  }

  .beneficios-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .beneficio-item {
    font-size: 0.75rem;
    padding: 0.5rem 0.6rem;
  }

  .servicio-card-footer {
    padding: 0.75rem 1.25rem 1.25rem;
  }

  .btn-servicio {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }

  .servicio-requisitos {
    padding: 0.75rem;
  }

  .servicio-requisitos h6 {
    font-size: 0.8rem;
  }

  .servicio-requisitos ul li {
    font-size: 0.75rem;
  }

  /* ---------------------------------------------------------
     11.6 Perfil - Mejoras mobile
     --------------------------------------------------------- */
  .perfil-container {
    margin-top: 80px;
  }

  .perfil-avatar {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }

  .perfil-nombre {
    font-size: 1.2rem;
  }

  .perfil-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .perfil-tabs::-webkit-scrollbar {
    display: none;
  }

  .perfil-tabs .nav-link {
    padding: 0.75rem 1rem;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .perfil-content-card .card-body {
    padding: 1.25rem;
  }

  .perfil-evento-item {
    padding: 1rem 0;
  }

  .perfil-evento-fecha {
    min-width: 55px;
    padding: 0.5rem;
  }

  .perfil-evento-fecha .dia {
    font-size: 1.25rem;
  }

  .perfil-btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ---------------------------------------------------------
   11.6 Agenda + Hero - Ajustes compactos mobile (≤576px)
   --------------------------------------------------------- */
@media (max-width: 576px) {
  .agenda-section {
    padding-top: calc(var(--navbar-height-mobile) + 1rem);
    padding-bottom: 2rem;
    min-height: 520px;
  }

  .agenda-section.agenda-loading {
    min-height: 520px;
  }

  .agenda-section .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .agenda-titulo {
    font-size: 1.75rem;
  }

  .agenda-subtitulo {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
  }

  .agenda-carousel-wrapper {
    padding: 0 8px !important;
  }

  .agenda-carousel {
    /* Mejora el swipe en mobile */
    overflow: visible;
    margin: 0 -8px;
    padding: 0 8px;
  }

  .agenda-track {
    gap: 0;
  }

  .agenda-item {
    padding: 0 8px;
  }

  .agenda-card {
    min-height: 280px;
  }

  .agenda-card-header {
    padding: 0.75rem;
  }

  .agenda-fecha {
    min-width: 60px;
    padding: 0.4rem 0.75rem;
  }

  .agenda-dia {
    font-size: 1.5rem;
  }

  .agenda-mes {
    font-size: 0.7rem;
  }

  .agenda-card-title {
    font-size: 0.95rem;
  }

  .agenda-indicators {
    margin-top: 1rem !important;
    gap: 0.6rem;
  }

  .agenda-indicator {
    width: 10px;
    height: 10px;
  }

  /* Botones de navegación ocultos en mobile - usar swipe */
  .agenda-nav {
    display: none !important;
  }

  /* Hint visual para swipe */
  .agenda-section::after {
    content: "";
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--gris-300);
    border-radius: 2px;
    opacity: 0;
    animation: swipeHint 3s ease-in-out 1s 2;
  }

  @keyframes swipeHint {
    0%, 100% { opacity: 0; transform: translateX(-50%); }
    30% { opacity: 0.6; transform: translateX(calc(-50% + 20px)); }
    70% { opacity: 0.6; transform: translateX(calc(-50% - 20px)); }
  }

  /* Hero video: un poco más alto en mobile */
  .hero-section {
    height: 75vh;
    min-height: 440px;
  }
}

/* Tablet adjustments */
@media (min-width: 577px) and (max-width: 991px) {
  .agenda-section {
    min-height: 550px;
  }

  .agenda-carousel-wrapper {
    padding: 0 50px;
  }

  .agenda-nav {
    width: 46px;
    height: 46px;
  }

  .agenda-nav-prev {
    left: 0;
  }

  .agenda-nav-next {
    right: 0;
  }

  .agenda-titulo {
    font-size: 2rem;
  }
}

/* ============================================
   HERO CAROUSEL - DESIGN REFINEMENT 2026
   Principios de diseño moderno aplicados
   ============================================ */

/* --- FUNDAMENTOS: Espaciado y altura --- */
#heroSlider .carousel-item {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- TIPOGRAFÍA: Jerarquía clara --- */
#heroSlider h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

#heroSlider p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 600px;
  opacity: 0.95;
}

/* --- BADGES: Diseño moderno pill --- */
#heroSlider .hero-noticia-badge,
#heroSlider .hero-anmat-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* --- BOTONES CTA: Micro-interacciones --- */
#heroSlider .hero-noticia-cta,
#heroSlider .hero-anmat-cta,
#heroSlider .hero-asociate-cta {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#heroSlider .hero-noticia-cta:hover,
#heroSlider .hero-anmat-cta:hover,
#heroSlider .hero-asociate-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

#heroSlider .hero-noticia-cta i,
#heroSlider .hero-anmat-cta i,
#heroSlider .hero-asociate-cta i {
  transition: transform 0.3s ease;
}

#heroSlider .hero-slide-link:hover .hero-noticia-cta i,
#heroSlider .hero-slide-link:hover .hero-anmat-cta i,
#heroSlider .hero-slide-link:hover .hero-asociate-cta i {
  transform: translateX(4px);
}

/* --- CONTRASTE: Text shadows para legibilidad --- */
#heroSlider .hero-noticia-content h2,
#heroSlider .hero-noticia-content p {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35),
               0 1px 4px rgba(0, 0, 0, 0.2);
}

#heroSlider .hero-asociate-content h2,
#heroSlider .hero-asociate-content p,
#heroSlider .hero-asociate-content li {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4),
               0 4px 16px rgba(0, 0, 0, 0.25);
}

/* --- CONTROLES: Glassmorphism moderno --- */
#heroSlider .hero-nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

#heroSlider:hover .hero-nav-btn {
  opacity: 0.85;
}

#heroSlider .hero-nav-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#heroSlider .carousel-control-prev.hero-nav-btn {
  left: 2rem;
}

#heroSlider .carousel-control-next.hero-nav-btn {
  right: 2rem;
}

/* --- INDICADORES: Colores corporativos CFChaco --- */
#heroSlider .hero-indicators {
  bottom: 2rem;
  gap: 10px;
}

#heroSlider .hero-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#heroSlider .hero-indicator.active {
  width: 32px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%);
  border: none;
  box-shadow: 0 3px 12px rgba(0, 149, 61, 0.4);
}

#heroSlider .hero-indicator:hover:not(.active) {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--verde);
  transform: scale(1.15);
}

/* --- ANIMACIONES: Entrada suave escalonada --- */
@keyframes heroContentSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#heroSlider .carousel-item.active .hero-noticia-badge,
#heroSlider .carousel-item.active .hero-anmat-badge,
#heroSlider .carousel-item.active .hero-anmat-icon,
#heroSlider .carousel-item.active .hero-asociate-icon {
  animation: heroContentSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

#heroSlider .carousel-item.active .hero-noticia-titulo,
#heroSlider .carousel-item.active .hero-anmat-titulo,
#heroSlider .carousel-item.active .hero-asociate-titulo,
#heroSlider .carousel-item.active .hero-cierre-titulo {
  animation: heroContentSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

#heroSlider .carousel-item.active .hero-noticia-desc,
#heroSlider .carousel-item.active .hero-anmat-fecha,
#heroSlider .carousel-item.active .hero-asociate-desc,
#heroSlider .carousel-item.active .hero-cierre-subtitulo {
  animation: heroContentSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

#heroSlider .carousel-item.active .hero-asociate-beneficios {
  animation: heroContentSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both;
}

#heroSlider .carousel-item.active .hero-noticia-cta,
#heroSlider .carousel-item.active .hero-anmat-cta,
#heroSlider .carousel-item.active .hero-asociate-cta {
  animation: heroContentSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

#heroSlider .carousel-item.active .hero-cierre-aniversario {
  animation: heroContentSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

#heroSlider .carousel-item.active .hero-cierre-lema {
  animation: heroContentSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

/* --- TRANSICIÓN: Fade suave entre slides --- */
#heroSlider.carousel-fade .carousel-item {
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- PERFORMANCE: GPU acceleration --- */
#heroSlider .carousel-item,
#heroSlider .hero-nav-btn,
#heroSlider .hero-indicator,
#heroSlider .hero-noticia-cta,
#heroSlider .hero-anmat-cta,
#heroSlider .hero-asociate-cta {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* --- RESPONSIVE: Touch-friendly mobile --- */
@media (max-width: 768px) {
  #heroSlider .carousel-item {
    min-height: 80vh;
  }

  #heroSlider h2 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  #heroSlider p {
    font-size: 1rem;
  }

  /* Controles siempre visibles en mobile */
  #heroSlider .hero-nav-btn {
    opacity: 0.75;
    width: 46px;
    height: 46px;
  }

  #heroSlider .carousel-control-prev.hero-nav-btn {
    left: 0.75rem;
  }

  #heroSlider .carousel-control-next.hero-nav-btn {
    right: 0.75rem;
  }

  #heroSlider .hero-indicators {
    bottom: 1.25rem;
  }

  /* Dots más grandes para touch */
  #heroSlider .hero-indicator {
    width: 12px;
    height: 12px;
  }

  #heroSlider .hero-indicator.active {
    width: 36px;
  }
}

@media (max-width: 480px) {
  #heroSlider .carousel-item {
    min-height: 75vh;
  }

  #heroSlider .hero-noticia-cta,
  #heroSlider .hero-anmat-cta,
  #heroSlider .hero-asociate-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* --- ACCESIBILIDAD: Focus states --- */
#heroSlider .hero-nav-btn:focus-visible,
#heroSlider .hero-indicator:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

#heroSlider .hero-slide-link:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 4px;
}

/* --- MOTION: Respetar preferencias del usuario --- */
@media (prefers-reduced-motion: reduce) {
  #heroSlider .carousel-item,
  #heroSlider .hero-nav-btn,
  #heroSlider .hero-indicator,
  #heroSlider .hero-noticia-cta,
  #heroSlider .hero-anmat-cta,
  #heroSlider .hero-asociate-cta,
  #heroSlider [class*="hero-"] {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================
   HERO SLIDE 3 - GRID DE ALERTAS ANMAT
   ========================================= */

.hero-anmat-grid-slide {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  overflow: hidden;
}

/* Patrón de fondo decorativo */
.hero-anmat-grid-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(45deg, 
      transparent, 
      transparent 35px, 
      rgba(255,255,255,.02) 35px, 
      rgba(255,255,255,.02) 70px
    );
  pointer-events: none;
}

/* Header del slide */
.hero-anmat-grid-header {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeInDown 0.8s ease-out;
}

.hero-anmat-grid-header .hero-anmat-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.hero-anmat-grid-header .hero-anmat-icon i {
  font-size: 2.5rem;
  color: #fff;
  animation: pulse 2s ease-in-out infinite;
}

.hero-anmat-grid-titulo {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

.hero-anmat-grid-subtitulo {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 400;
}

/* Container de las 3 cards */
.hero-anmat-cards-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Card individual */
.hero-anmat-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out backwards;
}

.hero-anmat-card:nth-child(1) { animation-delay: 0.1s; }
.hero-anmat-card:nth-child(2) { animation-delay: 0.2s; }
.hero-anmat-card:nth-child(3) { animation-delay: 0.3s; }

/* Borde superior decorativo */
.hero-anmat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #dc3545, #fd7e14);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.hero-anmat-card:hover::before {
  transform: scaleX(1);
}

.hero-anmat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* Badge de la card */
.hero-anmat-card-header {
  margin-bottom: 20px;
}

.hero-anmat-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.hero-anmat-card-badge::before {
  content: '⚠';
  font-size: 1rem;
}

/* Título de la card */
.hero-anmat-card-titulo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 15px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 60px;
}

/* Fecha de la card */
.hero-anmat-card-fecha {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
  font-weight: 500;
}

.hero-anmat-card-fecha i {
  color: #dc3545;
  margin-right: 6px;
}

/* Footer del slide */
.hero-anmat-grid-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 40px;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-anmat-grid-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-anmat-grid-cta:hover {
  background: #fff;
  color: #dc3545;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-anmat-grid-cta i {
  transition: transform 0.3s ease;
}

.hero-anmat-grid-cta:hover i {
  transform: translateX(5px);
}

/* =========================================
   RESPONSIVE
   ========================================= */

/* Tablets */
@media (max-width: 992px) {
  .hero-anmat-cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
  }

  .hero-anmat-grid-titulo {
    font-size: 2.2rem;
  }

  .hero-anmat-card {
    padding: 25px;
  }

  .hero-anmat-card-titulo {
    font-size: 1rem;
    min-height: auto;
    -webkit-line-clamp: 2;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .hero-anmat-grid-slide {
    padding: 40px 20px;
  }

  .hero-anmat-grid-header {
    margin-bottom: 30px;
  }

  .hero-anmat-grid-header .hero-anmat-icon {
    width: 60px;
    height: 60px;
  }

  .hero-anmat-grid-header .hero-anmat-icon i {
    font-size: 2rem;
  }

  .hero-anmat-grid-titulo {
    font-size: 1.8rem;
  }

  .hero-anmat-grid-subtitulo {
    font-size: 0.95rem;
  }

  .hero-anmat-card {
    padding: 20px;
  }

  .hero-anmat-card-titulo {
    font-size: 0.95rem;
  }

  .hero-anmat-grid-cta {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* =========================================
   ANIMACIONES
   ========================================= */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}


/* === FIX: Centrado forzado de slides hero === */
#heroSlider .carousel-item {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#heroSlider .carousel-item > * {
  width: 100%;
}

/* Asegurar que los enlaces ocupen todo el espacio */
.hero-slide-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  min-height: 90vh;
}