/* SIMPLE — one stylesheet. Tokens ported from the Lovable brand book (Táctil Premium). */
:root {
  --lino: #f6f1e9; --crema: #efe7da; --arena: #e4d7c2; --tortilla: #d8c6a8; --barro: #bca585;
  --tinta: #211c16; --tinta-70: #4a4239; --tinta-45: #6b6155;
  --noche: #2e3a45; --noche-700: #243039; --noche-300: #5e6e79; --noche-100: #c4cdd2;
  --cobre: #be6438; --cobre-600: #a8552e; --cobre-100: #f0d9c9;
  --salvia: #788a6c; --salvia-100: #dce3d4; --ok: #5b7355;
  --display: "Spectral", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --shadow: 0 2px 6px rgb(33 28 22 / .06), 0 14px 40px -14px rgb(33 28 22 / .1);
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--lino); color: var(--tinta);
  font: 17px/1.6 var(--body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--cobre-100); color: var(--tinta); }
:focus-visible { outline: 2px solid var(--cobre); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -.015em; line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--crema { background: var(--crema); }
.section--noche { background: var(--noche); color: #fff; }
.section--noche h2, .section--noche h3 { color: #fff; }
.lede { color: var(--tinta-70); font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
.muted { color: var(--tinta-45); }
.small { font-size: .9rem; }
.center { text-align: center; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.grid-3, .grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 800px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.eyebrow { display: inline-flex; align-items: center; gap: .75rem; font: 500 11px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--cobre-600); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .85rem 1.6rem; border-radius: 999px; font: 600 .95rem/1.2 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s; }
.btn-primary { background: var(--cobre-600); color: #fff; }
.btn-primary:hover { background: #8f4625; }
.btn-ghost { border-color: var(--tortilla); color: var(--tinta); background: transparent; }
.btn-ghost:hover { background: var(--crema); }
.btn-block { width: 100%; }
.link { color: var(--tinta); text-decoration: underline; text-decoration-color: var(--barro); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--cobre); }

.card { background: var(--lino); border: 1px solid var(--tortilla); border-radius: var(--radius); padding: 1.5rem; }
.card--crema { background: var(--crema); }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: 6px 13px; border: 1px solid var(--tortilla); border-radius: 999px; background: var(--crema); color: var(--tinta-70); font-size: 13px; }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--arena); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Header */
.announce { background: var(--noche); color: #fff; text-align: center; font-size: 12.5px; padding: .5rem 1rem; letter-spacing: .02em; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(246 241 233 / .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--tortilla); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.logo { font: 600 25px/1 var(--body); letter-spacing: .16em; text-decoration: none; color: var(--tinta); }
.logo span { color: var(--cobre); }
.nav { display: none; gap: .25rem; }
.nav a { padding: .6rem 1rem; border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--tinta-70); }
.nav a:hover { background: var(--crema); color: var(--tinta); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-actions .btn { min-height: 42px; padding: .6rem 1.2rem; font-size: 14px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: .6rem; min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + .5rem); width: min(80vw, 280px); background: var(--noche); border-radius: var(--radius); padding: .5rem; box-shadow: var(--shadow); }
.menu-panel a { display: block; padding: .8rem 1rem; color: #fff; text-decoration: none; border-radius: 10px; }
.menu-panel a:hover { background: rgb(255 255 255 / .08); }
@media (min-width: 860px) { .nav { display: flex; } .menu { display: none; } }

/* Footer */
.site-footer { background: var(--noche); color: var(--noche-100); padding: 3.5rem 0 2rem; font-size: 14px; }
.site-footer .logo { color: #fff; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 800px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-cols a { text-decoration: none; color: rgb(196 205 210 / .9); }
.footer-cols a:hover { color: #fff; }
.footer-legal { border-top: 1px solid var(--noche-700); margin-top: 3rem; padding-top: 1.5rem; color: #a9b5bd; font-size: 12.5px; }

/* Breadcrumb */
.crumbs { font-size: 13px; color: var(--tinta-45); padding-top: 1.25rem; }
.crumbs a { color: inherit; }

/* Size picker — zero JS: the checked radio decides which price and buy link show */
.sizes { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.sizes legend { font-weight: 600; margin-bottom: .75rem; }
.sizes input { position: absolute; opacity: 0; pointer-events: none; }
.sizes label { display: grid; gap: .15rem; padding: .9rem 1rem; border: 1px solid var(--tortilla); border-radius: 12px; background: var(--lino); cursor: pointer; }
.sizes label b { font-weight: 600; }
.sizes label span { font-size: 13px; color: var(--tinta-45); }
.sizes label em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.sizes input:checked + label { border-color: var(--tinta); background: var(--crema); box-shadow: inset 0 0 0 1px var(--tinta); }
.sizes input:focus-visible + label { outline: 2px solid var(--cobre); outline-offset: 2px; }
.size-price { font: 400 clamp(2rem, 4vw, 2.6rem)/1.1 var(--display); font-variant-numeric: tabular-nums; margin: 0 0 .35rem; }
.size-price small { font: 400 13px var(--body); color: var(--tinta-45); margin-left: .4rem; }
.buy { display: grid; gap: .5rem; margin-top: 1rem; }
@supports selector(:has(*)) {
  .pick [data-size] { display: none; }
  .pick:has(#t-individual:checked) [data-size="individual"],
  .pick:has(#t-matrimonial:checked) [data-size="matrimonial"],
  .pick:has(#t-queen:checked) [data-size="queen"],
  .pick:has(#t-king:checked) [data-size="king"] { display: revert; }
  .pick:has(#t-individual:checked) .buy [data-size="individual"],
  .pick:has(#t-matrimonial:checked) .buy [data-size="matrimonial"],
  .pick:has(#t-queen:checked) .buy [data-size="queen"],
  .pick:has(#t-king:checked) .buy [data-size="king"] { display: flex; }
}
.trust-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .5rem; font-size: 14.5px; color: var(--tinta-70); }
.trust-list li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: .5rem; }

/* Sticky buy bar on mobile (CSS only) */
.sticky-buy { position: sticky; bottom: 0; z-index: 40; background: rgb(246 241 233 / .95); backdrop-filter: blur(10px); border-top: 1px solid var(--tortilla); padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
@media (min-width: 860px) { .sticky-buy { display: none; } }

/* Spec table */
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: .8rem .5rem; border-bottom: 1px solid var(--tortilla); vertical-align: top; }
.specs th { font-weight: 600; width: 40%; }

/* FAQ — native details/summary */
.faq { border-top: 1px solid var(--tortilla); }
.faq details { border-bottom: 1px solid var(--tortilla); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font: 400 1.4rem var(--body); color: var(--cobre); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.2rem; color: var(--tinta-70); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; }
.steps li::before { content: counter(step); width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--noche); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }

/* Long-form text: legal pages and articles */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: var(--tinta-70); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--tinta); text-decoration-color: var(--barro); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.5rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--tortilla); padding: .6rem .5rem; text-align: left; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--cobre); background: var(--crema); border-radius: 0 10px 10px 0; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }

/* Article blocks carried over from the Shopify export */
.key-takeaways, .article-takeaways, .table-of-contents, .article-toc, .article-intro { background: var(--crema); border: 1px solid var(--tortilla); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.faq-section details { border-bottom: 1px solid var(--tortilla); padding: .9rem 0; }
.faq-section summary { cursor: pointer; font-weight: 600; }
.comparison-table { overflow-x: auto; }

/* Blog list */
.post-list { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: grid; gap: .6rem; text-decoration: none; }
.post-card h2 { font-size: 1.2rem; margin: 0; }
.post-card:hover h2 { text-decoration: underline; text-decoration-color: var(--cobre); }
.pager { display: flex; justify-content: space-between; margin-top: 2.5rem; }

/* Accessibility: skip link + AA contrast (audit 2026-10-01) */
.skip { position: absolute; left: -9999px; top: .5rem; z-index: 100; background: var(--noche); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: .5rem; }
.footer-cols h2 { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #e08a5f; margin: 0 0 1rem; }
.section--noche .muted, .section--noche .lede, .section--noche p { color: var(--noche-100); }
.section--noche .eyebrow { color: #e08a5f; }
.section--noche :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
