/* ==========================================================================
   PORTAL ASEY - ESTILOS CORPORATIVOS MODERNOS (5 BLOQUES OFICIALES)
   ========================================================================== */

/* --- RESET & GLOBALS --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  overflow-y: auto;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-gray-50);
  color: var(--color-dark-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  overflow-y: auto;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   BLOQUE 1: HEADER INSTITUCIONAL (CINTILLO + NAVBAR CON BRACKETS)
   ========================================================================== */

/* Cintillo Superior Rojo Institucional (Color Sólido Oficial) */
.topbar {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 100;
}

.topbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--topbar-height);
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.topbar-social a:hover {
  color: var(--color-white);
  transform: translateY(-1px);
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.9;
}

/* Navbar Principal */
.header-main {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 99;
  border-bottom: 1px solid var(--color-gray-200);
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

/* Logo Oficial ASEY */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-official-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-official-img {
  transform: scale(1.02);
}

/* Menú de Navegación Institucional Oficial (Limpio, Elegante y Minimalista) */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #1e293b;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color 0.25s ease, background-color 0.25s ease;
}

/* Indicador Inferior Elegante (Subrayado Animado Institucional Suave) */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2.5px;
  background: var(--color-primary);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

/* Hover suave y dinámico */
.nav-link:hover {
  color: var(--color-primary);
  background: rgba(219, 39, 35, 0.04);
}

.nav-item:hover .nav-link::after {
  transform: scaleX(1);
}

/* Estado Activo Limpio */
.nav-item.active .nav-link {
  color: var(--color-primary);
  font-weight: 700;
  background: transparent;
}

.nav-item.active .nav-link::after {
  transform: scaleX(1);
  background: var(--color-primary);
}

.nav-link svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  opacity: 0.55;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease, color 0.25s ease;
}

.nav-item:hover .nav-link svg,
.nav-item.active .nav-link svg {
  opacity: 1;
  color: var(--color-primary);
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown Menu Multinivel Flotante de Alta Gama Institucional */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 275px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.32s ease;
  z-index: 1000;
  margin-top: 6px;
}

/* Puente invisible que evita perder el hover */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-dark-800);
  border-radius: var(--radius-sm);
  transition: background-color 0.22s ease, color 0.22s ease, padding-left 0.22s ease;
}

.dropdown-item:hover {
  background-color: var(--color-primary-subtle);
  color: var(--color-primary);
  padding-left: 17px;
  font-weight: 700;
}

/* --- SUBMENÚS LATERALES (SEGUNDO NIVEL / FLYOUT) --- */
.dropdown-sub-wrapper {
  position: relative;
  width: 100%;
}

.dropdown-item.sub-trigger {
  cursor: pointer;
}

.dropdown-item.sub-trigger .sub-arrow {
  width: 14px;
  height: 14px;
  margin-left: auto;
  stroke-width: 2.2;
  opacity: 0.55;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.22s ease, opacity 0.22s ease;
}

.dropdown-sub-wrapper:hover .sub-arrow {
  opacity: 1;
  color: var(--color-primary);
  transform: translateX(3px);
}

.dropdown-sub-wrapper:hover > .dropdown-item.sub-trigger {
  background-color: var(--color-primary-subtle);
  color: var(--color-primary);
  padding-left: 17px;
  font-weight: 600;
}

/* Panel flotante del submenú lateral */
.submenu-flyout {
  position: absolute;
  top: -6px;
  left: 100%;
  margin-left: 6px;
  min-width: 275px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.32s ease;
  z-index: 1010;
}

/* Puente invisible entre el ítem padre y el submenú lateral para viaje fluido del ratón */
.submenu-flyout::before {
  content: '';
  position: absolute;
  top: -12px;
  bottom: -12px;
  left: -14px;
  width: 16px;
  background: transparent;
}

.dropdown-sub-wrapper:hover > .submenu-flyout {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.submenu-item {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-dark-800);
  border-radius: var(--radius-sm);
  transition: background-color 0.22s ease, color 0.22s ease, padding-left 0.22s ease;
}

.submenu-item:hover {
  background-color: var(--color-primary-subtle);
  color: var(--color-primary);
  padding-left: 17px;
  font-weight: 700;
}

