/*
Theme Name: Falucho Alz
Theme URI: https://alzheimer.org.ar
Author: iFalucho
Description: Tema personalizado para el sitio de Alzheimer Argentina, migrado desde el sitio estatico original (HTML/CSS/JS).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: faluchoalz
*/

/* ==================================================
   TOKENS DE MARCA — Alzheimer Argentina
   ================================================== */

:root {
  /* Paleta oficial */
  --navy: #0d2b45;
  --navy-rgb: 13, 43, 69;
  --blue: #3d6ea8;
  --blue-rgb: 61, 110, 168;
  --sky: #8fbce6;
  --cream: #f5f5f0;
  --gold: #f4c542;
  --gold-rgb: 244, 197, 66;
  --slate: #6b7280;
  --white: #ffffff;

  /* Derivados (mismo matiz, distinta intensidad) */
  --line: rgba(13, 43, 69, 0.12);
  --line-soft: rgba(13, 43, 69, 0.07);
  --ink-soft: rgba(13, 43, 69, 0.72);
  --blue-hover: #325a8a;
  --gold-hover: #dfb23c;

  /* Tipografía (según manual de marca) */
  --font-display: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Radios */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Sombras (con tinte navy, nunca planas) */
  --shadow-sm: 0 2px 10px rgba(var(--navy-rgb), 0.08);
  --shadow-md: 0 16px 32px -12px rgba(var(--navy-rgb), 0.2),
    0 4px 10px rgba(var(--navy-rgb), 0.08);
  --shadow-lg: 0 30px 60px -16px rgba(var(--navy-rgb), 0.26),
    0 10px 20px rgba(var(--navy-rgb), 0.1);

  /* Textura de ruido sutil para superficies oscuras */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Breakpoints — escala única del sitio.
     CSS no permite var() dentro de @media, así que estos valores no son
     funcionales: son la fuente de verdad que hay que copiar a mano. Toda
     regla @media nueva debe usar uno de estos 6 números, nunca uno propio.
       --bp-nav  1180px  Header: colapsa a menú hamburguesa (excepción: 8
                          links + CTA necesitan más aire que un breakpoint
                          de contenido normal).
       --bp-xl    980px  Desktop chico / tablet horizontal.
       --bp-lg    860px  Tablet: grids de 2 columnas y layouts lado a lado
                          pasan a 1 columna / apilados.
       --bp-md    720px  Tablet vertical / mobile grande: toolbars y barras
                          de acciones pasan de fila a columna.
       --bp-sm    640px  Mobile: listas, headers de sección y footers
                          pasan a columna.
       --bp-xs    480px  Mobile chico: ajustes finos de padding/tamaño.
  */
  --bp-nav: 1180px;
  --bp-xl: 980px;
  --bp-lg: 860px;
  --bp-md: 720px;
  --bp-sm: 640px;
  --bp-xs: 480px;
}

/* ==================================================
   RESET & BASE
   ================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--navy);
  background-color: var(--cream);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
  position: relative;
}

section {
  padding: var(--space-2xl) 0;
}

section h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin-bottom: var(--space-md);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================================================
   UTILIDADES
   ================================================== */

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1200;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  transition: top 0.25s ease;
}

.skip-link:focus {
  top: 16px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.eyebrow--invert {
  color: var(--sky);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Revelado al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Separador con motivo floral */

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto var(--space-xl);
  max-width: 320px;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-divider svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--blue);
}

.section-divider .divider-core {
  fill: var(--gold);
}

/* Botones */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(var(--blue-rgb), 0.55);
}

.btn-primary:hover {
  background-color: var(--blue-hover);
  box-shadow: 0 14px 30px -8px rgba(var(--blue-rgb), 0.6);
}

.btn-accent {
  background-color: var(--gold);
  color: var(--navy);
  box-shadow: 0 10px 24px -10px rgba(var(--gold-rgb), 0.7);
}

.btn-accent:hover {
  background-color: var(--gold-hover);
  box-shadow: 0 14px 30px -10px rgba(var(--gold-rgb), 0.75);
}

