/* Playtime — tokens de marca sobre Zeta Theme */
:root {
  --accent: #6F4C9D;
  --accent-ink: #4E327A;
  --accent-2: #84CEC2;
  --accent-2-ink: #2B7468;
  --deep: #231834;
  --ink-3: #6F7375;
  --paper-2: #F4F5F6;
  --shadow-rgb: 35 24 52;
  --display: "Nunito", ui-rounded, system-ui, sans-serif;
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Fondos con textura suave (encabezados de páginas interiores) */
.phero { position: relative; isolation: isolate; background: linear-gradient(180deg, #F3EEF9 0%, rgb(243 238 249 / .5) 55%, #fff 100%); }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(111 76 157 / .18) 1.2px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.phero::after { content: ""; position: absolute; z-index: -1; top: -120px; right: -80px; width: min(520px, 60vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(132 206 194 / .38), transparent 68%); pointer-events: none; }
.phero__media { position: relative; }

/* Listados (programas, casos, blog): degradé muy suave hacia el cierre */
.post-type-archive-zeta_program main, .post-type-archive-zeta_case main, .blog main, .category main { background: linear-gradient(180deg, #fff 0%, #fff 40%, #F7F4FB 100%); }

/* Portada: tono cálido detrás de la foto */
.hero--side { position: relative; isolation: isolate; }
.hero--side::before { content: ""; position: absolute; inset: 0 0 auto; height: 100%; z-index: -2; background: radial-gradient(60% 70% at 85% 30%, rgb(111 76 157 / .1), transparent 70%), radial-gradient(40% 50% at 10% 90%, rgb(132 206 194 / .14), transparent 70%); }
.hero__note { font-family: var(--display); font-weight: 700; color: var(--accent-ink); }
.hero--bleed .hero__blob--1 { display: none; }
.hero--bleed .facts { padding-bottom: clamp(48px, 6vw, 96px); }

/* Testimonios: brillo de marca sobre el fondo oscuro */
.quotes-sec { background: radial-gradient(50% 70% at 88% 30%, rgb(111 76 157 / .55), transparent 70%), var(--deep); }

/* Preguntas: signo decorativo */
.faq-layout__intro { position: relative; }
.faq-layout__intro::after { content: "?"; position: absolute; right: 4%; top: 64px; font: 900 clamp(6rem, 9vw, 9.5rem)/1 var(--display); color: var(--accent-2); rotate: 14deg; opacity: .55; pointer-events: none; z-index: 0; }
.faq-layout__intro > * { position: relative; z-index: 1; }
@media (max-width: 960px) { .faq-layout__intro::after { top: 24px; font-size: 5rem; } }

/* Manual de marca: el morado es el color de los CTA */
.btn--ink { background: var(--accent); }
.btn--ink:hover { background: var(--accent-ink); }

/* Revisión 28-oct: 30 logos en 6 columnas; testimonios largos */
@media (min-width: 961px) {
  .logos { grid-template-columns: repeat(6, 1fr); }
  .logos li:nth-child(7n) { border-right: 1px solid var(--rule); }
  .logos li:nth-child(6n) { border-right: 0; }
}
.quotes-sec .quote blockquote p { font-size: clamp(1.2rem, .95rem + .85vw, 1.7rem); line-height: 1.32; max-width: 34ch; font-weight: 600; }
.split--modes .split__fig img { aspect-ratio: auto; }
.split--modes .split { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 960px) { .split--modes .split { grid-template-columns: 1fr; } }

/* Revisión nov-2026: títulos alineados arriba con la bajada; tarjetas con filas alineadas */
.phero__grid, .sec__head { align-items: start; }
.card__title { max-width: none; }
@media (min-width: 961px) {
  .cards:not(.cards--numbered) { grid-auto-rows: auto; }
  .cards:not(.cards--numbered) .card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
  .cards:not(.cards--numbered) .card__badge { justify-self: start; }
  .cards:not(.cards--numbered) .card__meta { margin: 0; align-self: end; }
}

/* Modalidades: collage horizontal sin recorte, texto arriba */
.split--modes .split { align-items: start; }
.split--modes .split__fig img { aspect-ratio: 2400 / 1478; height: auto; object-fit: contain; }
/* Corte forzado en títulos de soluciones (\n en el título) */
@media (min-width: 641px) { .card__title { white-space: pre-line; } }
@media (max-width: 640px) { .card__title { white-space: normal; } }

/* Revisión 12-nov: textos más grandes en escritorio y títulos largos en 2–3 líneas */
@media (min-width: 961px) {
  body { font-size: 18px; }
  .lead, .steps-layout__lead, .closing__body p { font-size: clamp(1.15rem, 1rem + .35vw, 1.32rem); }
  .facts span { font-size: 1.08rem; max-width: 32ch; }
  .facts__title { font-size: 1.14rem; }
  .card__text { font-size: 1.125rem; }
  .card__meta { font-size: 1.04rem; }
  .card__meta span { font-size: .84rem; }
  .steps__item p, .faq__a { font-size: 1.125rem; }
  .faq__item summary { font-size: 1.2rem; }
  .modes dd { font-size: 1.06rem; }
  .story__body { font-size: 1.12rem; }
  .story__body p:first-child { font-size: 1.26rem; }
  .manifesto__cap { font-size: 1.2rem; }
  .manifesto__cap cite { font-size: .88rem; }
  .manifesto__body > p { font-size: 1.2rem; }
  .member__role { font-size: 1.04rem; }
  .member__back { font-size: .98rem; }
  .clients__title, .label { font-size: .9rem; }
  .pcards-layout__lead, .muted { font-size: 1.125rem; }
  .split__body > p { font-size: 1.14rem; }

  /* Títulos largos: más ancho para que queden en 2–3 líneas */
  .sec__head h2, .split__body h2, .faq-layout__intro h2 { max-width: 22ch; }
  .manifesto__body h2 { max-width: 24ch; }
  /* Encabezado sin foto al lado: título arriba, bajada ancha debajo */
  .phero:not(.phero--side) .phero__grid { grid-template-columns: 1fr; gap: 28px; }
  .phero:not(.phero--side) .phero__title { max-width: 30ch; }
  .phero:not(.phero--side) .phero__side .lead { max-width: 92ch; }
  /* Nosotras: título a lo ancho (3 líneas), bajada y círculos debajo */
  .phero--orbit .phero__grid { grid-template-columns: 6fr 5fr; row-gap: 8px; align-items: center; }
  .phero--orbit .phero__main { display: contents; }
  .phero--orbit .phero__title { grid-column: 1 / -1; max-width: 34ch; }
  .phero--orbit .phero__main .lead { grid-column: 1; margin-top: 0; max-width: 44ch; }
  .phero--orbit .phero__side { grid-column: 2; grid-row: 2 / span 2; }
  .phero--orbit .phero__orbit { max-width: 470px; }
}

/* Modalidades: carrusel 4:3 en vez del collage; 4 modalidades en 2×2 */
.split--modes .split__slides .split__fig img { aspect-ratio: 4 / 3; object-fit: cover; }
.split--modes .split { grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 960px) { .split--modes .split { grid-template-columns: 1fr; } }
.faq__a p + p { margin-top: .8em; }
@media (min-width: 961px) {
  .phero--orbit .phero__main .lead { margin-top: 20px; align-self: start; }
  /* Recursos (Inicio): título arriba en 2 líneas, tarjetas a todo el ancho */
  .pcards-layout { grid-template-columns: 1fr; }
  .pcards-layout__intro { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); align-items: start; }
  .pcards-layout__intro > .label { grid-column: 1 / -1; }
  .pcards-layout__intro h2 { grid-row: span 2; max-width: 20ch; margin: 0; }
  .pcards-layout__lead { margin: 0 0 20px; max-width: 46ch; }
  .pcards-layout__intro > .btn { justify-self: start; }
}
/* Preguntas: el «?» bajo el texto, junto al botón */
.faq-layout__intro::after { top: auto; bottom: -24px; right: 8%; }

/* Cookie consent (Ley 21.719) */
.cookies { position: fixed; left: 24px; bottom: 24px; z-index: 60; width: min(440px, calc(100vw - 48px)); }
.cookies[hidden] { display: none; }
.cookies__box { background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 22px 22px 18px; }
.cookies__title { margin: 0 0 6px; font: 800 1.15rem/1.2 var(--display); }
.cookies__text { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.cookies__text a { color: var(--accent); text-decoration: underline; }
.cookies__prefs { display: grid; gap: 10px; margin-top: 14px; }
.cookies__prefs[hidden] { display: none; }
.cookies__opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .88rem; line-height: 1.4; color: var(--ink-2); cursor: pointer; }
.cookies__opt b { display: block; color: var(--ink); }
.cookies__opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.cookies__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.cookies__actions .btn { padding: 10px 18px; font-size: .92rem; }
.cookies__actions [hidden] { display: none; }
.cookies__link, .cookies__footer-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.cookies__link { font-size: .92rem; color: var(--accent); margin-left: 4px; }
@media (max-width: 640px) {
  .cookies { left: 12px; right: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .cookies__box { padding: 18px 16px 14px; }
  .cookies__actions .btn { flex: 1 1 auto; }
}
