/* El Gallo · Imprenta Digital — hoja de estilo compartida.
   Misma identidad que la calculadora de pegatinas: banda azul noche, acentos oro, hoja de pedido con marcas de corte. */
:root {
  --paper: #f6f8f9;
  --sheet: #ffffff;
  --ink: #0d1925;
  --ink-2: #4b5864;
  --rule: #dbe4e9;
  --deep: #0d1925;
  --deep-2: #15283a;
  --deep-ink: #f6f8f9;
  --deep-muted: #b3c3cc;
  --deep-rule: #263c51;
  --accent: #ffb300;
  --accent-ink: #0d1925;
  --accent-text: #9a5800;
  --accent-soft: #fff1cc;
  --flame: #ff5a1f;
  --focus: #2e8092;
  --wa: #128c4a;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a131d; --sheet: #122130; --ink: #f6f8f9; --ink-2: #b3c3cc; --rule: #23364a;
    --accent-text: #ffc233; --accent-soft: #3a2a05; --focus: #6fc3d4; --wa: #2bbd6e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a131d; --sheet: #122130; --ink: #f6f8f9; --ink-2: #b3c3cc; --rule: #23364a;
  --accent-text: #ffc233; --accent-soft: #3a2a05; --focus: #6fc3d4; --wa: #2bbd6e;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; }

/* ---------- Cabecera ---------- */
.top { background: var(--deep); color: var(--deep-ink); }
.top .bar { display: flex; align-items: center; gap: 18px; padding-block: 14px; }
.top .logo img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; color: var(--deep-ink); }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--deep-ink) 30%, transparent); color: var(--deep-ink); white-space: nowrap; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill svg { width: 16px; height: 16px; }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; border: 1.5px solid var(--deep-rule); font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 18px; height: 18px; }
.menu .panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; background: var(--deep-2); border: 1px solid var(--deep-rule); border-radius: 12px; padding: 8px; min-width: 230px; display: grid; gap: 2px; box-shadow: 0 16px 40px rgb(0 0 0 / .35); }
.menu .panel a { text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 600; color: var(--deep-ink); }
.menu .panel a:hover { background: var(--deep); color: var(--accent); }
.menu .panel .sep { height: 1px; background: var(--deep-rule); margin: 6px 4px; }
@media (max-width: 900px) {
  .nav, .top .bar > .pill { display: none; }
  .menu { display: block; }
  .top .logo img { height: 48px; }
}