.btn-outline {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn-outline:hover {
  background-color: rgba(var(--navy-rgb), 0.06);
  border-color: rgba(var(--navy-rgb), 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  position: relative;
}

.btn-link::after {
  content: "→";
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-link:hover::after {
  transform: translateX(4px);
}

.btn-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn-link:hover::before {
  transform: scaleX(1);
}

.btn-link--invert {
  color: var(--sky);
}

/* ==================================================
   TOP BAR
   ================================================== */

.top-bar {
  position: relative;
  z-index: 999;
  background-color: var(--navy);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 9px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.top-bar-item:hover,
.top-bar-item:focus-visible {
  color: var(--white);
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: rgba(255, 255, 255, 0.55);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.top-bar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.top-bar-social svg {
  width: 12px;
  height: 12px;
  fill: var(--navy);
}

.top-bar-social a:hover,
.top-bar-social a:focus-visible {
  background-color: var(--sky);
  transform: translateY(-2px);
}

/* ==================================================
   HEADER / NAV
   ================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(245, 245, 240, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  height: clamp(46px, 5.6vw, 60px);
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 26px;
  align-items: center;
}

nav a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  position: relative;
  padding-block: 4px;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 10px 22px !important;
  font-size: 0.88rem !important;
}

.nav-cta::after {
  display: none;
}

nav a[aria-current="page"] {
  color: var(--blue);
}

nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Menú hamburguesa */

.menu-toggle {
  display: none;
  position: relative;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 8px; }
.menu-toggle span:nth-child(3) { top: 16px; }

.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==================================================
   HERO
   ================================================== */

#hero {
  position: relative;
  overflow: hidden;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 150px 0 110px;
  color: var(--white);
  background:
    radial-gradient(ellipse 65% 55% at 85% 12%, rgba(143, 188, 230, 0.28), transparent 60%),
    radial-gradient(ellipse 55% 50% at 8% 92%, rgba(244, 197, 66, 0.12), transparent 65%),
    linear-gradient(160deg, var(--navy) 0%, #16405f 48%, #081a2b 100%);
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-flower {
  position: absolute;
  top: 50%;
  right: -6%;
  transform: translateY(-50%);
  width: min(560px, 52vw);
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}

.hero-flower .petal {
  fill: var(--sky);
  opacity: 0;
  transform: scale(0.3);
  transform-box: fill-box;
  transform-origin: center;
}

.hero-flower .petal-core {
  fill: var(--gold);
  opacity: 0;
  transform: scale(0.3);
  transform-box: fill-box;
  transform-origin: center;
}

.hero-flower .node {
  fill: var(--sky);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-flower .petal {
    animation: bloom 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .hero-flower .petal-core {
    animation: bloom 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.95s;
  }
  .hero-flower .node {
    animation: node-pop 0.6s ease-out forwards, node-pulse 4.5s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-flower .petal,
  .hero-flower .petal-core {
    opacity: 0.85;
    transform: scale(1);
  }
  .hero-flower .node {
    opacity: 0.6;
  }
}

@keyframes bloom {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 0.85; transform: scale(1); }
}

@keyframes node-pop {
  from { opacity: 0; transform: scale(0.2); }
  to { opacity: 0.55; transform: scale(1); }
}

@keyframes node-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.4); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-content .eyebrow {
  margin-bottom: var(--space-md);
}

#hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

#hero h1 span {
  color: var(--sky);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* ==================================================
   MISIÓN
   ================================================== */

#mision {
  padding-top: var(--space-2xl);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.section-header .eyebrow {
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.mission-copy {
  max-width: 760px;
  margin: 0 auto;
}

.mission-copy p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.85;
}

.mission-copy p + p {
  margin-top: var(--space-md);
}

.mission-copy p:first-child {
  font-size: 1.22rem;
  color: var(--navy);
}

.mission-copy strong {
  color: var(--navy);
}

.focus-intro {
  max-width: 760px;
  margin: var(--space-xl) auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
}

.focus-card {
  max-width: 980px;
  margin: var(--space-lg) auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(28px, 4vw, 48px) clamp(28px, 5vw, 56px);
}

.focus-list {
  list-style: none;
  columns: 3;
  column-gap: 44px;
}

.focus-list li {
  position: relative;
  break-inside: avoid;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}

.focus-list li + li {
  margin-top: 15px;
}

.focus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.focus-list li:hover::before {
  background: var(--gold);
  transform: scale(1.3);
}

/* ==================================================
   CTA — CONTACTO
   ================================================== */

#contacto {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(143, 188, 230, 0.16), transparent 55%),
    linear-gradient(160deg, #123454 0%, var(--navy) 55%, #081a2b 100%);
}

#contacto::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
}

#contacto .container {
  position: relative;
  z-index: 1;
}

.cta-card {
  max-width: 640px;
  margin: 0 auto;
}

.cta-card .eyebrow {
  justify-content: center;
  margin-bottom: var(--space-sm);
}

#contacto h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

#contacto p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  max-width: 520px;
  margin: 0 auto var(--space-lg);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.cta-more {
  display: block;
  margin-top: var(--space-lg);
}

.contacto-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: var(--space-xl);
}

.contacto-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.contacto-social svg {
  width: 18px;
  height: 18px;
  fill: var(--navy);
}

.contacto-social a:hover,
.contacto-social a:focus-visible {
  background-color: var(--sky);
  transform: translateY(-3px);
}

/* ==================================================
   FOOTER
   ================================================== */

footer {
  position: relative;
  background-color: var(--cream);
  border-top: 1px solid var(--line);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.footer-brand img {
  height: 42px;
  width: auto;
  display: block;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  list-style: none;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--blue);
}

.footer-nav a[aria-current="page"] {
  color: var(--blue);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(var(--navy-rgb), 0.06);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.footer-social svg {
  width: 15px;
  height: 15px;
  fill: var(--navy);
  transition: fill 0.25s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--blue);
  transform: translateY(-3px);
}

.footer-social a:hover svg,
.footer-social a:focus-visible svg {
  fill: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--slate);
}

.footer-bottom a {
  text-decoration: none;
  color: var(--slate);
  transition: color 0.25s ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
  color: var(--blue);
}

/* ==================================================
   WHATSAPP FLOTANTE
   ================================================== */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px -8px rgba(19, 42, 30, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 34px -8px rgba(19, 42, 30, 0.55);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

/* ==================================================
   RESPONSIVE
   ================================================== */

/* Cada sección del sitio trae su propio bloque @media pegado a sus
   estilos base (no hay una hoja "responsive" separada) — mantené ese
   patrón: es más fácil de tocar cuando el breakpoint vive al lado del
   componente que ajusta. Lo que sí es compartido es la escala de
   breakpoints: usá siempre --bp-nav/xl/lg/md/sm/xs (ver :root, arriba)
   y nunca un valor inventado. */

/* Con 8 secciones + CTA, el menú horizontal necesita bastante aire;
   por debajo de este punto pasa a menú desplegable antes de que
   se apriete o desborde. */
@media (max-width: 1180px) {
  nav {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px 24px 28px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding-block: 10px;
  }

  .nav-cta {
    margin-top: 8px;
  }
}

@media (max-width: 980px) {
  .focus-list {
    columns: 2;
  }
}

@media (max-width: 860px) {
  #hero {
    min-height: auto;
    padding: 130px 0 90px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-content .eyebrow {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-flower {
    opacity: 0.4;
    width: 80vw;
    right: 50%;
    transform: translate(50%, -50%);
  }
}

@media (max-width: 640px) {
  .top-bar-social a:nth-child(n + 4) {
    display: none;
  }

  .focus-list {
    columns: 1;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==================================================
   REVISTAS — ARCHIVO DE PUBLICACIONES
   ================================================== */

body.no-scroll {
  overflow: hidden;
}

/* Encabezado de página (variante compacta del hero) */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 148px 0 132px;
  color: var(--white);
  background:
    radial-gradient(ellipse 60% 60% at 88% 0%, rgba(143, 188, 230, 0.24), transparent 60%),
    radial-gradient(ellipse 50% 50% at 4% 100%, rgba(244, 197, 66, 0.1), transparent 65%),
    linear-gradient(160deg, var(--navy) 0%, #16405f 48%, #081a2b 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.page-hero-content .eyebrow {
  margin-bottom: var(--space-md);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.page-hero h1 span {
  color: var(--sky);
}

.page-hero-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: var(--space-lg);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg) var(--space-xl);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--sky);
}

/* Barra de herramientas: buscador + filtros por década */

.revista-archive {
  position: relative;
  padding: 0 0 var(--space-2xl);
}

.revista-toolbar {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  margin-bottom: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
}

.revista-search {
  position: relative;
  flex: 1 1 280px;
  min-width: 240px;
}

.revista-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--slate);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.revista-search-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 13px 44px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.revista-search-input::placeholder {
  color: var(--slate);
}

.revista-search-input:focus-visible {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}

.revista-search-input::-webkit-search-cancel-button {
  display: none;
}

.revista-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--slate);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.revista-search-clear:hover,
.revista-search-clear:focus-visible {
  background: rgba(var(--navy-rgb), 0.08);
  color: var(--navy);
}

.revista-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.revista-chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease,
    color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.revista-chip:hover {
  border-color: rgba(var(--navy-rgb), 0.3);
  transform: translateY(-1px);
}

.revista-chip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.revista-count {
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: var(--space-lg);
}

/* Grupos por año */

.year-group {
  padding: 0;
  margin-bottom: var(--space-2xl);
}

.year-divider {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: var(--space-lg);
  scroll-margin-top: 110px;
}

.year-divider-line {
  width: 64px;
  height: 1px;
  background: var(--line);
  flex-shrink: 0;
}

.year-divider-label {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin-bottom: 0;
  color: var(--navy);
  white-space: nowrap;
}

.year-divider-count {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  white-space: nowrap;
}

/* Grilla de tapas */

.revista-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px 24px;
  list-style: none;
}

.revista-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.revista-cover {
  position: relative;
  display: block;
  aspect-ratio: 5 / 7;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.revista-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.revista-card:hover .revista-cover,
.revista-card:focus-visible .revista-cover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.revista-card:hover .revista-cover img,
.revista-card:focus-visible .revista-cover img {
  transform: scale(1.07);
}

.revista-card:focus-visible {
  outline: none;
}

.revista-card:focus-visible .revista-cover {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.revista-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--white);
  background: rgba(13, 43, 69, 0.78);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

.revista-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.revista-year {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.revista-issn {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy);
  background: rgba(244, 197, 66, 0.35);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  white-space: nowrap;
}

/* Estado vacío */

.revista-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}

.revista-empty svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--slate);
  stroke-width: 1.6;
  stroke-linecap: round;
  margin-bottom: var(--space-sm);
}

