:root {
    --paper: oklch(0.99 0.004 250);
    --tint: oklch(0.965 0.018 248);
    --tint-2: oklch(0.94 0.03 248);
    --ink: oklch(0.27 0.035 255);
    --ink-soft: oklch(0.48 0.025 255);
    --line: oklch(0.91 0.012 250);
    --blue: oklch(0.77 0.085 247);
    --blue-deep: oklch(0.56 0.13 252);
    --blue-press: oklch(0.5 0.14 254);
    --navy: oklch(0.26 0.045 258);
    --navy-2: oklch(0.22 0.04 258);
    --on-navy: oklch(0.95 0.01 250);
    --on-navy-soft: oklch(0.76 0.02 250);
    --font-display: 'Manrope', system-ui, sans-serif;
    --font-body: 'Hanken Grotesk', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
    --maxw: 1180px;
    --pad: clamp(20px, 5vw, 72px);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

  .eyebrow {
    font-family: var(--font-mono);
    font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--blue-deep); display: inline-flex; align-items: center; gap: 10px;
  }
  .eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--blue-deep); }
  .eyebrow.light { color: var(--blue); }
  .eyebrow.light::before { background: var(--blue); }

  h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; }
  .display { font-size: clamp(40px, 6.6vw, 80px); text-wrap: balance; }
  .h2 { font-size: clamp(29px, 4vw, 50px); text-wrap: balance; }
  .lead { font-size: clamp(16.5px, 1.6vw, 20px); color: var(--ink-soft); max-width: 58ch; text-wrap: pretty; }

  .btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-display); font-size: 14.5px; font-weight: 700;
    padding: 14px 24px; border-radius: 100px; border: 1.5px solid transparent;
    cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s, border-color .15s;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary { background: var(--blue-deep); color: #fff; }
  .btn-primary:hover { background: var(--blue-press); }
  .btn-ghost { border-color: var(--line); color: var(--ink); }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn-ghost.light { border-color: oklch(0.42 0.04 258); color: var(--on-navy); }
  .btn-ghost.light:hover { border-color: var(--on-navy); }
  .btn .arrow { transition: transform .15s ease; }
  .btn:hover .arrow { transform: translateX(3px); }

  /* Header */
  header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in oklab, var(--paper) 85%, transparent);
    backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
  .brand img { height: 26px; width: auto; }
  .nav-mid { display: flex; gap: 28px; align-items: center; }
  .nav-mid a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color .15s; white-space: nowrap; }
  .nav-mid a:hover { color: var(--ink); }
  .nav-right { display: flex; gap: 16px; align-items: center; }
  .lang { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
  .lang button {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
    padding: 7px 12px; background: none; border: none; cursor: pointer; color: var(--ink-soft);
    transition: background .15s, color .15s;
  }
  .lang button.active { background: var(--blue-deep); color: #fff; }
  .nav-right .btn { padding: 10px 18px; font-size: 13.5px; }
  .menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 100px; padding: 9px 14px; font-family: var(--font-display); font-weight: 700; font-size: 13px; cursor: pointer; }

  /* Hero */
  .hero { position: relative; overflow: hidden; padding: clamp(46px, 8vh, 96px) 0 clamp(40px, 6vh, 72px); }
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
      radial-gradient(60% 70% at 88% 8%, var(--tint) 0%, transparent 60%),
      radial-gradient(50% 60% at 8% 100%, var(--tint) 0%, transparent 55%);
  }
  .hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
  .hero h1 { margin: 22px 0 24px; }
  .hero h1 .hl { color: var(--blue-deep); }
  .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
  .hero-figure { position: relative; }
  .hero-figure image-slot { width: 100%; height: clamp(330px, 50vh, 500px); }
  .hero-chip {
    position: absolute; left: 18px; bottom: 18px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 14px 18px; box-shadow: 0 20px 50px -30px oklch(0.4 0.06 255 / 0.6);
    display: flex; align-items: center; gap: 13px;
  }
  .hero-chip .big { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--blue-deep); line-height: 1; letter-spacing: -0.03em; }
  .hero-chip .t { font-size: 12.5px; color: var(--ink-soft); line-height: 1.25; max-width: 14ch; }

  .hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 54px; }
  .stat { padding: 22px 22px; background: var(--tint); border-radius: 16px; }
  .stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); line-height: 1; letter-spacing: -0.03em; }
  .stat .num span { color: var(--blue-deep); }
  .stat .lbl { font-size: 13px; color: var(--ink-soft); margin-top: 9px; }

  /* Section scaffold */
  section { padding-block: clamp(58px, 9vh, 112px); }
  .sec-head { max-width: 700px; margin-bottom: clamp(34px, 5vw, 56px); }
  .sec-head h2 { margin: 16px 0 0; }
  .sec-head .lead { margin-top: 16px; }

  /* Proceso */
  .process { background: var(--navy); color: var(--on-navy); }
  .process .lead { color: var(--on-navy-soft); }
  .steps { display: grid; gap: 1px; background: oklch(0.34 0.04 258); border: 1px solid oklch(0.34 0.04 258); border-radius: 18px; overflow: hidden; grid-template-columns: repeat(5, 1fr); }
  .step { background: var(--navy); padding: 28px 22px 30px; transition: background .2s; }
  .step:hover { background: var(--navy-2); }
  .step .idx {
    font-family: var(--font-mono); font-size: 13px; color: var(--blue);
    width: 38px; height: 38px; border: 1px solid oklch(0.4 0.05 258); border-radius: 50%;
    display: grid; place-items: center; margin-bottom: 18px;
  }
  .step h3 { font-size: 18px; margin-bottom: 9px; letter-spacing: -0.015em; }
  .step p { font-size: 14px; color: var(--on-navy-soft); }
  .process-foot { margin-top: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15px; color: var(--on-navy-soft); }
  .pill { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--navy); background: var(--blue); padding: 8px 16px; border-radius: 100px; }

  /* Catálogo */
  .formats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
  .fchip { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.03em; padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); background: var(--paper); }
  .cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .cat {
    border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; background: var(--paper);
    transition: border-color .2s, transform .2s, box-shadow .2s; position: relative; overflow: hidden;
  }
  .cat:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: 0 24px 50px -34px oklch(0.4 0.08 255 / 0.55); }
  .cat .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; margin-bottom: 18px; }
  .cat .ico span { width: 16px; height: 16px; border-radius: 4px; background: var(--blue-deep); }
  .cat h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.02em; }
  .cat .desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
  .cat .items { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; color: var(--blue-press); letter-spacing: 0.01em; }
  .cat-note { margin-top: 26px; font-size: 14px; color: var(--ink-soft); }

  /* Calidad */
  .quality { background: var(--tint); }
  .q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
  .q-cards { display: grid; gap: 14px; }
  .qcard { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; display: flex; gap: 18px; }
  .qcard .tag { font-family: var(--font-mono); font-size: 12px; color: var(--blue-deep); padding-top: 3px; white-space: nowrap; }
  .qcard h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.015em; }
  .qcard p { font-size: 14px; color: var(--ink-soft); }

  /* Nosotros */
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
  .about-photo image-slot { width: 100%; height: clamp(320px, 46vh, 460px); }
  .about p { font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-soft); margin-bottom: 16px; max-width: 52ch; }
  .about p strong { color: var(--ink); font-weight: 600; }
  .values { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
  .value { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.03em; padding: 9px 16px; border-radius: 100px; background: var(--tint); color: var(--blue-press); }

  /* Contacto */
  .contact { background: var(--navy); color: var(--on-navy); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
  .contact .lead { color: var(--on-navy-soft); }
  .contact-info { list-style: none; margin-top: 32px; display: grid; gap: 16px; }
  .contact-info li { display: flex; gap: 14px; align-items: baseline; font-size: 15.5px; color: var(--on-navy-soft); }
  .contact-info .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); min-width: 78px; }
  .contact-info a:hover { color: var(--on-navy); }
  form { display: grid; gap: 15px; background: var(--navy-2); border: 1px solid oklch(0.34 0.04 258); border-radius: 20px; padding: clamp(22px, 3vw, 32px); }
  .field { display: grid; gap: 7px; }
  .field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-navy-soft); }
  .field input, .field textarea, .field select {
    font-family: var(--font-body); font-size: 15px; color: var(--on-navy);
    background: var(--navy); border: 1px solid oklch(0.36 0.04 258); border-radius: 10px;
    padding: 12px 14px; transition: border-color .15s;
  }
  .field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); }
  .field textarea { resize: vertical; min-height: 92px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  form .btn-primary { justify-content: center; margin-top: 4px; }
  .form-note { font-family: var(--font-mono); font-size: 11px; color: var(--on-navy-soft); }
  .contact-map { margin-top: clamp(28px, 4vw, 48px); border-radius: 20px; overflow: hidden; border: 1px solid oklch(0.34 0.04 258); height: clamp(280px, 38vh, 380px); }
  .contact-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.12); }
  .wa-fab { position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 90; display: inline-flex; align-items: center; justify-content: center; height: 58px; width: 58px; padding: 0; background: #25d366; color: #fff; border-radius: 100px; box-shadow: 0 14px 34px -10px rgba(37,211,102,.65); transition: transform .18s ease, width .25s ease, padding .25s ease; overflow: hidden; }
  .wa-fab svg { width: 30px; height: 30px; flex: none; }
  .wa-fab .wa-label { font-family: var(--font-display); font-weight: 700; font-size: 15px; white-space: nowrap; max-width: 0; opacity: 0; transition: max-width .25s ease, opacity .2s ease, margin .25s ease; }
  .wa-fab:hover { width: auto; padding: 0 22px 0 16px; transform: translateY(-2px); }
  .wa-fab:hover .wa-label { max-width: 160px; opacity: 1; margin-left: 10px; }

  /* Made in Spain band */
  .made { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .made .wrap { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 48px); padding-block: 18px; flex-wrap: wrap; }
  .made .m-item { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); }
  .made .m-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-deep); flex: none; }

  /* Modalidades */
  .modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .mode { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; background: var(--paper); display: flex; flex-direction: column; transition: border-color .2s, transform .2s, box-shadow .2s; }
  .mode:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -34px oklch(0.4 0.08 255 / 0.5); }
  .mode.feature { border-color: var(--blue); }
  .mode .m-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--blue-press); margin-bottom: 16px; }
  .mode .m-badge { position: absolute; top: 22px; right: 22px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue-press); background: var(--tint); padding: 6px 11px; border-radius: 100px; }
  .mode h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: -0.02em; }
  .mode p { font-size: 14.5px; color: var(--ink-soft); }
  .mode .m-meta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--ink); }

  /* FAQ */
  .faq-list { display: grid; gap: 12px; max-width: 860px; }
  details.faq { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; }
  details.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 18px; }
  details.faq summary::-webkit-details-marker { display: none; }
  details.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--blue-press); line-height: 1; flex: none; }
  details.faq[open] summary::after { content: "\2013"; }
  details.faq .faq-a { padding: 0 24px 22px; font-size: 15px; color: var(--ink-soft); max-width: 72ch; }

  @media (max-width: 940px) {
    .modes-grid { grid-template-columns: 1fr; }
  }

  /* Footer */
  footer { background: var(--navy-2); color: var(--on-navy-soft); padding-block: 46px 34px; }
  .foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid oklch(0.32 0.04 258); }
  .foot-brand { max-width: 260px; }
  .foot-brand img { height: 24px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.92; }
  .foot-brand p { font-size: 13.5px; }
  .foot-cols { display: flex; gap: clamp(34px, 6vw, 84px); flex-wrap: wrap; }
  .foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy); margin-bottom: 13px; }
  .foot-col a, .foot-col span { display: block; font-size: 14px; padding: 4px 0; }
  .foot-col a:hover { color: var(--blue); }
  .foot-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 24px; font-family: var(--font-mono); font-size: 11.5px; }

  /* Consent checkbox */
  .consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--on-navy-soft); line-height: 1.45; }
  .consent input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex: none; margin-top: 2px; border: 1.5px solid oklch(0.42 0.04 258); border-radius: 5px; background: var(--navy); cursor: pointer; position: relative; transition: background .15s, border-color .15s; }
  .consent input:checked { background: var(--blue-deep); border-color: var(--blue-deep); }
  .consent input:checked::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
  .consent a { color: var(--blue); text-decoration: underline; }

  /* Map placeholder (cookie gate) */
  .map-ph { width: 100%; height: 100%; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 28px; background: var(--tint); }
  .map-ph p { font-size: 14px; color: var(--ink-soft); max-width: 34ch; }
  .map-ph .btn { padding: 11px 20px; font-size: 13.5px; }
  .map-ph a { font-family: var(--font-mono); font-size: 12.5px; color: var(--blue-press); }

  /* Cookie banner */
  .cookie-banner { position: fixed; left: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px); z-index: 95; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -20px oklch(0.3 0.06 255 / 0.45); padding: 22px 24px; }
  .cookie-banner h4 { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 7px; }
  .cookie-banner p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 16px; }
  .cookie-banner p a { color: var(--blue-press); text-decoration: underline; }
  .cb-actions { display: flex; gap: 10px; }
  .cb-actions .btn { flex: 1; justify-content: center; padding: 11px 14px; font-size: 13.5px; }
  @media (max-width: 560px) { .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

  [hidden] { display: none !important; }

  @media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-figure { order: -1; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .q-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .nav-mid { display: none; }
    .menu-btn { display: inline-flex; }
  }
  @media (max-width: 560px) {
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .nav-right .btn { display: none; }
  }

/* Selector de idioma (enlaces) */
.lang a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; padding: 7px 12px; color: var(--ink-soft); text-decoration: none; transition: background .15s, color .15s; display: inline-flex; align-items: center; }
.lang a:hover { color: var(--ink); text-decoration: none; }
.lang a.active { background: var(--blue-deep); color: #fff; }
