/* ============================================================
   Airfreidora — Sistema visual
   Tema oscuro editorial · acento naranja cálido
   Serif display (Playfair Display) + Sans (Hanken Grotesk)
   ============================================================ */

:root {
  /* type */
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --display: var(--serif);          /* swapped to --sans when serif is off */

  /* accent (tweakable) */
  --accent: #ee9a4d;
  --accent-strong: color-mix(in oklab, var(--accent), #000 16%);
  --accent-soft: color-mix(in oklab, var(--accent), transparent 86%);
  --accent-line: color-mix(in oklab, var(--accent), transparent 70%);
  --on-accent: #1c1306;

  /* light theme tokens (default) */
  --bg: #f6f4ef;
  --bg-2: #ece8df;
  --surface: #ffffff;
  --surface-2: #f4f1ea;
  --surface-3: #efebe2;
  --border: rgba(28, 22, 14, 0.10);
  --border-strong: rgba(28, 22, 14, 0.18);
  --text: #1d1812;
  --text-muted: #6a6157;
  --text-dim: #9b9388;
  --shadow: 0 30px 60px -34px rgba(60, 40, 18, 0.30);

  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1240px;
}

[data-theme="dark"] {
  --bg: #0c0b0a;
  --bg-2: #070605;
  --surface: #1a1817;
  --surface-2: #242120;
  --surface-3: #2c2826;
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4efe7;
  --text-muted: #a59c91;
  --text-dim: #6c655c;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
}

[data-serif="off"] {
  --display: var(--sans);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 130px); }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent);
}
.display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
}
.display em { font-style: italic; color: var(--accent); font-weight: 700; }
.muted { color: var(--text-muted); }

/* section heading block */
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 52px; }
.shead h2 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6vw, 76px); line-height: .98; letter-spacing: -.02em; }
.shead .eyebrow { display: block; margin-bottom: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 17px 30px; border-radius: 999px;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 18px; height: 18px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(16px);
  background: color-mix(in oklab, var(--bg), transparent 18%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 28px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 27px; letter-spacing: -.02em; }
.brand .dot { color: var(--accent); }
.nav-links { display: none; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta { display: none; }
.burger { display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 84px 0 0; z-index: 70;
  background: var(--bg); padding: 32px 24px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: .28s ease;
}
body.menu-open .mobile-menu { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu a { display: block; font-family: var(--display); font-weight: 700; font-size: 32px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 28px; width: 100%; justify-content: center; }

/* breadcrumb */
.breadcrumb { border-bottom: 1px solid var(--border); }
.breadcrumb ol { display: flex; align-items: center; gap: 10px; padding-block: 14px; font-size: 13px; color: var(--text-dim); flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; gap: 10px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text-muted); }
.breadcrumb .sep { opacity: .5; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 18% 30%, color-mix(in oklab, var(--accent), transparent 80%), transparent 55%),
    linear-gradient(180deg, transparent 40%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 8%, color-mix(in oklab, var(--bg), transparent 30%) 55%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 48px; padding-block: clamp(56px, 8vw, 96px) clamp(72px, 10vw, 120px); align-items: center; }
.hero-copy { max-width: 620px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(46px, 7.4vw, 88px); line-height: 1.02; letter-spacing: -.025em; margin: 22px 0 0; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 700; }
.hero-sub { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-muted); margin-top: 28px; max-width: 30em; text-wrap: pretty; }
.hero-actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta .stat { }
.hero-meta .num { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.hero-meta .lbl { font-size: 13px; color: var(--text-dim); margin-top: 6px; letter-spacing: .04em; }

.hero-figure {
  position: relative; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-figure img, .img-placeholder { width: 100%; aspect-ratio: 4/5; }
.hero-tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 3;
  background: color-mix(in oklab, var(--bg), transparent 12%);
  backdrop-filter: blur(8px); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 12px;
}
.hero-tag .rate { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.hero-tag .rate svg { width: 16px; height: 16px; color: var(--accent); }
.hero-tag .txt { font-size: 13px; color: var(--text-muted); line-height: 1.3; }
.hero-tag .txt b { color: var(--text); display: block; font-size: 14px; }

/* ============================================================
   PRODUCTS (featured)
   ============================================================ */
.carousel-ctrls { display: flex; gap: 12px; }
.carousel-ctrls button {
  width: 54px; height: 54px; border-radius: 999px; border: 1.5px solid var(--border-strong);
  display: grid; place-items: center; color: var(--text); transition: .2s;
}
.carousel-ctrls button:hover { border-color: var(--accent); color: var(--accent); }
.carousel-ctrls button:disabled { opacity: .3; cursor: not-allowed; }
.carousel-ctrls svg { width: 20px; height: 20px; }

.track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 380px);
  gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 12px; scrollbar-width: none;
  scroll-padding-left: 24px;
}
.track::-webkit-scrollbar { display: none; }

.pcard {
  scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.pcard:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.pcard-media { position: relative; }
.pcard-media img, .img-placeholder { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: var(--surface-2); padding: 12px; box-sizing: border-box; }
.pcard-img-link { display: block; }
.pcard-body h3 a { color: inherit; text-decoration: none; }
.pcard-body h3 a:hover { color: var(--accent); }
.pcard-badge {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  background: var(--accent); color: var(--on-accent);
  font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
}
.pcard-badge.alt { background: var(--surface-3); color: var(--text); border: 1px solid var(--border-strong); }
.pcard-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.pcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pcard-top h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.pcard-rate { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; flex-shrink: 0; }
.pcard-rate svg { width: 16px; height: 16px; color: var(--accent); }
.pcard-tag { color: var(--text-muted); font-size: 15px; margin-top: -8px; }

.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.gauge { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.gauge .ring { position: relative; width: 84px; height: 84px; }
.gauge svg { transform: rotate(-90deg); display: block; }
.gauge .track-c { stroke: var(--surface-3); }
.gauge .val-c { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.gauge .ring-txt { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.gauge .ring-txt small { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.gauge .glabel { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }

.pcard-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pcard-price { font-family: var(--display); font-weight: 800; font-size: 30px; }
.pcard-price s { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--text-dim); margin-right: 8px; }
.pcard .btn { padding: 14px 20px; font-size: 15px; }
.affiliate-note { font-size: 12.5px; color: var(--text-dim); margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.affiliate-note svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent); }

/* ============================================================
   TRUST
   ============================================================ */
.trust { background: var(--bg-2); }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 40px 48px; }
.trust-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.trust-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5.5vw, 64px); line-height: 1; letter-spacing: -.02em; margin-top: 16px; }
.trust-head p { color: var(--text-muted); margin-top: 20px; font-size: 18px; }
.feature .ic {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: grid; place-items: center; color: var(--accent); margin-bottom: 22px;
}
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.feature p { color: var(--text-muted); margin-top: 12px; font-size: 15.5px; text-wrap: pretty; }

/* ============================================================
   BRANDS
   ============================================================ */
.brands { border-block: 1px solid var(--border); }
.brands .wrap { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 70px); flex-wrap: wrap; padding-block: 54px; }
.brands .lead { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); width: 100%; text-align: center; margin-bottom: 8px; }
.brand-mark {
  font-family: var(--display); font-weight: 800; font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -.01em; color: var(--text-muted); opacity: .8;
  transition: color .2s ease, opacity .2s ease;
}
.brand-mark:hover { color: var(--text); opacity: 1; }

