/* EZ Bow AD2 México. Paleta de marca: verde, gris oscuro y blanco.
   El texto sobre verde usa --on-green: blanco da 2.93:1 y #333 da 4.31:1.
   Por eso todo texto sobre verde va en negrita y a 19 px o más (WCAG AA para texto grande). */
:root {
  --green: #56aa1c;
  --dark: #333333;
  --white: #ffffff;
  --on-green: #333333;
  --line: rgba(51, 51, 51, .22);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --font: "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--dark); font: 400 1.0625rem/1.6 var(--font); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(2.25rem, 4.3vw, 3.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); max-width: 24ch; }
h3 { font-size: 1.25rem; letter-spacing: -.005em; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: inherit; text-underline-offset: .18em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; box-shadow: 0 0 0 3px var(--white); }
.on-dark :focus-visible { outline-color: var(--white); box-shadow: 0 0 0 3px var(--dark); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin: 16px 0 0; }
.on-dark { background: var(--dark); color: var(--white); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--white); padding: 10px 14px; z-index: 30; }
.skip:focus { top: 8px; }
.note { font-size: .9375rem; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 4px; font: 700 1.1875rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
.btn-green { background: var(--green); color: var(--on-green); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-line { background: var(--white); color: var(--dark); border-color: var(--dark); }
.btn:hover { text-decoration: underline; text-underline-offset: .2em; }
.btn img { width: 26px; height: auto; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand { flex: none; }
.brand img { width: 150px; }
.nav-list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 1rem; }
.nav-list a { text-decoration: none; padding: 8px 0; display: inline-block; }
.nav-list a:hover { text-decoration: underline; }
.bar .actions { display: flex; gap: 8px; margin-left: auto; }
.bar .btn { min-height: 44px; padding: 8px 14px; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: 10px 2px; }
.menu summary::-webkit-details-marker { display: none; }
.desktop-nav { margin-left: 18px; }
.hide-sm { display: none; }
@media (min-width: 620px) { .hide-sm { display: inline-flex; } }
@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .menu { display: block; order: 3; }
  .menu .nav-list { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .menu .nav-list a { display: block; padding: 11px 0; }
}
@media (max-width: 400px) { .brand img { width: 112px; } .bar { gap: 8px; } .bar .btn { padding: 8px 10px; font-size: 1.1875rem; } .bar .btn span { display: none; } }

/* Hero: la lámina anotada del producto */
.hero { padding-block: clamp(28px, 4vw, 56px) clamp(36px, 5vw, 64px); }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; } }
.hero-kicker { font-weight: 700; margin: 0 0 14px; }
.hero .lead { font-size: 1.125rem; margin: 18px 0 24px; max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.plate { margin: 0; }
.plate-photo { position: relative; }
.plate-photo img { width: 100%; }
.pin { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; border-radius: 50%;
  background: var(--dark); color: var(--white); font-size: .9375rem; font-weight: 700; border: 2px solid var(--white); }
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 18px; font-size: .9375rem; line-height: 1.35; }
.legend li { display: grid; grid-template-columns: 24px 1fr; gap: 6px; }
.legend b { font-weight: 800; }
@media (max-width: 480px) { .pin { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: .8125rem; } }

