/* Panzi Labs -- landing page styles. Mobile-first (375px baseline), two
   breakpoints up (640px tablet, 980px desktop). Self-contained: this build
   does not use the scrollcraft cinematic engine (scrollcraft.js/.css) --
   the brief calls for a dense, conversion-first, fast, accessible page with
   only subtle enter animations, not a scroll-jacked worldflight, so a
   lighter purpose-built stylesheet keeps JS/CSS weight down and respects
   the LCP/Lighthouse targets in the brief. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk-variable.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('assets/fonts/manrope-variable.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #070B14;
  --bg-elevado: #0E1524;
  --bg-elevado-2: #121B30;
  --borde: #1C2740;
  --texto: #E8EEF9;
  --texto-suave: #93A1BC;
  --acento: #22D3EE;
  --acento-2: #3B82F6;
  --acento-ink: #04131A;
  --exito: #34D399;
  --error: #F87171;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-text: 'Manrope', system-ui, sans-serif;
  --radio: 16px;
  --radio-sm: 10px;
  --header-h: 64px;
  --bottombar-h: 64px;
  --maxw: 72rem;
  --ease: cubic-bezier(.16,.84,.44,1);
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--font-text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--acento); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .wrap { padding-inline: 2rem; } }
@media (min-width: 980px) { .wrap { padding-inline: 2.5rem; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; background: var(--acento);
  color: var(--acento-ink); padding: .6rem 1rem; border-radius: var(--radio-sm);
  font-weight: 700; z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 1.3rem; border-radius: 999px; border: 0;
  font-family: var(--font-text); font-weight: 700; font-size: .95rem;
  cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--acento); color: var(--acento-ink); }
.btn-primary:hover { box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--acento) 70%, transparent); }
.btn-secondary {
  background: transparent; color: var(--texto); border: 1px solid var(--borde);
}
.btn-secondary:hover { border-color: var(--acento); color: var(--acento); }
.btn-wa { background: #1F8A4C; color: #EAFBF1; }
.btn-wa:hover { box-shadow: 0 8px 24px -8px rgba(31,138,76,.6); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-block { width: 100%; }

/* ---- header -------------------------------------------------------------*/
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--borde);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; color: var(--texto); display: flex; align-items: center; gap: .5rem; white-space: nowrap; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; flex: none; object-fit: contain; }
.header-cta { font-size: .72rem; padding: 0 .8rem; white-space: nowrap; }
@media (max-width: 374px) { .brand span { display: none; } }
@media (min-width: 480px) { .header-cta { font-size: .9rem; padding: 0 1.1rem; } }
@media (min-width: 640px) { .header-cta { font-size: .95rem; padding: 0 1.3rem; } }

main { padding-top: var(--header-h); }

/* ---- mobile bottom bar ---------------------------------------------------*/
.bottom-bar {
  position: fixed; inset: auto 0 0 0; z-index: 90; display: flex; gap: .6rem;
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--bg-elevado) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--borde);
  transform: translateY(100%); transition: transform .25s var(--ease);
}
.bottom-bar.is-visible { transform: translateY(0); }
.bottom-bar .btn { flex: 1; font-size: .88rem; padding: 0 .75rem; }
@media (min-width: 980px) { .bottom-bar { display: none; } }

