/* home.css — estilos específicos de la página de inicio */

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(900px 480px at 96% -8%, rgba(87,150,208,.16), transparent 60%),
    linear-gradient(180deg, #FBFDFF, var(--bg) 65%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-block: clamp(52px, 7.5vw, 104px);
}
.hero__eyebrow { margin-bottom: 22px; }
.hero__title { margin-bottom: 22px; }
.hero__title em { font-style: normal; color: var(--navy); position: relative;
  background: linear-gradient(0deg, var(--blue-100) 0 22%, transparent 22%); border-radius: 3px; }
.hero__lead { max-width: 52ch; margin-bottom: 30px; }
.hero__cta { margin-bottom: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; color: var(--muted); font-size: 14.5px; }
.hero__trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); display: inline-block; }
.hero__trust strong { color: var(--ink); font-weight: 700; }

/* Media column */
.hero__media { position: relative; }
.hero__photo { aspect-ratio: 4 / 4.4; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--blue-100); }
.hero__floats { position: absolute; inset: 0; pointer-events: none; }
.hero__stat-card {
  position: absolute; left: -28px; bottom: 36px; pointer-events: auto;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--blue-100); border-radius: 16px; padding: 18px 22px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 16px;
}
.hero__stat-card .stat__num { font-size: 38px; }
.hero__stat-card .stat__label { margin-top: 2px; font-size: 13.5px; max-width: 14ch; }
.hero__chip {
  position: absolute; right: -14px; top: 30px; pointer-events: auto;
  background: linear-gradient(180deg, #1A57AE, var(--navy)); color: #fff; border-radius: 13px; padding: 13px 18px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.2); display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 14.5px;
}
.hero__chip svg { width: 20px; height: 20px; color: var(--blue-200); }

/* Stats panel (para data-hero="data") */
.hero__statpanel { display: none; }
.hero__statpanel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.hero__statpanel-grid > div { background: #fff; padding: 26px 24px; }
.hero__statpanel .stat__num { font-size: clamp(34px, 4vw, 46px); }

/* Mesh field decorativo */
.hero__mesh { position: absolute; top: 0; right: 0; width: 50%; height: 100%; z-index: 0; opacity: .9; }

/* ---- Variantes (tweaks) ---- */
/* mesh: texto centrado, sin foto */
html[data-hero="mesh"] .hero__grid { grid-template-columns: 1fr; text-align: center; padding-block: clamp(64px, 9vw, 130px); }
html[data-hero="mesh"] .hero__media { display: none; }
html[data-hero="mesh"] .hero__eyebrow, html[data-hero="mesh"] .hero__lead, html[data-hero="mesh"] .hero__cta { margin-inline: auto; }
html[data-hero="mesh"] .hero__lead { max-width: 60ch; }
html[data-hero="mesh"] .hero__trust { justify-content: center; }
html[data-hero="mesh"] .hero__title { max-width: 18ch; margin-inline: auto; }
html[data-hero="mesh"] .hero__mesh { width: 100%; opacity: .5; }

/* human: foto a sangre con overlay */
html[data-hero="human"] .hero { background: var(--navy-950); }
html[data-hero="human"] .hero__grid { grid-template-columns: 1fr; min-height: 78vh; align-content: end; padding-block: clamp(60px, 9vw, 110px); }
html[data-hero="human"] .hero__media { position: absolute; inset: 0; z-index: 0; }
html[data-hero="human"] .hero__photo { aspect-ratio: auto; height: 100%; width: 100%; border-radius: 0; }
html[data-hero="human"] .hero__floats, html[data-hero="human"] .hero__mesh { display: none; }
html[data-hero="human"] .hero__inner { z-index: 2; }
html[data-hero="human"] .hero__text { max-width: 40ch; }
html[data-hero="human"] .hero__title, html[data-hero="human"] .hero__title em { color: #fff; }
html[data-hero="human"] .hero__lead { color: #D6E2F2; }
html[data-hero="human"] .hero__trust { color: #B7CAE4; }
html[data-hero="human"] .hero__trust strong { color: #fff; }
html[data-hero="human"] .hero::after { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(90deg, rgba(7,27,58,.92) 0%, rgba(7,27,58,.7) 45%, rgba(7,27,58,.25) 100%); }
html[data-hero="human"] .hero__eyebrow { color: var(--blue-200); }

/* data: panel de cifras en lugar de foto */
html[data-hero="data"] .hero__photo, html[data-hero="data"] .hero__floats { display: none; }
html[data-hero="data"] .hero__statpanel { display: block; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; }
  html[data-hero="human"] .hero__media { max-width: none; }
  .hero__mesh { display: none; }
}

/* ============ PROBLEMA / SOLUCIÓN ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: -1; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.problem-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
@media (max-width: 560px) { .problem-list { grid-template-columns: 1fr; } }
.problem-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.problem-list svg { width: 22px; height: 22px; color: var(--navy); flex-shrink: 0; }
.problem-list span { font-weight: 600; color: var(--ink); font-size: 15.5px; }

/* Modelo: 4 pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.steps__item { padding: 32px 28px; border-left: 1px solid var(--line); position: relative; transition: background .25s var(--ease); }
.steps__item:hover { background: var(--blue-50); }
.steps__item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blue); border-radius: 0 0 3px 3px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.steps__item:hover::before { transform: scaleX(1); }
.steps__item:first-child { border-left: 0; }
@media (max-width: 860px) { .steps__item:nth-child(odd) { border-left: 0; } }
@media (max-width: 480px) { .steps__item { border-left: 0; border-top: 1px solid var(--line); } .steps__item:first-child { border-top: 0; } }
.steps__icon { width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(180deg, #1A57AE, var(--navy)); color: #fff; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 6px 14px -6px rgba(20,75,155,.5), inset 0 1px 0 rgba(255,255,255,.2); transition: transform .25s var(--ease); }
.steps__item:hover .steps__icon { transform: translateY(-2px) scale(1.05); }
.steps__icon svg { width: 24px; height: 24px; }
.steps__item h3 { font-size: 19px; margin-bottom: 8px; }
.steps__item p { color: var(--muted); font-size: 15.5px; margin: 0; }
.steps__n { position: absolute; top: 26px; right: 26px; font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--blue-200); }

/* Programas destacados */
.prog-card { display: flex; flex-direction: column; height: 100%; }
.prog-card .ph { margin: -30px -30px 24px; border-radius: var(--radius) var(--radius) 0 0; border-left: 0; border-right: 0; border-top: 0; }
.prog-card .tag { margin-bottom: 14px; align-self: flex-start; }
.prog-card .card__foot { margin-top: auto; padding-top: 18px; }

/* Impact band */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.impact-grid > div { position: relative; padding-left: 22px; }
.impact-grid > div::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--blue), rgba(87,150,208,.15)); }
@media (max-width: 860px) { .impact-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; } }
@media (max-width: 440px) { .impact-grid { grid-template-columns: 1fr 1fr; } }

/* Testimonio */
.quote { font-family: var(--font-head); font-weight: 600; font-size: clamp(25px, 3.5vw, 38px); line-height: 1.26; letter-spacing: -.014em; color: var(--ink); text-wrap: balance; }
.quote-mark { font-family: var(--font-head); font-size: 92px; line-height: .6; color: var(--blue); opacity: .45; display: block; height: 44px; }
.quote-by { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.quote-by .ph { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.quote-by b { display: block; color: var(--ink); }
.quote-by span { color: var(--muted); font-size: 15px; }

/* Aliados */
.allies { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 760px) { .allies { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 440px) { .allies { grid-template-columns: repeat(2, 1fr); } }
/* Aliados — carrusel (marquee) derecha → izquierda */
.marquee { position: relative; overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee-scroll 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.ally {
  flex-shrink: 0; width: 220px; height: 110px; margin: 0 14px;
  display: grid; place-items: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.ally img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; opacity: 1; transition: transform .25s var(--ease); }
.ally:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.ally:hover img { transform: scale(1.04); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; } .marquee { -webkit-mask-image: none; mask-image: none; } }

/* Audiencias */
.aud-card { display: flex; gap: 16px; align-items: flex-start; }
.aud-card .card__icon { margin-bottom: 0; flex-shrink: 0; }
.aud-card h3 { font-size: 18px; margin-bottom: 6px; }
.aud-card p { font-size: 15px; }