/* ---------- Héroe ---------- */
.hero { background: var(--deep); color: var(--deep-ink); border-top: 1px solid var(--deep-rule); }
.hero .in { padding-block: 34px 44px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: center; }
.hero.solo .in { grid-template-columns: minmax(0, 1fr); padding-block: 26px 36px; }
@media (max-width: 880px) { .hero .in { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.crumbs { font-size: 13.5px; color: var(--deep-muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--deep-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hero h1 { font-weight: 800; font-size: clamp(32px, 5.6vw, 56px); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 14px; text-wrap: balance; }
.hero.solo h1 { font-size: clamp(30px, 4.8vw, 46px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin: 0; color: var(--deep-muted); max-width: 58ch; font-size: 17px; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; border: 0; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.wa { background: var(--wa); color: #fff; }
.btn.gold { background: var(--accent); color: var(--accent-ink); }
.btn.line { background: transparent; color: var(--deep-ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--deep-ink) 35%, transparent); }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.btn.ink { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn.ink:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.btn.wa:hover, .btn.gold:hover { filter: brightness(1.06); }
.btn.block { width: 100%; }

/* ---------- Hoja de pedido (ticket con marcas de corte) ---------- */
.ticket { position: relative; background: var(--sheet); color: var(--ink); border-radius: 14px; border: 1px solid var(--rule); }
.hero .ticket { border-color: transparent; }
.ticket .head { padding: 14px 18px; border-bottom: 1px dashed var(--rule); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ticket .head b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.ticket .head span { font-size: 12px; color: var(--ink-2); }
.ticket .body { padding: 16px 18px 18px; display: grid; gap: 14px; }
.crop { position: relative; }
.crop::before, .crop::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--accent); border-style: solid; pointer-events: none; }
.crop::before { top: -7px; left: -7px; border-width: 2px 0 0 2px; }
.crop::after { bottom: -7px; right: -7px; border-width: 0 2px 2px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; }
.steps b { display: block; font-size: 15px; }
.steps span { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.fine { font-size: 12.5px; color: var(--ink-2); margin: 0; }

/* ---------- Secciones ---------- */
main { display: block; }
.sec { padding-block: 48px; }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 22px; }
.sec-h h2 { margin: 0; font-weight: 800; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.sec-h p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.sec-h a.more { font-weight: 600; color: var(--accent-text); text-decoration: none; }
.sec-h a.more:hover { text-decoration: underline; }

/* Rejilla de productos */
.prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .prods { grid-template-columns: minmax(0, 1fr); } }
.prod { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 18px; background: var(--sheet); border: 1.5px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: inherit; min-width: 0; }
.prod:hover { border-color: var(--ink-2); }
.prod svg { width: 36px; height: 36px; color: var(--ink); }
.prod h3 { margin: 4px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.prod p { margin: 0; font-size: 14px; color: var(--ink-2); }
.prod .from { font-size: 13.5px; font-weight: 600; color: var(--accent-text); }
.prod.star { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: linear-gradient(var(--accent-soft), var(--accent-soft)) top / 100% 6px no-repeat, var(--sheet); }
.prod.star .from { color: var(--ink); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); justify-self: start; }

/* Galería */
/* Si falta la foto: ficha con marcas de corte en lugar de un hueco roto */

/* Reseñas */
.rtiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.rtile { grid-column: span 4; margin: 0; padding: clamp(18px, 2vw, 26px); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.rtile.lead { grid-column: span 5; background: var(--deep); color: var(--deep-ink); border-color: var(--deep); }
.rtile.feat { grid-column: span 7; }
.rtile.wide { grid-column: span 6; }
.rtiles.mini { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.rtiles.mini .rtile { grid-column: auto; }
.rtop { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rtop .g { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.rtile blockquote { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 500; }
.rtile.feat blockquote { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; font-weight: 600; letter-spacing: -0.01em; }
.rtile figcaption { font-size: 14px; }
.rtile .rbig { margin: 0; font-size: clamp(56px, 7vw, 84px); font-weight: 900; line-height: .9; letter-spacing: -0.04em; color: var(--accent); }
.rtile .rbig span { font-size: .35em; letter-spacing: 0; color: var(--deep-muted); margin-left: 4px; }
.rtile .score { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; font-weight: 600; }
.rtile.lead .btn { align-self: flex-start; }
.rtile .disclose { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--deep-muted); max-width: 46ch; }
@media (max-width: 860px) { .rtile.lead, .rtile.feat { grid-column: 1 / -1; } .rtile, .rtile.wide { grid-column: span 6; } }
@media (max-width: 560px) { .rtile, .rtile.lead, .rtile.feat, .rtile.wide { grid-column: 1 / -1; } }

/* Página de producto */
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding-block: 36px 48px; align-items: start; }
@media (max-width: 880px) { .pgrid { grid-template-columns: minmax(0, 1fr); } }
.pgrid .main { display: grid; gap: 34px; min-width: 0; }
.pgrid .main > * { min-width: 0; }
.blk h2 { margin: 0 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.blk h3 { margin: 22px 0 8px; font-size: 17px; font-weight: 800; }
.blk h2 + h3 { margin-top: 0; }
.blk h3 span { font-weight: 500; font-size: 14px; color: var(--ink-2); margin-left: 6px; }
.blk p { margin: 0 0 10px; max-width: 65ch; }
.blk ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; max-width: 65ch; }
.ptable-wrap { overflow-x: auto; }
.ptable { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.ptable th, .ptable td { padding: 11px 14px; text-align: left; border-top: 1px solid var(--rule); }
.ptable thead th { border-top: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.ptable td.p { text-align: right; font-weight: 700; white-space: nowrap; }
.ptable th.p { text-align: right; }
/* Precio sin IGIC + total con IGIC entre paréntesis (lo escribe js/precios.js) */
.igic { font-weight: 500; font-size: .88em; color: var(--ink-2); white-space: nowrap; }
.ptable td.p .igic { display: block; white-space: normal; font-size: 12.5px; }
.ptable td.q { font-weight: 600; }
.ptable a.pide { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.ptable a.pide::after { content: " →"; }
.ptable a.pide:hover { text-decoration-color: var(--accent); }
@media (max-width: 560px) { .ptable.dos th, .ptable.dos td { padding: 10px 8px; } .ptable.dos td.p { white-space: normal; font-size: 14.5px; } .ptable.dos td.q { white-space: nowrap; } }
@media (max-width: 560px) { .ptable th, .ptable td { padding: 10px 8px; } .ptable td.p { white-space: normal; font-size: 14.5px; } }
.note { font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; }
.note a { color: var(--accent-text); font-weight: 600; }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 18px; border: 1.5px dashed var(--accent); border-radius: var(--radius); background: color-mix(in srgb, var(--accent-soft) 55%, var(--sheet)); }
.callout b { display: block; font-size: 17px; font-weight: 800; }
.callout p { margin: 2px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 52ch; }
.callout .btn { flex: none; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.duo > div { padding: 16px 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); }
.duo h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.duo p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.sec .callout { margin-top: 0; }
.sec .ptable-wrap + .duo { margin-top: 12px; }
.sec .note + .callout { margin-top: 16px; }
@media (max-width: 560px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.specs { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; }
.specs dt { color: var(--ink-2); font-size: 14px; }
.specs dd { margin: 0; font-weight: 600; font-size: 14.5px; }
@media (max-width: 480px) { .specs { grid-template-columns: minmax(0, 1fr); gap: 2px; } .specs dd { margin-bottom: 8px; } }
aside.order { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); }
@media (max-width: 880px) { aside.order { position: static; } aside.order .ticket { position: relative; } }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.faq details p { margin: 0 0 14px; color: var(--ink-2); max-width: 65ch; }
.others { display: flex; flex-wrap: wrap; gap: 8px; }
.others a { text-decoration: none; padding: 8px 14px; border: 1.5px solid var(--rule); border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--sheet); }
.others a:hover { border-color: var(--accent); }

/* Banda de contacto */
.band { background: var(--deep); color: var(--deep-ink); }
.band .in { padding-block: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.band h2 { margin: 0 0 6px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.band p { margin: 0; color: var(--deep-muted); }
@media (max-width: 760px) { .band .in { grid-template-columns: minmax(0, 1fr); } }

/* Contacto */
.cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; align-content: start; }
.card h3 { margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.card .big { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.card p { margin: 0; }
.card a.lnk { font-weight: 600; color: var(--accent-text); }

/* Texto legal */
.prose { max-width: 70ch; padding-block: 36px 56px; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }

/* Pie */
.foot { background: var(--deep); color: var(--deep-muted); font-size: 14px; border-top: 1px solid var(--deep-rule); }
.foot .in { padding-block: 36px 28px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.foot h3 { margin: 0 0 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--deep-ink); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot .logo img { height: 52px; width: auto; margin-bottom: 10px; }
.foot .legal { border-top: 1px solid var(--deep-rule); padding-block: 14px 18px; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
@media (max-width: 760px) { .foot .in { grid-template-columns: minmax(0, 1fr); } }

/* WhatsApp flotante en móvil */
.wa-float { display: none; }
@media (max-width: 880px) {
  .wa-float { display: inline-flex; position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
  .wa-float svg { width: 22px; height: 22px; }
  .foot .legal { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: no-preference) {
  .prod, .btn, .others a { transition: border-color .15s ease, filter .15s ease, box-shadow .15s ease; }
}
[hidden] { display: none !important; }
@media (max-width: 560px) {
}