.revista-empty p {
  color: var(--ink-soft);
  margin-bottom: var(--space-sm);
}

/* ==================================================
   LIGHTBOX — VISTA AMPLIADA DE TAPA
   ================================================== */

.revista-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.revista-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 33, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.revista-lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  max-width: 760px;
  max-height: 86vh;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.revista-lightbox.is-open .revista-lightbox-backdrop {
  opacity: 1;
}

.revista-lightbox.is-open .revista-lightbox-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.revista-lightbox-media {
  position: relative;
  flex: 1 1 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  max-height: 86vh;
}

.revista-lightbox-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 86vh;
  object-fit: contain;
}

.revista-lightbox-info {
  flex: 1 1 220px;
  padding: clamp(24px, 4vw, 40px);
  align-self: center;
}

.revista-lightbox-info .eyebrow {
  margin-bottom: var(--space-xs);
}

.revista-lightbox-info h2 {
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
}

.revista-lightbox-issn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy);
  background: rgba(244, 197, 66, 0.35);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}

.revista-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.revista-lightbox-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.revista-lightbox-close:hover,
.revista-lightbox-close:focus-visible {
  background: var(--white);
  transform: scale(1.08);
}

/* ==================================================
   REVISTAS — RESPONSIVE
   ================================================== */

@media (max-width: 720px) {
  .page-hero {
    padding: 128px 0 150px;
  }

  .revista-toolbar {
    margin-top: -84px;
    flex-direction: column;
    align-items: stretch;
  }

  /* El "flex: 1 1 280px" de .revista-search fija el ancho en el layout
     de fila; al apilarse el toolbar en columna, esa misma base pasa a
     fijar el alto (280px) y descuadra el ícono de lupa. Se resetea acá. */
  .revista-search {
    flex-basis: auto;
  }

  .revista-filters {
    justify-content: flex-start;
  }

  .revista-lightbox-panel {
    flex-direction: column;
    max-height: 92vh;
    overflow-y: auto;
  }

  .revista-lightbox-media {
    max-height: 46vh;
  }

  .revista-lightbox-media img {
    max-height: 46vh;
  }
}