/* Franja verde: cota técnica */
.band { background: var(--green); color: var(--on-green); font-weight: 700; font-size: 1.1875rem; line-height: 1.35; padding-block: clamp(28px, 4vw, 40px); }
.cota { display: flex; align-items: center; gap: 14px; font-size: clamp(1.75rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.cota::before, .cota::after { content: ""; flex: 1; height: 16px; border-inline: 3px solid var(--on-green);
  background: linear-gradient(var(--on-green), var(--on-green)) center / 100% 3px no-repeat; }
.cota::before { border-right: 0; }
.cota::after { border-left: 0; }
.cota-text { text-align: center; margin: 12px auto 22px; max-width: none; }
.band-facts { display: grid; gap: 10px 32px; list-style: none; margin: 0; padding: 18px 0 0; border-top: 3px solid var(--on-green); }
@media (min-width: 760px) { .band-facts { grid-template-columns: repeat(3, 1fr); } }

/* Qué es */
.split { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.split figure { margin: 0; }
figcaption { font-size: .9375rem; margin-top: 10px; }
.facets { display: grid; gap: 26px; margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 820px) { .facets { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.facets > div { border-top: 3px solid var(--green); padding-top: 14px; }
.facets h3 { margin-bottom: 10px; }
.facets ul { margin: 0; }
.facets li { margin-bottom: 6px; }

/* Cómo funciona */
.steps-grid { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 900px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
.steps-grid h3 { margin-bottom: 18px; font-size: 1.5rem; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 3px 0 18px 50px; min-height: 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--green); color: var(--on-green); font-weight: 800; font-size: 1.1875rem; border-radius: 50%; }
.on-dark .steps li::before { color: var(--dark); }
.care { margin-top: clamp(28px, 4vw, 40px); padding: 18px 20px; border: 2px solid var(--green); max-width: none; }
.care p { margin: 0; max-width: 90ch; }

/* Tablas */
.table-scroll { overflow-x: auto; border-block: 2px solid var(--dark); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-weight: 800; border-bottom: 1px solid var(--dark); }
tbody th { font-weight: 700; }
caption { text-align: left; font-weight: 700; padding: 0 0 10px; }
.spec-table th { width: 38%; }
.compare { min-width: 900px; font-size: .9375rem; }
.compare thead th:first-child { width: 13%; }
.tech-grid { display: grid; gap: clamp(36px, 5vw, 64px); }
@media (min-width: 960px) { .tech-grid { grid-template-columns: 1fr 1fr; } }
.tech-grid h3 { margin-bottom: 14px; font-size: 1.5rem; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 4vw, 44px); }
.sources { font-size: .9375rem; margin-top: 16px; max-width: 90ch; }

/* Respaldo */
.people { display: grid; gap: 26px; margin-top: 8px; }
@media (min-width: 820px) { .people { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.people > div { border-top: 3px solid var(--green); padding-top: 14px; }
.people h3 { margin-bottom: 8px; }
.people p { margin: 0; }
.ad2-mark { width: 104px; margin-bottom: 18px; }

/* Compra */
.buy-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .buy-grid { grid-template-columns: 1fr 1fr; } }
.buy-grid h3 { margin-bottom: 14px; font-size: 1.5rem; }
.plain { margin: 0; padding-left: 1.1em; }
.plain li { margin-bottom: 8px; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; list-style: none; margin: 0; padding: 0; }
.gallery li { grid-column: span 6; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.gallery .tray img { object-fit: contain; }
@media (min-width: 720px) {
  .gallery li { grid-column: span 2; }
  .gallery li.wide { grid-column: span 3; }
}
.lightbox { padding: 0; border: 0; max-width: min(96vw, 1200px); background: var(--white); color: var(--dark); }
.lightbox::backdrop { background: rgba(51, 51, 51, .92); }
.lightbox img { max-height: 76vh; width: auto; margin-inline: auto; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; }
.lightbox-bar p { margin: 0; font-size: .9375rem; }
.lightbox .btn { min-height: 44px; padding: 6px 14px; }

/* Preguntas frecuentes */
.faq { border-top: 2px solid var(--dark); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-size: 1.125rem; font-weight: 700; line-height: 1.35; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 11px; font-size: 1.625rem; font-weight: 600; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 8px; }

/* Contacto */
.contact-grid { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 6fr; } }
.contact-list { list-style: none; margin: 22px 0; padding: 0; }
.contact-list li { padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .28); }
.contact-list a { font-weight: 700; }
.contact-list small { display: block; font-size: .9375rem; }
.social { display: flex; gap: 12px; list-style: none; margin: 22px 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; background: var(--white); border-radius: 50%; color: var(--dark); text-decoration: none; font-weight: 800; font-size: 1.5rem; }
.social img { width: 28px; height: 28px; object-fit: contain; }
.form-card { background: var(--white); color: var(--dark); padding: clamp(20px, 3vw, 36px); }
.form-card :focus-visible { outline-color: var(--dark); box-shadow: 0 0 0 3px var(--white); }
.fields { display: grid; gap: 16px; }
@media (min-width: 620px) { .fields { grid-template-columns: 1fr 1fr; } .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; margin-bottom: 5px; font-size: 1rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: inherit; background: var(--white); border: 1px solid var(--dark); border-radius: 3px; }
.field textarea { min-height: 112px; resize: vertical; }
.field .optional { font-weight: 400; }
.field-error { display: block; font-size: .9375rem; font-weight: 700; margin-top: 5px; }
.field-error::before { content: "Revisa: "; }
.field-error:empty { display: none; }
[aria-invalid="true"] { border-width: 2px !important; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: .9375rem; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; }
.hp { position: absolute; left: -9999px; }
.form-actions { margin-top: 20px; }
.form-actions .btn { width: 100%; }
.form-hint { margin: 8px 0 14px; font-size: .9375rem; }
.status { margin-top: 16px; padding: 14px 16px; border: 2px solid var(--dark); font-weight: 600; }
.status[hidden] { display: none; }
.status.ok { border-color: var(--green); }
.status p { margin: 0 0 10px; }
.status p:last-child { margin: 0; }
.status .cta-row { margin-top: 10px; }

.site-footer { background: var(--dark); color: var(--white); border-top: 1px solid rgba(255, 255, 255, .28); padding-block: 28px; font-size: .9375rem; }
.site-footer p { max-width: 90ch; margin-bottom: .6em; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 10px 0 0; padding: 0; }