/* =========================================================================
   VARIANTE DE NAVEGACIÓN: TRANSICIÓN WORDPRESS (HEREDADA Y HOMOLOGADA)
   Permite alternar entre el diseño Moderno 2.0 y el diseño de transición WP
   Activación: agregar la clase 'nav-transicion-wp' en <ul class="nav-menu">
   ========================================================================= */

.nav-menu.nav-transicion-wp {
  gap: 18px;
}

.nav-menu.nav-transicion-wp .nav-item {
  position: relative;
}

.nav-menu.nav-transicion-wp .nav-link {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 400 !important; /* Regular sin negrita */
  letter-spacing: 0.35px !important;
  text-transform: uppercase !important;
  color: #4a6b82 !important; /* Azul pizarra característico de WordPress */
  padding: 6px 12px !important;
  border-radius: 0 !important;
  background: transparent !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: color 0.3s ease !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

/* Estado Hover y Activo: Texto rojo institucional delgado */
.nav-menu.nav-transicion-wp .nav-item:hover > .nav-link,
.nav-menu.nav-transicion-wp .nav-item.active > .nav-link {
  color: #db2723 !important;
  background: transparent !important;
  font-weight: 400 !important;
}

/* Corchete esquinero superior izquierdo ┌ con animación fina y suave */
.nav-menu.nav-transicion-wp .nav-link::before {
  content: '' !important;
  position: absolute !important;
  top: 0px !important;
  left: 1px !important;
  width: 8px !important;
  height: 8px !important;
  border-top: 2px solid #db2723 !important;
  border-left: 2px solid #db2723 !important;
  border-right: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  transform: translate(-3px, -3px) !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Corchete esquinero inferior derecho ┘ con animación fina y suave */
.nav-menu.nav-transicion-wp .nav-link::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  bottom: 0px !important;
  right: 1px !important;
  top: auto !important;
  left: auto !important;
  width: 8px !important;
  height: 8px !important;
  background: transparent !important;
  border-bottom: 2px solid #db2723 !important;
  border-right: 2px solid #db2723 !important;
  border-top: none !important;
  border-left: none !important;
  border-radius: 0 !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  transform: translate(3px, 3px) !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Activación de ambos corchetes ┌ y ┘ al hacer hover o estar activo */
.nav-menu.nav-transicion-wp .nav-item:hover > .nav-link::before,
.nav-menu.nav-transicion-wp .nav-item.active > .nav-link::before,
.nav-menu.nav-transicion-wp .nav-item:hover > .nav-link::after,
.nav-menu.nav-transicion-wp .nav-item.active > .nav-link::after {
  opacity: 1 !important;
  display: block !important;
  transform: translate(0, 0) !important;
}

/* Animación de flechas: nacen hacia abajo ˅ y al pasar el mouse rotan de lado > */
.nav-menu.nav-transicion-wp .nav-link svg,
.nav-menu.nav-transicion-wp .sub-arrow {
  width: 11px !important;
  height: 11px !important;
  stroke-width: 2.2 !important;
  color: #4a6b82 !important;
  opacity: 0.75 !important;
  transform: rotate(0deg) !important; /* Nace apuntando hacia abajo ˅ */
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.28s ease, opacity 0.28s ease !important;
  transform-origin: center center !important;
}

/* Al pasar el mouse: rota fluidamente hacia el lado derecho > */
.nav-menu.nav-transicion-wp .nav-item:hover > .nav-link svg,
.nav-menu.nav-transicion-wp .dropdown-sub-wrapper:hover .sub-arrow {
  color: #db2723 !important;
  opacity: 1 !important;
  transform: rotate(-90deg) !important; /* Gira hacia el lado derecho > */
}

/* Dropdown Menu alineado a la izquierda del elemento padre con apertura suave */
.nav-menu.nav-transicion-wp .dropdown-menu {
  left: 0 !important;
  min-width: 260px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0 0 3px 3px !important;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12) !important;
  padding: 6px 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(8px) !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease !important;
}

.nav-menu.nav-transicion-wp .nav-item:hover > .dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Elementos dentro del Dropdown: delgados y sin negrita */
.nav-menu.nav-transicion-wp .dropdown-item {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 400 !important; /* Delgado sin negrita */
  color: #4a6b82 !important;
  text-transform: uppercase !important;
  padding: 8px 18px !important;
  border-radius: 0 !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: color 0.2s ease !important;
}

.nav-menu.nav-transicion-wp .dropdown-item:hover,
.nav-menu.nav-transicion-wp .dropdown-sub-wrapper:hover > .dropdown-item {
  color: #db2723 !important;
  background: transparent !important;
  text-decoration: underline !important;
  padding-left: 18px !important;
}

/* Submenú lateral (Flyout nivel 2) con apertura suave */
.nav-menu.nav-transicion-wp .submenu-flyout {
  top: -1px !important;
  left: 100% !important;
  margin-left: 0 !important;
  min-width: 260px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0 0 3px 3px !important;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12) !important;
  padding: 6px 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-6px) !important;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease !important;
}