@media (max-width: 480px) {
  .revista-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 22px 14px;
  }

  .hero-stats {
    gap: var(--space-md) var(--space-lg);
  }

  .revista-badge {
    font-size: 0.66rem;
    padding: 3px 8px;
  }
}

/* ==================================================
   CONGRESOS — INVITACIÓN CONGRESO 2025
   ================================================== */

.congreso-invite {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background:
    radial-gradient(ellipse 70% 60% at 84% 6%, rgba(143, 188, 230, 0.28), transparent 60%),
    radial-gradient(ellipse 60% 55% at 8% 96%, rgba(244, 197, 66, 0.16), transparent 65%),
    linear-gradient(160deg, var(--navy) 0%, #16405f 48%, #081a2b 100%);
}

.congreso-invite::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.congreso-cta {
  --gradient-flow: linear-gradient(120deg,
    var(--navy) 0%, var(--blue) 28%, var(--sky) 48%,
    var(--slate) 66%, var(--blue) 86%, var(--navy) 100%);
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  padding: 26px clamp(30px, 5vw, 54px);
  border-radius: var(--radius-pill);
  background: var(--gradient-flow);
  background-size: 300% 300%;
  box-shadow: 0 24px 50px -16px rgba(var(--blue-rgb), 0.55),
    0 10px 24px -10px rgba(var(--navy-rgb), 0.45);
  animation: congreso-gradient-flow 9s ease infinite;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease;
}

.congreso-cta:hover,
.congreso-cta:focus-visible {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 30px 60px -16px rgba(var(--blue-rgb), 0.65),
    0 14px 30px -10px rgba(var(--navy-rgb), 0.5);
}

.congreso-cta:active {
  transform: translateY(-1px) scale(0.99);
}

.congreso-cta:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 6px;
}

