/* ==========================================================
   ADN · Portal interno — Rediseño 2026-11-17
   Colores ORIGINALES del portal (los mismos de styles.css):
   fondo #ffffff / #f8fafc · texto #0f172a / #64748b · borde #e2e8f0
   morados #302A50 · #1e1936 · #483f73 · #6b52d1 · #a855f7
   dorado #f59e0b · verde #22c55e
   (styles.css se conserva para resultados-puntos.html)
   ========================================================== */
:root {
  --primary-purple: #302A50;
  --purple-dark: #1e1936;
  --purple-light: #483f73;
  --purple-accent: #6b52d1;
  --accent-neon: #a855f7;
  --bg-light: #ffffff;
  --bg-subtle: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --success: #22c55e;
  --success-dark: #16a34a;
  --gold: #f59e0b;
  --radius-card: 20px;
  --radius-s: 14px;
  --shadow-sm: 0 4px 12px rgba(48, 42, 80, 0.05);
  --shadow-hover: 0 16px 32px rgba(48, 42, 80, 0.12);

  --morado-grad: linear-gradient(135deg, #302A50 0%, #1e1936 100%);
  --ancho: 1240px;
  --fuente-titulo: "Sora", "Segoe UI", system-ui, sans-serif;
  --fuente: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg-light); color: var(--text-main);
  font: 400 16px/1.6 var(--fuente); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--purple-accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--fuente-titulo); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(168, 85, 247, .25); }
kbd {
  font: 600 11px/1 var(--fuente); padding: 4px 6px; border-radius: 6px;
  border: 1px solid var(--border-color); background: var(--bg-subtle); color: var(--text-muted);
}
.content-wrapper { width: min(var(--ancho), 100% - 32px); margin-inline: auto; }
.degradado, .highlight-text { color: var(--accent-neon); }
.dorado { color: var(--gold); }

/* Aparición al hacer scroll (script.js agrega .visible). Va antes de los
   componentes para que sus :hover puedan mover la tarjeta. */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.visible:hover { transition-delay: 0s !important; }

/* ---------- Fondo (blanco, como el original) ---------- */
.fondo { display: none; }
.cursor-aura {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: -1; opacity: 0;
  background: radial-gradient(circle, rgba(168, 85, 247, .07), transparent 62%);
  transition: opacity .4s; will-change: transform;
}
.cursor-aura.on { opacity: 1; }
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  background: var(--accent-neon); transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 30px; font-weight: 600; font-size: 15px;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s; white-space: nowrap; will-change: transform;
}
.btn svg { width: 16px; height: 16px; stroke-width: 2.5; }
.btn-primary { background: var(--accent-neon); color: #fff; box-shadow: 0 10px 24px -10px rgba(168, 85, 247, .7); }
.btn-primary:hover { background: var(--purple-accent); box-shadow: 0 14px 30px -10px rgba(107, 82, 209, .8); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Navegación ---------- */
.navbar {
  position: sticky; top: 0; z-index: 150;
  background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow .3s;
}
.navbar.is-scrolled { box-shadow: var(--shadow-hover); }
.nav-container { max-width: var(--ancho); margin-inline: auto; display: flex; align-items: center; gap: 16px; padding: 12px 16px; }
.brand-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--primary-purple); }
.brand-mark { display: grid; place-items: center; color: var(--primary-purple); transition: transform .5s; }
.brand-mark svg { width: 28px; height: 28px; }
.brand-logo:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }
.brand-text { font: 800 22px/1 var(--fuente-titulo); letter-spacing: .04em; color: var(--primary-purple); }
.nav-links { position: relative; display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  position: relative; z-index: 1; padding: 9px 14px; border-radius: 10px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); transition: color .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-purple); }
.nav-indicator {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%; border-radius: 10px;
  background: rgba(107, 82, 209, .09);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; opacity: 0;
}
.nav-indicator::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent-neon); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-search {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; border-radius: 10px;
  border: 1px solid var(--border-color); background: var(--bg-subtle); color: var(--text-muted); font-size: 14px; transition: border-color .2s, color .2s;
}
.nav-search svg { width: 16px; height: 16px; }
.nav-search:hover { border-color: var(--purple-accent); color: var(--primary-purple); }
.nav-login {
  display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--primary-purple); color: #fff; transition: background .2s, transform .2s;
}
.nav-login:hover { background: var(--purple-light); transform: translateY(-1px); }
.nav-login--ghost { background: transparent; color: var(--primary-purple); border: 1px solid var(--border-color); }
.nav-login--ghost:hover { background: var(--bg-subtle); }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; place-items: center; border: 1px solid var(--border-color); color: var(--primary-purple); }