.nav-menu.nav-transicion-wp .dropdown-sub-wrapper:hover > .submenu-flyout {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}

.nav-menu.nav-transicion-wp .submenu-item {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 400 !important; /* Delgado sin negrita */
  color: #4a6b82 !important;
  text-transform: uppercase !important;
  padding: 8px 18px !important;
  background: transparent !important;
  transition: color 0.2s ease !important;
}

.nav-menu.nav-transicion-wp .submenu-item:hover {
  color: #db2723 !important;
  background: transparent !important;
  text-decoration: underline !important;
}

/* Botón Destacado: Agendar Cita (Gradiente y Sombra Oficial ASEY) */
.btn-action-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(219, 39, 35, 0.28);
  transition: all var(--transition-normal);
}

.btn-action-header:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  box-shadow: 0 6px 20px rgba(219, 39, 35, 0.4);
  transform: translateY(-2px);
}

/* Variante Transición WP: Botón Gris Carbón Rectangular Oficial */
.nav-menu.nav-transicion-wp ~ .header-actions .btn-action-header,
.nav-header:has(.nav-transicion-wp) .btn-action-header {
  background: #616161 !important;
  color: #ffffff !important;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 600 !important;
  letter-spacing: 0.25px !important;
  padding: 6px 14px !important;
  border-radius: 4px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18) !important;
  transform: none !important;
  gap: 7px !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-menu.nav-transicion-wp ~ .header-actions .btn-action-header:hover,
.nav-header:has(.nav-transicion-wp) .btn-action-header:hover {
  background: #4a4a4a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28) !important;
  transform: none !important;
}

.nav-menu.nav-transicion-wp ~ .header-actions .btn-action-header svg,
.nav-header:has(.nav-transicion-wp) .btn-action-header svg {
  width: 14px !important;
  height: 14px !important;
  stroke-width: 2 !important;
  color: #ffffff !important;
  opacity: 0.95 !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle-btn {
  display: none;
}

.mobile-drawer-overlay {
  display: none;
}

.mobile-nav-drawer {
  display: none;
}

/* ==========================================================================
   BLOQUE 2: HERO / FACHADA INSTITUCIONAL (ESTILO ESONIX & BRYN)
   ========================================================================== */

.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(185, 28, 28, 0.15) 0%, transparent 40%),
              linear-gradient(135deg, #090e17 0%, #111a2e 100%);
  color: var(--color-white);
  padding: 80px 0 140px 0;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
}

/* Fondo decorativo con silueta y ondas sutiles */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(185, 28, 28, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-full);
  color: #fca5a5;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.2px;
  color: var(--color-white);
  margin-bottom: 18px;
}

.hero-title .title-highlight,
.hero-title span.title-highlight {
  color: var(--color-primary);
  background: none;
  -webkit-text-fill-color: initial;
}

.hero-description {
  font-size: 1.0625rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4);
  transition: all var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(185, 28, 28, 0.6);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Card Visual Fachada / Noticia Destacada (Estilo Esonix) */
.hero-visual {
  position: relative;
}

.hero-card-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  background-color: var(--color-dark-800);
}

.hero-card-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  filter: grayscale(40%) contrast(110%);
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.hero-card-frame:hover .hero-card-img {
  transform: scale(1.03);
  filter: grayscale(10%) contrast(105%);
}

.hero-floating-notice {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}

.floating-notice-badge {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  flex-shrink: 0;
}

.floating-notice-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.3;
}