.congreso-cta-glow {
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: inherit;
  background: var(--gradient-flow);
  background-size: 300% 300%;
  filter: blur(28px);
  opacity: 0.6;
  animation: congreso-gradient-flow 9s ease infinite,
    congreso-glow-pulse 3.6s ease-in-out infinite;
}

.congreso-cta-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.congreso-cta-kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.congreso-cta-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  letter-spacing: -0.02em;
  color: var(--white);
}

.congreso-cta-arrow {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--white);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.congreso-cta:hover .congreso-cta-arrow,
.congreso-cta:focus-visible .congreso-cta-arrow {
  transform: translateX(6px);
}

@keyframes congreso-gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes congreso-glow-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .congreso-cta,
  .congreso-cta-glow {
    animation: none;
    background-position: 30% 50%;
  }
}

@media (max-width: 480px) {
  .congreso-cta {
    gap: 16px;
    padding: 22px 26px;
  }

  .congreso-cta-title {
    gap: 8px;
  }
}

/* ==================================================
   NEWSLETTERS — LISTADO DE EDICIONES
   ================================================== */

.newsletter-archive {
  position: relative;
  padding: 0 0 var(--space-2xl);
}

.newsletter-list {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  list-style: none;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.newsletter-item + .newsletter-item {
  border-top: 1px solid var(--line-soft);
}

.newsletter-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--navy);
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.newsletter-row:hover,
.newsletter-row:focus-visible {
  background: var(--cream);
  transform: translateX(4px);
}