/* ---- section rhythm ------------------------------------------------------*/
section { padding-block: 4rem; position: relative; }
@media (min-width: 980px) { section { padding-block: 6.5rem; } }
.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--acento); margin-bottom: .75rem;
}
h2.section-title { font-size: clamp(1.6rem, 4.5vw, 2.4rem); color: var(--texto); }
.section-lede { margin-top: .9rem; color: var(--texto-suave); font-size: 1.05rem; max-width: 38rem; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---- hero: dot field --------------------------------------------------------
   Exactly one viewport tall (minus the fixed header), so only the hero is
   visible on load -- the next section never peeks in. The headline is drawn
   by dotfield.js onto the two canvases below; the real <h1> stays in the
   markup for SEO/screen readers but is visually hidden (.visually-hidden). */
.hero {
  position: relative; overflow: hidden; padding: 0;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column;
}
.hero-dotfield, .hero-dotfield-glow {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.hero-dotfield-glow { opacity: .8; mix-blend-mode: screen; filter: blur(6px); }
.hero-spot {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(260px circle at var(--x,50%) var(--y,40%), color-mix(in oklab, var(--acento) 14%, transparent), transparent 70%);
}
.hero:hover .hero-spot { opacity: 1; }
.hero-wrap {
  position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column;
  justify-content: flex-start; align-items: center; text-align: center;
  padding-top: 2.5rem; padding-bottom: 2.5rem;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; color: var(--texto); margin: 0;
  margin-top: clamp(1rem, 7vh, 3.25rem);
  text-transform: none; font-weight: 600;
  background: color-mix(in oklab, var(--bg-elevado) 70%, transparent); border: 1px solid var(--borde);
  border-radius: 999px; padding: .4rem .9rem; font-size: .8rem;
  opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.hero-eyebrow.is-in { opacity: 1; transform: none; }
.hero-bottom {
  position: absolute; left: 50%; top: var(--headline-bottom, 56%); transform: translateX(-50%);
  width: 100%; max-width: 36rem; padding-inline: 1.25rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
  margin-top: .5rem;
}
.hero-bottom .lede {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem); color: var(--texto); font-weight: 500;
  opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease) .1s, transform .7s var(--ease) .1s;
}
.hero-bottom .lede.is-in { opacity: 1; transform: none; }
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
  opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease) .2s, transform .7s var(--ease) .2s;
}
.hero-ctas.is-in { opacity: 1; transform: none; }
.hero-proof {
  padding-top: 1.25rem; border-top: 1px solid var(--borde);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem 2rem;
  opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease) .3s, transform .7s var(--ease) .3s;
}
.hero-proof.is-in { opacity: 1; transform: none; }
.hero-proof[hidden] { display: none; }
.hero-rating { display: flex; align-items: center; gap: .5rem; color: var(--texto-suave); font-size: .9rem; }
.hero-rating .stars { display: flex; gap: 2px; color: var(--acento); }
.hero-rating .stars svg { width: 16px; height: 16px; }
.client-logos { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.client-logos img { height: 22px; width: auto; opacity: .7; filter: grayscale(1) brightness(1.6); }
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-bottom .lede, .hero-ctas, .hero-proof { transition: none; }
}

/* ---- problema -------------------------------------------------------------*/
.problema {
  position: relative; overflow: hidden; background: var(--bg-elevado);
  border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde);
}
.problema > .wrap { position: relative; z-index: 1; }
.problema-glitch {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  opacity: 0; transition: opacity 1s var(--ease);
}
.problem-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
.problem-card {
  background: var(--bg); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem;
}
.problem-card .icon { width: 2.5rem; height: 2.5rem; color: var(--acento); }
.problem-card strong { color: var(--texto); font-size: 1.02rem; }
.problem-card p { color: var(--texto-suave); font-size: .95rem; }

/* spotlight glow -- cursor-tracked radial highlight + glowing border, ported
   from a React "GlowCard" component the client supplied (vanilla CSS/JS port,
   see spotlight-cards.js). Hue stays within the brand's own cyan->blue pair
   instead of the component's per-card rainbow hue, to match the single-accent
   rule already set for this site. */
.problem-card[data-glow] {
  --base: 189; --spread: 28; --radius: 16; --border: 1;
  --backdrop: transparent; --backup-border: var(--borde);
  --size: 280;
  --border-size: calc(var(--border) * 1px);
  --spotlight-size: calc(var(--size) * 1px);
  --hue: calc(var(--base) + (var(--xp, .5) * var(--spread)));
  position: relative; z-index: 0;
  background-image: radial-gradient(
    var(--spotlight-size) var(--spotlight-size) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
    hsl(var(--hue) 85% 60% / .14), transparent
  );
  background-color: var(--bg);
  background-attachment: fixed;
  border: var(--border-size) solid var(--backup-border);
  transition: border-color .3s var(--ease);
}
.problem-card[data-glow]::before,
.problem-card[data-glow]::after {
  pointer-events: none; content: ""; position: absolute; inset: calc(var(--border-size) * -1);
  border: var(--border-size) solid transparent; border-radius: calc(var(--radius) * 1px);
  background-attachment: fixed;
  mask: linear-gradient(transparent, transparent), linear-gradient(#fff, #fff);
  mask-clip: padding-box, border-box; mask-composite: intersect;
  -webkit-mask-composite: source-in;
}
.problem-card[data-glow]::before {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * .75) calc(var(--spotlight-size) * .75) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
    hsl(var(--hue) 85% 55% / .95), transparent 100%
  );
  filter: brightness(1.5);
}
.problem-card[data-glow]::after {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * .45) calc(var(--spotlight-size) * .45) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
    hsl(0 0% 100% / .7), transparent 100%
  );
}
@media (hover: none) {
  /* no continuous pointermove on touch -- keep a plain static border instead of a glow stuck at (0,0) */
  .problem-card[data-glow]::before, .problem-card[data-glow]::after { display: none; }
  .problem-card[data-glow] { background-image: none; }
}
.problema-closing {
  margin-top: 2rem; padding: 1.25rem 1.5rem; border-left: 3px solid var(--acento);
  background: color-mix(in oklab, var(--acento) 8%, transparent); border-radius: 0 var(--radio-sm) var(--radio-sm) 0;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--texto);
}