/* ==========================================================================
   BLOQUE 3: IDENTIDAD INSTITUCIONAL (SECCIÓN COMPLETA CON REALCE)
   ========================================================================== */

.identity-section {
  position: relative;
  margin-top: 0;
  padding: 100px 0 90px 0;
  background-color: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
  z-index: 10;
}

.identity-section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.identity-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-200);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.identity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-gray-200);
  transition: background var(--transition-fast);
}

.identity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(185, 28, 28, 0.2);
}

.identity-card:hover::before {
  background: var(--color-primary);
}

/* Card destacada con fondo rojo oficial */
.identity-card.featured {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  border: none;
}

.identity-card.featured::before {
  display: none;
}

.identity-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--transition-fast);
}

.identity-card.featured .identity-icon-box {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.identity-card:hover .identity-icon-box {
  transform: scale(1.1);
}

.identity-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-dark-900);
}

.identity-card.featured .identity-title {
  color: var(--color-white);
}

.identity-desc {
  font-size: 0.9375rem;
  color: var(--color-gray-500);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.identity-card.featured .identity-desc {
  color: rgba(255, 255, 255, 0.88);
}

.identity-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
}

.identity-card.featured .identity-link {
  color: var(--color-white);
}

.identity-link:hover {
  gap: 10px;
}

/* ==========================================================================
   BLOQUE 4: MOSAICO 3x3 ("INFORMACIÓN PARA CONSULTA" / ACCESOS DIRECTOS)
   ========================================================================== */

.consult-section {
  padding: 50px 0 80px 0;
  background-color: var(--color-gray-50);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px auto;
}

.section-subtitle {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.125rem;
  font-weight: 800;
  color: var(--color-dark-900);
  line-height: 1.2;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 16px auto 0 auto;
  border-radius: var(--radius-full);
}

/* Grid 3x3 de Tarjetas Oscuras Corporativas */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Tarjeta 3x3 centrada con fondo fotográfico traslúcido y línea roja inferior de acento */
.mosaic-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(22, 27, 34, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 36px 24px 32px 24px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 225px;
  text-decoration: none;
}

/* Línea roja inferior de acento (como en la referencia) */
.mosaic-card-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--color-primary, #db2723);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
}

.mosaic-card-link:hover::after,
.mosaic-card-link.active::after {
  transform: scaleX(1);
}

/* Imagen de fondo traslúcida y nítida (sin difuminado pesado, textura visible y clara) */
.mosaic-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.52;
  filter: contrast(1.1) brightness(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, filter 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

/* Capa de contraste traslúcida suave (permite ver la imagen de fondo con claridad) */
.mosaic-card-smoke {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.38) 0%,
    rgba(15, 23, 42, 0.72) 100%
  );
  z-index: 2;
  transition: background 0.35s ease;
  pointer-events: none;
}

/* Modos de degradado / filtro de fondo personalizables */
.mosaic-card-smoke.smoke-lateral {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.35) 100%) !important;
}
.mosaic-card-smoke.smoke-radial {
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.82) 100%) !important;
}
.mosaic-card-smoke.smoke-sutil {
  background: rgba(15, 23, 42, 0.35) !important;
}
.mosaic-card-smoke.smoke-ninguno {
  background: transparent !important;
}

.mosaic-card-link:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.55), 0 0 24px rgba(219, 39, 35, 0.25);
}

.mosaic-card-link:hover .mosaic-card-bg {
  transform: scale(1.06);
  opacity: 0.75;
  filter: contrast(1.15) brightness(1.02);
}

.mosaic-card-link:hover .mosaic-card-smoke {
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.25) 0%,
    rgba(15, 23, 42, 0.62) 100%
  );
}

.mosaic-card-link:hover .mosaic-card-smoke.smoke-lateral {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.22) 100%) !important;
}
.mosaic-card-link:hover .mosaic-card-smoke.smoke-radial {
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.72) 100%) !important;
}
.mosaic-card-link:hover .mosaic-card-smoke.smoke-sutil {
  background: rgba(15, 23, 42, 0.2) !important;
}
.mosaic-card-link:hover .mosaic-card-smoke.smoke-ninguno {
  background: rgba(0, 0, 0, 0.08) !important;
}

/* Ícono central superior */
.mosaic-center-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 3;
  color: #ffffff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
  transition: transform 0.3s ease, color 0.3s ease;
}