.newsletter-seal {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  background: radial-gradient(circle at 32% 28%, var(--blue) 0%, var(--navy) 72%);
  box-shadow: 0 6px 14px -4px rgba(var(--navy-rgb), 0.45),
    inset 0 0 0 3px rgba(var(--gold-rgb), 0.55);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease;
}

.newsletter-row:hover .newsletter-seal,
.newsletter-row:focus-visible .newsletter-seal {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 10px 20px -6px rgba(var(--navy-rgb), 0.55),
    inset 0 0 0 3px var(--gold);
}

.newsletter-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.newsletter-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.newsletter-sub {
  font-size: 0.85rem;
  color: var(--slate);
}

.newsletter-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s ease;
}

.newsletter-row:hover .newsletter-arrow,
.newsletter-row:focus-visible .newsletter-arrow {
  transform: translateX(6px);
  stroke: var(--navy);
}

@media (max-width: 640px) {
  .newsletter-list {
    margin-top: -40px;
    padding: 8px;
  }

  .newsletter-row {
    gap: 14px;
    padding: 14px;
  }

  .newsletter-seal {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .newsletter-title {
    font-size: 0.98rem;
  }
}

/* ==================================================
   PRONADIAL — PÁGINA PUENTE AL PROGRAMA
   ================================================== */

.pronadial-hero {
  position: relative;
  overflow: hidden;
  padding: 132px 0;
  color: var(--white);
  background:
    radial-gradient(ellipse 60% 60% at 90% 8%, rgba(143, 188, 230, 0.26), transparent 60%),
    radial-gradient(ellipse 55% 55% at 6% 94%, rgba(244, 197, 66, 0.14), transparent 65%),
    linear-gradient(160deg, var(--navy) 0%, #16405f 48%, #081a2b 100%);
}

.pronadial-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.pronadial-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  align-items: center;
  gap: var(--space-2xl);
}

.pronadial-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.pronadial-media-glow {
  position: absolute;
  inset: -14%;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 45%, rgba(var(--blue-rgb), 0.55), transparent 70%);
  filter: blur(36px);
  opacity: 0.7;
  animation: congreso-glow-pulse 3.6s ease-in-out infinite;
}

.pronadial-plaque {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  background: #1c2733;
}

.pronadial-plaque img {
  display: block;
  width: 100%;
  height: auto;
}

.pronadial-content {
  max-width: 620px;
}

.pronadial-content .eyebrow {
  margin-bottom: var(--space-md);
}

.pronadial-content h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.pronadial-lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

