/* ClubCheck: CSS mínimo, sin frameworks ni JavaScript. */
:root {
  --bg: #fbfbf8; --surface: #ffffff; --text: #1d2a22; --muted: #5b6b61; --line: #dfe5df;
  --brand: #0b7a47; --brand-ink: #ffffff; --link: #1a5c9e;
  --fact: #e6f0ea; --fact-ink: #1f5a38;
  --claim: #fdf1dc; --claim-ink: #7a4b00;
  --assess: #e8eefb; --assess-ink: #25407a;
  --radius: 8px; --wrap: 880px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121714; --surface: #1a211d; --text: #e6ece8; --muted: #9fb0a6; --line: #2c3631;
    --brand: #4fb07c; --brand-ink: #0c130f; --link: #8cb8f0;
    --fact: #1f3328; --fact-ink: #a8dcbc; --claim: #3a2e17; --claim-ink: #f0c98a;
    --assess: #1f2940; --assess-ink: #b3c6f2;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--link); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 24px; padding-bottom: 48px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.logo img { display: block; }
.wordmark { font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 800;
  font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; }
.wordmark span { color: var(--brand); }
.site-header nav a { color: var(--text); text-decoration: none; margin-left: 16px; font-size: 0.95rem; }
@media (max-width: 480px) { .site-header nav a { margin-left: 10px; font-size: 0.85rem; } .wordmark { font-size: 1.1rem; } }
.site-header nav a:hover { text-decoration: underline; }

.breadcrumbs { font-size: 0.85rem; color: var(--muted); padding-top: 12px; }
.breadcrumbs a { color: var(--muted); }

h1 { font-size: 1.9rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0.3em 0 0.5em; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 1.8em 0 0.5em; }
h3 { font-size: 1.1rem; margin: 1.4em 0 0.4em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.meta-line { color: var(--muted); font-size: 0.9rem; margin-top: -0.3em; }
.prose { max-width: 70ch; }

.hero { padding: 16px 0 8px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.card h2 { margin-top: 0.2em; font-size: 1.15rem; }

/* Etiquetas de tipo de información */
.label { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.label-fact { background: var(--fact); color: var(--fact-ink); }
.label-claim { background: var(--claim); color: var(--claim-ink); }
.label-assessment { background: var(--assess); color: var(--assess-ink); }
.basis { font-size: 0.85rem; color: var(--muted); }
.na { color: var(--muted); font-style: italic; }
.source { font-size: 0.85rem; }

dl.kinds dt { margin-top: 16px; }
dl.kinds dd { margin: 6px 0 0 0; }

table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.85rem; color: var(--muted); }
.table-scroll { overflow-x: auto; }

code { font-size: 0.9em; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; padding: 20px 0 32px; }
.site-footer a { color: var(--muted); }
.disclosure { margin-top: 0; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
}

/* Calculadora */
form.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 16px 16px; margin: 16px 0; }
fieldset { border: 0; padding: 0; margin: 14px 0 0; }
legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
label.choice { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
label.choice input { margin-top: 5px; }
.grid3, .grid2 { display: grid; gap: 10px; }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 8px; }
.grid3 label, .grid2 label { display: flex; flex-direction: column; font-size: 0.9rem; color: var(--muted); gap: 4px; }
input[type=text] { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 10px; width: 100%; min-height: 44px; }
input[type=radio], input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }
details.advanced { margin-top: 14px; }
details.advanced summary { cursor: pointer; font-weight: 700; }
button[type=submit] { margin-top: 18px; font: inherit; font-weight: 700; background: var(--brand); color: var(--brand-ink);
  border: 0; border-radius: 8px; padding: 12px 22px; min-height: 48px; cursor: pointer; width: 100%; }
@media (min-width: 600px) { button[type=submit] { width: auto; } }
.errors { border: 1px solid #c0392b; border-radius: var(--radius); padding: 8px 16px; }

.result { background: var(--surface); border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius);
  padding: 14px 16px; margin: 14px 0; }
.result.fit-fits { border-left-color: var(--brand); }
.result.fit-fits_if { border-left-color: #c98a00; }
.result.fit-doesnt_fit { border-left-color: #b0413e; opacity: 0.9; }
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.result h3 { margin: 0 0 6px; font-size: 1.15rem; }
.verdict { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.verdict-fits { background: var(--fact); color: var(--fact-ink); }
.verdict-fits_if { background: var(--claim); color: var(--claim-ink); }
.verdict-doesnt_fit { background: #f6dcdb; color: #7d2522; }
.tag { font-size: 0.8rem; color: var(--muted); margin-left: 6px; }
.total { text-align: right; display: flex; flex-direction: column; }
.total-label { font-size: 0.8rem; color: var(--muted); }
.total-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.budget { font-size: 0.85rem; font-weight: 600; }
.budget.ok { color: var(--brand); }
.budget.over { color: #b0413e; }
.budget.partial { color: var(--muted); font-weight: 400; }
.reasons { margin: 10px 0 0; padding-left: 20px; font-size: 0.95rem; }
.reasons .blocker { color: #9b2f2c; }
table.breakdown th { font-weight: 600; }
table.breakdown .detail { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
table.breakdown .amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
dl.measures { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 6px 0; font-size: 0.9rem; }
dl.measures div { display: flex; gap: 6px; }
dl.measures dt { color: var(--muted); }
dl.measures dd { margin: 0; }
.note, .source-line { font-size: 0.85rem; color: var(--muted); margin: 4px 0; }
.assumptions dt { margin-top: 12px; }
.assumptions dd { margin: 4px 0 0; color: var(--muted); }
@media (prefers-color-scheme: dark) {
  .verdict-doesnt_fit { background: #43201f; color: #f2b8b5; }
  .result.fit-doesnt_fit { opacity: 1; }
}
@media (max-width: 480px) {
  .total { text-align: left; }
  .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Comparaciones */
.compare-summary { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 16px; }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.summary-card h2 { font-size: 1.1rem; margin: 0 0 6px; }
.summary-card .price { font-size: 1.5rem; font-weight: 800; margin: 0; }
.summary-card p { margin: 6px 0; }
.pick-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pick-col { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 10px 16px; }
.pick-col h3 { margin-top: 6px; }
.pick-col ul { padding-left: 18px; margin: 0 0 8px; }
.pick-col li { margin: 6px 0; }
.compare-table th[scope=row] { font-weight: 600; width: 32%; }
.compare-table td { width: 34%; }
.compare-table a.source { text-decoration: none; }
.editorial { max-width: 70ch; }
.compare-list li { margin: 8px 0; }

/* Portada */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px;
  border-radius: 8px; font-weight: 700; text-decoration: none; }
.btn-primary { background: #0e8c52; color: #fff; }
.btn-primary:hover { background: #0b7a47; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; margin: 0 0 8px; color: #9fe0bd; }
.eyebrow-dark { color: var(--brand); }

.banner { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: #0f1a14; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.banner-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,16,11,.88) 0%, rgba(8,16,11,.62) 45%, rgba(8,16,11,.15) 100%),
              linear-gradient(0deg, rgba(8,16,11,.75) 0%, rgba(8,16,11,0) 45%); }
.banner-inner { padding-top: 72px; padding-bottom: 56px; min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end; }
.banner h1 { font-size: 2.6rem; max-width: 17ch; margin: 0 0 12px; color: #fff; }
.banner-lead { font-size: 1.15rem; max-width: 52ch; color: rgba(255,255,255,.88); margin: 0 0 22px; }
.banner-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.banner-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 0; margin: 28px 0 0; font-size: .95rem; color: rgba(255,255,255,.85); }
.banner-stats strong { font-size: 1.35rem; color: #fff; margin-right: 4px; }
@media (max-width: 600px) {
  .banner-inner { min-height: 520px; padding-top: 48px; padding-bottom: 36px; }
  .banner h1 { font-size: 1.95rem; }
  .banner-shade { background: linear-gradient(0deg, rgba(8,16,11,.94) 0%, rgba(8,16,11,.78) 50%, rgba(8,16,11,.1) 100%); }
  .banner-img { object-position: 30% 40%; }
  .banner-inner { padding-top: 140px; }
  .banner-ctas .btn { width: 100%; }
}

.example { display: grid; gap: 16px 32px; grid-template-columns: 1.2fr 1fr; align-items: center; margin: 8px 0 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; }
.example h2 { margin: 0 0 8px; font-size: 1.4rem; }
.example p { margin: 0; color: var(--muted); }
.example-table { margin: 0; }
.example-table th { font-weight: 400; }
.example-table .amount, .budget-table .amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.example-table tr.sum th, .example-table tr.sum td { font-weight: 800; border-bottom: 0; font-size: 1.1rem; }
@media (max-width: 700px) { .example { grid-template-columns: 1fr; padding: 16px; } }

.quick-calc { position: relative; isolation: isolate; border-radius: 12px; overflow: hidden; background: #16281f; margin: 24px 0; }
.quick-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; z-index: -1; }
.quick-form { margin-left: auto; width: min(100%, 440px); padding: 24px; background: rgba(13,26,19,.82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #eef4f0; }
.quick-form h2 { margin: 0 0 6px; color: #fff; }
.quick-form legend, .quick-form .field { color: #eef4f0; font-weight: 700; }
.quick-form .hint { color: #b6c7bd; }
.quick-form .hint a { color: #9fe0bd; }
.quick-form .field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.quick-form input[type=text] { background: #fff; color: #1d2a22; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.45); font-weight: 600; font-size: .95rem; cursor: pointer; }
.pill input:checked + span { background: #0e8c52; border-color: #0e8c52; color: #fff; }
.pill input:focus-visible + span { outline: 2px solid #9fe0bd; outline-offset: 2px; }
.quick-form button[type=submit] { width: 100%; background: #0e8c52; color: #fff; }
@media (max-width: 700px) { .quick-bg { display: none; } .quick-form { width: 100%; background: #13241b; } }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0.3em; }
.matchups { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: 12px; }
.matchup { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 10px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); transition: transform .12s, box-shadow .12s; }
.matchup:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.matchup .vs { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.matchup-a, .matchup-b { font-weight: 700; line-height: 1.3; }

h3.tier { margin-top: 1.2em; }
.budget-table th[scope=row] { font-weight: 600; }
.budget-table .detail { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }

.covered { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.covered li > a, .covered li > span { display: flex; }
.covered li a, .covered li { text-decoration: none; color: var(--text); }
.covered li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; }
.covered li a { display: flex; flex-direction: column; }
.covered-brand { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.covered-name { font-weight: 700; }

.band { position: relative; isolation: isolate; border-radius: 12px; overflow: hidden; margin: 40px 0 8px; color: #fff; background: #1d3325; }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,16,11,.85) 0%, rgba(8,16,11,.55) 55%, rgba(8,16,11,0) 100%); }
.band-text { padding: 36px 28px; max-width: 480px; }
.band h2 { margin: 0 0 8px; color: #fff; }
.band p { color: rgba(255,255,255,.9); }
@media (max-width: 600px) { .band::before { background: rgba(8,16,11,.72); } }
@media (max-width: 600px) {
  .budget-table { table-layout: fixed; font-size: .88rem; }
  .budget-table th, .budget-table td { padding: 8px 6px; }
  .budget-table thead th:first-child { width: 46%; }
  .budget-table .detail { font-size: .75rem; }
  .budget-table td .detail { white-space: normal; }
}