.mosaic-center-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.85;
}

.mosaic-card-link:hover .mosaic-center-icon {
  transform: translateY(-2px) scale(1.08);
}

.mosaic-card-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mosaic-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 8px 0;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

.mosaic-card-subtitle {
  font-size: 0.8125rem;
  color: #e2e8f0;
  line-height: 1.45;
  margin: 0;
  text-align: center;
  max-width: 320px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   BANNER INTERMEDIO: DENUNCIA CIUDADANA (CALL TO ACTION)
   ========================================================================== */
.denuncia-banner-section {
  padding: 45px 0 25px 0;
  position: relative;
}

.denuncia-banner-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d222a 0%, #10141a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 38px -8px rgba(0, 0, 0, 0.55), 0 0 30px rgba(219, 39, 35, 0.15);
  padding: 34px 50px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.denuncia-banner-card:hover {
  transform: translateY(-3px);
  border-color: rgba(219, 39, 35, 0.5);
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.65), 0 0 40px rgba(219, 39, 35, 0.3);
}

/* Ondas / Anillos vectoriales SVG */
.denuncia-waves-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

/* Resplandor radial rojizo sutil */
.denuncia-banner-glow {
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 240px;
  background: radial-gradient(circle, rgba(219, 39, 35, 0.22) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.denuncia-banner-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.denuncia-text-col {
  flex: 1;
  max-width: 760px;
}

.denuncia-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
  line-height: 1.22;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.denuncia-btn-col {
  flex-shrink: 0;
}

.denuncia-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #e53e3e 0%, #db2723 50%, #b91c1c 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 16px 32px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(219, 39, 35, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.denuncia-btn-cta svg {
  transition: transform 0.25s ease;
}

.denuncia-btn-cta:hover {
  background: linear-gradient(135deg, #ef4444 0%, #e53e3e 50%, #dc2626 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(219, 39, 35, 0.65);
  color: #ffffff !important;
}

.denuncia-btn-cta:hover svg {
  transform: translateX(4px);
}

/* Responsividad para Banner CTA */
@media (max-width: 992px) {
  .denuncia-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 22px;
  }
  .denuncia-text-col {
    max-width: 100%;
  }
  .denuncia-title {
    font-size: 1.55rem;
  }
}

@media (max-width: 580px) {
  .denuncia-banner-card {
    padding: 28px 20px;
  }
  .denuncia-title {
    font-size: 1.35rem;
  }
  .denuncia-btn-cta {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.92rem;
  }
}

/* ==========================================================================
   BLOQUE 5: SITIOS DE INTERÉS (LOGOS) + FOOTER INSTITUCIONAL
   ========================================================================== */

/* Sitios de Interés */
.partners-section {
  padding: 60px 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-gray-200);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.partner-card {
  background: var(--color-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 24px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 150px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05);
}

.partner-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--color-primary);
  transition: width 0.25s ease, left 0.25s ease;
  transform: translateX(-50%);
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12);
  border-color: rgba(219, 39, 35, 0.35);
}

.partner-card:hover::after {
  width: 100%;
}

.partner-logo-wrap {
  height: 68px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 4px 8px;
}

.partner-logo-img {
  max-height: 60px;
  max-width: 175px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: contrast(1.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-card:hover .partner-logo-img {
  transform: scale(1.06);
}

.partner-logo-placeholder {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-dark-800);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.partner-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
  transition: color var(--transition-fast);
}

.partner-card:hover .partner-name {
  color: var(--color-primary);
}

/* Responsividad para Sitios de Interés */
@media (max-width: 992px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer Corporativo ASEY (Ubicación, Contacto y Mapa) */
.footer-main {
  background: radial-gradient(circle at 80% 20%, #1e1e24 0%, #0a0a0c 100%);
  color: #f1f5f9;
  padding: 60px 0 0 0;
  border-top: 4px solid var(--color-primary);
  position: relative;
  overflow: hidden;
}

.footer-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 50px;
}

.footer-col-section {
  display: flex;
  flex-direction: column;
}

.footer-section-title {
  color: #db2723;
  font-family: var(--font-heading, 'Roboto', sans-serif);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  text-align: center;
}

.footer-location-info {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 24px;
}

.footer-location-info p {
  margin-bottom: 8px;
}

.footer-location-info strong {
  color: #ffffff;
}

.footer-map-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #111;
  height: 290px;
}

.footer-map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Formulario de Contacto */
.footer-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.footer-form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 6px;
}