/* ---------- Hero ---------- */
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 28px; }
.hero-card { position: relative; border-radius: var(--radius-card); overflow: hidden; }
.hero-card-purple { min-height: 560px; display: flex; align-items: flex-end; background: var(--morado-grad); color: #fff; box-shadow: var(--shadow-sm); }
.dna-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-purple-content { position: relative; padding: 44px; width: 100%;
  background: linear-gradient(0deg, rgba(30, 25, 54, .92), rgba(30, 25, 54, .4) 70%, transparent); }
.tag-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 20px; margin-bottom: 22px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .08);
}
.dot, .badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulso 2s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero-heading { font-size: clamp(38px, 5.2vw, 64px); font-weight: 800; line-height: 1.04; margin-bottom: 18px; }
.caret { display: inline-block; width: 4px; height: .82em; margin-left: 6px; vertical-align: -.04em; border-radius: 2px; background: var(--accent-neon); animation: parpadeo 1s steps(1) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }
.hero-subtext { color: rgba(255, 255, 255, .75); font-size: 17px; max-width: 520px; margin-bottom: 26px; }
.hero-subtext strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-metric { padding: 14px 16px; border-radius: var(--radius-s); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.hero-metric strong { display: block; font: 800 28px/1.1 var(--fuente-titulo); }
.hero-metric > span { color: rgba(255, 255, 255, .7); font-size: 13px; }

.hero-right-column { display: grid; grid-template-rows: 1fr auto; gap: 20px; }
.hero-card-image { min-height: 420px; background: #eeeaf7; box-shadow: var(--shadow-sm); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-slide { object-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 6s ease; }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slide.is-broken { display: none; }
.image-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .62)); pointer-events: none; }
.image-badge {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 30px; font-size: 12px; font-weight: 700;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); color: var(--primary-purple);
}
.hero-card-brands { padding: 22px 0; background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.brands-carousel-track { display: flex; width: max-content; animation: desfile 26s linear infinite; }
.hero-card-brands:hover .brands-carousel-track { animation-play-state: paused; }
.brands-slide { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.wordmark { color: #94a3b8; white-space: nowrap; transition: color .3s; user-select: none; }
.wordmark:hover { color: var(--primary-purple); }
.wm-hp { font: italic 800 30px/1 "Sora", sans-serif; letter-spacing: -.04em; }
.wm-apple { font: 600 24px/1 -apple-system, "Segoe UI", sans-serif; }
.wm-lenovo { font: 700 23px/1 "Inter", sans-serif; letter-spacing: -.02em; }
.wm-samsung { font: 800 20px/1 "Sora", sans-serif; letter-spacing: .14em; }
.wm-sony { font: 700 22px/1 Georgia, "Times New Roman", serif; letter-spacing: .16em; }
@keyframes desfile { to { transform: translateX(-50%); } }

/* ---------- Hoy en ADN ---------- */
.today-strip { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.today-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 18px 20px;
  border-radius: var(--radius-s); background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
a.today-tile:hover { transform: translateY(-3px); border-color: rgba(168, 85, 247, .4); box-shadow: var(--shadow-hover); }
.today-date { background: var(--morado-grad); color: #fff; border-color: transparent; }
.today-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); font-weight: 600; }
.today-date .today-label, .today-date .today-sub { color: rgba(255, 255, 255, .7); }
.today-tile strong { font: 700 24px/1.2 var(--fuente-titulo); color: var(--primary-purple); }
.today-date strong { font-size: 20px; color: #fff; text-transform: capitalize; }
.today-sub { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-ico { position: absolute; right: 14px; top: 12px; font-size: 26px; transition: transform .4s; }
a.today-tile:hover .today-ico { transform: rotate(-12deg) scale(1.15); }

/* ---------- Luz que sigue el cursor en tarjetas ---------- */
.spot { --mx: 50%; --my: 50%; }
.spot::after, .news-card::after, .bday-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(168, 85, 247, .08), transparent 45%);
}
.spot:hover::after, .news-card:hover::after, .bday-card:hover::after { opacity: 1; }

/* ---------- Empresas ---------- */
.group-brands { margin-top: 64px; text-align: center; }
.group-brands-plate { margin-top: 14px; padding: 10px 20px; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.group-brands-plate img { width: 100%; height: auto; }

/* ---------- Secciones ---------- */
.section-block { margin-top: 96px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 20px; margin-bottom: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--purple-accent); background: rgba(107, 82, 209, .09); align-self: flex-start;
}
.eyebrow-num { font-family: var(--fuente-titulo); opacity: .6; }
.eyebrow--oro { color: #b45309; background: rgba(245, 158, 11, .12); }
.section-title { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; color: var(--primary-purple); }
.section-subtitle { color: var(--text-muted); margin-top: 10px; max-width: 620px; }

.segmented { display: inline-flex; padding: 5px; gap: 4px; border-radius: 12px; background: var(--bg-subtle); border: 1px solid var(--border-color); flex-wrap: wrap; }
.segmented button { padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-muted); transition: background .25s, color .25s; }
.segmented button:hover { color: var(--primary-purple); }
.segmented button.active { background: var(--primary-purple); color: #fff; }

/* ---------- Innova Puntos ---------- */
.story-card {
  display: grid; grid-template-columns: 1.1fr .9fr; border-radius: var(--radius-card); overflow: hidden;
  background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); transition: box-shadow .3s;
}
.story-card:hover { box-shadow: var(--shadow-hover); }
.story-body { padding: 44px; display: flex; flex-direction: column; gap: 18px; }
.story-title { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; color: var(--primary-purple); }
.story-text { color: var(--text-muted); }
.story-more summary { cursor: pointer; color: var(--purple-accent); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.story-more summary::-webkit-details-marker { display: none; }
.story-more summary::after { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(107, 82, 209, .09); transition: transform .3s; }
.story-more[open] summary::after { transform: rotate(45deg); }
.story-more[open] .story-text { margin-top: 10px; animation: aparecer .4s ease; }
@keyframes aparecer { from { opacity: 0; transform: translateY(-6px); } }
.story-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.story-metric { position: relative; overflow: hidden; padding: 16px; border-radius: var(--radius-s); background: var(--bg-subtle); border: 1px solid var(--border-color); }
.story-metric strong { display: block; font: 800 26px/1.15 var(--fuente-titulo); color: var(--primary-purple); }
.story-metric > span, .story-metric--ring div > span { color: var(--text-muted); font-size: 13px; }
.story-metric--ring { display: flex; align-items: center; gap: 12px; }
.ring { width: 56px; height: 56px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.2; }
.ring-bg { stroke: var(--border-color); }
.ring-fg { stroke: var(--success); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1); }
.ring.lleno .ring-fg { stroke-dashoffset: calc(100 - var(--p)); }
.story-recognition {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 20px 22px; border-radius: var(--radius-s); background: rgba(107, 82, 209, .06); border: 1px solid rgba(107, 82, 209, .15);
}
.story-subtitle { font-size: 19px; margin-bottom: 4px; color: var(--primary-purple); }
.story-media { position: relative; min-height: 420px; background: #eeeaf7; overflow: hidden; }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.story-media.is-clickable { cursor: pointer; }
.story-media.is-clickable:hover img { transform: scale(1.05); }
.story-media-hint {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(30, 25, 54, .45); opacity: 0; transition: opacity .35s;
}
.story-media-hint-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 30px; font-weight: 600;
  background: #fff; color: var(--primary-purple); transform: translateY(10px) scale(.95); transition: transform .35s; box-shadow: var(--shadow-hover);
}
.story-media-hint small { color: #fff; transform: translateY(8px); transition: transform .35s; }
.story-media.is-clickable:hover .story-media-hint,
.story-media.is-clickable:focus-visible .story-media-hint { opacity: 1; }
.story-media.is-clickable:hover .story-media-hint-pill,
.story-media.is-clickable:focus-visible .story-media-hint-pill,
.story-media.is-clickable:hover .story-media-hint small,
.story-media.is-clickable:focus-visible .story-media-hint small { transform: none; }
@media (hover: none) {
  .story-media-hint { opacity: 1; background: none; justify-content: flex-end; padding-bottom: 64px; }
  .story-media-hint-pill { transform: none; font-size: 14px; padding: 10px 18px; }
  .story-media-hint small { display: none; }
}

/* ---------- Noticias / Comunicados ---------- */
.news-month-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 26px; scrollbar-width: none; }
.news-month-nav::-webkit-scrollbar { display: none; }
.news-month-btn {
  flex-shrink: 0; padding: 9px 18px; border-radius: 30px; font-size: 14px; font-weight: 600; color: var(--text-muted);
  background: #fff; border: 1px solid var(--border-color); transition: all .25s;
}
.news-month-btn:hover { color: var(--primary-purple); border-color: var(--purple-accent); }
.news-month-btn[aria-pressed="true"] { background: var(--primary-purple); color: #fff; border-color: var(--primary-purple); }
.news-month-section + .news-month-section { margin-top: 48px; }
.news-month-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.news-month-heading h3 { font-size: 24px; color: var(--primary-purple); }
.news-month-heading span { color: var(--text-muted); font-size: 14px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-card); overflow: hidden;
  background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(168, 85, 247, .3); }
.news-card.featured { grid-column: span 2; grid-row: span 2; }
.news-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eeeaf7; }
.news-media.is-cover { aspect-ratio: 4 / 3; }
.news-card.featured .news-media { aspect-ratio: auto; flex: 1; min-height: 340px; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.news-media.is-contain img { object-fit: contain; background: var(--bg-subtle); }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-media.is-group { cursor: pointer; }
.news-group-hint { position: absolute; right: 12px; bottom: 12px; display: flex; }
.news-group-hint span { padding: 7px 14px; border-radius: 30px; font-size: 13px; font-weight: 700; color: var(--primary-purple); background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); transition: background .25s, color .25s; }
.news-media.is-group:hover .news-group-hint span { background: var(--accent-neon); color: #fff; }
.com-media.is-vertical { aspect-ratio: 3 / 4; }
.news-body { position: relative; padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.news-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--purple-accent); }
.news-title { font-size: 18px; font-weight: 700; color: var(--text-main); }
.news-card.featured .news-title { font-size: 26px; color: var(--primary-purple); }
.news-text { color: var(--text-muted); font-size: 15px; }
.news-group-preview { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.news-group-preview li { position: relative; padding-left: 18px; font-size: 14px; color: var(--text-muted); }
.news-group-preview li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-neon); }
.news-details { margin-top: 4px; }
.news-details summary { cursor: pointer; color: var(--purple-accent); font-weight: 600; font-size: 14px; }
.news-full-text { margin: 12px 0; color: var(--text-muted); font-size: 15px; white-space: pre-line; }
.news-slideshow { position: relative; margin-top: 12px; border-radius: var(--radius-s); overflow: hidden; background: var(--bg-subtle); }
.news-slide-img { width: 100%; max-height: 460px; object-fit: contain; }
.news-slide-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; line-height: 1;
  color: var(--primary-purple); background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); transition: background .2s, color .2s;
}
.news-slide-nav:hover { background: var(--primary-purple); color: #fff; }
.news-slide-nav.prev { left: 10px; }
.news-slide-nav.next { right: 10px; }
.news-slide-count { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 30px; font-size: 12px; color: #fff; background: rgba(30, 25, 54, .75); }

.news-group-modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 12, 34, .7); backdrop-filter: blur(6px); }
.news-group-modal.open { display: flex; animation: aparecer .3s ease; }
.news-group-dialog { width: min(880px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-card); background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.news-group-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 14px; border-bottom: 1px solid var(--border-color); }
.news-group-modal-head h3 { margin-top: 6px; font-size: 22px; color: var(--primary-purple); }
.news-group-modal-close {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--bg-subtle); border: 1px solid var(--border-color); color: var(--primary-purple); transition: background .2s, color .2s, transform .2s;
}
.news-group-modal-close:hover { background: var(--primary-purple); color: #fff; transform: rotate(90deg); }
.news-group-modal-body { overflow-y: auto; padding: 8px 24px 24px; }
.news-group-item { position: relative; padding: 22px 0 22px 54px; border-bottom: 1px solid var(--border-color); }
.news-group-item:last-child { border-bottom: 0; }
.news-group-num { position: absolute; left: 0; top: 22px; font: 800 22px/1 var(--fuente-titulo); color: var(--accent-neon); }
.news-group-item h4 { font-size: 18px; margin-bottom: 6px; color: var(--primary-purple); }
.news-sub-short { color: var(--text-muted); }
.news-group-modal.is-single .news-group-num,
.news-group-modal.is-single .news-group-item h4 { display: none; }
.news-group-modal.is-single .news-group-item { padding-left: 0; }

/* ---------- Cumpleaños ---------- */
.birthday-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.bday-card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 26px 18px 20px; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}
.bday-card:hover { box-shadow: var(--shadow-hover); border-color: rgba(168, 85, 247, .3); }
.bday-card.is-past { opacity: .65; }
.bday-card.is-past:hover { opacity: 1; }
.bday-card.is-today { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 158, 11, .18), var(--shadow-hover); }
.bday-cake { position: absolute; top: 12px; right: 14px; font-size: 20px; transition: transform .4s; }
.bday-card:hover .bday-cake { transform: rotate(-14deg) scale(1.25); }
.bday-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; border: 3px solid #fff; box-shadow: 0 0 0 3px var(--accent-neon), var(--shadow-sm); }
.bday-card.is-today .bday-photo { box-shadow: 0 0 0 3px var(--gold), var(--shadow-sm); }
.bday-photo-placeholder { display: grid; place-items: center; font: 800 30px/1 var(--fuente-titulo); color: #fff; background: var(--morado-grad); }
.bday-name { font-size: 17px; color: var(--primary-purple); }
.bday-date { color: var(--text-muted); font-size: 13px; }
.today-flag { color: var(--gold); font-weight: 700; }
.bday-btn {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 30px; font-size: 13px; font-weight: 600;
  color: var(--primary-purple); background: rgba(107, 82, 209, .09); transition: background .25s, color .25s, transform .2s;
}
.bday-btn svg { width: 15px; height: 15px; }
.bday-btn:hover { background: var(--accent-neon); color: #fff; transform: scale(1.05); }
.bday-btn:active { transform: scale(.94); }

/* ---------- Hall de la Fama ---------- */
.fame-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.fame-card {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; padding: 0; border-radius: var(--radius-s); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 5;
  background: #eeeaf7; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
  transition: transform .25s ease-out, box-shadow .3s;
}
.fame-card.visible { transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)); }
.fame-card img { width: 100%; height: 100%; object-fit: cover; }
.fame-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, .35), transparent 50%);
}
.fame-card:hover { box-shadow: 0 22px 44px -18px rgba(48, 42, 80, .45); }
.fame-card:hover::after { opacity: 1; }
.fame-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; font-size: 12px; font-weight: 700; text-align: left; color: #fff; background: linear-gradient(transparent, rgba(30, 25, 54, .88)); }