/* ---- solucion ---------------------------------------------------------- */
.loop-diagram { margin: 2.5rem 0 3rem; display: flex; justify-content: center; }
.loop-diagram svg { width: 100%; max-width: 30rem; height: auto; }
.loop-dash { stroke-dasharray: 6 8; animation: panzi-flow 6s linear infinite; }
@keyframes panzi-flow { to { stroke-dashoffset: -140; } }
@media (prefers-reduced-motion: reduce) { .loop-dash { animation: none; } }

.service-rows { display: flex; flex-direction: column; gap: 1.25rem; }
.service-row {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.5rem; border-radius: var(--radio); background: var(--bg-elevado); border: 1px solid var(--borde);
}
.service-row .icon-wrap {
  width: 3rem; height: 3rem; border-radius: 50%; background: color-mix(in oklab, var(--acento) 14%, transparent);
  display: flex; align-items: center; justify-content: center; color: var(--acento); flex: none;
}
.service-row .icon-wrap svg { width: 1.5rem; height: 1.5rem; }
.service-row strong { display: block; color: var(--texto); font-size: 1.05rem; margin-bottom: .35rem; }
.service-row p { color: var(--texto-suave); font-size: .95rem; }
.solucion-cta { margin-top: 2rem; display: flex; }

.tech-strip { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--borde); }
.tech-strip-head { color: var(--texto-suave); font-size: .95rem; margin-bottom: 1.5rem; }
.tech-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
.tech-item { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem; border-radius: var(--radio-sm); }
.tech-item .icon { width: 1.3rem; height: 1.3rem; color: var(--texto-suave); flex: none; margin-top: .1rem; }
.tech-item strong { color: var(--texto); font-size: .92rem; font-weight: 700; }
.tech-item span.d { color: var(--texto-suave); font-size: .85rem; display: block; margin-top: .15rem; }

/* ---- clientes ---------------------------------------------------------- */
.clientes-logos { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; margin-bottom: 2rem; }
.clientes-logos img { height: 28px; width: auto; opacity: .8; }
.rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-bottom: 2rem; }
.rating-line .stars { display: flex; gap: 2px; color: var(--acento); }
.rating-line .stars svg { width: 20px; height: 20px; }
.rating-line strong { color: var(--texto); font-size: 1.1rem; }
.review-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .review-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card { background: var(--bg-elevado); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.25rem; }
.review-card .stars { display: flex; gap: 2px; color: var(--acento); margin-bottom: .6rem; }
.review-card .stars svg { width: 15px; height: 15px; }
.review-card p.text { color: var(--texto); font-size: .92rem; margin-bottom: .75rem; }
.review-card p.author { color: var(--texto-suave); font-size: .82rem; }

/* ---- para quien ---------------------------------------------------------*/
.audience-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .audience-grid { grid-template-columns: repeat(5, 1fr); } }
.audience-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem;
  padding: 1.5rem 1rem; border-radius: var(--radio); background: var(--bg-elevado); border: 1px solid var(--borde);
}
.audience-card .icon { width: 2.25rem; height: 2.25rem; color: var(--acento); }
.audience-card span { font-size: .88rem; color: var(--texto); font-weight: 600; }

/* ---- proceso --------------------------------------------------------------*/
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding-block: 1.5rem; position: relative; }
.step:not(:last-child) { border-bottom: 1px solid var(--borde); }
.step .num {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--acento);
  width: 2.75rem; height: 2.75rem; border: 1px solid var(--borde); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.step strong { display: block; color: var(--texto); font-size: 1.1rem; margin-bottom: .35rem; }
.step p { color: var(--texto-suave); }

/* ---- diagnostico -----------------------------------------------------------*/
.diagnostico-panel {
  background: linear-gradient(160deg, var(--bg-elevado), var(--bg-elevado-2));
  border: 1px solid var(--borde); border-radius: 1.5rem; padding: 2rem;
}
@media (min-width: 980px) { .diagnostico-panel { padding: 3rem; } }
.diag-lists { display: grid; gap: 1.75rem; margin-top: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .diag-lists { grid-template-columns: 1fr 1fr; } }
.diag-list h3 { font-size: .95rem; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1rem; }
.diag-list li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .75rem; color: var(--texto); font-size: .95rem; }
.diag-list li svg { width: 1.1rem; height: 1.1rem; color: var(--acento); flex: none; margin-top: .15rem; }
.diag-meta { margin-top: 1.5rem; color: var(--texto-suave); font-size: .92rem; }
.diag-meta strong { color: var(--texto); }
.diag-cta { margin-top: 2rem; }