.pronadial-credential {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.pronadial-credential svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pronadial-credential p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.pronadial-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.pronadial-actions-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 860px) {
  .pronadial-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pronadial-media {
    order: -1;
    max-width: 300px;
    margin: 0 auto var(--space-sm);
  }

  .pronadial-content {
    max-width: none;
  }

  .pronadial-credential {
    text-align: left;
  }

  .pronadial-actions {
    align-items: center;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .pronadial-hero {
    padding: 100px 0;
  }
}

/* ==================================================
   AGA-ALZAR — GENÉTICA
   ================================================== */

.aga-hero {
  overflow: visible;
}

.aga-helix {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: min(200px, 20vw);
  height: auto;
  pointer-events: none;
}

.aga-helix-strand {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0;
}

.aga-helix-strand--a {
  stroke: var(--sky);
}

.aga-helix-strand--b {
  stroke: rgba(143, 188, 230, 0.4);
}

.aga-helix-rungs line {
  stroke: rgba(244, 197, 66, 0.55);
  stroke-width: 1.5;
  opacity: 0;
}

.aga-helix-nodes circle {
  fill: var(--gold);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .aga-helix-strand {
    animation: aga-helix-fade 1.2s ease-out forwards;
  }

  .aga-helix-rungs line {
    animation: aga-helix-fade 0.6s ease-out forwards;
  }

  .aga-helix-rungs line:nth-child(1) { animation-delay: 0.5s; }
  .aga-helix-rungs line:nth-child(2) { animation-delay: 0.7s; }
  .aga-helix-rungs line:nth-child(3) { animation-delay: 0.9s; }
  .aga-helix-rungs line:nth-child(4) { animation-delay: 1.1s; }

  .aga-helix-nodes circle {
    animation: node-pop 0.5s ease-out forwards, node-pulse 4.5s ease-in-out infinite;
  }

  .aga-helix-nodes circle:nth-child(1), .aga-helix-nodes circle:nth-child(2) { animation-delay: 0.5s; }
  .aga-helix-nodes circle:nth-child(3), .aga-helix-nodes circle:nth-child(4) { animation-delay: 0.7s; }
  .aga-helix-nodes circle:nth-child(5), .aga-helix-nodes circle:nth-child(6) { animation-delay: 0.9s; }
  .aga-helix-nodes circle:nth-child(7), .aga-helix-nodes circle:nth-child(8) { animation-delay: 1.1s; }
}

@media (prefers-reduced-motion: reduce) {
  .aga-helix-strand {
    opacity: 0.85;
  }

  .aga-helix-rungs line {
    opacity: 0.55;
  }

  .aga-helix-nodes circle {
    opacity: 0.9;
  }
}

@keyframes aga-helix-fade {
  from { opacity: 0; }
  to { opacity: 0.85; }
}

@media (max-width: 860px) {
  .aga-helix {
    display: none;
  }
}

/* Sobre el proyecto (resumen bilingüe) */

.aga-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 1040px;
  margin: 0 auto;
}

.aga-about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(26px, 3.4vw, 38px);
}

.aga-about-card[lang="en"] {
  border-color: rgba(var(--blue-rgb), 0.18);
  background: rgba(var(--blue-rgb), 0.03);
}

.aga-about-lang {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-sm);
}

.aga-about-card p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.aga-about-card p + p {
  margin-top: var(--space-sm);
}

.aga-about-card strong {
  color: var(--navy);
}

/* Datos relevados */

.aga-data-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 1040px;
  margin: 0 auto;
}

.aga-data-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(26px, 3.4vw, 38px);
}

.aga-data-group h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: var(--space-md);
}

.aga-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-bottom: var(--space-md);
}

.aga-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
}

.aga-chip--gene {
  background: rgba(var(--blue-rgb), 0.06);
  border-color: rgba(var(--blue-rgb), 0.22);
}

.aga-chip--gene em {
  font-style: italic;
  font-weight: 700;
}

.aga-chip-note {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--slate);
}

.aga-data-note {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.aga-data-note em {
  font-style: italic;
  color: var(--navy);
}

/* Investigadores y contacto */

.aga-contact {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(143, 188, 230, 0.16), transparent 55%),
    linear-gradient(160deg, #123454 0%, var(--navy) 55%, #081a2b 100%);
}

.aga-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.aga-contact .container {
  position: relative;
  z-index: 1;
}

.aga-contact .section-header h2 {
  color: var(--white);
}

.aga-contact .section-header p:last-child {
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto;
}

.aga-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 1040px;
  margin: var(--space-xl) auto 0;
}

.aga-contact-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  padding: clamp(24px, 3vw, 30px);
}

.aga-contact-card--phone {
  grid-column: 1 / -1;
}

.aga-contact-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--sky);
  margin-bottom: var(--space-sm);
}

.aga-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aga-contact-list li {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.aga-contact-list a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  word-break: break-word;
  transition: color 0.25s ease;
}