/* ============================================================
   COMPARE CTA band
   ============================================================ */
.cband { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(36px, 5vw, 60px); display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cband h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1.02; letter-spacing: -.02em; }
.cband p { color: var(--text-muted); margin-top: 14px; max-width: 42ch; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.bcard { display: flex; flex-direction: column; }
.bcard .media { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.bcard .media img, .img-placeholder { width: 100%; aspect-ratio: 16/10; transition: transform .4s ease; }
.bcard:hover .media img, .img-placeholder { transform: scale(1.04); }
.bcard .meta { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 13px; color: var(--text-dim); }
.bcard .cat { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bcard h3 { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.12; letter-spacing: -.01em; margin-top: 14px; }
.bcard:hover h3 { color: var(--accent); }
.bcard p { color: var(--text-muted); margin-top: 12px; font-size: 15.5px; text-wrap: pretty; }
.bcard .more { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); font-size: 15px; }
.bcard .more svg { width: 16px; height: 16px; transition: transform .2s; }
.bcard:hover .more svg { transform: translateX(4px); }

/* ============================================================
   FOOTER
   ============================================================ */
.newsletter { background: var(--bg-2); border-top: 1px solid var(--border); }
.newsletter .wrap { display: grid; gap: 30px; padding-block: clamp(48px, 7vw, 88px); align-items: center; }
.newsletter h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.5vw, 52px); line-height: 1; letter-spacing: -.02em; }
.newsletter p { color: var(--text-muted); margin-top: 16px; }
.nl-form { display: flex; gap: 12px; flex-wrap: wrap; }
.nl-form input {
  flex: 1; min-width: 220px; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 16px 22px; color: var(--text); font-size: 16px; font-family: inherit;
}
.nl-form input::placeholder { color: var(--text-dim); }
.nl-form input:focus { outline: none; border-color: var(--accent); }

.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding-block: 64px 40px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 44px; }
.foot-brand .brand { font-size: 30px; }
.foot-brand p { color: var(--text-muted); margin-top: 16px; font-size: 15px; max-width: 34ch; }
.foot-col h4 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.foot-col a { display: block; color: var(--text-muted); padding: 7px 0; font-size: 15px; transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.disclosure {
  margin-top: 52px; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-muted); font-size: 13.5px; line-height: 1.7; text-wrap: pretty;
}
.disclosure b { color: var(--text); }
.foot-bottom { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-dim); }
.foot-bottom a:hover { color: var(--accent); }

/* scroll cue */
.scroll-cue { display: flex; justify-content: center; padding-bottom: 30px; }
.scroll-cue span { width: 30px; height: 30px; border: 1px solid var(--border-strong); border-radius: 999px; display: grid; place-items: center; color: var(--text-muted); animation: bob 2s ease-in-out infinite; }
.scroll-cue svg { width: 14px; height: 14px; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(5px);} }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .newsletter .wrap { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-figure img, .img-placeholder { aspect-ratio: 3/4; }
}
@media (max-width: 899px) {
  .mobile-menu { display: block; }
}
@media (min-width: 900px) { .mobile-menu { display: none; } }