/* ---- compromisos -----------------------------------------------------------*/
.commitments { display: flex; flex-direction: column; gap: 1.5rem; max-width: 40rem; }
.commitment { display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.commitment .icon { width: 2rem; height: 2rem; color: var(--acento); flex: none; }
.commitment strong { display: block; color: var(--texto); margin-bottom: .3rem; }
.commitment p { color: var(--texto-suave); font-size: .95rem; }

/* ---- faq -------------------------------------------------------------------*/
.faq-list { border-top: 1px solid var(--borde); }
.faq-item { border-bottom: 1px solid var(--borde); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: 0; color: var(--texto); text-align: left; padding: 1.25rem 0;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; cursor: pointer;
}
.faq-q .chev { width: 1.1rem; height: 1.1rem; color: var(--acento); flex: none; transition: transform .25s var(--ease); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease), opacity .3s var(--ease); opacity: 0; }
.faq-a p { color: var(--texto-suave); padding-bottom: 1.25rem; max-width: 40rem; }
.faq-item.is-open .faq-a { max-height: 420px; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .faq-a { transition: none; } }

/* ---- cta final + form -------------------------------------------------------*/
.cta-final { background: var(--bg-elevado); border-top: 1px solid var(--borde); }
.form-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 980px) { .form-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; color: var(--texto-suave); margin-bottom: .4rem; }
.field input {
  width: 100%; min-height: 44px; padding: 0 .9rem; border-radius: var(--radio-sm);
  border: 1px solid var(--borde); background: var(--bg); color: var(--texto); font-family: inherit; font-size: .95rem;
}
.field input:focus { border-color: var(--acento); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .8rem; margin-top: .3rem; display: none; }
.field-error.is-shown { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: .6rem; align-items: flex-start; margin: 1.25rem 0; font-size: .85rem; color: var(--texto-suave); }
.consent input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--acento); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .5rem; }
.form-status { margin-top: 1rem; font-size: .92rem; }
.form-status.is-success { color: var(--exito); }
.form-status.is-error { color: var(--error); }
.form-status[hidden] { display: none; }

/* ---- footer ----------------------------------------------------------------*/
.site-footer { border-top: 1px solid var(--borde); padding-block: 3rem; background: var(--bg); }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-brand .brand { margin-bottom: .6rem; }
.foot-brand p { color: var(--texto-suave); font-size: .9rem; max-width: 22rem; }
.foot-col h4 { font-size: .82rem; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .9rem; }
.foot-col ul li { margin-bottom: .55rem; }
.foot-col a { color: var(--texto); font-size: .9rem; }
.foot-col a:hover { color: var(--acento); }
.foot-col a[hidden] { display: none; }
.foot-social { display: flex; gap: .75rem; margin-top: .9rem; }
.foot-social a { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--borde); display: flex; align-items: center; justify-content: center; color: var(--texto-suave); }
.foot-social a[hidden] { display: none; }
.foot-social svg { width: 1.1rem; height: 1.1rem; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--borde); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; color: var(--texto-suave); font-size: .82rem; }

/* ---- legal pages (shared minimal look) -------------------------------------*/
.legal-main { max-width: 42rem; margin: 0 auto; padding: 7rem 1.25rem 5rem; }
.legal-main h1 { font-size: 1.8rem; margin-bottom: 1rem; }
.legal-main p { color: var(--texto-suave); }
.legal-back { display: inline-block; margin-top: 2.5rem; color: var(--texto-suave); font-size: .9rem; }