.footer-form-label .req {
  color: #ef4444;
}

.footer-input,
.footer-textarea {
  width: 100%;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px 14px;
  font-family: var(--font-body, 'Roboto', sans-serif);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.footer-input:focus,
.footer-textarea:focus {
  border-color: #db2723;
  box-shadow: 0 0 0 3px rgba(219, 39, 35, 0.25);
}

.footer-confidential-note {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: -6px;
}

.footer-textarea {
  resize: vertical;
  min-height: 110px;
}

.char-counter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: -8px;
}

.char-min-note {
  color: #ef4444;
  font-weight: 600;
}

.btn-contact-send {
  align-self: flex-start;
  background: #475569;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-contact-send:hover:not(:disabled) {
  background: #db2723;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(219, 39, 35, 0.35);
}

.btn-contact-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Alertas de Feedback */
.contact-feedback-box {
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

.contact-feedback-box.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #86efac;
}

.contact-feedback-box.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

/* Barra Inferior Roja Oficial */
.footer-bottom-bar {
  background: #db2723;
  color: #ffffff;
  padding: 16px 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-links a {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social-links a:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-scroll-top {
  background: #e11d48;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-scroll-top:hover {
  background: #be123c;
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE-FIRST ADAPTATIONS)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .identity-grid {
    grid-template-columns: 1fr;
  }
  .mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .topbar-contact {
    display: none;
  }
  .nav-menu {
    display: none;
  }
  /* Cintillo superior ultra delgado en móvil (26px) */
  .topbar {
    border-bottom: none;
  }
  .topbar-container {
    min-height: 26px;
    padding-top: 2px;
    padding-bottom: 2px;
  }
  .topbar-social {
    gap: 12px;
  }
  .topbar-social svg {
    width: 12px;
    height: 12px;
  }

  /* Encabezado blanco compacto en móvil (52px en vez de 70px) */
  .header-main,
  .header-container {
    height: 52px;
  }
  .logo-official-img {
    height: 32px;
  }
  .header-actions {
    gap: 8px;
  }
  .btn-action-header {
    display: none;
  }

  /* Slider Responsivo: Pantalla completa al ras y puntos en la parte inferior */
  .hero-slider-master {
    height: calc(100vh - 78px);
    height: calc(100svh - 78px);
    height: calc(100dvh - 78px);
    min-height: calc(100svh - 78px);
    max-height: none;
    padding: 0;
    display: flex;
    align-items: center;
  }
  .slide-content-box {
    max-width: 100%;
    padding-top: 10px;
    padding-bottom: 52px;
  }
  .slider-side-dots {
    top: auto;
    bottom: 16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 8px;
    z-index: 30;
    background: rgba(9, 14, 23, 0.65);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .hero-description {
    font-size: 0.875rem;
    line-height: 1.45;
    max-width: 100%;
    margin-bottom: 20px;
    color: #e2e8f0;
  }

  /* Botón Hamburguesa Moderno Animado */
  .mobile-toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    gap: 4px;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: all 0.22s ease;
    flex-shrink: 0;
  }

  .mobile-toggle-btn:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-400);
  }

  .hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--color-dark-800);
    border-radius: 2px;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease;
    transform-origin: center;
  }

  /* Animación a 'X' cuando el menú está abierto */
  .mobile-toggle-btn.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
    background-color: var(--color-primary);
  }

  .mobile-toggle-btn.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-toggle-btn.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
    background-color: var(--color-primary);
  }

  /* Overlay de fondo con desenfoque */
  .mobile-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
  }

  .mobile-drawer-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  /* Cajón Lateral Móvil (Off-Canvas Drawer) */
  .mobile-nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 360px;
    background: #ffffff;
    z-index: 1201;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.25);
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
  }

  .mobile-nav-drawer.active {
    transform: translateX(0);
  }

  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-gray-200);
    background: #ffffff;
    flex-shrink: 0;
  }

  .drawer-logo-img {
    height: 38px;
    width: auto;
  }

  .drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
    color: var(--color-dark-800);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .drawer-close-btn:hover {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    border-color: var(--color-primary);
  }

  .drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-nav-item {
    border-bottom: 1px solid var(--color-gray-100);
    padding-bottom: 4px;
  }

  .mobile-nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 8px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #1e293b;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-nav-link.active,
  .mobile-nav-link:hover {
    color: var(--color-primary);
    font-weight: 700;
    background: var(--color-primary-subtle);
  }

  .chevron-accordion {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--color-gray-400);
  }

  .accordion-item.open .chevron-accordion {
    transform: rotate(180deg);
    color: var(--color-primary);
  }

  .accordion-panel {
    display: none;
    padding: 6px 0 10px 12px;
    flex-direction: column;
    gap: 2px;
    border-left: 2px solid var(--color-gray-200);
    margin-left: 8px;
    margin-top: 2px;
  }

  .accordion-item.open .accordion-panel {
    display: flex;
  }

  .drawer-sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-dark-700);
    background: transparent;
    border: none;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .drawer-sublink:hover {
    color: var(--color-primary);
    font-weight: 700;
    background: var(--color-primary-subtle);
    padding-left: 14px;
  }

  .accordion-nested-group {
    margin: 2px 0;
  }

  .accordion-nested-toggle {
    width: 100%;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-dark-800);
  }

  .chevron-nested {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
    transition: transform 0.25s ease;
    color: var(--color-gray-400);
  }

  .accordion-nested-group.open .chevron-nested {
    transform: rotate(180deg);
    color: var(--color-primary);
  }

  .accordion-nested-panel {
    display: none;
    padding: 4px 0 6px 12px;
    flex-direction: column;
    gap: 2px;
    border-left: 2px solid var(--color-primary-light);
    margin-left: 8px;
  }

  .accordion-nested-group.open .accordion-nested-panel {
    display: flex;
  }

  .drawer-nested-sublink {
    padding: 7px 10px;
    font-family: var(--font-heading);
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--color-dark-600);
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  .drawer-nested-sublink:hover {
    color: var(--color-primary);
    font-weight: 700;
    background: var(--color-primary-subtle);
    padding-left: 14px;
  }

  .drawer-action-box {
    margin-top: 4px;
  }

  .btn-drawer-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(219, 39, 35, 0.28);
    transition: all 0.2s ease;
  }

  .btn-drawer-action:hover {
    box-shadow: 0 6px 18px rgba(219, 39, 35, 0.4);
    transform: translateY(-1px);
  }

  .drawer-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: var(--color-gray-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-gray-200);
  }

  .drawer-contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.775rem;
    color: var(--color-gray-500);
    transition: color 0.2s ease;
  }

  .drawer-contact-row:hover {
    color: var(--color-primary);
  }

  .mosaic-grid {
    grid-template-columns: 1fr;
  }
  .partners-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo-official-img {
    height: 38px;
  }
}

