/* Carlito: the open font made on Calibri's metrics (the 2027 sales deck is set in Calibri). */
@font-face { font-family: "Carlito"; src: url("carlito-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Carlito"; src: url("carlito-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Be Media's design system from the 2027 sales deck: navy grounds, light surfaces, light blue for highlights.
   Light blue (#00A3E0) is 2.9:1 on light grounds, so there it is a fill only; text in blue on light uses #0070C0. */
:root {
  --ink: #0B1326;          /* navy: dark grounds, and text on light ones */
  --ink-2: #162136;        /* raised navy surface */
  --accent: #00A3E0;       /* light blue: fills, and text on navy */
  --accent-deep: #0070C0;  /* button blue, and blue text on light grounds */
  --paper: #F5F7FA;        /* light ground, and text on navy */
  --muted: rgba(245, 247, 250, .72);
  --muted-ink: #5F6B78;    /* the deck's grey body text */
  --line: rgba(245, 247, 250, .16);
  --key: var(--accent);    /* keywords; light sections switch it to --accent-deep */
  --pad: clamp(72px, 10vw, 140px);
  --side: clamp(20px, 5.5vw, 80px);
  --gap: clamp(20px, 3vw, 32px);
  --radius: 12px;
  --tracking-display: -.015em;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* a class that sets display (the pause buttons) must not undo hidden */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 19px/1.5 "Carlito", Calibri, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: var(--tracking-display); line-height: 1; }
a { color: inherit; }
img, video, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { height: 22px; width: auto; fill: currentColor; }   /* on navy the whole wordmark is white, like the official dark version */
.wrap { padding: 0 var(--side); }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; color: var(--muted); max-width: 32ch; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons: the deck's blue button with white text; ink and outline buttons for the light blue band. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 10px; border: 0;
  font: 700 17px/1 "Carlito", Calibri, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-accent { background: var(--accent-deep); color: #FFFFFF; }
.btn-accent:hover { background: #005FA3; }
.btn-line { color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(245, 247, 250, .45); }
.btn-line:hover { background: var(--paper); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #1C2A45; }
.btn-line-ink { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line-ink:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header: both doors stay one click away. */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--side);
  background: linear-gradient(180deg, rgba(11, 19, 38, .72), rgba(11, 19, 38, 0));
  transition: background-color .2s, padding .2s;
}
.site-header.is-solid { background: rgba(11, 19, 38, .94); padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; color: var(--paper); }
.nav { display: flex; align-items: center; gap: 12px; }
.nav-link { font-size: 16px; font-weight: 400; text-decoration: none; color: var(--paper); margin-right: 14px; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.nav-link:hover { color: var(--accent); }
@media (max-width: 440px) { .nav-link { display: none; } }
@media (max-width: 760px) {
  .site-header { padding: 16px var(--side); }
  .logo { height: 17px; }
  .nav-link[href="#como-funciona"] { display: none; }
  .nav-link { margin-right: 4px; }
  .nav { gap: 8px; }
}

/* ---------- Hero: text centred on top, a loop of venue screens below (net.js plays the screens) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 116px 0 92px; overflow: clip; }
.hero .net { width: 100%; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { font-size: clamp(54px, 7vw, 120px); line-height: .95; letter-spacing: -.02em; }
.hero .lead { margin-top: 22px; max-width: 40ch; color: rgba(245, 247, 250, .88); }
.hero .actions { justify-content: center; }
.net-row { margin-top: clamp(36px, 6vh, 64px); }
.net-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 22px; }
.net-toggle { justify-self: end; width: 36px; height: 36px; color: rgba(245, 247, 250, .85); box-shadow: inset 0 0 0 1.5px rgba(245, 247, 250, .4); }
.net-bars { display: flex; gap: 8px; }
.net-bars span { width: 44px; height: 4px; border-radius: 2px; background: rgba(245, 247, 250, .22); transition: background-color .4s; }
.net-bars span.on { background: var(--accent); }
.net-caps { grid-column: 2; list-style: none; margin: 0; padding: 0; display: grid; text-align: center; font-size: clamp(22px, 2vw, 34px); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.net-caps li { grid-area: 1 / 1; opacity: 0; translate: 0 12px; transition: opacity .3s, translate .3s; }
.net-caps li.on { opacity: 1; translate: none; transition: opacity .6s .1s, translate .8s .1s cubic-bezier(.16, 1, .3, 1); }
/* the loop: 4 to 5 screens in view, entering on the left and leaving on the right; the edges fade */
.net-view { overflow: hidden; padding: 18px 0 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.net-track { display: flex; width: max-content; animation: loop 56s linear infinite; }
.net.is-paused .net-track { animation-play-state: paused; }
@keyframes loop { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.tv { flex: none; width: clamp(250px, 21vw, 360px); margin: 0 clamp(14px, 1.2vw, 22px); display: grid; gap: 14px; }
/* screens read as lit TVs: a lighter bezel with an edge of light, and a faint blue glow on the wall */
.tv canvas {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; background: #070B16;
  box-shadow: 0 0 0 clamp(6px, .5vw, 9px) #22314D, 0 0 0 calc(clamp(6px, .5vw, 9px) + 1.5px) rgba(245, 247, 250, .18),
    0 26px 50px rgba(0, 0, 0, .5), 0 0 80px rgba(0, 163, 224, .18);
}
.tv figcaption { display: flex; align-items: baseline; gap: 8px; padding-left: 2px; font-size: 16px; font-weight: 700; color: var(--muted); }
.tv-n { font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.hero-hint { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(245, 247, 250, .85); text-decoration: none; }
.hero-hint:hover { color: var(--accent); }
@media (max-width: 900px) {
  .hero { min-height: 0; padding: 104px 0 56px; }
  .net-top { grid-template-columns: 1fr auto; row-gap: 14px; }
  .net-caps { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .tv { width: 62vw; }
  .net-track { animation-duration: 40s; }
  .hero-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .net-caps li { grid-area: auto; opacity: 1; translate: none; } .net-caps { gap: 6px; } .net-bars { display: none; }
  .net-track { animation: none; transform: none; }
  .net-view { overflow-x: auto; }
}

/* ---------- Chapters: one screen each. The steps are a short list; the picture beside it plays them in turn ---------- */
.chapter { position: relative; isolation: isolate; overflow: clip; padding: clamp(72px, 10vh, 112px) 0; }
/* The section has its own colour; this card-shaped hole paints the previous section's colour (--frame) around
   it with a huge shadow, so the sheet opens from inset with rounded top corners (main.js sets --x and --r). */
.chapter-bg { position: absolute; z-index: -1; top: 0; bottom: 0; left: var(--x, 0px); right: var(--x, 0px); border-radius: var(--r, 0px) var(--r, 0px) 0 0; box-shadow: 0 0 0 200vmax var(--frame); pointer-events: none; }
.chapter-venue { background: var(--paper); color: var(--ink); --frame: var(--ink); --stroke: var(--ink); --key: var(--accent-deep); }
.chapter-brand { background: var(--ink); --frame: var(--paper); --stroke: var(--paper); }
.chapter-head h2 { font-size: clamp(40px, 4.4vw, 68px); max-width: 14ch; }
.work h2 { font-size: clamp(44px, 5.6vw, 88px); max-width: 14ch; }
.chapter-head .lead { margin-top: 18px; max-width: 36ch; font-size: clamp(19px, 1.45vw, 22px); }
.chapter-venue .lead { color: var(--muted-ink); }
/* Left: head, steps and button, centred against the picture on the right. */
.chapter-body {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 88px);
  grid-template-rows: 1fr auto auto auto 1fr; grid-template-areas: ". aside" "head aside" "steps aside" "cta aside" ". aside";
}
.chapter-head { grid-area: head; }
.chapter-steps { grid-area: steps; list-style: none; padding: 0; margin: clamp(24px, 4vh, 40px) 0 0; }
.chapter-cta { grid-area: cta; margin-top: 28px; }
/* the picture keeps to the screen's height; the pause button lines up with its right edge */
.chapter-aside { grid-area: aside; align-self: center; justify-self: center; width: min(100%, calc((100svh - 220px) * 4 / 3)); display: grid; gap: 12px; }
.chapter-step {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 20px; align-items: center;
  padding: 16px 0; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.chapter-step:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
/* how far the active step has played: a blue line along its top edge */
.chapter-step::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; transform: scaleX(var(--p, 0)); transform-origin: left; background: var(--key); opacity: 0; }
.chapter-step.is-active::before { opacity: 1; }
/* Step numbers use the logo's three-bar E: step n lights n bars, top first, while it plays. */
.step-n {
  grid-row: span 2; display: flex; align-items: center; gap: .3em; margin-right: .4em;
  font-size: clamp(24px, 1.8vw, 28px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--stroke);
  transition: color .3s;
}
.step-n svg { height: .72em; width: auto; }
.step-n path { fill: color-mix(in srgb, var(--stroke) 20%, transparent); transition: fill .35s; }
.step-n path:nth-child(2) { transition-delay: .08s; }
.step-n path:nth-child(3) { transition-delay: .16s; }
.chapter-step.is-active .step-n { color: var(--key); }
.chapter-step.is-active .step-n path.on { fill: var(--key); }
.chapter-step h3 { font-size: clamp(23px, 1.9vw, 30px); letter-spacing: -.01em; line-height: 1.12; opacity: .66; transition: opacity .3s; }
/* The whole row is the button (its ::after covers the row). */
.step-btn { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; text-align: left; cursor: pointer; }
.step-btn::after { content: ""; position: absolute; inset: 0; }
.chapter-step p { margin-top: 4px; font-size: 17px; line-height: 1.45; text-wrap: pretty; }
/* waiting steps step back: only the (large) titles dim, so the small lines keep their contrast */
.chapter-step.is-active h3 { opacity: 1; }
.chapter-step:not(.is-active) h3 .key { color: inherit; }   /* blue only in the step that plays (dimmed blue drops below 3:1 on light) */
@media (hover: hover) { .chapter-step:hover h3 { opacity: 1; } }   /* a tap on a phone must not leave a second step lit */
.chapter-venue .chapter-step p { color: var(--muted-ink); }
.chapter-brand .chapter-step p { color: var(--muted); }
.chapter-canvas { width: 100%; aspect-ratio: 4 / 3; }
.chapter-controls { display: flex; justify-content: flex-end; }
.chapter-venue .clip-toggle { color: var(--ink); }
.chapter-venue .clip-toggle:hover { background: var(--ink); color: var(--paper); }
.chapter-venue :focus-visible { outline-color: var(--ink); }
.chapter-close {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px;
  margin-top: clamp(32px, 5vh, 56px); padding-top: clamp(24px, 4vh, 40px); border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.close-line { font-size: clamp(34px, 3.6vw, 56px); font-weight: 700; letter-spacing: -.015em; line-height: 1; max-width: 22ch; --d: .1s; }
.chapter-close .actions { margin-top: 0; }
@media (max-width: 900px) {
  .chapter-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "aside" "steps" "cta"; }
  .chapter-aside { margin-top: 28px; width: min(100%, calc((100svh - 140px) * 4 / 3)); }   /* landscape phones keep it in view */
  .chapter-controls { margin-top: -4px; }
  .chapter-steps { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .step-n, .step-n path { transition: none; } .chapter-step::before { display: none; } }
/* Titles rise in once (main.js adds .js-reveal unless reduced motion is on). */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .8s, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Case (ink) ---------- */
.work .wrap { padding-bottom: var(--pad); }
.work .wrap > .case-label { padding-top: 64px; border-top: 1px solid var(--line); }
.case-label, .clip-tag { font-size: 16px; font-weight: 700; color: var(--muted); }
.case-label { margin-bottom: 14px; }
.work-lead { margin-top: 18px; color: var(--muted); max-width: 52ch; }
.clips { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.clip { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: var(--ink-2); cursor: pointer; }
.clip-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.clip-toggle {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1.5px currentColor; cursor: pointer;
}
.clip-toggle:hover { background: var(--paper); color: var(--ink); }
.clip-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.clip-toggle .i-play, .clip-toggle[data-state="paused"] .i-pause { display: none; }
.clip-toggle[data-state="paused"] .i-play { display: block; }
.clip figcaption { display: flex; flex-direction: column; gap: 6px; }
.clip strong { font-size: 23px; line-height: 1.2; letter-spacing: -.01em; }
@media (max-width: 760px) { .clips { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact: takes the colours of the chosen option, like the two chapters ----------
   Tengo pantallas: light ground, navy text (the venue chapter). Quiero anunciar: navy, light text, light blue (the brand chapter). */
.contact {
  position: relative; isolation: isolate; overflow: clip; padding: var(--pad) 0;
  --c-bg: var(--paper); --c-fg: var(--ink); --c-muted: var(--muted-ink); --key: var(--accent-deep);
  --c-field: #FFFFFF; --c-border: #7A869A; --c-soft: #E3F3FB; --c-sel: var(--accent-deep);
  --c-error: #B42318; --c-ok: #0B6B3A; --frame: var(--ink);
  --c-panel: #FFFFFF; --c-panel-line: #D4DAE5; --c-block: var(--accent-deep); --c-block-fg: #FFFFFF; --c-cell-off: #D4DAE5;
  --c-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23FFFFFF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --c-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%230B1326' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background: var(--c-bg); color: var(--c-fg); transition: background-color .5s, color .5s;
}
.contact[data-tipo="anunciar"] {
  --c-bg: var(--ink); --c-fg: var(--paper); --c-muted: var(--muted); --key: var(--accent);
  --c-field: var(--ink-2); --c-border: rgba(245, 247, 250, .42); --c-soft: rgba(0, 163, 224, .14); --c-sel: var(--accent);
  --c-error: #FF9C94; --c-ok: #6EE7A8;
  --c-panel: var(--ink-2); --c-panel-line: rgba(245, 247, 250, .14); --c-block: var(--accent); --c-block-fg: var(--ink); --c-cell-off: rgba(245, 247, 250, .16);
  --c-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%230B1326' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --c-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23F5F7FA' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: dark;
}
.contact[data-tipo="anunciar"] .chapter-bg { border-top: 1px solid var(--line); }   /* navy after the navy case section: a hairline keeps them apart */
.contact .chapter-bg { background: var(--c-bg); transition: background-color .5s; }
.contact :focus-visible { outline-color: var(--c-sel); }
.contact h2 { font-size: clamp(56px, 6.6vw, 108px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; padding-top: 8px; }
.contact-copy { position: sticky; top: 112px; }
.contact-line { margin-top: 22px; font-size: clamp(30px, 3.1vw, 48px); font-weight: 700; line-height: 1.22; letter-spacing: -.015em; max-width: 16ch; }
.contact-mail { margin-top: 32px; font-size: 17px; color: var(--c-muted); }
.mail { font-weight: 700; color: var(--c-fg); }
/* The word that changes on its own (contacto.js), on a colour block that resizes to it: the next word rises in. */
.rot {
  position: relative; display: inline-block; vertical-align: -.2em; width: calc(var(--w, 4em) + .5em); height: 1.2em; overflow: hidden;
  border-radius: .16em; background: var(--c-block); color: var(--c-block-fg);
  transition: width .5s cubic-bezier(.16, 1, .3, 1), background-color .5s, color .5s;
}
.rot > span { position: absolute; left: .25em; top: .06em; white-space: nowrap; transform: translateY(120%); }
.rot > span.on, .rot > span.out { transition: transform .55s cubic-bezier(.16, 1, .3, 1); }
.rot > span.on { transform: none; }
.rot > span.out { transform: translateY(-120%); }
.rot { border: 0; padding: 0; font: inherit; letter-spacing: inherit; cursor: pointer; }
.rot:focus-visible { outline: 3px solid var(--c-sel); outline-offset: 3px; }
.rot-all { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* read out in full */
@media (prefers-reduced-motion: reduce) {
  .rot { display: none; }
  .rot-all { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; color: var(--key); }
  .contact, .contact .chapter-bg { transition: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The form sits on the section itself, no card. */
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.contact-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.field-tipo { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 6px !important; }
.field-tipo legend { margin-bottom: 12px; padding: 0; font-weight: 700; font-size: 17px; }
.tipo {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: 12px; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--c-border); transition: box-shadow .2s, background-color .2s;
}
.tipo input { flex: none; appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 50%; border: 2px solid var(--c-border); background: var(--c-field); transition: border-color .2s, box-shadow .2s; }
.tipo input:checked { border-color: var(--c-sel); box-shadow: inset 0 0 0 4px var(--c-field), inset 0 0 0 11px var(--c-sel); }
.tipo strong { display: block; font-size: 20px; line-height: 1.2; }
.tipo:has(input:checked) { background: var(--c-soft); box-shadow: inset 0 0 0 2px var(--c-sel); }
.tipo:has(input:focus-visible) { outline: 3px solid var(--c-sel); outline-offset: 2px; }
.tipo input:focus-visible { outline: none; }
/* Each option's key data sits in its own panel: the screen network, or the campaign. */
.panel { grid-column: 1 / -1; padding: clamp(18px, 2vw, 26px) !important; border-radius: 16px; background: var(--c-panel); box-shadow: inset 0 0 0 1px var(--c-panel-line); transition: background-color .5s; }
.panel[hidden] { display: none; }
.panel-title { float: left; width: 100%; margin-bottom: 16px; padding: 0; font-size: 20px; font-weight: 700; }
.panel-body { clear: both; display: grid; gap: 18px; }
.panel-red { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.panel-inputs { display: grid; gap: 16px; }
.stepper { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; padding: 3px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--c-border); background: var(--c-field); transition: background-color .5s; }
.stepper:focus-within { box-shadow: inset 0 0 0 2px var(--c-sel); }
.field .stepper input { min-height: 44px; border: 0; background: transparent; text-align: center; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0; }
.field .stepper input:focus { outline: none; }
.stepper:has([aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--c-error); }
.stepper button { position: relative; border: 0; background: none; color: var(--c-fg); cursor: pointer; border-radius: 7px; }
.stepper button:hover { background: var(--c-soft); }
.stepper button:disabled { opacity: .35; cursor: default; background: none; }
.stepper button::before, .step-btn-mas::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.5px; border-radius: 2px; background: currentColor; translate: -50% -50%; }
.step-btn-mas::after { rotate: 90deg; }
.stepper button:focus-visible { outline: 3px solid var(--c-sel); outline-offset: -3px; }
/* the network: one row per branch, one small screen per screen; it grows as the numbers do */
.red-box { display: grid; gap: 12px; align-content: start; }
.red { display: grid; justify-content: center; align-content: center; gap: 5px; min-height: 172px; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--c-fg) 4%, transparent); }
.red i { display: block; width: var(--cw); aspect-ratio: 16 / 9; border-radius: 2px; background: var(--key); }
.red i.sample { background: var(--c-cell-off); }
.red i.nuevo { animation: celda .45s cubic-bezier(.16, 1, .3, 1) both; animation-delay: var(--dl, 0s); }
@keyframes celda { from { opacity: 0; transform: scale(.3); } }
.total { display: block; font-size: 16px; color: var(--c-muted); line-height: 1.35; }
.total strong { display: block; font-size: 30px; line-height: 1.1; color: var(--c-fg); }
@media (prefers-reduced-motion: reduce) { .red i.nuevo { animation: none; } }
.field { display: grid; gap: 6px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label, .field-lugares legend { font-weight: 700; font-size: 17px; }
.opt { font-weight: 400; color: var(--c-muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 11px 14px; border: 1.5px solid var(--c-border); border-radius: 10px;
  background-color: var(--c-field); color: var(--c-fg); font: 400 18px/1.4 "Carlito", Calibri, sans-serif;
  transition: background-color .5s, color .5s, border-color .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; padding-right: 44px; background-image: var(--c-chev); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: var(--c-muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--c-sel); outline-offset: 0; border-color: var(--c-sel); }
.field [aria-invalid="true"] { border-color: var(--c-error); }
.field-hint { font-size: 15px; color: var(--c-muted); }
.field-error { font-size: 15px; font-weight: 700; color: var(--c-error); }
.field-error:empty { display: none; }
/* the total, worked out for whoever fills the form */

.field-lugares legend { margin-bottom: 10px; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 10px; cursor: pointer; font-size: 17px;
  box-shadow: inset 0 0 0 1.5px var(--c-border); transition: box-shadow .2s, background-color .2s;
}
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 5px; border: 2px solid var(--c-border); background: var(--c-field) center / 18px no-repeat; transition: background-color .2s, border-color .2s; }
.check input:checked { border-color: var(--c-sel); background-color: var(--c-sel); background-image: var(--c-check); }
.check:has(input:focus-visible) { outline: 3px solid var(--c-sel); outline-offset: 2px; }
.check input:focus-visible { outline: none; }
.check:has(input:checked) { background: var(--c-soft); box-shadow: inset 0 0 0 2px var(--c-sel); }
.field-industria select { max-width: 420px; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* the trap for bots, out of sight */
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.form-foot .btn { min-width: 180px; min-height: 52px; font-size: 18px; }
.form-foot .btn:disabled { opacity: .6; cursor: progress; }
.form-status { font-size: 17px; font-weight: 700; }
.form-status[data-kind="ok"] { color: var(--c-ok); }
.form-status[data-kind="error"] { color: var(--c-error); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-copy { position: static; }
  .contact-line { max-width: 18ch; }
}
@media (max-width: 560px) {
  .contact-form, .field-tipo, .panel-red { grid-template-columns: minmax(0, 1fr); }
}

.site-footer { padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Words and keywords ---------- */
/* Keywords: light blue on navy, button blue on light grounds (--key). */
.key { font-style: normal; color: var(--key); }
/* Words rise out of a mask, one after another. */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .06em .05em .1em; margin: -.06em -.05em -.1em; }
.w > span { display: inline-block; transform-origin: 0 100%; transition: transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 75ms); }
[data-wait]:not(.on) .w > span { transform: translateY(115%) rotate(7deg); transition-duration: .4s; transition-delay: 0s; }
/* once a line has risen, its keyword turns blue */
.key { transition: color .7s calc(var(--d, 0s) + .75s); }
[data-wait]:not(.on) .key { color: inherit; transition: none; }
/* The scroll hint breathes so the first screen never reads as finished. */
.hero-hint::after { content: ""; display: block; width: 2px; height: 34px; margin: 12px auto 0; border-radius: 1px; background: linear-gradient(var(--accent), rgba(0, 163, 224, 0)); transform-origin: top; animation: hint 1.8s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-hint::after { animation: none; } }