.aga-contact-list a:hover,
.aga-contact-list a:focus-visible {
  color: var(--gold);
}

.aga-contact-phones {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aga-contact-phones a {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.aga-contact-phones a:hover,
.aga-contact-phones a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--sky);
  color: var(--sky);
}

@media (max-width: 860px) {
  .aga-about-grid,
  .aga-data-groups {
    grid-template-columns: 1fr;
  }

  .aga-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   ARTÍCULOS — ARCHIVO
   ================================================== */

.article-archive {
  position: relative;
  z-index: 2;
  margin-top: -86px;
  padding: 0 0 var(--space-2xl);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-lg);
  list-style: none;
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease, border-color 0.35s ease;
}

.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--blue-rgb), 0.22);
}

.article-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.article-card-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 85% -10%, rgba(143, 188, 230, 0.28), transparent 60%),
    radial-gradient(ellipse 60% 60% at 0% 110%, rgba(244, 197, 66, 0.14), transparent 65%),
    linear-gradient(160deg, #16405f 0%, var(--navy) 55%, #081a2b 100%);
}

.article-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.article-card-visual svg {
  position: relative;
  z-index: 1;
  width: 30%;
  max-width: 88px;
  stroke: var(--sky);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .article-card-visual svg,
.article-card:focus-visible .article-card-visual svg {
  transform: scale(1.08) rotate(-3deg);
}

.article-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

.article-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: clamp(24px, 3vw, 32px);
}

.article-card-title {
  font-size: 1.32rem;
  line-height: 1.28;
}

.article-card-excerpt {
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--slate);
}

.article-card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--slate);
  flex-shrink: 0;
}

.article-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue);
}

.article-card-cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .article-card-cta svg,
.article-card:focus-visible .article-card-cta svg {
  transform: translateX(4px);
}

/* ==================================================
   ARTÍCULOS — ENTRADA INDIVIDUAL
   ================================================== */

.article-hero {
  padding-bottom: 172px;
}

.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--sky);
}

.article-hero-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(143, 188, 230, 0.7);
  flex-shrink: 0;
}

.article-hero h1 {
  max-width: 820px;
}

.article-post {
  position: relative;
  z-index: 2;
  margin-top: -128px;
  max-width: 780px;
  margin-inline: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(30px, 5vw, 64px);
}

.article-lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.article-body h2 {
  font-size: 1.4rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.85;
}

.article-body p + p {
  margin-top: var(--space-md);
}

.article-body strong {
  color: var(--navy);
}

.article-body ul {
  margin-top: var(--space-sm);
  padding-left: 1.3em;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-body ul li + li {
  margin-top: 8px;
}

.article-body ul + p {
  margin-top: var(--space-md);
}

.article-note {
  display: flex;
  gap: 14px;
  margin-top: var(--space-xl);
  padding: 22px 24px;
  background: rgba(var(--blue-rgb), 0.05);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.article-note svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-note p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.article-note strong {
  color: var(--navy);
}

.article-signoff {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

.article-signoff-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.article-signoff-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.article-signoff-role {
  font-size: 0.85rem;
  color: var(--slate);
}

.article-next {
  padding-top: 0;
}

.article-next-inner {
  max-width: 780px;
  margin: 0 auto;
}

.article-next-label {
  display: block;
  margin-bottom: var(--space-md);
  text-align: center;
}

.article-next-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 26px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.article-next-card:hover,
.article-next-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-next-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(var(--blue-rgb), 0.08);
}

.article-next-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-next-title {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.article-next-sub {
  display: block;
  font-size: 0.88rem;
  color: var(--slate);
}

.article-next-arrow {
  margin-left: auto;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-next-card:hover .article-next-arrow,
.article-next-card:focus-visible .article-next-arrow {
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .article-hero {
    padding-bottom: 210px;
  }

  .article-post {
    margin-top: -160px;
  }

  .article-next-card {
    flex-wrap: wrap;
  }

  .article-next-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .article-signoff {
    align-items: flex-start;
  }
}