/* ==========================================================================
   CARCASA INSTITUCIONAL: VISTAS INTERNAS, BREADCRUMBS Y CONTENIDO
   ========================================================================== */
.page-banner-hero {
  position: relative;
  background: linear-gradient(135deg, #0b1120 0%, #1e293b 60%, #3f0d0c 100%);
  color: #ffffff;
  padding: 48px 0 36px 0;
  border-bottom: 3px solid var(--color-primary);
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.2);
}

.page-banner-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(219, 39, 35, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.page-banner-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.2;
}

.page-banner-subtitle {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 800px;
  margin: 0;
  line-height: 1.5;
}

/* Breadcrumb Institucional */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.825rem;
  color: #94a3b8;
  margin-top: 6px;
}

.breadcrumb-nav a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: #fca5a5;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #64748b;
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
}

/* Contenedor Principal de Vista */
.page-main-wrapper {
  background: var(--color-gray-50);
  min-height: 55vh;
  padding: 48px 0 64px 0;
}

.content-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  margin-bottom: 24px;
}

.content-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark-800);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}

.content-card-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .page-banner-hero {
    padding: 32px 0 24px 0;
  }
  .page-banner-title {
    font-size: 1.75rem;
  }
  .page-main-wrapper {
    padding: 28px 0 40px 0;
  }
  .content-card {
    padding: 20px;
  }
}