/* ---- legal documents ---------------------------------------------------------*/
.legal-header { border-bottom: 1px solid var(--borde); }
.legal-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.legal-header .brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--texto); font-family: var(--font-display); font-weight: 700; }
.legal-header .brand:hover { text-decoration: none; }
.legal-header nav a { color: var(--texto-suave); font-size: .88rem; }
.legal-doc { padding-top: 3.5rem; }
.legal-doc .legal-meta { color: var(--texto-suave); font-size: .85rem; margin-bottom: 2rem; }
.legal-doc h2 { font-size: 1.15rem; margin: 2.4rem 0 .8rem; }
.legal-doc h3 { font-size: 1rem; margin: 1.6rem 0 .5rem; }
.legal-doc p, .legal-doc li { color: var(--texto-suave); font-size: .95rem; }
.legal-doc p + p { margin-top: .8rem; }
.legal-doc ul { list-style: disc; padding-left: 1.3rem; margin: .6rem 0; }
.legal-doc ol { padding-left: 1.3rem; margin: .6rem 0; }
.legal-doc li { margin-bottom: .4rem; }
.legal-doc strong { color: var(--texto); }
.legal-doc .table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--borde); border-radius: var(--radio-sm); }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 32rem; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid var(--borde); color: var(--texto-suave); }
.legal-doc th { color: var(--texto); background: var(--bg-elevado); font-weight: 700; }
.legal-doc tr:last-child td { border-bottom: 0; }
.legal-doc .id-card { background: var(--bg-elevado); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.1rem 1.25rem; margin: 1rem 0; }
.legal-doc .id-card p { margin: .15rem 0; }
.legal-doc .notice { border-left: 3px solid var(--acento); padding: .8rem 1rem; background: var(--bg-elevado); border-radius: 0 var(--radio-sm) var(--radio-sm) 0; margin: 1.2rem 0; }
.legal-footer { border-top: 1px solid var(--borde); padding: 2rem 0 6rem; color: var(--texto-suave); font-size: .82rem; }
.legal-footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: space-between; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.legal-footer a { color: var(--texto-suave); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--acento); text-decoration: underline; }
.foot-col .link-btn { color: var(--texto); font-size: .9rem; }
.foot-legal-id { color: var(--texto-suave); font-size: .78rem; margin-top: .4rem; }
.libro-link { display: inline-flex; align-items: center; gap: .45rem; }
.libro-link svg { width: 1.1rem; height: 1.1rem; flex: none; }

/* ---- libro de reclamaciones form ---------------------------------------------*/
.lr-form fieldset { border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.1rem 1.1rem .4rem; margin: 0 0 1.4rem; }
.lr-form legend { font-family: var(--font-display); font-weight: 700; padding: 0 .4rem; color: var(--texto); }
.lr-form .field select, .lr-form .field textarea {
  width: 100%; min-height: 44px; padding: .6rem .9rem; border-radius: var(--radio-sm);
  border: 1px solid var(--borde); background: var(--bg); color: var(--texto); font-family: inherit; font-size: .95rem;
}
.lr-form .field textarea { min-height: 7rem; resize: vertical; }
.lr-form .field select:focus, .lr-form .field textarea:focus { border-color: var(--acento); outline: none; }
.lr-form [aria-invalid="true"] { border-color: var(--error) !important; }
.lr-form .row2 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lr-form .row2 { grid-template-columns: 1fr 1fr; } }
.lr-form .radios { display: flex; flex-direction: column; gap: .6rem; margin: .3rem 0 1rem; }
.lr-form .radios label { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--texto-suave); }
.lr-form .radios input { accent-color: var(--acento); margin-top: .25rem; flex: none; }
.lr-form .hint { color: var(--texto-suave); font-size: .8rem; margin-top: .3rem; }
.lr-result { background: var(--bg-elevado); border: 1px solid var(--exito); border-radius: var(--radio); padding: 1.25rem; margin-top: 1rem; }
.lr-result h2 { margin-top: 0; color: var(--exito); }

/* ---- cookie banner + preferences ---------------------------------------------*/
.ck-banner {
  position: fixed; z-index: 300; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 34rem; margin-left: auto;
  background: var(--bg-elevado-2); color: var(--texto); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: 1.15rem 1.2rem; box-shadow: 0 18px 50px -12px rgba(0,0,0,.7);
}
.ck-banner h2 { font-size: 1rem; margin-bottom: .4rem; }
.ck-banner p { color: var(--texto-suave); font-size: .86rem; }
.ck-banner p a { color: var(--acento); }
.ck-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.ck-actions .btn { min-height: 40px; font-size: .86rem; padding: 0 1rem; flex: 1 1 auto; }
.ck-prefs { margin-top: .9rem; border-top: 1px solid var(--borde); padding-top: .8rem; }
.ck-row { display: flex; gap: .8rem; align-items: flex-start; justify-content: space-between; padding: .55rem 0; }
.ck-row strong { display: block; font-size: .9rem; }
.ck-row span { color: var(--texto-suave); font-size: .8rem; }
.ck-row input { width: 1.2rem; height: 1.2rem; accent-color: var(--acento); flex: none; margin-top: .2rem; }
@media (max-width: 639px) { .ck-banner { left: .75rem; right: .75rem; bottom: .75rem; } }
