/* ¿Qué horno de pizza? Fonts hosted locally (SIL Open Font License). */
@font-face { font-family: "DM Serif Display"; font-weight: 400; font-display: swap; src: url("fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); }

/* Trattoria palette: flour cream, charcoal crust, tomato, basil, ember. */
:root {
  --bg: #FBF5EC; --surface: #FFFFFF; --surface-2: #F3E8D8; --ink: #2B1E17; --muted: #6E5D52; --line: #E5D6C3;
  --tomato: #C8402A; --tomato-ink: #A8321F; --basil: #2E7349; --ember: #F2B544; --char: #3B3633;
  --radius: 14px; --shadow: 0 1px 2px rgba(43,30,23,.06), 0 6px 20px rgba(43,30,23,.07);
  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --body: "Figtree", "Helvetica Neue", Arial, system-ui, sans-serif;
  color-scheme: light; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--tomato-ink); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.4vw, 56px); margin: 0 0 14px; }
h2 { font-size: clamp(25px, 3.2vw, 34px); margin: 0 0 10px; }
h3 { font-size: 17px; line-height: 1.3; margin: 0 0 6px; }
.inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251,245,236,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 22px; line-height: 1; }
.logo-mark { width: 30px; height: 30px; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { background: var(--surface-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--tomato); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--tomato); cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: var(--tomato-ink); border-color: var(--tomato-ink); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.go { display: inline-flex; align-items: center; background: var(--ember); color: var(--ink); font-weight: 700; text-decoration: none; padding: 9px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.go:hover { background: #E9A52A; }
.go.big { padding: 14px 22px; font-size: 16px; margin-top: 8px; }

/* Hero */
.hero { padding: 36px 0 28px; }
.hero-home { padding: 56px 0 44px; background: radial-gradient(1200px 400px at 85% 0%, #F7E3C7 0%, transparent 60%); }
.hero .has-photo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 40px; align-items: center; }
.hero-guide .has-photo { align-items: start; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--basil); margin: 0 0 10px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 0 22px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--basil); font-weight: 700; margin-right: 6px; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 10px 10px 0 var(--ember); }
.hero-photo figcaption { font-size: 11px; color: var(--muted); margin-top: 12px; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px; }
.crumbs a { color: inherit; }
.updated { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.updated a { color: inherit; }

/* Picks box */
.picks { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--tomato); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); max-width: 680px; }
.picks h2 { font-size: 22px; margin-bottom: 6px; }
.picks ol { margin: 0; padding-left: 20px; }
.picks li { margin: 6px 0; }

/* Sections */
.block { padding: 36px 0; }
.sec-head { margin-bottom: 18px; }
.sec-head p { color: var(--muted); margin: 0; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.grid-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(43,30,23,.08), 0 12px 28px rgba(43,30,23,.1); }
.card-art { position: relative; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; display: block; width: 100%; }
.cov { width: 100%; height: auto; aspect-ratio: 320 / 220; }
.rank { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; min-width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; padding: 0 8px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; }
.card-open { border: 0; background: none; padding: 0; text-align: left; font-weight: 700; font-size: 17px; cursor: pointer; line-height: 1.3; }
.card-open:hover { color: var(--tomato-ink); text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink); padding: 3px 9px; border-radius: 999px; }
.chip.ok { background: #E3F0E6; color: #1F5A36; }
.chip.f-electrico { background: #E0EDF3; color: #1F536B; }
.chip.f-gas { background: #F8E1DC; color: #8E2C1B; }
.chip.f-lena, .chip.f-pellet { background: #F1E3D6; color: #6B3A21; }
.why { margin: 0; font-size: 15px; color: var(--muted); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.band { font-size: 14px; font-weight: 600; }

/* Quiz */
.quiz-wrap { padding: 20px 0 36px; }
.quiz { background: var(--char); color: #FFF8EE; border-radius: 26px; padding: clamp(22px, 4vw, 44px); position: relative; overflow: hidden; min-height: 320px; }
.quiz::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(242,181,68,.35), transparent 65%); pointer-events: none; }
.quiz h2 { color: #FFF8EE; }
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 14px; color: #E9D9C6; }
.q-bar { height: 6px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; flex: 1; max-width: 260px; }
.q-bar i { display: block; height: 100%; background: var(--ember); transition: width .3s; }
.q-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 18px; position: relative; z-index: 1; }
.q-opt { text-align: left; background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.18); color: #FFF8EE; border-radius: 16px; padding: 16px 18px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.q-opt:hover:not(:disabled) { border-color: var(--ember); background: rgba(242,181,68,.12); transform: translateY(-1px); }
.q-opt b { display: block; font-size: 17px; }
.q-opt span { display: block; font-size: 14px; color: #E2D2BF; margin-top: 2px; }
.q-opt small { display: block; font-size: 12px; color: var(--ember); margin-top: 6px; font-weight: 600; }
.q-opt:disabled { opacity: .4; cursor: not-allowed; }
.q-nav { display: flex; gap: 16px; margin-top: 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.q-link { background: none; border: 0; color: #E9D9C6; text-decoration: underline; cursor: pointer; padding: 4px 0; font-size: 15px; }
.q-start p { color: #E9D9C6; max-width: 560px; font-size: 18px; }
.q-res-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.q-sum { color: #E9D9C6; margin: 0 0 18px; }
.q-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; position: relative; z-index: 1; color: var(--ink); }
.q-res .card { box-shadow: none; }
.q-badge { display: inline-block; background: var(--ember); color: var(--ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.q-empty { color: #E9D9C6; }

/* Finder */
.finder-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 84px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.filters legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.opt { display: inline-flex; margin: 0 6px 6px 0; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: 14px; cursor: pointer; background: var(--bg); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }
.f-reset { background: none; border: 0; color: var(--tomato-ink); text-decoration: underline; cursor: pointer; padding: 0; font-size: 14px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.results-bar p { margin: 0; font-weight: 600; }
.sort select { font: inherit; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); margin-left: 6px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; }
.pager button[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.f-toggle { display: none; }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-bottom: 16px; }
.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { background: var(--surface-2); font-family: var(--display); font-weight: 400; font-size: 19px; }
.cmp tbody th { font-weight: 700; color: var(--muted); width: 22%; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }

/* Links and guide cards */
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.links a:hover { border-color: var(--tomato); color: var(--tomato-ink); }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s; }
.guide-card:hover { border-color: var(--tomato); transform: translateY(-2px); }
.guide-card b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; }
.guide-card span { color: var(--muted); font-size: 14px; }
.guide-card:first-child { background: var(--char); color: #FFF8EE; border-color: var(--char); }
.guide-card:first-child span { color: #E2D2BF; }

/* FAQ */
.faq { padding: 30px 0; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { font-weight: 700; cursor: pointer; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 22px; color: var(--tomato); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.cta-test { background: var(--surface-2); border-radius: 22px; padding: 28px; margin: 10px 0 40px; }
.cta-test p { color: var(--muted); }

/* Ranking */
.rk-quick { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; counter-reset: rk; max-width: 900px; }
.rk-quick li { counter-increment: rk; }
.rk-quick a { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 8px 44px; text-decoration: none; color: var(--ink); position: relative; font-size: 14px; }
.rk-quick a::before { content: counter(rk); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 22px; color: var(--tomato); }
.rk-quick span { color: var(--muted); font-size: 13px; }
.rk-list { padding-bottom: 20px; }
.rk { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 18px 0; box-shadow: var(--shadow); }
.rk-art .cov { border-radius: 12px; }
.rk h2 { font-size: 28px; margin-bottom: 8px; }
.rk h2 .card-open { font: inherit; font-family: var(--display); font-size: inherit; }
.rk-why { font-size: 17px; margin: 10px 0; }
.rk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0 12px; }
.rk-cols h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--basil); }
.rk-cols div + div h3 { color: var(--tomato-ink); }
.rk-cols p { margin: 0; font-size: 15px; color: var(--muted); }
.rk .card-foot { justify-content: flex-start; gap: 16px; }
.method { background: var(--surface-2); border-radius: 18px; padding: 22px 24px; margin: 26px 0 0; }
.method li { margin: 6px 0; }

/* Quick view */
dialog#qv { border: 0; border-radius: 20px; padding: 0; width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog#qv::backdrop { background: rgba(43,30,23,.55); }
.qv-in { display: grid; grid-template-columns: 320px minmax(0, 1fr); }
.qv-art { background: var(--surface-2); }
.qv-art .cov { height: 100%; object-fit: cover; aspect-ratio: auto; min-height: 220px; }
.qv-body { padding: 26px 28px; }
.qv-body h2 { font-size: 30px; }
.qv-body h3 { margin-top: 16px; font-size: 15px; }
.qv-body p { margin: 0 0 8px; }
.qv-brand { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 4px !important; }
.qv-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 999px; border: 0; background: var(--surface); font-size: 24px; cursor: pointer; box-shadow: var(--shadow); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 14px 0; padding: 14px; background: var(--bg); border-radius: 12px; }
.facts dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; }
.small { font-size: 12px; color: var(--muted); margin-top: 12px !important; }

/* Prose pages */
.prose { max-width: 760px; padding-top: 36px; padding-bottom: 50px; }
.prose h2 { font-size: 26px; margin-top: 28px; }
.prose .box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.prose .box p { margin: 4px 0; }
.credits li { margin-bottom: 10px; }

/* Footer */
.foot { background: var(--char); color: #E9D9C6; padding: 44px 0 30px; margin-top: 30px; }
.foot .logo { color: #FFF8EE; }
.foot a { color: #FFF8EE; }
.foot-brand p { max-width: 420px; font-size: 15px; }
.foot-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; margin: 26px 0; }
.foot-guides h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ember); }
.foot-guides ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.foot-guides li { margin: 4px 0; }
.foot-guides a { text-decoration: none; }
.foot-guides a:hover { text-decoration: underline; }
.disclose { font-size: 13px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; }
.legal { font-size: 13px; }

@media (max-width: 900px) {
  .hero .has-photo { grid-template-columns: 1fr; gap: 24px; }
  .hero-guide .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 16 / 9; box-shadow: 6px 6px 0 var(--ember); }
  .finder-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters.collapsed fieldset, .filters.collapsed .f-reset { display: none; }
  .f-toggle { display: inline-flex; margin-bottom: 0; }
  .rk { grid-template-columns: 1fr; }
  .rk-cols { grid-template-columns: 1fr; }
  .qv-in { grid-template-columns: 1fr; }
  .qv-art .cov { min-height: 0; aspect-ratio: 320 / 220; }
}
@media (max-width: 560px) {
  .inner { padding: 0 16px; }
  .top nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .top nav a { white-space: nowrap; padding: 6px 10px; font-size: 14px; }
  .logo { font-size: 19px; }
  .hero-home { padding: 30px 0 26px; }
  .lead { font-size: 17px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid .card-body { padding: 10px 12px 12px; }
  .grid .card-open { font-size: 15px; }
  .grid .why { display: none; }
  .grid .chips .chip:nth-child(n+3) { display: none; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .card-foot .go { justify-content: center; }
  .facts { grid-template-columns: 1fr; }
  .qv-body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.q-res .card-art, .qv-art { max-height: 170px; overflow: hidden; }
.q-res .card-art .cov, .qv-art .cov { aspect-ratio: auto; height: 170px; width: 100%; }
@media (min-width: 901px) { .qv-art { max-height: none; } .qv-art .cov { height: 100%; } }
.guide-facts { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; box-shadow: 10px 10px 0 var(--ember); }
.guide-facts h2 { font-size: 22px; }
.guide-facts dl { margin: 0; display: grid; gap: 10px; }
.guide-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.guide-facts dd { margin: 0; font-weight: 600; }
