/* ==========================================================================
   INDEX MADRID — Estudio de diseño y desarrollo web
   styles.css · sistema visual compartido
   ========================================================================== */

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --bg:        #FBFAF8;
  --surface:   #FFFFFF;
  --cream:     #F3EFE8;
  --ink:       #17140F;
  --ink-soft:  #5A554E;
  --ink-faint: #908A81;
  --line:      #E8E3DB;
  --line-strong:#D8D2C8;
  --red:       #0089E3;
  --red-deep:  #0A6CB0;
  --ink-2:     #0E0C09;

  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* fluid type */
  --t-eyebrow: 0.74rem;
  --t-body:    clamp(1rem, 0.97rem + 0.18vw, 1.12rem);
  --t-lead:    clamp(1.18rem, 1.05rem + 0.6vw, 1.5rem);
  --t-h3:      clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem);
  --t-h2:      clamp(2rem, 1.5rem + 2.4vw, 3.6rem);
  --t-h1:      clamp(2.7rem, 1.7rem + 4.6vw, 6rem);
  --t-mega:    clamp(3.4rem, 1.6rem + 8vw, 9rem);

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(23,20,15,.05), 0 4px 14px rgba(23,20,15,.04);
  --shadow-md: 0 8px 30px rgba(23,20,15,.08), 0 2px 6px rgba(23,20,15,.05);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Base --------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.01em;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
strong { font-weight: 700; }

/* ---- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 140px); }
.section--tight { padding-block: clamp(48px, 6vw, 90px); }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink-2); color: var(--bg); }
.section--ink h1,.section--ink h2,.section--ink h3 { color: var(--bg); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  flex: none;
}
.section--ink .eyebrow { color: var(--ink-faint); }

.lead { font-size: var(--t-lead); color: var(--ink-soft); line-height: 1.45; letter-spacing: -0.015em; max-width: 60ch; }
.muted { color: var(--ink-soft); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 0.92em 1.5em; border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s, box-shadow .25s;
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--red); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,137,227,.30); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,137,227,.34); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-2px); }
.section--ink .btn--ghost { color: var(--bg); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.section--ink .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn--lg { padding: 1.05em 1.8em; font-size: 1.05rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; color: var(--ink);
  transition: gap .25s var(--ease), color .25s;
}
.arrow-link svg { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.arrow-link:hover { color: var(--red); gap: .8em; }

/* ---- Header / Nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.03em; color: var(--ink); }
.brand__logo { height: 48px; width: auto; display: block; }
.brand__madrid { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .26em; color: var(--ink-faint); font-weight: 400; align-self: center; padding-top: 2px; }
.footer-brand .brand__madrid { color: #8a8378; }
.brand__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 0 0 rgba(0,137,227,.5); animation: pulse 3s var(--ease) infinite; }
.brand small { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .22em; color: var(--ink-faint); display: block; margin-top: 2px; font-weight: 400; }
@keyframes pulse { 0%,100%{ box-shadow:0 0 0 0 rgba(0,137,227,.45);} 50%{ box-shadow:0 0 0 6px rgba(0,137,227,0);} }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__links a { font-size: .96rem; font-weight: 600; color: var(--ink-soft); transition: color .2s; position: relative; white-space: nowrap; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; background: var(--red); border-radius:2px; }
.nav__actions { display: flex; align-items: center; gap: .8rem; }

.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; }
.nav__toggle span { position: relative; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle span::before, .nav__toggle span::after { content:""; position:absolute; left:0; width:20px; height:2px; background: var(--ink); border-radius:2px; transition:.3s var(--ease); }
.nav__toggle span::before { top:-6px; } .nav__toggle span::after { top:6px; }
.nav-open .nav__toggle span { background: transparent; }
.nav-open .nav__toggle span::before { top:0; transform: rotate(45deg); }
.nav-open .nav__toggle span::after { top:0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-120%); transition: transform .4s var(--ease);
    box-shadow: var(--shadow-md);
  }
  .nav-open .nav__links { transform: translateY(0); }
  .nav__links a { padding: 1rem 0; font-size: 1.3rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav__actions .btn--primary { display: none; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; overflow: clip; padding-top: clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 4vw, 64px); align-items: end; }
.hero h1 { font-size: var(--t-h1); margin-block: .35em .5em; }
.hero h1 .red { color: var(--red); }
.hero__lead { max-width: 42ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__aside { display: flex; flex-direction: column; gap: 1.2rem; }
.hero__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero__meta div { background: var(--surface); padding: 1.1rem 1.2rem; }
.hero__meta dt { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.hero__meta dd { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.03em; margin-top: .15rem; }
.hero__strip { display:flex; align-items:center; gap: 1.4rem; flex-wrap: wrap; margin-top: clamp(40px,6vw,72px); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero__strip span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.hero__tags { display:flex; gap:.5rem; flex-wrap: wrap; }
.tag { font-family: var(--font-mono); font-size:.72rem; letter-spacing:.04em; padding:.4em .8em; border-radius:999px; background: var(--surface); border:1px solid var(--line); color: var(--ink-soft); }
@media (max-width: 860px){ .hero__grid{ grid-template-columns: 1fr; align-items: start; } }

/* ---- Media placeholder -------------------------------------------------- */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--cream) 0 12px, #EDE8E0 12px 24px);
  border: 1px solid var(--line);
  display: grid; place-items: center; min-height: 220px;
  color: var(--ink-faint);
}
.ph::after {
  content: attr(data-label);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--bg); padding: .5em .9em; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-soft);
}
.ph img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ph.has-img { background: none; border-color: var(--line); }
.ph.has-img::after { display: none; }
.ph.is-tall { min-height: 420px; }
.ph.is-wide { aspect-ratio: 16/9; min-height: 0; }

