/* Cefarum · cefaro.net — dirección "Colour chapters" (cada área de módulos es un capítulo de color) */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f0f0f0;
  --ink: #0a0a0a;
  --muted: #4a4a4a;
  --accent: #2b59ff;          /* el azul de la propia interfaz de Cefarum */
  --accent-ink: #ffffff;
  --blue: #2b59ff;  --blue-ink: #ffffff;
  --red: #ff3b1f;   --red-ink: #0a0a0a;
  --black: #0a0a0a; --black-ink: #ffffff;
  --navy: #050a5c;  --navy-ink: #ffffff;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --step-display: clamp(4.5rem, 1rem + 10.5vw, 11rem);

  --m: clamp(16px, 2.2vw, 32px);           /* el único par de márgenes de la página */
  --radius: 0px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-hover: 160ms;
  --t-ui: 240ms;
  --t-enter: 700ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.45;
  letter-spacing: -0.01em;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--red); color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper, #fff); color: var(--ink); padding: 12px 16px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font: 600 var(--step-body)/1 "Schibsted Grotesk", sans-serif; letter-spacing: -0.01em;
  text-decoration: none; border: 0; border-radius: var(--radius); cursor: pointer;
  clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); /* las esquinas de la pestaña */
  transition: transform var(--t-hover) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--paper { background: #fff; color: var(--ink); }
.btn--paper:hover { background: var(--ink); color: #fff; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #fff; color: var(--ink); }

/* ---------------------------------------------------------------- barra */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 56px; padding: 0 var(--m);
  color: var(--bar-ink, #fff);
  background: var(--bar-bg, transparent);
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease;
}
.bar.is-solid { --bar-bg: var(--black); --bar-ink: #fff; }
.bar__mark { justify-self: center; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.05em; text-decoration: none; }
.bar__nav { justify-self: end; display: flex; gap: 24px; align-items: center; font-weight: 600; font-size: 1rem; }
.bar__nav a { text-decoration: none; transition: opacity var(--t-hover) ease; }
.bar__nav a:hover { opacity: 0.65; }
.bar__cta { padding: 8px 14px; background: var(--accent); color: #fff; }
.bar__cta:hover { opacity: 1 !important; background: #fff; color: var(--ink); }
@media (max-width: 900px) {
  .bar { grid-template-columns: auto 1fr; }
  .bar__spacer { display: none; }
  .bar__mark { justify-self: start; }
  .bar__nav a:not(.bar__cta) { display: none; }
}

/* ---------------------------------------------------------------- hero: pila de carpetas */
.hero {
  position: relative; height: 100svh; min-height: 600px; overflow: hidden;   /* cabe entero en la primera pantalla */
  background: var(--black); color: #fff;
  display: flex; flex-direction: column;
}
.hero__head { padding: clamp(72px, 11vh, 110px) var(--m) 0; text-align: center; }
.hero__title {
  font-weight: 800; font-size: min(var(--step-display), 17vh); line-height: 0.88; letter-spacing: -0.05em;
}
.hero__lead { max-width: 46ch; margin: clamp(12px, 2.4vh, 24px) auto 0; font-size: var(--step-lead); line-height: 1.3; }
.hero__lead a { text-decoration-thickness: 2px; text-underline-offset: 4px; }

.folders { position: relative; flex: 1; min-height: 0; margin-top: clamp(56px, 8vh, 72px); }
.folder {
  --c: var(--blue); --ci: #fff;
  position: absolute; left: 7%; right: 7%; bottom: 0;
  background: var(--c); color: var(--ci); text-decoration: none;
  transition: transform var(--t-ui) var(--ease-out);
}
a.folder:hover { transform: translateY(-14px); }
.folder__tab {
  position: absolute; bottom: 100%; height: 44px; min-width: 160px; padding: 0 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c); color: var(--ci); font-weight: 600; font-size: 1rem; text-decoration: none;
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}
.folder--plataforma { --c: var(--navy); --ci: #fff; top: 0; }
.folder--plataforma .folder__tab { right: 4%; }
.folder--it { --c: var(--surface); --ci: var(--ink); top: 44px; }
.folder--it .folder__tab { left: 4%; }
.folder--proyectos { --c: var(--red); --ci: var(--ink); top: 88px; }
.folder--proyectos .folder__tab { left: 50%; translate: -50% 0; }
.folder--gestion { --c: #fff; --ci: var(--ink); top: 132px; }
.folder--gestion .folder__tab { left: 22%; }
.folder--ventas { --c: var(--blue); top: 176px; }
.folder--ventas .folder__tab { right: 22%; }
.folder__body { position: relative; padding: 28px 32px; display: flex; gap: 32px; align-items: flex-start; }
.folder__shot { flex: 1; min-width: 0; margin-top: 4px; }
.folder__shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
@media (max-width: 1100px) {
  .folder__body { flex-direction: column; }
  .folder__shot { width: 100%; }
  .folder__shot img { aspect-ratio: 16 / 10; }
}

@media (max-width: 720px) {
  .hero { min-height: 560px; }
  .hero__head { padding-top: 84px; }
  .hero__title { font-size: min(17vw, 13vh); }
  .hero__lead { font-size: 1rem; }
  .folders { margin-top: 48px; }
  .folder { left: 0; right: 0; }
  .folder__tab { height: 32px; min-width: 0; padding: 0 22px; font-size: 0.9375rem; }
  .folder--it { top: 36px; } .folder--proyectos { top: 72px; } .folder--gestion { top: 108px; } .folder--ventas { top: 144px; }
  .folder--plataforma .folder__tab { right: 4%; } .folder--gestion .folder__tab { left: 4%; } .folder--ventas .folder__tab { right: 4%; }
  .folder__body { flex-direction: column; padding: 20px; gap: 20px; }
  .folder__body .btn { width: 100%; }
}

/* ---------------------------------------------------------------- elige tus módulos */
.pick { display: grid; grid-template-columns: 1fr 1fr; min-height: 90svh; }
.pick__in { position: relative; z-index: 2; background: var(--navy); color: #fff; padding: 96px var(--m) 140px; }
.pick__out { position: relative; background: var(--bg); padding: 96px var(--m) 140px; display: flex; justify-content: center; align-items: flex-start; }
.pick__intro { max-width: 34ch; font-size: var(--step-lead); line-height: 1.3; margin-left: calc((100% - 2 * var(--m)) / 12); }
.pick__chips { margin: 36px 0 0 calc((100% - 2 * var(--m)) / 12); max-width: 560px; display: grid; gap: 18px; }
.pick__chips fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pick__chips legend { float: left; width: 100%; font-weight: 600; font-size: var(--step-small); margin-bottom: 6px; opacity: 0.8; }
.pick__chips label { position: relative; cursor: pointer; }
.pick__chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pick__chips span {
  display: inline-block; padding: 9px 14px; font-weight: 600; font-size: 1rem;
  background: rgba(255, 255, 255, 0.1); color: #fff;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-hover) var(--ease-out);
}
.pick__chips label:hover span { background: rgba(255, 255, 255, 0.2); }
.pick__chips input:checked + span { background: #fff; color: var(--navy); }
.pick__chips input:active + span { transform: scale(0.96); }
.pick__chips input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.pick__title { position: absolute; bottom: 32px; left: 0; right: 0; pointer-events: none; font-weight: 800; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 0.9; letter-spacing: -0.05em; }
.pick__t1 { position: absolute; left: var(--m); bottom: 0; color: #fff; }
.pick__t2 { position: absolute; left: calc(100% + var(--m)); bottom: 0; color: var(--ink); white-space: nowrap; }

/* fragmento de la interfaz de Cefarum (barra lateral + panel) */
.app {
  width: min(520px, 100%); display: grid; grid-template-columns: 210px 1fr;
  background: #fff; border: 1px solid #e3e5ea; /* taste-skill-ignore: borde de la propia interfaz (data-ui) */ font-size: 14px; line-height: 1.35; letter-spacing: 0;
}
.app__side { background: #0f1729; color: #e6e9f0; padding: 14px 10px; min-height: 440px; }
.app__co { display: flex; gap: 8px; align-items: center; font-weight: 600; padding: 4px 6px 14px; }
.app__logo { width: 24px; height: 24px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 14px; border-radius: 6px; }
.app__item { padding: 7px 8px; border-radius: 6px; color: #e6e9f0; }
.app__item--on { background: #1e2a44; color: #fff; font-weight: 600; }
.app__grp { margin: 12px 8px 4px; font-size: 14px; color: #9aa3b5; }
.app__mod { padding: 6px 8px; border-radius: 6px; color: #e6e9f0; animation: modIn var(--t-ui) var(--ease-out); }
.app__empty { padding: 6px 8px; color: #9aa3b5; }
.app__core { margin-top: 16px; padding: 10px 8px 0; color: #9aa3b5; font-size: 14px; }
.app__main { padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.app__count { font-size: 14px; color: #333; }
.app__count strong { display: block; font-size: var(--step-head); line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.app__note { color: #555; font-size: 14px; }
.app .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
@keyframes modIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .pick { grid-template-columns: 1fr; }
  .pick__in { padding: 88px 20px 150px; }
  .pick__out { padding: 72px 20px 64px; }
  .pick__intro, .pick__chips { margin-left: 0; }
  .pick__intro { font-size: 1.125rem; }
  .pick__title { font-size: 11vw; bottom: 24px; }
  .pick__t1 { left: 20px; }
  .pick__t2 { left: 20px; bottom: auto; top: calc(100% + 30px); }
  .pick__out { padding-top: calc(11vw + 64px); }
  .app { grid-template-columns: 150px 1fr; }
  .app__side { min-height: 360px; }
  .app__count strong { font-size: 44px; }
}

/* ---------------------------------------------------------------- capítulos (índice con vista previa) */
.chapter {
  --c: var(--blue); --ci: #fff;
  position: relative; min-height: 90svh; background: var(--c); color: var(--ci);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m);
  padding: 120px var(--m);
}
.chapter--ventas { --c: var(--blue); --ci: #fff; }
.chapter--gestion { --c: #fff; --ci: var(--ink); }
.chapter--proyectos { --c: var(--red); --ci: var(--ink); }
.chapter--it { --c: var(--surface); --ci: var(--ink); }
.chapter--plataforma { --c: var(--navy); --ci: #fff; }
.chapter__text { grid-column: 1 / span 6; }
.chapter__frame { grid-column: 7 / span 6; position: sticky; top: 96px; align-self: start; }
.chapter--flip .chapter__text { grid-column: 7 / span 6; grid-row: 1; }
.chapter--flip .chapter__frame { grid-column: 1 / span 6; grid-row: 1; }
.chapter__title { font-weight: 800; font-size: clamp(4rem, 7.4vw, 9rem); line-height: 0.88; letter-spacing: -0.05em; margin-left: -0.04em; }
.chapter__lead { max-width: 38ch; margin-top: 28px; font-size: var(--step-lead); line-height: 1.3; }
.chapter__frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: opacity var(--t-ui) ease; }
.chapter__frame img.is-swap { opacity: 0; }

.index { margin-top: 48px; }
.index__row {
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 24px; align-items: baseline;
  padding: 14px 0; cursor: default;
  transition: opacity var(--t-hover) ease, transform var(--t-hover) var(--ease-out);
}
.index__row b { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.1; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.index__row span { font-size: var(--step-body); }
.index__row.is-on { transform: translateX(8px); }
@media (hover: hover) and (pointer: fine) {
  .index:hover .index__row:not(:hover) { opacity: 0.45; }
}
.index__row:focus-visible { outline-offset: 6px; }
.index__thumb { display: none; }

@media (max-width: 900px) {
  .chapter { display: block; padding: 96px 20px; min-height: 0; }
  .chapter__title { font-size: 16vw; }
  .chapter__lead { font-size: 1.125rem; }
  .chapter__frame { position: static; margin-top: 36px; }
  .index__row { grid-template-columns: 1fr; gap: 4px; }
  .index__row b { font-size: 1.375rem; }
}

/* ---------------------------------------------------------------- afirmaciones en campos de color */
.claim {
  position: relative; min-height: 60svh; padding: 28px var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); grid-template-rows: auto 1fr auto;
}
.claim--ink { background: var(--black); color: #fff; }
.claim--blue { background: var(--blue); color: #fff; }
.claim--red { background: var(--red); color: var(--ink); }
.claim__text { grid-column: 8 / span 4; grid-row: 1; max-width: 32ch; padding-top: 72px; font-size: var(--step-lead); line-height: 1.3; }
.claim__phrase { grid-column: 1 / span 9; grid-row: 3; font-weight: 800; font-size: clamp(4rem, 7.4vw, 9rem); line-height: 0.9; letter-spacing: -0.05em; }
.claim--flip .claim__text { grid-column: 2 / span 4; }
.claim--flip .claim__phrase { grid-column: 1 / -1; text-align: right; }
@media (max-width: 900px) {
  .claim { display: flex; flex-direction: column; justify-content: space-between; min-height: 64svh; padding: 24px 20px; }
  .claim__text { padding-top: 40px; width: 88%; font-size: 1.0625rem; }
  .claim--flip .claim__text { align-self: flex-end; text-align: right; }
  .claim__phrase, .claim--flip .claim__phrase { text-align: left; font-size: 9.5vw; margin-top: 48px; }
}

/* ---------------------------------------------------------------- así se empieza: baldosas que crecen */
.steps { padding: 160px var(--m) 160px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); }
.steps__title { grid-column: 1 / span 7; grid-row: 1; align-self: start; font-weight: 800; font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.04em; }
.steps__row { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 10px; align-items: end; }
.step { display: flex; flex-direction: column; justify-content: flex-end; }
.step--a { grid-column: 1 / span 3; }
.step--b { grid-column: 4 / span 4; }
.step--c { grid-column: 8 / span 5; }
.step__tile { overflow: hidden; padding: 18px; }
.step--a .step__tile { height: 30vh; background: var(--red); }
.step--b .step__tile { height: 44vh; background: var(--blue); }
.step--c .step__tile { height: 60vh; background: var(--navy); }
.step__tile img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.step__name { margin-top: 20px; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.step p { margin-top: 8px; max-width: 36ch; color: var(--ink); font-size: var(--step-body); }
@media (max-width: 900px) {
  .steps { display: block; padding: 96px 20px; }
  .steps__title { font-size: 2.25rem; margin-bottom: 28px; }
  .steps__row { display: flex; flex-direction: column; gap: 36px; }
  .step--a .step__tile { height: 50vw; } .step--b .step__tile { height: 62vw; } .step--c .step__tile { height: 74vw; }
  .step__tile { padding: 12px; }
}

/* ---------------------------------------------------------------- banda de módulos */
.band { background: var(--navy); color: #fff; height: 34vh; min-height: 200px; display: flex; align-items: center; overflow: hidden; }
.band__track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.band__track span { white-space: nowrap; font-weight: 800; font-size: 8vw; line-height: 1; letter-spacing: -0.05em; }
.band:hover .band__track { animation-play-state: paused; }
.band__note { padding: 20px var(--m) 0; font-size: var(--step-body); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 720px) { .band { height: 22vh; } .band__track span { font-size: 15vw; } .band__note { padding: 16px 20px 0; font-size: 1rem; } }

/* ---------------------------------------------------------------- quién lo hace */
.about { padding: 140px var(--m) 160px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); align-items: start; }
.about__lead { grid-column: 1 / span 7; max-width: 30ch; font-weight: 800; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1.12; letter-spacing: -0.04em; }
.about__lead strong { font-weight: 800; }
.about__side { grid-column: 8 / span 5; padding-top: 10px; }
.about__text { max-width: 44ch; font-size: var(--step-body); line-height: 1.5; }
.about__cta { margin-top: 32px; }
.hl { padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; color: inherit; }
.hl--blue { background: var(--blue); color: #fff; text-decoration: none; transition: background-color var(--t-hover) ease; }
a.hl--blue:hover { background: var(--ink); }
@media (max-width: 900px) {
  .about { display: block; padding: 88px 20px 96px; }
  .about__lead { font-size: 1.5rem; }
  .about__side { padding-top: 24px; }
  .about__cta { width: 100%; }
}

/* ---------------------------------------------------------------- preguntas */
.faq { background: var(--surface); padding: 140px var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); }
.faq__title { grid-column: 1 / span 4; padding-right: 24px; position: sticky; top: 96px; align-self: start; font-weight: 800; font-size: clamp(2.25rem, 4vw, 4rem); line-height: 0.95; letter-spacing: -0.04em; }
.faq__list { grid-column: 5 / span 8; display: grid; gap: 8px; }
.faq__item { background: #fff; transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.faq__item summary {
  list-style: none; cursor: pointer; min-height: 72px; padding: 22px 64px 22px 24px; position: relative;
  font-weight: 600; font-size: var(--step-body); line-height: 1.3;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px; background: currentColor;
  transition: transform var(--t-ui) var(--ease-out);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] { background: var(--accent); color: #fff; }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item summary:hover { opacity: 0.8; }
.faq__a { padding: 0 24px 26px; }
.faq__a p { max-width: 52ch; font-size: var(--step-body); }
@media (max-width: 900px) {
  .faq { display: block; padding: 88px 20px; }
  .faq__title { position: static; font-size: 9vw; margin-bottom: 28px; }
  .faq__list { gap: 6px; }
  .faq__item summary { min-height: 64px; font-size: 1.125rem; padding: 20px 56px 20px 20px; }
  .faq__a { padding: 0 20px 20px; }
  .faq__a p { font-size: 1rem; }
}

/* ---------------------------------------------------------------- solicitar acceso */
.ask { background: var(--blue); color: #fff; padding: 48px 0 120px; min-height: 80svh; overflow: hidden; }
.ask__strip { overflow: hidden; }
.ask__track { display: flex; gap: 8px; width: max-content; animation: marquee 70s linear infinite; }
.ask__track img { height: 150px; width: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top left; }
.ask__track img:nth-child(3n+1) { aspect-ratio: 4 / 3; }
.ask__track img:nth-child(3n+2) { aspect-ratio: 16 / 10; }
.ask__title { margin: 72px var(--m) 0; font-weight: 800; font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.04em; }
.ask__lead { margin: 16px var(--m) 0; font-size: var(--step-lead); max-width: 40ch; }

.form { margin: 40px var(--m) 0; }
.form__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cell { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 96px; padding: 14px 20px; background: rgba(255, 255, 255, 0.14); cursor: text; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.cell:hover { background: rgba(255, 255, 255, 0.22); }
.cell:focus-within { background: #fff; color: var(--ink); }
.cell--wide { grid-column: span 1; }
.cell--full { grid-column: 1 / -1; }
.cell__l { font-weight: 600; font-size: 1rem; }
.cell input, .cell select, .cell textarea {
  width: 100%; border: 0; background: transparent; color: inherit; padding: 4px 0;
  font: 400 var(--step-body)/1.3 "Schibsted Grotesk", sans-serif; letter-spacing: -0.01em; outline: 0;
}
.cell select { appearance: none; cursor: pointer; }
.cell select option { color: var(--ink); }
.cell textarea { resize: vertical; min-height: 3.9em; }
.cell input::placeholder { color: currentColor; opacity: 0.6; }
.cell.is-bad { background: var(--red); color: var(--ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: casilla trampa oculta */
.form__foot { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-top: 16px; flex-wrap: wrap; }
.check { display: flex; gap: 12px; align-items: flex-start; max-width: 60ch; font-size: 1rem; line-height: 1.4; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
.form__send { min-width: 240px; min-height: 64px; font-size: var(--step-body); }
.form__send[disabled] { opacity: 0.6; cursor: progress; }
.form__msg { margin-top: 18px; font-weight: 600; font-size: var(--step-lead); min-height: 1.3em; }
.form__msg.is-error { color: #fff; background: var(--red); color: var(--ink); display: inline-block; padding: 8px 12px; }
@media (max-width: 900px) {
  .ask { padding: 32px 0 88px; }
  .ask__track img { height: 110px; }
  .ask__title { margin: 48px 20px 0; font-size: 9vw; }
  .ask__lead { margin: 12px 20px 0; font-size: 1.0625rem; }
  .form { margin: 28px 20px 0; }
  .form__grid { grid-template-columns: 1fr; gap: 8px; }
  .cell { min-height: 64px; padding: 10px 16px; }
  .form__send { width: 100%; }
}

/* ---------------------------------------------------------------- pie de baldosas */
.foot { background: var(--black); color: #fff; padding: 10px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.tile { background: #1a1a1a; padding: 24px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.tile a { text-decoration: none; transition: opacity var(--t-hover) ease; }
.tile a:hover { opacity: 0.65; }
.tile--statement { grid-column: 1 / span 4; }
.tile--statement p:first-child { font-size: 1.5rem; line-height: 1.25; max-width: 24ch; }
.tile__legal { font-size: var(--step-small); }
.tile--nav { grid-column: 5 / span 3; justify-content: flex-start; gap: 8px; font-size: 1rem; }
.tile--time { grid-column: 8 / span 2; }
.tile--time p:first-child { font-weight: 600; }
.tile__clock { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile--mail { grid-column: 10 / span 3; justify-content: flex-end; font-size: 1.5rem; }
.tile--word { grid-column: 1 / span 8; min-height: 320px; background: #fff; color: var(--ink); justify-content: center; align-items: center; font-weight: 800; font-size: clamp(4rem, 7.4vw, 9rem); line-height: 1; letter-spacing: -0.05em; }
.tile--go { grid-column: 9 / span 4; min-height: 320px; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; transition: background-color var(--t-hover) ease; }
.tile--go svg { align-self: flex-end; transition: transform var(--t-ui) var(--ease-out); }
.tile--go:hover { background: var(--red); color: var(--ink); }
.tile--go:hover svg { transform: translate(6px, -6px); }
@media (max-width: 900px) {
  .foot { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .tile { min-height: 160px; padding: 20px; justify-content: flex-start; gap: 12px; }
  .tile--word { grid-column: 1 / -1; order: 1; min-height: 160px; font-size: 19vw; justify-content: center; }
  .tile--go { grid-column: 1 / -1; order: 2; min-height: 160px; justify-content: space-between; }
  .tile--nav { grid-column: auto; order: 3; }
  .tile--mail { grid-column: auto; order: 4; font-size: 1rem; word-break: break-all; }
  .tile--time { grid-column: auto; order: 5; }
  .tile--statement { grid-column: auto; order: 6; }
  .tile--statement p:first-child { font-size: 1.125rem; }
}

/* ---------------------------------------------------------------- entradas */
.js [data-rise] { opacity: 0; transform: translateY(24px); }
.js [data-rise].is-in { opacity: 1; transform: none; transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out); transition-delay: var(--d, 0ms); }
.hero__title, .hero__lead { animation: heroIn 900ms var(--ease-out) both; }
.hero__lead { animation-delay: 120ms; }
.folder { animation: folderIn 900ms var(--ease-out) both; }
.folder--plataforma { animation-delay: 200ms; } .folder--it { animation-delay: 270ms; } .folder--proyectos { animation-delay: 340ms; }
.folder--gestion { animation-delay: 410ms; } .folder--ventas { animation-delay: 480ms; }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes folderIn { from { transform: translateY(120px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band__track, .ask__track { animation: none; }
  .hero__title, .hero__lead, .folder, .app__mod { animation: none; }
  .js [data-rise] { transform: none; }
  .js [data-rise].is-in { transition: opacity var(--t-ui) ease; }
  .btn:hover, a.folder:hover, .index__row.is-on { transform: none; }
}

/* ---------------------------------------------------------------- páginas sueltas: legal y 404 */
.legal { max-width: 72ch; padding: 140px var(--m) 140px; margin-left: calc(var(--m) + (100vw - 2 * var(--m)) / 12); }
.legal__title { font-weight: 800; font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.04em; }
.legal__lead { margin-top: 20px; font-size: var(--step-lead); line-height: 1.3; }
.legal h2 { margin-top: 48px; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.legal p { margin-top: 12px; }
.legal a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal__back { margin-top: 64px !important; font-weight: 600; }
.page--lost { background: var(--blue); color: #fff; }
.lost { min-height: 100svh; padding: 96px var(--m); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; }
.lost__code { font-weight: 800; font-size: var(--step-display); line-height: 0.88; letter-spacing: -0.05em; }
.lost__title { font-weight: 800; font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.04em; }
.lost__lead { max-width: 40ch; font-size: var(--step-lead); line-height: 1.3; }
@media (max-width: 720px) { .legal { margin-left: 0; padding: 104px 20px 96px; } }

/* tipografía es: sin viudas ni huérfanas */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ================================================================ v2: más páginas, desplegable, Nanuve */
.bar__nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* enlaces dentro de texto sobre campos de color */
.claim__text a, .band__note a, .ask__lead a, .ask__alt a, .phero__lead a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.band__note a { margin-left: 0.4em; font-weight: 600; }
.chapter__more, .faq__more {
  display: inline-block; margin-top: 32px; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: opacity var(--t-hover) ease;
}
.chapter__more:hover, .faq__more:hover { opacity: 0.65; }
.faq__more { margin: 24px 0 0 24px; justify-self: start; }

/* preguntas: la respuesta se anima en altura desde app.js */
.faq__a { overflow: hidden; }

/* pie: logo de Nanuve */
.tile__nanuve { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; color: #fff; }
.tile__nanuve span { font-size: var(--step-body); }
.tile__nanuve img { width: min(260px, 100%); height: auto; }
.tile__nanuve:hover { opacity: 0.8; }
.tile--mail { gap: 6px; }
.tile--mail a + a { font-size: var(--step-body); opacity: 0.8; }

/* cabecera de las páginas interiores */
.phero { padding: 152px var(--m) 96px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); }
.phero--blue { background: var(--blue); color: #fff; }
.phero--ink { background: var(--black); color: #fff; }
.phero--red { background: var(--red); color: var(--ink); }
.phero__title { grid-column: 1 / -1; font-weight: 800; font-size: clamp(4rem, 7.4vw, 9rem); line-height: 0.88; letter-spacing: -0.05em; margin-left: -0.04em; }
.phero__lead { grid-column: 1 / span 7; margin-top: 28px; max-width: 44ch; font-size: var(--step-lead); line-height: 1.3; }
.phero__nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.phero__nav a { padding: 10px 16px; background: rgba(255, 255, 255, 0.16); text-decoration: none; font-weight: 600; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.phero__nav a:hover { background: #fff; color: var(--ink); }

/* página de módulos: un bloque por área y una fila por módulo */
.area { --c: #fff; --ci: var(--ink); background: var(--c); color: var(--ci); padding: 120px var(--m); scroll-margin-top: 56px; }
.area--gestion, .area--it { --c: var(--surface); }
.area__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); align-items: end; margin-bottom: 72px; }
.area__title { grid-column: 1 / span 6; font-weight: 800; font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.04em; }
.area__lead { grid-column: 7 / span 6; max-width: 44ch; font-size: var(--step-lead); line-height: 1.3; }
.area__mods { display: grid; gap: 72px; }
.mod { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); align-items: center; scroll-margin-top: 80px; }
.mod__text { grid-column: 1 / span 4; }
.mod__name { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.1; }
.mod__text p { margin-top: 12px; max-width: 42ch; }
.mod__shot { grid-column: 6 / span 7; }
.mod__shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.mod:nth-child(even) .mod__text { grid-column: 9 / span 4; grid-row: 1; }
.mod:nth-child(even) .mod__shot { grid-column: 1 / span 7; grid-row: 1; }

/* seguridad */
.sec { padding: 120px var(--m); display: grid; gap: 56px; }
.sec__row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); align-items: baseline; }
.sec__name { grid-column: 1 / span 5; font-weight: 800; font-size: clamp(1.75rem, 1rem + 1.8vw, 2.75rem); line-height: 1; letter-spacing: -0.04em; }
.sec__row p { grid-column: 7 / span 6; max-width: 52ch; }

/* cierre de las páginas interiores */
.core { background: var(--navy); color: #fff; padding: 120px var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); row-gap: 24px; align-items: start; }
.core__title { grid-column: 1 / span 6; font-weight: 800; font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.04em; }
.core__text { grid-column: 7 / span 6; max-width: 46ch; font-size: var(--step-lead); line-height: 1.3; }
.core .btn { grid-column: 7 / span 6; justify-self: start; }

/* preguntas como página */
.faq--page { display: block; }
.faq--page .faq__list { max-width: 960px; }

/* contacto como página */
.ask--page { padding-top: 120px; }
.ask--page .ask__title { margin-top: 32px; }
.ask__alt { margin: 48px var(--m) 0; display: grid; gap: 8px; font-size: var(--step-body); }

/* desplegable de módulos del formulario */
.ms { position: relative; cursor: default; }
.ms__btn {
  width: 100%; text-align: left; border: 0; background: transparent; color: inherit; padding: 4px 28px 4px 0; cursor: pointer;
  font: 400 var(--step-body)/1.3 "Schibsted Grotesk", sans-serif; letter-spacing: -0.01em; position: relative;
}
.ms__btn::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; background: currentColor; clip-path: polygon(0 30%, 50% 80%, 100% 30%, 100% 50%, 50% 100%, 0 50%); transition: transform var(--t-ui) var(--ease-out); }
.ms.is-open .ms__btn::after { transform: rotate(180deg); }
.ms.is-open { background: #fff; color: var(--ink); }
.ms__panel {
  position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 8px); max-height: min(60vh, 520px); overflow: auto;
  background: #fff; color: var(--ink); padding: 18px 20px 0;
  box-shadow: 0 18px 50px rgba(5, 10, 92, 0.35); /* taste-skill-ignore: flota sobre la página, es un menú */
  animation: msIn var(--t-ui) var(--ease-out);
}
.ms__panel[hidden] { display: none; }
.ms__panel fieldset { border: 0; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ms__panel legend { float: left; width: 100%; font-weight: 600; font-size: var(--step-small); margin-bottom: 6px; color: var(--muted); }
.ms__panel label { position: relative; cursor: pointer; }
.ms__panel input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ms__panel label span { display: inline-block; padding: 8px 12px; background: var(--surface); font-weight: 600; font-size: 1rem; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.ms__panel label:hover span { background: #e2e2e2; }
.ms__panel input:checked + span { background: var(--accent); color: #fff; }
.ms__panel input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.ms__foot { position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 8px; background: #fff; padding: 12px 0 16px; }
.ms__foot button { border: 0; cursor: pointer; font: 600 1rem/1 "Schibsted Grotesk", sans-serif; padding: 12px 18px; }
.ms__clear { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ms__ok { background: var(--ink); color: #fff; }
@keyframes msIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .phero { display: block; padding: 112px 20px 72px; }
  .phero__title { font-size: 16vw; }
  .phero__lead { font-size: 1.125rem; }
  .area { padding: 88px 20px; }
  .area__head { display: block; margin-bottom: 48px; }
  .area__lead { margin-top: 16px; font-size: 1.125rem; }
  .area__mods { gap: 56px; }
  .mod, .mod:nth-child(even) { display: flex; flex-direction: column-reverse; gap: 20px; align-items: stretch; }
  .sec { padding: 88px 20px; gap: 40px; }
  .sec__row { display: block; }
  .sec__row p { margin-top: 12px; }
  .core { display: block; padding: 88px 20px 136px; }
  .core__text { margin-top: 20px; font-size: 1.125rem; }
  .core .btn { margin-top: 28px; width: 100%; }
  .ask--page { padding-top: 88px; }
  .ask__alt { margin: 40px 20px 0; }
  .faq__more { margin-left: 20px; }
  .tile__nanuve img { width: 180px; }
}
@media (prefers-reduced-motion: reduce) { .ms__panel { animation: none; } }

/* seguridad: capturas de los módulos de IT */
.sec__shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px; background: var(--black); }
.sec__shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
@media (max-width: 900px) { .sec__shots { grid-template-columns: 1fr 1fr; } }

.strip-band { background: var(--blue); padding: 24px 0; overflow: hidden; }
@media (max-width: 900px) { .foot { padding-top: 40px; } }

@media (max-width: 900px) { .faq--page, .ask--page { padding-bottom: 160px; } }