/* ---------- Carrusel de capacitaciones ---------- */
.points-slideshow { position: relative; }
.points-slides { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.points-slides::-webkit-scrollbar { display: none; }
.points-card { flex: 0 0 calc((100% - 3 * 16px) / 4); aspect-ratio: 9 / 16; scroll-snap-align: start; position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 16px; background: #eeeaf7; cursor: zoom-in; box-shadow: var(--shadow-sm); }
.points-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.points-card:hover img { transform: scale(1.06); }
.points-card.is-broken { display: none; }
.points-slides--wide .points-card { flex-basis: calc((100% - 2 * 16px) / 3); aspect-ratio: 4 / 3; cursor: pointer; }
.points-slides.is-placeholder .points-card { flex: 1 1 0; aspect-ratio: auto; min-height: 220px; padding: 26px; cursor: default; box-shadow: none; }
.points-image-placeholder { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; text-align: left; background: linear-gradient(145deg, #f4f0ff, #f8fafc); border: 1px solid var(--border-color); }
.points-image-placeholder span { font: 800 34px/1 var(--fuente-titulo); color: rgba(107, 82, 209, .35); }
.points-image-placeholder strong { color: var(--primary-purple); }
.points-image-placeholder p { color: var(--text-muted); font-size: 14px; }
.points-slide-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  font-size: 28px; line-height: 1; color: var(--primary-purple); background: #fff; box-shadow: var(--shadow-hover); transition: background .2s, color .2s;
}
.points-slide-nav:hover { background: var(--primary-purple); color: #fff; }
.points-slideshow .points-slide-nav.prev { left: -14px; }
.points-slideshow .points-slide-nav.next { right: -14px; }
.points-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.points-dots button { width: 8px; height: 8px; border-radius: 999px; background: #cbd5e1; transition: width .3s, background .3s; }
.points-dots button.active { width: 28px; background: var(--purple-accent); }

/* ---------- Lightbox y popup ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 12, 34, .9); cursor: zoom-out; }
.lightbox.open { display: flex; animation: aparecer .3s ease; }
.lightbox > img { max-width: min(1100px, 100%); max-height: calc(100vh - 80px); border-radius: var(--radius-s); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(255, 255, 255, .12); transition: background .2s, transform .2s;
}
.lightbox-close:hover { background: var(--accent-neon); transform: rotate(90deg); }
.points-popup { cursor: default; --per-view: 3; }
.points-popup-viewport { width: min(88vw, 1280px); overflow: hidden; }
.points-popup-track { display: flex; width: 100%; will-change: transform; }
.points-popup-item { flex: 0 0 calc(100% / var(--per-view)); padding: 0 8px; }
.points-popup .points-popup-item img { width: 100%; height: min(70vh, 520px); object-fit: cover; border-radius: var(--radius-s); background: rgba(255, 255, 255, .08); }
.points-popup .points-slide-nav.prev { left: 16px; }
.points-popup .points-slide-nav.next { right: 16px; }

/* ---------- Mensaje de gerencia ---------- */
.team-message { margin-top: 96px; }
.team-message-card {
  position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding: 40px;
  border-radius: 28px; background: linear-gradient(145deg, #f4f0ff, #ffffff 60%); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); overflow: hidden;
}
.team-message-deco { position: absolute; font-size: 26px; opacity: .7; animation: flotarEmoji 7s ease-in-out infinite; pointer-events: none; }
.deco-1 { top: 18px; right: 30px; }
.deco-2 { bottom: 24px; right: 46%; animation-delay: -2s; }
.deco-3 { top: 40%; right: 18px; animation-delay: -4s; }
.deco-4 { bottom: 20px; left: 22px; animation-delay: -1s; }
@keyframes flotarEmoji { 50% { transform: translateY(-12px) rotate(8deg); } }
.team-message-poster { position: relative; border-radius: var(--radius-s); overflow: hidden; padding: 0; cursor: zoom-in; box-shadow: var(--shadow-hover); transform: rotate(-2deg); transition: transform .5s; }
.team-message-poster:hover { transform: rotate(0) scale(1.02); }
.team-message-poster img { width: 100%; }
.team-message-zoom { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 7px 14px; border-radius: 30px; font-size: 13px; font-weight: 600; color: var(--primary-purple); background: rgba(255, 255, 255, .92); }
.team-message-title { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; color: var(--primary-purple); }
.team-message-quote { margin: 0 0 22px; padding-left: 20px; border-left: 3px solid var(--accent-neon); color: var(--text-muted); display: grid; gap: 12px; }
.team-message-highlight { font: 700 20px/1.3 var(--fuente-titulo); color: var(--primary-purple); }
.team-message-sign { display: flex; align-items: center; gap: 12px; }
.team-message-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 800 15px/1 var(--fuente-titulo); color: #fff; background: var(--morado-grad); }
.team-message-sign strong { display: block; color: var(--primary-purple); }
.team-message-sign span { color: var(--text-muted); font-size: 14px; }
.team-message-motto { margin-top: 18px; font-weight: 700; color: var(--purple-accent); }

/* ---------- Footer ---------- */
.footer { margin-top: 110px; background: var(--primary-purple); color: #fff; }
.footer .brand-logo, .footer .brand-mark, .footer .brand-text { color: #fff; }
.footer-container { width: min(var(--ancho), 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: 1.1fr 1.6fr; gap: 48px; padding: 64px 0 40px; }
.footer-brand p { margin-top: 16px; color: rgba(255, 255, 255, .7); max-width: 380px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 15px; color: #fff; margin-bottom: 4px; }
.footer-col a, .footer-col span { color: rgba(255, 255, 255, .7); font-size: 15px; }
.footer-col a { transition: color .2s, transform .2s; }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { width: min(var(--ancho), 100% - 32px); margin-inline: auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 34px; border-top: 1px solid rgba(255, 255, 255, .1); color: #94a3b8; font-size: 14px; }
.footer-bottom kbd { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #cbd5e1; }

/* ---------- Volver arriba ---------- */
.to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 120; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--primary-purple); box-shadow: var(--shadow-hover);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent-neon); }

/* ---------- Buscador (Ctrl + K) ---------- */
.palette { position: fixed; inset: 0; z-index: 500; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(15, 12, 34, .55); backdrop-filter: blur(4px); }
.palette:not([hidden]) .palette-box { animation: caer .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes caer { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
.palette-box { width: min(620px, 100%); border-radius: var(--radius-card); overflow: hidden; background: #fff; box-shadow: 0 40px 90px -20px rgba(15, 12, 34, .5); }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border-color); color: var(--text-muted); }
.palette-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 17px; color: var(--text-main); }
.palette-list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.palette-list li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; cursor: pointer; }
.palette-list li[aria-selected="true"] { background: rgba(107, 82, 209, .09); }
.palette-list li[aria-selected="true"] strong { color: var(--primary-purple); }
.palette-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--bg-subtle); border: 1px solid var(--border-color); font-size: 16px; flex-shrink: 0; }
.palette-text { flex: 1; min-width: 0; }
.palette-text strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-text small { color: var(--text-muted); }
.palette-empty { padding: 20px; text-align: center; color: var(--text-muted); cursor: default !important; }
.destello { animation: destello 1.6s ease; }
@keyframes destello { 0%, 100% { box-shadow: var(--shadow-sm); } 30% { box-shadow: 0 0 0 3px var(--accent-neon), 0 10px 40px rgba(168, 85, 247, .35); } }

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; top: 84px; right: 20px; z-index: 600; display: grid; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px;
  color: var(--text-main); background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-hover); animation: entrar .35s cubic-bezier(.2, .8, .2, 1);
}
.toast.success svg { color: var(--success); }
@keyframes entrar { from { opacity: 0; transform: translateX(30px); } }

/* ---------- Confeti ---------- */
.confeti { position: fixed; z-index: 700; pointer-events: none; width: 9px; height: 14px; border-radius: 2px; top: 0; left: 0; }

/* ---------- Imágenes que no cargan ---------- */
.img-error { opacity: 0; }

/* Los hijos de grilla no deben ensancharse por contenido largo (cinta de marcas, filtros). */
.hero-grid > *, .hero-right-column > *, .story-card > *, .team-message-card > *,
.today-strip > *, .news-grid > *, .footer-container > *, .footer-links > * { min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-search span, .nav-search kbd { display: none; }
  .nav-links a { padding: 9px 10px; }
}
@media (max-width: 992px) {
  .hero-grid, .story-card, .team-message-card, .footer-container { grid-template-columns: 1fr; }
  .hero-card-purple { min-height: 520px; }
  .hero-card-image { min-height: 340px; }
  .today-strip { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .story-media { min-height: 340px; order: -1; }
  .points-card { flex-basis: calc((100% - 2 * 16px) / 3); }
  .points-slides--wide .points-card { flex-basis: calc((100% - 16px) / 2); }

  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; flex-direction: column; gap: 4px; padding: 10px;
    border-radius: var(--radius-card); background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-hover);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 16px; }
  .nav-links a.active { background: rgba(107, 82, 209, .09); }
  .nav-indicator { display: none; }
  .nav-right { margin-left: auto; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .nav-container { padding: 10px 12px; gap: 8px; }
  .nav-login { padding: 8px 14px; font-size: 13px; }
  .hero-purple-content, .story-body { padding: 26px 22px; }
  .team-message-card { padding: 24px; gap: 26px; }
  .hero-metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-metric { padding: 12px; }
  .hero-metric strong { font-size: 22px; }
  .hero-metric > span { font-size: 12px; }
  .story-metrics { grid-template-columns: 1fr 1fr; }
  .story-metric--ring { grid-column: span 2; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: auto; grid-row: auto; }
  .news-card.featured .news-media { min-height: 240px; }
  .today-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .today-date { grid-column: span 2; }
  .birthday-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bday-photo { width: 84px; height: 84px; }
  .fame-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .section-block { margin-top: 72px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .points-card { flex-basis: calc((100% - 16px) / 2); }
  .points-slides--wide .points-card { flex-basis: 100%; }
  .points-slides.is-placeholder { flex-direction: column; }
  .points-slideshow .points-slide-nav.prev { left: 6px; }
  .points-slideshow .points-slide-nav.next { right: 6px; }
  .points-popup { --per-view: 2; padding: 12px; }
  .points-popup-viewport { width: 94vw; }
  .points-popup-item { padding: 0 4px; }
  .points-popup .points-popup-item img { height: min(50vh, 360px); }
  .news-group-modal { padding: 0; }
  .news-group-dialog { max-height: 100vh; border-radius: 0; height: 100%; }
  .news-group-modal-head, .news-group-modal-body { padding-left: 16px; padding-right: 16px; }
  .to-top { left: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .cursor-aura { display: none; }
}

/* ==========================================================
   Secciones como pantallas deslizantes (portal.js · 8b)
   ========================================================== */
.stage { position: relative; min-height: 70vh; }
.stage > .panel { display: none; }
.stage > .panel.activo { display: block; }
.stage > .section-block { margin-top: 36px; }
.stage > .team-message { margin-top: 36px; }
.stage > .team-message .team-message-card { grid-template-columns: 1fr 1.1fr; padding: 48px; min-height: 560px; }
.stage > .team-message .team-message-poster { max-width: 520px; justify-self: center; }
.footer { margin-top: 80px; }
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border-color); }
.pager a {
  display: flex; flex-direction: column; gap: 2px; min-width: 220px; padding: 14px 20px; border-radius: var(--radius-s);
  background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); transition: transform .25s, border-color .25s, box-shadow .25s;
}
.pager a small { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.pager a strong { font: 700 18px/1.2 var(--fuente-titulo); color: var(--primary-purple); }
.pager-next { margin-left: auto; text-align: right; }
.pager-prev:hover { transform: translateX(-4px); }
.pager-next:hover { transform: translateX(4px); }
.pager a:hover { border-color: var(--accent-neon); box-shadow: var(--shadow-hover); }
.pager a.pager-next { background: var(--morado-grad); border-color: transparent; }
.pager a.pager-next small { color: rgba(255, 255, 255, .7); }
.pager a.pager-next strong { color: #fff; }
@media (max-width: 640px) {
  .pager a { min-width: 0; flex: 1; padding: 12px 14px; }
  .pager a strong { font-size: 15px; }
}

/* ==========================================================
   Presencia en Centroamérica (mapa SVG)
   ========================================================== */
a.tag-pill { color: #fff; transition: background .25s, border-color .25s; }
a.tag-pill:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }
.tag-pill-ico { width: 14px; height: 14px; }
.presencia {
  display: grid; grid-template-columns: .9fr 1.25fr; gap: 28px; align-items: center; margin-top: 20px; padding: 36px;
  border-radius: var(--radius-card); background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
}
.presencia > * { min-width: 0; }
.presencia-texto { display: flex; flex-direction: column; gap: 6px; }
.presencia-paises { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pais-chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: var(--radius-s); text-align: left;
  background: var(--bg-subtle); border: 1px solid var(--border-color); transition: border-color .25s, box-shadow .25s, transform .25s;
}
.pais-chip:hover, .pais-chip.activo { border-color: var(--accent-neon); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.pais-bandera { font-size: 28px; line-height: 1; }
.pais-chip strong { display: block; color: var(--primary-purple); font-family: var(--fuente-titulo); }
.pais-chip small { color: var(--text-muted); font-size: 12px; }
.presencia-datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.presencia-datos > div { padding: 12px 14px; border-radius: var(--radius-s); background: rgba(107, 82, 209, .06); }
.presencia-datos strong { display: block; font: 800 24px/1.1 var(--fuente-titulo); color: var(--primary-purple); }
.presencia-datos > div > span { font-size: 13px; color: var(--text-muted); }

.presencia-mapa { position: relative; border-radius: var(--radius-s); overflow: hidden; background: linear-gradient(160deg, #f8fafc, #f4f0ff); border: 1px solid var(--border-color); }
.mapa-ca { display: block; width: 100%; height: auto; stroke: none; }
.mapa-grid { fill: none; stroke: rgba(107, 82, 209, .07); stroke-width: 1; }
.mapa-mar { font: italic 600 17px var(--fuente); fill: #94a3b8; letter-spacing: .2em; text-transform: uppercase; }
.pais-contexto { fill: #eef1f6; stroke: #fff; stroke-width: 1.5; }
.pais { fill: #e4def4; stroke: #fff; stroke-width: 2; stroke-linejoin: round; cursor: pointer; transition: fill .3s, filter .3s; }
.pais:hover { fill: #d3c8f0; }
.pais-activo { fill: var(--purple-accent); filter: drop-shadow(0 6px 10px rgba(48, 42, 80, .25)); }
.pais-activo:hover, .pais.resaltado { fill: var(--accent-neon); }
#mapa-pa.pais-activo { fill: var(--primary-purple); }
#mapa-pa.pais-activo:hover, #mapa-pa.resaltado { fill: var(--accent-neon); }
.mapa-label { font: 600 15px var(--fuente); fill: var(--text-muted); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 4px; }
.mapa-label-activo { font: 800 19px var(--fuente-titulo); fill: var(--primary-purple); }
.mapa-ruta { fill: none; stroke: var(--accent-neon); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 10; animation: ruta 1.2s linear infinite; pointer-events: none; }
@keyframes ruta { to { stroke-dashoffset: -24; } }
.mapa-pin { pointer-events: none; }
.pin-punto { fill: var(--gold); stroke: #fff; stroke-width: 3; }
.pin-onda { fill: none; stroke: var(--gold); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: onda 2.4s ease-out infinite; }
.pin-onda-2 { animation-delay: 1.2s; }
@keyframes onda { from { transform: scale(.6); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.mapa-pin.salta .pin-punto { transform-box: fill-box; transform-origin: center; animation: salto .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes salto { 40% { transform: scale(1.8); } }
.presencia.visible .pais-activo { animation: emerger .9s cubic-bezier(.2, .8, .2, 1) both; transform-box: fill-box; transform-origin: center; }
.presencia.visible #mapa-pa { animation-delay: .15s; }
@keyframes emerger { from { opacity: 0; transform: scale(.85) translateY(10px); } }
.mapa-tip {
  position: absolute; z-index: 2; pointer-events: none; padding: 6px 12px; border-radius: 10px; font-size: 13px; font-weight: 700;
  color: #fff; background: var(--primary-purple); box-shadow: var(--shadow-hover); transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap;
}
@media (max-width: 992px) { .presencia { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .presencia { padding: 22px; }
  .mapa-label { font-size: 20px; }
  .mapa-label-activo { font-size: 24px; }
  .mapa-mar { font-size: 20px; }
}

/* ==========================================================
   Slogan: Creemos, Creamos, Crecemos 🇵🇦
   ========================================================== */
/* Slogan en horizontal: los tres verbos en línea (se acomodan solos si no caben). */
.slogan { font-size: clamp(32px, 3.5vw, 50px); line-height: 1.15; margin-bottom: 14px; cursor: default; letter-spacing: -.025em; }
.slogan-verbo {
  display: inline-block; color: #fff; /* siempre blanco, nunca gris */
  margin-right: .18em; transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.slogan-verbo::first-letter { color: var(--accent-neon); } /* la C inicial siempre en morado */
.slogan-verbo.activo { transform: translateY(-6px); }
.slogan-bandera { font-size: .6em; vertical-align: .25em; margin-left: 4px; }
.slogan-idea { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; min-height: 28px; font: 600 19px/1.3 var(--fuente-titulo); color: var(--accent-neon); }
.slogan-idea-linea { width: 40px; height: 3px; border-radius: 3px; background: var(--accent-neon); flex-shrink: 0; }
#sloganIdea.entra { animation: ideaEntra .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes ideaEntra { from { opacity: 0; transform: translateY(8px); } }
.bandera { width: auto; height: .9em; stroke: none; fill: initial; border-radius: 3px; vertical-align: -.1em; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.slogan-bandera .bandera { height: .55em; vertical-align: .35em; border-radius: 4px; }
.pais-bandera { display: inline-flex; }
.pais-bandera .bandera { width: 36px; height: auto; vertical-align: middle; }
.footer-slogan { margin-top: 14px !important; font: 700 17px/1.3 var(--fuente-titulo); color: #fff !important; }

/* Empresas del grupo dentro de la tarjeta del mapa */
.presencia .group-brands {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; margin: 0; padding-top: 22px;
  border-top: 1px solid var(--border-color); text-align: left;
}
.group-brands-titulo { flex-shrink: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-accent); }
.presencia .group-brands img { flex: 1; min-width: 0; width: 100%; max-width: 900px; height: auto; margin-inline: auto; }
@media (max-width: 640px) {
  .presencia .group-brands { flex-direction: column; gap: 12px; text-align: center; }
  .slogan-verbo.activo { transform: translateY(-4px); }
}

/* Mensaje de Gerencia como pantalla propia: una columna en tablet y celular */
@media (max-width: 992px) {
  .stage > .team-message .team-message-card { grid-template-columns: 1fr; padding: 28px 22px; min-height: 0; }
}

/* Menú con 8 secciones: sin cortes de línea y colapso más temprano */
.nav-links a, .nav-login, .nav-search, .nav-search kbd { white-space: nowrap; }
.nav-links { flex-shrink: 1; }
@media (max-width: 1440px) {
  .nav-search span, .nav-search kbd { display: none; }
  .nav-search { padding: 9px; }
  .nav-links a { padding: 9px 11px; }
}
@media (max-width: 1180px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; flex-direction: column; gap: 4px; padding: 10px;
    border-radius: var(--radius-card); background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-hover);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 16px; }
  .nav-links a.active { background: rgba(107, 82, 209, .09); }
  .nav-indicator { display: none; }
  .nav-right { margin-left: auto; }
}

/* ==========================================================
   Nova · mascota del portal (mascota.js)
   ========================================================== */
.to-top { left: auto; right: 30px; bottom: 100px; }
.nova { position: fixed; left: 14px; bottom: 10px; z-index: 260; display: flex; align-items: flex-end; gap: 4px; pointer-events: none; }
.nova-pajaro { width: 86px; height: 86px; padding: 0; pointer-events: auto; cursor: pointer; filter: drop-shadow(0 10px 18px rgba(48, 42, 80, .28)); }
.nova-pajaro svg { width: 100%; height: 100%; stroke: none; overflow: visible; }
.nova-sombra { fill: rgba(48, 42, 80, .14); }
.nova-cuerpo { transform-box: fill-box; transform-origin: 50% 100%; animation: novaFlota 3.2s ease-in-out infinite; }
.nova-panza-base { fill: var(--purple-accent); }
.nova-panza { fill: #f4f0ff; }
.nova-ala { fill: var(--primary-purple); transform-box: fill-box; transform-origin: 0% 0%; }
.nova-cola { fill: var(--primary-purple); }
.nova-cresta circle { fill: var(--accent-neon); }
.nova-cresta circle:nth-child(2) { fill: var(--gold); }
.nova-ojo-blanco { fill: #fff; }
.nova-pupila { fill: var(--purple-dark); }
.nova-brillo { fill: #fff; }
.nova-parpado { fill: var(--purple-accent); transform: scaleY(0); transform-origin: 0 -12px; transition: transform .08s; }
.nova.parpadea .nova-parpado { transform: scaleY(1); }
.nova-mejilla { fill: rgba(245, 158, 11, .35); }
.nova-pico-arriba { fill: var(--gold); }
.nova-pico-abajo { fill: #d97706; transform-box: fill-box; transform-origin: 0% 0%; }
.nova-pata { fill: none; stroke: var(--gold); stroke-width: 3.5; stroke-linecap: round; }
.nova.hablando .nova-pico-abajo { animation: novaPico .18s ease-in-out infinite alternate; }
.nova.hablando .nova-ala { animation: novaAla .3s ease-in-out infinite alternate; }
.nova.salta .nova-pajaro { animation: novaSalto .55s cubic-bezier(.2, .8, .2, 1); }
.nova-pajaro:hover .nova-cuerpo { animation-duration: 1.2s; }
@keyframes novaFlota { 50% { transform: translateY(-4px) rotate(-2deg); } }
@keyframes novaPico { to { transform: rotate(18deg); } }
@keyframes novaAla { to { transform: rotate(-14deg); } }
@keyframes novaSalto { 35% { transform: translateY(-14px) rotate(-6deg); } 70% { transform: translateY(0) scale(1.04, .96); } }

.nova-globo {
  position: relative; margin-bottom: 64px; margin-left: -6px; order: 2; pointer-events: auto;
  width: max-content; max-width: min(320px, calc(100vw - 120px)); padding: 12px 14px 10px; border-radius: 16px 16px 16px 4px;
  background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-hover);
  animation: novaGlobo .3s cubic-bezier(.2, .8, .2, 1);
}
.nova-globo::before {
  content: ""; position: absolute; left: -7px; bottom: 10px; width: 14px; height: 14px; background: #fff;
  border-left: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); transform: rotate(45deg);
}
@keyframes novaGlobo { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.nova-texto { font-size: 14px; line-height: 1.45; color: var(--text-main); min-height: 1.45em; }
.nova-globo { padding-right: 34px; }
.nova-cerrar { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; font-size: 17px; line-height: 1; color: var(--text-muted); }
.nova-cerrar:hover { background: var(--bg-subtle); color: var(--primary-purple); }
@media (max-width: 640px) {
  .nova { left: 6px; bottom: 6px; }
  .nova-pajaro { width: 64px; height: 64px; }
  .nova-globo { margin-bottom: 48px; font-size: 13px; }
  .to-top { right: 18px; bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) { .nova-cuerpo { animation: none; } }

/* ---------- Nova vuela (mascota.js) ---------- */
.nova {
  left: 0; top: 0; bottom: auto; display: block; width: 86px; height: 86px;
  transition: transform .7s cubic-bezier(.45, .05, .3, 1); will-change: transform;
}
.nova-pajaro { display: block; }
.nova-globo { position: absolute; left: 92px; bottom: 46px; margin: 0; }
.nova.globo-izq .nova-globo { left: auto; right: 92px; border-radius: 16px 16px 4px 16px; }
.nova.globo-izq .nova-globo::before { left: auto; right: -7px; transform: rotate(-135deg); }
.nova.mira-izq .nova-pajaro svg { transform: scaleX(-1); }
.nova.volando .nova-cuerpo { animation: novaVuelo .32s ease-in-out infinite alternate; }
.nova.volando .nova-ala { animation: novaAleteo .1s linear infinite alternate; }
.nova.volando .nova-sombra, .nova.volando .nova-pata { opacity: 0; }
@keyframes novaVuelo { from { transform: rotate(-10deg) translateY(-3px); } to { transform: rotate(-4deg) translateY(3px); } }
@keyframes novaAleteo { from { transform: rotate(10deg); } to { transform: rotate(-42deg); } }
@media (max-width: 640px) {
  .nova { width: 64px; height: 64px; left: 0; bottom: auto; }
  .nova-globo { left: 70px; bottom: 34px; }
  .nova.globo-izq .nova-globo { right: 70px; }
}

/* ---------- Nova más viva (mascota.js) ---------- */
.nova { transition: none; }
.nova-pajaro { transform-origin: 50% 90%; }
.nova-pajaro:hover .nova-ala { animation: novaAleteo .14s linear infinite alternate; }
.nova-etiqueta { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--purple-accent); }
.nova-texto { font-size: 14px; }

.nova.aterriza .nova-pajaro { animation: novaAterriza .45s cubic-bezier(.2, .8, .2, 1); }
.nova.voltereta .nova-pajaro { animation: novaVoltereta .8s cubic-bezier(.3, .7, .3, 1); }
.nova.sorpresa .nova-pajaro { animation: novaSorpresa .6s cubic-bezier(.2, .8, .2, 1); }
.nova.brinco .nova-pajaro { animation: novaBrinco .7s cubic-bezier(.2, .8, .2, 1); }
.nova.picotea .nova-pajaro { animation: novaPicotea .9s ease-in-out; }
.nova.baila .nova-pajaro { animation: novaBaila 1.1s ease-in-out; }
.nova.estira .nova-ala { animation: novaEstira 1.2s ease-in-out; }
@keyframes novaAterriza { 0% { transform: scale(1.1, .8) translateY(6px); } 50% { transform: scale(.94, 1.08) translateY(-4px); } 100% { transform: none; } }
@keyframes novaVoltereta { 0% { transform: none; } 40% { transform: translateY(-46px) rotate(-200deg); } 75% { transform: translateY(-20px) rotate(-360deg); } 100% { transform: rotate(-360deg); } }
@keyframes novaSorpresa { 30% { transform: translateY(-22px) scale(1.08); } 60% { transform: translateY(0) scale(1.05, .92); } }
@keyframes novaBrinco { 25% { transform: translateY(-18px) rotate(-6deg); } 50% { transform: translateY(0) scale(1.06, .94); } 70% { transform: translateY(-8px) rotate(4deg); } }
@keyframes novaPicotea { 15%, 45% { transform: rotate(16deg) translateY(4px); } 30%, 60% { transform: rotate(4deg); } }
@keyframes novaBaila { 20% { transform: rotate(-10deg); } 40% { transform: rotate(10deg) translateY(-6px); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(8deg) translateY(-4px); } }
@keyframes novaEstira { 40%, 60% { transform: rotate(-55deg); } }

/* Dormido: ojos cerrados y zZz */
.nova-zzz { position: absolute; left: 62px; top: -14px; display: none; pointer-events: none; font: 800 16px var(--fuente-titulo); color: var(--purple-accent); }
.nova-zzz i { position: absolute; font-style: normal; opacity: 0; animation: novaZzz 2.4s ease-out infinite; }
.nova-zzz i:nth-child(2) { animation-delay: .8s; font-size: 19px; }
.nova-zzz i:nth-child(3) { animation-delay: 1.6s; font-size: 23px; }
@keyframes novaZzz { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(22px, -36px); opacity: 0; } }
.nova.dormido .nova-zzz { display: block; }
.nova.dormido .nova-parpado { transform: scaleY(1); }
.nova.dormido .nova-cuerpo { animation-duration: 5s; }

/* Estela, plumas y corazones */
.nova-particula { position: fixed; z-index: 255; pointer-events: none; transform: translate(-50%, -50%); }
.nova-chispa { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.nova-pluma { width: 7px; height: 14px; border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%; background: var(--c); opacity: .9; }
.nova-corazon { font-size: 16px; line-height: 1; }

/* ==========================================================
   Hall de la Fama como slideshow (portal.js · 8c)
   ========================================================== */
.fame-slider { position: relative; }
#fameGrid.fame-grid {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain; padding: 12px 4px 22px; margin: -12px -4px 0; scroll-padding-inline: 4px;
}
#fameGrid.fame-grid::-webkit-scrollbar { display: none; }
#fameGrid .fame-card { flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; aspect-ratio: 4 / 5; border-radius: var(--radius-card); }
#fameGrid .fame-label { font-size: 14px; padding: 34px 16px 14px; }
.fame-nav {
  position: absolute; top: calc(50% - 30px); z-index: 3; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-size: 34px; line-height: 1; padding-bottom: 4px;
  color: var(--primary-purple); background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-hover);
  transition: background .2s, color .2s, transform .2s;
}
.fame-nav:hover { background: var(--primary-purple); color: #fff; transform: scale(1.08); }
.fame-prev { left: -22px; }
.fame-next { right: -22px; }
.fame-pie { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 6px; }
.fame-contador { min-width: 56px; font: 700 14px var(--fuente-titulo); color: var(--primary-purple); text-align: right; }
.fame-puntos { display: flex; flex-wrap: wrap; gap: 7px; }
.fame-puntos button { width: 8px; height: 8px; border-radius: 999px; background: #cbd5e1; transition: width .3s, background .3s; }
.fame-puntos button.activo { width: 26px; background: var(--gold); }
@media (max-width: 992px) {
  #fameGrid .fame-card { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 640px) {
  #fameGrid.fame-grid { gap: 14px; }
  #fameGrid .fame-card { flex-basis: 84%; }
  .fame-nav { width: 44px; height: 44px; font-size: 28px; }
  .fame-prev { left: 4px; }
  .fame-next { right: 4px; }
}

/* ==========================================================
   Celebración de cumpleaños (celebracion.js)
   ========================================================== */
.celebrar-btn { padding: 10px 18px; font-size: 14px; animation: celebrarLatido 2.2s ease-in-out infinite; }
@keyframes celebrarLatido { 0%, 100% { transform: none; } 50% { transform: scale(1.06); } }
#cumpleanos .section-header { align-items: center; }
#cumpleanos .section-header > .celebrar-btn { margin-left: auto; }

.fiesta {
  position: fixed; inset: 0; z-index: 450; display: grid; place-items: center; padding: 20px; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(72, 63, 115, .92), rgba(30, 25, 54, .96));
  animation: aparecer .35s ease;
}
.fiesta[hidden] { display: none; }
.fiesta-fuegos { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fiesta-globos { position: absolute; inset: 0; pointer-events: none; }
.fiesta-caja {
  position: relative; z-index: 2; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 34px 30px 24px; border-radius: 28px; text-align: center; background: #fff;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .6), 0 0 0 6px rgba(255, 255, 255, .12);
  animation: fiestaEntra .6s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes fiestaEntra { from { opacity: 0; transform: scale(.7) translateY(30px); } }
.fiesta-cerrar {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; font-size: 24px; line-height: 1;
  color: var(--primary-purple); background: var(--bg-subtle); border: 1px solid var(--border-color); transition: background .2s, color .2s, transform .2s;
}
.fiesta-cerrar:hover { background: var(--primary-purple); color: #fff; transform: rotate(90deg); }
.fiesta-pastel { display: inline-block; font-size: 54px; line-height: 1; animation: pastelBaila 1.4s ease-in-out infinite; }
@keyframes pastelBaila { 50% { transform: rotate(-10deg) scale(1.1); } }
.fiesta-titulo { margin: 8px 0 6px; font-size: clamp(32px, 6vw, 50px); font-weight: 800; color: var(--primary-purple); }
.fiesta-titulo span { display: inline-block; animation: letraSalta 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * .07s); }
.fiesta-titulo span:nth-child(3n+1) { color: var(--accent-neon); }
.fiesta-titulo span:nth-child(5n+2) { color: var(--gold); }
@keyframes letraSalta { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-12px) rotate(-6deg); } }
.fiesta-sub { color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.fiesta-personas { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 22px 0 16px; }
.fiesta-persona { margin: 0; width: 132px; animation: fiestaEntra .7s cubic-bezier(.2, .9, .3, 1.2) both; }
.fiesta-persona:nth-child(2) { animation-delay: .12s; }
.fiesta-persona:nth-child(3) { animation-delay: .24s; }
.fiesta-persona img, .fiesta-iniciales {
  display: grid; place-items: center; width: 116px; height: 116px; margin: 0 auto 10px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; box-shadow: 0 0 0 4px var(--gold), 0 14px 30px -10px rgba(48, 42, 80, .45);
  font: 800 34px var(--fuente-titulo); color: #fff; background: var(--morado-grad);
}
.fiesta-personas.es-uno .fiesta-persona { width: 190px; }
.fiesta-personas.es-uno img, .fiesta-personas.es-uno .fiesta-iniciales { width: 168px; height: 168px; }
.fiesta-persona figcaption { font: 700 17px/1.25 var(--fuente-titulo); color: var(--primary-purple); }
.fiesta-personas.es-uno figcaption { font-size: 22px; }
.fiesta-deseo { max-width: 460px; margin: 0 auto 20px; color: var(--text-muted); }
.fiesta-acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fiesta-seguir { padding: 13px 20px; border-radius: 30px; font-weight: 600; color: var(--primary-purple); border: 1px solid var(--border-color); transition: background .2s; }
.fiesta-seguir:hover { background: var(--bg-subtle); }
.fiesta-tip { display: block; margin-top: 14px; color: var(--text-muted); font-size: 12px; }

/* Globos: suben con vaivén; con un clic se revientan */
.globo {
  position: absolute; bottom: -160px; width: 58px; height: 72px; padding: 0; pointer-events: auto; cursor: pointer;
  border-radius: 50% 50% 48% 52% / 58% 58% 42% 42%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7), transparent 22%), var(--c);
  box-shadow: inset -8px -10px 0 rgba(0, 0, 0, .12);
  transform: scale(var(--escala));
  animation: globoSube var(--dur) linear var(--delay) infinite;
}
.globo::before { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 9px; translate: -50% 0; background: var(--c); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.globo::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 70px; margin-top: 2px; background: rgba(255, 255, 255, .55); transform-origin: top; animation: hilo 1.6s ease-in-out infinite alternate; }
@keyframes globoSube {
  0% { transform: translate(0, 0) scale(var(--escala)); }
  25% { transform: translate(var(--vaiven), -30vh) scale(var(--escala)) rotate(4deg); }
  50% { transform: translate(calc(var(--vaiven) * -1), -60vh) scale(var(--escala)) rotate(-4deg); }
  75% { transform: translate(var(--vaiven), -90vh) scale(var(--escala)) rotate(3deg); }
  100% { transform: translate(0, calc(-100vh - 260px)) scale(var(--escala)); }
}
@keyframes hilo { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.globo.reventado { animation: none; transform: scale(1.6); opacity: 0; transition: transform .25s, opacity .25s; }
@media (max-width: 640px) {
  .fiesta-caja { padding: 28px 18px 20px; }
  .fiesta-persona { width: 110px; }
  .fiesta-persona img, .fiesta-iniciales { width: 96px; height: 96px; }
  .globo { width: 44px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .globo { animation: none; bottom: 8vh; } }

/* ==========================================================
   Inicio: "Conectados contigo" + Misión, Visión y Valores (buzon.js)
   ========================================================== */
.hero-right-column { grid-template-rows: none; grid-auto-rows: auto; align-content: start; }
.hero-card-image { min-height: 300px; }

.conectados {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 20px; overflow: hidden;
  border-radius: var(--radius-card); text-align: left; color: #fff; background: var(--morado-grad);
  box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
}
.conectados::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60%; left: -70%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent); animation: brilloConectados 5s ease-in-out infinite;
}
@keyframes brilloConectados { 0%, 60% { left: -70%; } 100% { left: 120%; } }
.conectados:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.conectados-ico { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; background: rgba(255, 255, 255, .12); }
.conectados-ico::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent-neon); animation: ondaConectados 2.2s ease-out infinite; }
@keyframes ondaConectados { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.conectados-texto { display: grid; flex: 1; min-width: 0; }
.conectados-texto strong { font: 800 19px/1.2 var(--fuente-titulo); }
.conectados-texto small { color: rgba(255, 255, 255, .75); font-size: 13px; }
.conectados-flecha { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 700; background: var(--accent-neon); transition: transform .3s; }
.conectados:hover .conectados-flecha { transform: translateX(4px); }

.mision-card { display: block; width: 100%; padding: 0; background: #fff; border: 1px solid var(--border-color); cursor: zoom-in; }
.mision-card img { width: 100%; height: auto; transition: transform .6s ease; }
.mision-card:hover img { transform: scale(1.03); }
.mision-ver { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 30px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(48, 42, 80, .85); opacity: 0; transition: opacity .3s; }
.mision-card:hover .mision-ver, .mision-card:focus-visible .mision-ver { opacity: 1; }

/* Ventana del buzón */
.buzon { position: fixed; inset: 0; z-index: 450; display: grid; place-items: center; padding: 20px; background: rgba(15, 12, 34, .6); backdrop-filter: blur(5px); animation: aparecer .25s ease; }
.buzon[hidden] { display: none; }
.buzon-caja { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px 28px 24px; border-radius: 24px; background: #fff; box-shadow: 0 40px 90px -20px rgba(15, 12, 34, .55); }
.buzon-cerrar { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--primary-purple); background: var(--bg-subtle); border: 1px solid var(--border-color); transition: background .2s, color .2s; }
.buzon-cerrar:hover { background: var(--primary-purple); color: #fff; }
.buzon-ico { display: block; font-size: 40px; line-height: 1; margin-bottom: 8px; }
.buzon-caja h2 { font-size: 26px; color: var(--primary-purple); margin-bottom: 8px; }
.buzon-sub { color: var(--text-muted); margin-bottom: 18px; }
.buzon-sub strong { color: var(--primary-purple); }
.buzon-tipos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.buzon-tipos legend { font-weight: 700; color: var(--primary-purple); font-size: 14px; margin-bottom: 8px; }
.buzon-tipos label { cursor: pointer; }
.buzon-tipos input { position: absolute; opacity: 0; pointer-events: none; }
.buzon-tipos span { display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-muted); background: var(--bg-subtle); border: 1px solid var(--border-color); transition: all .2s; }
.buzon-tipos input:checked + span { color: #fff; background: var(--primary-purple); border-color: var(--primary-purple); }
.buzon-tipos input:focus-visible + span { outline: 2px solid var(--accent-neon); outline-offset: 2px; }
.buzon-campo { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 700; font-size: 14px; color: var(--primary-purple); }
.buzon-campo small { font-weight: 500; color: var(--text-muted); }
.buzon-campo select, .buzon-campo textarea { width: 100%; padding: 11px 13px; border-radius: 12px; border: 2px solid var(--border-color); background: var(--bg-subtle); font: 500 15px var(--fuente); color: var(--text-main); resize: vertical; transition: border-color .2s, box-shadow .2s; }
.buzon-campo select:focus, .buzon-campo textarea:focus { outline: none; border-color: var(--accent-neon); box-shadow: 0 0 0 4px rgba(168, 85, 247, .15); }
.buzon-cuenta { justify-self: end; }
.buzon-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.buzon-nota { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.buzon-estado { min-height: 1.2em; font-size: 14px; font-weight: 600; color: #b91c1c; margin-bottom: 8px; }
.buzon-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.buzon-acciones .btn:disabled { opacity: .6; cursor: wait; }
.buzon-cancelar { padding: 13px 20px; border-radius: 30px; font-weight: 600; color: var(--primary-purple); border: 1px solid var(--border-color); }
.buzon-cancelar:hover { background: var(--bg-subtle); }
.buzon-gracias { text-align: center; padding: 20px 0 6px; }
.buzon-gracias p { color: var(--text-muted); margin-bottom: 20px; }
@media (max-width: 640px) {
  .buzon-caja { padding: 26px 18px 20px; }
  .conectados-texto strong { font-size: 17px; }
}

/* ==========================================================
   2026-11-19 · Franja superior, 3 columnas (menú | slogan | derecha),
   Misión/Visión/Valores en pestañas y botón del buzón más grande
   ========================================================== */
:root { --ancho-total: 1440px; }

/* Franja morada delgada arriba de todo */
.franja-superior { height: 6px; background: linear-gradient(90deg, var(--primary-purple), var(--purple-accent) 50%, var(--accent-neon)); }

/* Disposición general: menú lateral a la izquierda + contenido */
.nav-container { max-width: var(--ancho-total); }
.disposicion { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; width: min(var(--ancho-total), 100% - 32px); margin: 0 auto; }
.disposicion > .content-wrapper { width: auto; margin: 0; min-width: 0; }
.disposicion ~ .footer .footer-container, .disposicion ~ .footer .footer-bottom { width: min(var(--ancho-total), 100% - 32px); }

/* Menú en recuadro */
.menu-lateral {
  position: sticky; top: 92px; margin-top: 28px; padding: 18px 14px 16px; border-radius: var(--radius-card);
  background: #fff; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
}
.menu-titulo { padding: 0 10px 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.menu-lateral .nav-links { flex-direction: column; margin-left: 0; gap: 4px; }
.menu-lateral .nav-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 15px; transition: background .2s, color .2s; }
.menu-lateral .nav-links a::before { content: attr(data-ico); display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; font-size: 15px; background: var(--bg-subtle); transition: background .2s; }
.menu-lateral .nav-links a:hover { background: rgba(107, 82, 209, .07); }
.menu-lateral .nav-links a.active { background: var(--morado-grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(48, 42, 80, .8); }
.menu-lateral .nav-links a.active::before { background: rgba(255, 255, 255, .16); }
.menu-lateral .nav-indicator { display: none; }
.menu-lema { margin-top: 14px; padding: 12px 10px 0; border-top: 1px solid var(--border-color); font: 700 13px/1.4 var(--fuente-titulo); color: var(--purple-accent); }

/* Columna del slogan: contenido centrado verticalmente */
.hero-card-purple { align-items: center; }
.hero-card-image { min-height: 280px; }

/* Misión, Visión y Valores en pestañas */
.mvv { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--border-color); }
.mvv-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--bg-subtle); border: 1px solid var(--border-color); }
.mvv-tabs button { flex: 1; padding: 10px 8px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--text-muted); transition: background .25s, color .25s; }
.mvv-tabs button:hover { color: var(--primary-purple); }
.mvv-tabs button[aria-selected="true"] { background: var(--morado-grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(48, 42, 80, .8); }
.mvv-panel { min-height: 160px; animation: aparecer .35s ease; outline: none; }
.mvv-panel h3 { font-size: 20px; color: var(--primary-purple); margin-bottom: 8px; }
.mvv-panel p { font-size: 16px; line-height: 1.65; color: var(--text-main); }
.valores { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.valores li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bg-subtle); transition: background .2s; }
.valores li:hover { background: rgba(107, 82, 209, .07); }
.valor-ico { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; font-size: 18px; background: rgba(107, 82, 209, .1); }
.valores strong { display: block; font-size: 15px; color: var(--primary-purple); }
.valores li span:not(.valor-ico) { font-size: 14px; line-height: 1.45; color: var(--text-muted); }
.mvv-infografia { align-self: flex-start; padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--purple-accent); transition: background .2s; }
.mvv-infografia:hover { background: rgba(107, 82, 209, .08); }

/* Botón del buzón: más grande y con los colores invertidos */
.conectados { min-height: 112px; padding: 24px 26px; gap: 18px; background: linear-gradient(135deg, var(--accent-neon), var(--purple-accent)); }
.conectados-ico { width: 64px; height: 64px; font-size: 32px; background: rgba(255, 255, 255, .18); }
.conectados-ico::before { border-color: #fff; }
.conectados-texto strong { font-size: 25px; }
.conectados-texto small { font-size: 15px; color: rgba(255, 255, 255, .88); }
.conectados-flecha { width: 50px; height: 50px; font-size: 22px; background: var(--primary-purple); }

/* Pantallas medianas y celular: el menú se abre con ☰ */
@media (max-width: 1180px) {
  .disposicion { grid-template-columns: 1fr; }
  .menu-lateral { position: fixed; top: 70px; left: 0; right: 0; z-index: 149; height: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
  .menu-titulo, .menu-lema { display: none; }
  .menu-lateral .nav-links { top: 0; }
}
@media (max-width: 640px) {
  .conectados { min-height: 96px; padding: 18px; gap: 14px; }
  .conectados-ico { width: 52px; height: 52px; font-size: 26px; }
  .conectados-texto strong { font-size: 20px; }
  .conectados-texto small { font-size: 13px; }
  .mvv-tabs button { font-size: 13px; padding: 9px 4px; }
}

/* Ajustes 3 columnas: sin bloque oscuro detrás del slogan y botones de arriba a la derecha */
.hero-card-purple .hero-purple-content { background: none; }
.nav-right { margin-left: auto; }

/* ==========================================================
   Misión, Visión y Valores: slideshow de la infografía partida
   + columna derecha con el espacio repartido de forma uniforme
   ========================================================== */
.hero-right-column { display: flex; flex-direction: column; gap: 20px; }
.hero-right-column > .mvv-show { flex: 0 0 auto; }
.hero-right-column > .hero-card-image { flex: 1 1 260px; min-height: 260px; }
.hero-right-column > .conectados { flex: 0 0 auto; }

.mvv-show { position: relative; display: flex; flex-direction: column; padding: 14px 14px 12px; background: #fff; border: 1px solid var(--border-color); }
.mvv-pista { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #f6f1fd; }
.mvv-slide { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 6px; opacity: 0; transform: translateX(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.mvv-slide.activa { opacity: 1; transform: none; pointer-events: auto; }
.mvv-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.mvv-flecha {
  position: absolute; top: calc(14px + (100% - 64px) / 2); translate: 0 -50%; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  font-size: 26px; line-height: 1; padding-bottom: 3px; color: var(--primary-purple); background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-hover); transition: background .2s, color .2s;
}
.mvv-flecha:hover { background: var(--primary-purple); color: #fff; }
.mvv-prev { left: 6px; }
.mvv-next { right: 6px; }
.mvv-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.mvv-puntos { display: flex; gap: 7px; }
.mvv-puntos button { width: 9px; height: 9px; border-radius: 999px; background: #cbd5e1; transition: width .3s, background .3s; }
.mvv-puntos button[aria-current="true"] { width: 26px; background: var(--purple-accent); }
@media (max-width: 640px) {
  .mvv-flecha { width: 34px; height: 34px; font-size: 22px; }
}

/* Slogan más ancho y con más protagonismo: llena el ancho de su tarjeta (2026-11-19) */
.hero-grid { grid-template-columns: 1.35fr 1fr; }
.hero-card-purple .hero-purple-content { container-type: inline-size; padding: 40px 36px; }
.slogan { font-size: clamp(36px, 9.4cqi, 80px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 18px; }
.slogan-verbo { margin-right: .14em; }
.slogan-verbo.activo { transform: translateY(-5px); }
.slogan-idea { font-size: clamp(18px, 3.6cqi, 26px); margin-bottom: 22px; }
.slogan-idea-linea { width: 54px; height: 4px; }
@media (max-width: 992px) { .hero-grid { grid-template-columns: 1fr; } }

/* La fecha ya llega con la primera letra en mayúscula desde portal.js */
.today-date strong { text-transform: none; }

/* Láminas rediseñadas (1600x900, 16:9): llenan todo el recuadro del slideshow */
.mvv-slide { padding: 0; }
.mvv-slide img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 12px; }
.mvv-pista { background: #f4efff; }