/* ---- Section heading ---------------------------------------------------- */
.sec-head { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem 2rem; align-items: end; margin-bottom: clamp(2.2rem, 4vw, 3.6rem); }
.sec-head h2 { font-size: var(--t-h2); max-width: 18ch; }
.sec-head p { max-width: 46ch; }
@media (max-width: 760px){ .sec-head{ grid-template-columns: 1fr; align-items: start; } }

/* ---- Services ----------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service {
  background: var(--surface); padding: clamp(1.6rem, 3vw, 2.6rem);
  display: flex; flex-direction: column; gap: 1rem; min-height: 280px;
  transition: background .3s var(--ease); position: relative;
}
.service:hover { background: var(--cream); }
.service__num { font-family: var(--font-mono); font-size: .76rem; color: var(--red); letter-spacing: .1em; }
.service h3 { font-size: var(--t-h3); }
.service p { color: var(--ink-soft); flex: 1; }
.service .arrow-link { margin-top: auto; font-size: .95rem; }
.service__list { display:flex; flex-wrap:wrap; gap:.4rem; }
.service__list li { font-family: var(--font-mono); font-size:.7rem; color: var(--ink-soft); padding:.3em .6em; border:1px solid var(--line); border-radius:6px; }
@media (max-width: 700px){ .services{ grid-template-columns: 1fr; } }

/* ---- Logos / trust ------------------------------------------------------ */
.marquee { overflow: hidden; -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; gap: clamp(2rem,5vw,4.5rem); width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem,2vw,1.5rem); color: var(--ink-faint); letter-spacing: -0.02em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Process ------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.step { display: flex; flex-direction: column; gap: .7rem; padding-top: 1.4rem; border-top: 2px solid var(--ink); }
.step__n { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; color: var(--red); }
.step h3 { font-size: 1.28rem; }
.step p { font-size: .98rem; color: var(--ink-soft); }
@media (max-width: 820px){ .steps{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .steps{ grid-template-columns: 1fr; } }

/* ---- Stats banner ------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem,4vw,3rem); }
.stat__n { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 5vw, 4.4rem); letter-spacing: -0.04em; line-height: 1; }
.stat__n .u { color: var(--red); }
.stat p { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-top: .5rem; }
.section--ink .stat p { color: var(--ink-faint); }
@media (max-width: 760px){ .stats{ grid-template-columns: 1fr 1fr; gap: 2rem; } }

/* ---- Portfolio ---------------------------------------------------------- */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); }
.work__item { display: flex; flex-direction: column; gap: 1rem; }
.work__item.is-feature { grid-column: 1 / -1; }
.work__item.is-feature .ph { aspect-ratio: 21/9; min-height: 0; }
.work__media { transition: transform .5s var(--ease); }
.work__item:hover .work__media { transform: translateY(-4px); }
.work__meta { display:flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.work__meta h3 { font-size: 1.3rem; }
.work__meta .tag { background: transparent; }
.work__item p { color: var(--ink-soft); font-size: .98rem; }
.work__item a.work__link { color: inherit; display: flex; flex-direction: column; gap: 1rem; }
.work__visit { display:inline-flex; align-items:center; gap:.45em; font-weight:700; font-size:.92rem; color: var(--red); margin-top:-.2rem; transition: gap .25s var(--ease); }
.work__visit svg { width:.95em; height:.95em; }
.work__item:hover .work__visit { gap:.75em; }
.work__media { position: relative; }
.work__media .ph { transition: transform .5s var(--ease); }
@media (max-width: 700px){ .work{ grid-template-columns: 1fr; } }

/* ---- Testimonials ------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem,2.5vw,1.6rem); }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem,3vw,2.2rem); display: flex; flex-direction: column; gap: 1.4rem; }
.quote p { font-size: 1.08rem; line-height: 1.5; letter-spacing: -0.015em; }
.quote__by { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote__av { width: 42px; height: 42px; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); display:grid; place-items:center; font-family: var(--font-display); font-weight: 700; color: var(--red); flex: none; }
.quote__by b { font-weight: 700; font-size: .95rem; display:block; }
.quote__by span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--ink-faint); }
.quote__stars { color: var(--red); letter-spacing: 2px; font-size: .9rem; }
@media (max-width: 860px){ .quotes{ grid-template-columns: 1fr; } }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { position: relative; overflow: clip; }
.cta-band .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem,4vw,4rem); align-items: center; }
.cta-band h2 { font-size: var(--t-h2); }
.cta-band .lead { color: var(--ink-faint); }
.cta-band__actions { display:flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.cta-band__actions .btn { width: auto; }
@media (max-width: 760px){ .cta-band .wrap{ grid-template-columns: 1fr; } }

/* ---- Page header (interior pages) -------------------------------------- */
.page-hero { padding-top: clamp(48px, 7vw, 96px); }
.page-hero h1 { font-size: var(--t-h1); margin-top: .4em; max-width: 16ch; }
.page-hero .lead { margin-top: 1.2rem; }
.breadcrumb { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; color: var(--ink-faint); display:flex; gap:.5em; align-items:center; }
.breadcrumb a:hover { color: var(--red); }

/* ---- Feature rows (service detail) ------------------------------------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,4.5rem); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(3rem,6vw,6rem); }
.feature-row:nth-child(even) .feature-row__media { order: -1; }
.feature-row h2 { font-size: var(--t-h2); margin-bottom: 1rem; }
.feature-row ul.checks { display:flex; flex-direction: column; gap: .8rem; margin-top: 1.6rem; }
.feature-row ul.checks li { display:flex; gap:.7rem; align-items:flex-start; color: var(--ink-soft); }
.feature-row ul.checks li::before { content:""; width:1.4em; height:1.4em; border-radius:50%; background: var(--red); flex:none; margin-top:.1em; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/%3E%3C/svg%3E") center/68% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/%3E%3C/svg%3E") center/68% no-repeat; }
@media (max-width: 800px){ .feature-row{ grid-template-columns: 1fr; } .feature-row:nth-child(even) .feature-row__media{ order: 0; } }

/* ---- Pricing ------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1rem,2.5vw,1.6rem); }
.plan { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem,3vw,2.2rem); display:flex; flex-direction:column; gap:1.2rem; }
.plan.is-featured { background: var(--ink-2); color: var(--bg); border-color: var(--ink-2); }
.plan.is-featured h3, .plan.is-featured .plan__price { color: var(--bg); }
.plan__tag { font-family: var(--font-mono); font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; color: var(--red); }
.plan h3 { font-size: 1.4rem; }
.plan__price { font-family: var(--font-display); font-size: 2.4rem; font-weight:600; letter-spacing:-0.03em; }
.plan__price span { font-family: var(--font-mono); font-size:.8rem; color: var(--ink-faint); letter-spacing:.04em; }
.plan ul { display:flex; flex-direction:column; gap:.7rem; flex:1; }
.plan ul li { display:flex; gap:.6rem; font-size:.96rem; color: var(--ink-soft); }
.plan.is-featured ul li { color: #cfc9c0; }
.plan ul li::before { content:"→"; color: var(--red); font-weight:700; }
@media (max-width: 820px){ .plans{ grid-template-columns: 1fr; } }

/* ---- Contact / forms ---------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.contact-info { display:flex; flex-direction:column; gap: 1.6rem; }
.contact-info .row { display:flex; flex-direction:column; gap:.25rem; padding-bottom: 1.4rem; border-bottom:1px solid var(--line); }
.contact-info .row .k { font-family: var(--font-mono); font-size:.7rem; letter-spacing:.12em; text-transform:uppercase; color: var(--ink-faint); }
.contact-info .row .v { font-size: 1.12rem; font-weight: 600; }
.contact-info .row .v a:hover { color: var(--red); }
@media (max-width: 820px){ .contact-grid{ grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display:flex; flex-direction:column; gap:.45rem; }
.field label { font-size:.86rem; font-weight:700; letter-spacing:-0.01em; }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--surface); border:1px solid var(--line-strong); border-radius: 10px;
  padding: .85em 1em; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,20,15,.08); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field .err { color: var(--red); font-size:.8rem; font-weight:600; display:none; }
.field.has-error .err { display:block; }
.consent { display:flex; gap:.7rem; align-items:flex-start; font-size:.86rem; color: var(--ink-soft); }
.consent input { width:1.15em; height:1.15em; margin-top:.15em; accent-color: var(--red); flex:none; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--red); }
.form__status { font-size:.92rem; font-weight:600; padding:.9em 1.1em; border-radius:10px; display:none; }
.form__status.ok { display:block; background:#EAF6EE; color:#1C7A43; border:1px solid #BFE6CD; }
.form__status.bad { display:block; background:#FBEBEA; color:var(--red-deep); border:1px solid #F3CBC7; }
@media (max-width: 560px){ .form__row{ grid-template-columns: 1fr; } }

/* ---- FAQ / accordion ---------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width:100%; display:flex; justify-content:space-between; align-items:center; gap:1rem; padding: 1.4rem 0; text-align:left; font-family: var(--font-display); font-weight:600; font-size: 1.18rem; letter-spacing:-0.02em; }
.faq__q .ic { width:22px; height:22px; flex:none; position:relative; }
.faq__q .ic::before, .faq__q .ic::after { content:""; position:absolute; background: var(--red); border-radius:2px; transition: transform .3s var(--ease); }
.faq__q .ic::before { inset: 10px 0; height:2px; } .faq__q .ic::after { inset: 0 10px; width:2px; }
.faq__item[open] .faq__q .ic::after { transform: scaleY(0); }
.faq__a { overflow:hidden; }
.faq__a p { padding-bottom: 1.4rem; color: var(--ink-soft); max-width: 70ch; }

/* ---- Legal / article ---------------------------------------------------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: clamp(1.4rem,2.5vw,1.9rem); margin: 2.4rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: .9rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.prose ul li { margin-bottom: .4rem; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.toc { font-family: var(--font-mono); font-size:.8rem; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink-2); color: #BFB9B0; padding-block: clamp(54px,7vw,88px) 2rem; }
.site-footer h4 { color: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(2rem,4vw,3rem); padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand { color: var(--bg); font-size: 1.3rem; }
.footer-brand .brand__logo { height: 44px; }
.footer-brand p { color: var(--ink-faint); max-width: 34ch; margin-top: 1rem; font-size:.96rem; }
.footer-col h4 { font-family: var(--font-mono); font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color: var(--ink-faint); margin-bottom: 1.1rem; font-weight: 400; }
.footer-col ul { display:flex; flex-direction:column; gap:.7rem; }
.footer-col a { color:#BFB9B0; font-size:.96rem; transition: color .2s; }
.footer-col a:hover { color: var(--bg); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; padding-top: 1.6rem; font-family: var(--font-mono); font-size:.72rem; letter-spacing:.04em; color: var(--ink-faint); }
.footer-bottom a:hover { color: var(--bg); }
.footer-social { display:flex; gap:.6rem; }
.footer-social a { width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.16); display:grid; place-items:center; transition: .25s var(--ease); }
.footer-social a:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.footer-social svg { width:17px; height:17px; fill: currentColor; color:#BFB9B0; }
.footer-social a:hover svg { color:#fff; }
@media (max-width: 820px){ .footer-grid{ grid-template-columns: 1fr 1fr; } .footer-brand{ grid-column:1/-1; } }
@media (max-width: 480px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---- WhatsApp float ----------------------------------------------------- */
.wa-float {
  position: fixed; right: clamp(16px,3vw,28px); bottom: clamp(16px,3vw,28px); z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4); color:#fff;
  transition: transform .25s var(--ease), box-shadow .25s; 
}
.wa-float:hover { transform: scale(1.07) translateY(-2px); box-shadow: 0 12px 30px rgba(37,211,102,.5); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float__pulse { position:absolute; inset:0; border-radius:50%; background:#25D366; animation: wapulse 2.4s ease-out infinite; z-index:-1; }
@keyframes wapulse { 0%{ transform:scale(1); opacity:.5;} 100%{ transform:scale(1.7); opacity:0;} }

/* ---- Cookie banner ------------------------------------------------------ */
.cookies {
  position: fixed; left: clamp(16px,3vw,28px); bottom: clamp(16px,3vw,28px); z-index: 80;
  max-width: 420px; background: var(--surface); border:1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 1.4rem 1.5rem;
  transform: translateY(160%); opacity: 0; transition: transform .5s var(--ease), opacity .5s; 
}
.cookies.is-visible { transform: translateY(0); opacity: 1; }
.cookies h4 { font-size: 1.05rem; margin-bottom: .4rem; }
.cookies p { font-size: .86rem; color: var(--ink-soft); margin-bottom: 1rem; }
.cookies p a { color: var(--ink); text-decoration: underline; }
.cookies__actions { display:flex; gap:.6rem; flex-wrap: wrap; }
.cookies .btn { padding: .7em 1.1em; font-size: .88rem; }
@media (max-width: 480px){ .cookies{ left: 12px; right: 12px; max-width: none; } }

/* ---- Reveal animation --------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  [data-reveal].is-in { opacity: 1; transform: none; }
  [data-reveal-delay="1"]{ transition-delay:.08s; } [data-reveal-delay="2"]{ transition-delay:.16s; }
  [data-reveal-delay="3"]{ transition-delay:.24s; } [data-reveal-delay="4"]{ transition-delay:.32s; }
}

/* ---- 404 ---------------------------------------------------------------- */
.notfound { min-height: 70vh; display:grid; place-items:center; text-align:center; }
.notfound__code { font-family: var(--font-display); font-weight:600; font-size: var(--t-mega); letter-spacing:-0.05em; line-height:.9; }
.notfound__code .red { color: var(--red); }

/* ---- Utilities ---------------------------------------------------------- */
.center { text-align:center; }
.stack-sm > * + * { margin-top: .8rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.divider { height:1px; background: var(--line); border:0; }
.skip { position:absolute; left:-9999px; top:0; background:var(--ink); color:#fff; padding:.6em 1em; border-radius:0 0 8px 0; z-index:100; }
.skip:focus { left:0; }
