/* =============================================================
   EggChecker — Landing page
   Design tokens · Brand colors & type (Poppins / Roboto)
   Style: Apple-inspired materials, motion and typography
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (Documento Maestro §4.4) */
  --ec-yellow: #fdc33b;
  --ec-yellow-hover: #eab332;
  --ec-brown: #905e27;
  --ec-brown-dark: #6f4720;
  --ec-green: #7c8a3e;
  --ec-green-dark: #5f6b2d;
  --ec-cream: #f5f1ea;
  --ec-clay: #e8e1d3;
  --ec-smoke: #f0f0f0;
  --ec-dark: #2c2418;
  --ec-input-bg: #fafafa;
  --ec-border: #e5e7eb;
  --ec-placeholder: #9ca3af;

  /* Type */
  --font-heading: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Semantic (light) */
  --bg: var(--ec-cream);
  --bg-alt: #efe8db;
  --tint: #f0ead9;
  --surface: #ffffff;
  --surface-2: #fbf8f2;
  --text: var(--ec-dark);
  --text-muted: #5f5645;
  --heading: #6f4720;
  --border: rgba(44, 36, 24, 0.12);
  --border-strong: rgba(44, 36, 24, 0.2);
  --primary: var(--ec-yellow);
  --primary-hover: var(--ec-yellow-hover);
  --primary-ink: #2c2418;
  --nav-bg: rgba(245, 241, 234, 0.72);
  --nav-border: rgba(44, 36, 24, 0.08);
  --shadow-sm: 0 1px 2px rgba(44, 36, 24, 0.06), 0 2px 8px rgba(44, 36, 24, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(44, 36, 24, 0.22), 0 2px 8px rgba(44, 36, 24, 0.06);
  --shadow-lg: 0 30px 60px -24px rgba(44, 36, 24, 0.34), 0 8px 20px rgba(44, 36, 24, 0.08);
  --ring: 0 0 0 3px rgba(144, 94, 39, 0.45);
  --eyebrow: #5f6b2d;
  --focus: #6f4720;
  --link: #6f4720;
  --placeholder: #5b6370;

  color-scheme: light;

  /* Motion (approximates Apple springs) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 140ms;
  --dur: 320ms;
  --dur-slow: 620ms;

  /* Layout */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 68px;
}

/* Tema único: claro. (Sin modo oscuro por decisión de producto.) */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ec-brown); }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--ec-yellow); color: var(--ec-dark); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ec-dark);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Icons ---------- */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--clay { background: var(--bg-alt); }
.section--tint { background: var(--tint); }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 0.85rem;
}
.eyebrow--light { color: var(--ec-yellow); }

.section__head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__head h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  font-weight: 700;
}
.section__lead {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.text-accent { color: var(--ec-brown); }

/* ---------- Buttons ---------- */
.btn {
  --btn-py: 0.85rem;
  --btn-px: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: var(--btn-py) var(--btn-px);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease,
              border-color var(--dur-fast) ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.btn--sm { --btn-py: 0.6rem; --btn-px: 1.15rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 8px 20px -10px rgba(234, 179, 50, 0.9);
}
.btn--ghost {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--ec-brown); color: var(--ec-brown-dark); }

/* Instant feedback on press (Apple: respond on pointer-down) */
.btn:active { transform: scale(0.965); }
@media (hover: hover) {
  .btn--primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
  .btn--ghost:hover { transform: translateY(-1px); }
}
.btn:focus-visible { box-shadow: var(--ring); outline: none; }

/* ---------- Header / Nav (translucent material) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease,
              transform var(--dur) var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--nav-border);
  box-shadow: var(--shadow-sm);
}
.site-header.is-hidden { transform: translateY(-100%); }

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--heading);
  flex-shrink: 0;
}
.brand__mark { width: 36px; height: 36px; }
.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.5vw, 1.1rem);
}
.nav__link {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.nav__link:hover { background: var(--border); color: var(--heading); }

.nav__actions { display: flex; align-items: center; gap: 0.6rem; }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) ease;
}
.nav__toggle-bars::before { content: ''; transform: translate(-50%, -7px); }
.nav__toggle-bars::after { content: ''; transform: translate(-50%, 7px); }
.nav__toggle[aria-expanded='true'] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded='true'] .nav__toggle-bars::before { transform: translate(-50%, 0) rotate(45deg); }
.nav__toggle[aria-expanded='true'] .nav__toggle-bars::after { transform: translate(-50%, 0) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/patron-eggchecker.png');
  background-repeat: repeat;
  background-size: 320px auto;
  opacity: 0.05;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
  z-index: -1;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(45% 55% at 22% 28%, rgba(253, 195, 59, 0.5), transparent 70%),
    radial-gradient(40% 50% at 82% 18%, rgba(124, 138, 62, 0.28), transparent 72%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.35rem, 1.5rem + 6vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero__lead {
  margin-top: 1.4rem;
  max-width: 34ch;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.25rem);
  color: var(--text-muted);
}
.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.hero__trust {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__trust li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ec-green);
  flex-shrink: 0;
}

/* Hero app mockup */
.app-window {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(1.5deg);
  transition: transform var(--dur-slow) var(--ease-out);
}
@media (hover: hover) {
  .hero__visual:hover .app-window { transform: perspective(1400px) rotateY(-2deg) rotateX(0.5deg); }
}
.app-window__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.app-window__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.app-window__url {
  margin-left: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
}
.app-window__body { display: grid; grid-template-columns: 56px 1fr; min-height: 300px; }
.mini-sidebar {
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  padding: 0.9rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.mini-sidebar__logo { margin-bottom: 0.4rem; }
.mini-sidebar__logo img { width: 22px; height: 22px; }
.mini-nav {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--text-muted);
}
.mini-nav .icon { width: 17px; height: 17px; }
.mini-nav.is-active { background: rgba(253, 195, 59, 0.25); color: var(--ec-brown-dark); }
.mini-main { padding: clamp(0.9rem, 2vw, 1.3rem); }
.mini-head { display: flex; align-items: flex-start; justify-content: space-between; }
.mini-hi { font-size: 0.72rem; color: var(--text-muted); }
.mini-name { font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; color: var(--heading); }
.mini-bell {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e5533d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.mini-kpis {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.mini-kpi {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.6rem;
}
.mini-kpi__label { display: block; font-size: 0.62rem; color: var(--text-muted); }
.mini-kpi__value { font-family: var(--font-heading); font-size: 1.05rem; color: var(--heading); }
.mini-kpi--alert { border-color: rgba(229, 83, 61, 0.4); }
.mini-kpi--alert .mini-kpi__value { color: #c23b27; }
.mini-chart {
  margin-top: 0.9rem;
  height: 84px;
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
}
.mini-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, rgba(253, 195, 59, 0.75), rgba(253, 195, 59, 0.25));
}
.mini-chart span.is-today { background: linear-gradient(180deg, var(--ec-brown), rgba(144, 94, 39, 0.5)); }
.mini-alerts { margin-top: 0.9rem; display: grid; gap: 0.45rem; }
.mini-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
}
.mini-alert__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mini-alert__dot--warn { background: var(--ec-yellow); }
.mini-alert__dot--danger { background: #e5533d; }

/* Hero stats */
.hero__stats {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat strong {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.03em;
}
.stat span { color: var(--text-muted); font-size: 0.95rem; max-width: 30ch; }

/* ---------- Problem / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.split__head h2 {
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem);
  font-weight: 700;
}
.split__body p { color: var(--text-muted); }
.split__body p + p { margin-top: 1.2rem; }
.callout {
  border-left: 4px solid var(--ec-yellow);
  padding: 0.4rem 0 0.4rem 1.1rem;
  color: var(--text) !important;
}
.callout strong { color: var(--heading); }

/* ---------- Cards (features) ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(253, 195, 59, 0.2);
  color: var(--ec-brown-dark);
  margin-bottom: 1.1rem;
}
.card__icon .icon { width: 28px; height: 28px; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); }

/* ---------- Modules ---------- */
.module {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}
.module + .module { border-top: 1px solid var(--border); }
.module__copy h3 {
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
  margin-bottom: 0.8rem;
}
.module__copy > p { color: var(--text-muted); }
.check-list { margin-top: 1.2rem; display: grid; gap: 0.6rem; }
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text);
  font-size: 0.98rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ec-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.6 16.6 5 12l1.4-1.4 3.2 3.2 8-8L19 7.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.6 16.6 5 12l1.4-1.4 3.2 3.2 8-8L19 7.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.ui-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  box-shadow: var(--shadow-md);
}
.ui-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading);
}
.ui-card__title { display: inline-flex; align-items: center; gap: 0.5rem; }
.ui-card__icon { width: 18px; height: 18px; color: var(--ec-brown); }
.pill {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}
.pill--warn { background: rgba(253, 195, 59, 0.25); color: #7a5200; }
.pill--ok { background: rgba(124, 138, 62, 0.22); color: var(--ec-green-dark); }
.pill--premium { background: var(--ec-brown); color: #fff; }

.stock-list { display: grid; gap: 0.85rem; }
.stock-list li { display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 0.75rem; }
.stock-list__name { font-size: 0.85rem; color: var(--text); }
.stock-list__bar {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.stock-list__bar i {
  display: block;
  height: 100%;
  width: var(--v);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ec-green), var(--ec-green-dark));
}
.stock-list li:first-child .stock-list__bar i { background: linear-gradient(90deg, #f0a72d, #e5533d); }
.stock-list__qty { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.stock-list__qty--low { color: #c23b27; }

.camada { display: grid; gap: 0.7rem; }
.camada__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.camada__row strong { color: var(--text); }
.timeline { display: flex; align-items: center; margin-top: 0.5rem; }
.timeline__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.timeline__dot.is-done { background: var(--ec-green); }
.timeline__dot.is-warn { background: var(--ec-yellow); box-shadow: 0 0 0 4px rgba(253, 195, 59, 0.3); }
.timeline__line { height: 2px; flex: 1; background: var(--border); }
.timeline__line.is-done { background: var(--ec-green); }
.timeline__label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

.egg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.egg-chip {
  aspect-ratio: 0.82;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(160deg, #ffe3a1, var(--ec-yellow));
  border: 1px solid rgba(144, 94, 39, 0.2);
}
.egg-chip.is-warn { background: linear-gradient(160deg, #ffd0a1, #f0a72d); }
.egg-chip.is-danger { background: linear-gradient(160deg, #ffbfae, #e5533d); }
.ui-note { font-size: 0.82rem; color: var(--text-muted); }
.ui-note strong { color: var(--heading); }

.report { display: grid; gap: 0.5rem; }
.report__kpi {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.report__kpi strong { font-family: var(--font-heading); color: var(--text); font-size: 0.95rem; }
.report__kpi--good strong { color: var(--ec-green-dark); }
.report__chart { margin-top: 0.8rem; color: var(--ec-brown); }
.report__chart svg { width: 100%; height: 70px; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ec-yellow);
  color: var(--ec-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); }

/* ---------- Quotes ---------- */
.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--heading);
  font-weight: 500;
}
.quote blockquote::before { content: '“'; display: block; font-size: 2.6rem; line-height: 0.6; color: var(--ec-yellow); }
.quote figcaption { font-size: 0.86rem; color: var(--text-muted); margin-top: auto; }

/* ---------- Plans ---------- */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border-color: var(--ec-yellow);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ec-brown);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan__name { font-size: 1.35rem; }
.plan__tagline { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.15rem; }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 1.1rem 0;
  min-height: 2.4rem;
}
.plan__amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.3rem);
  color: var(--heading);
  letter-spacing: -0.03em;
}
.plan__period { color: var(--text-muted); font-size: 0.9rem; }
.plan__features { display: grid; gap: 0.6rem; margin-bottom: 1.6rem; }
.plan__features li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.94rem;
  color: var(--text-muted);
}
.plan__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ec-green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.6 16.6 5 12l1.4-1.4 3.2 3.2 8-8L19 7.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.6 16.6 5 12l1.4-1.4 3.2 3.2 8-8L19 7.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.plan .btn { margin-top: auto; }
.plans__note {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.faq__item[open] { border-color: var(--ec-yellow); box-shadow: var(--shadow-sm); }
.faq__item summary {
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--heading);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ec-brown);
  border-bottom: 2px solid var(--ec-brown);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur) var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq__item p {
  padding: 0 1.3rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ---------- CTA / form ---------- */
.section--cta {
  position: relative;
  background:
    radial-gradient(60% 90% at 12% 0%, rgba(253, 195, 59, 0.35), transparent 60%),
    linear-gradient(160deg, #3a2c17, #2c2418 60%);
  color: #f4efe6;
  overflow: hidden;
}
.section--cta h2 { color: #fff; }
.cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cta__copy > p { color: rgba(244, 239, 230, 0.82); margin-top: 1rem; max-width: 42ch; }
.cta__points { margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.cta__points li {
  position: relative;
  padding-left: 1.8rem;
  color: #f4efe6;
  font-size: 0.98rem;
}
.cta__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ec-yellow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.6 16.6 5 12l1.4-1.4 3.2 3.2 8-8L19 7.2z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.6 16.6 5 12l1.4-1.4 3.2 3.2 8-8L19 7.2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.demo-form {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
/* El formulario vive sobre la sección oscura: se mantiene como tarjeta clara
   para garantizar contraste AA. */
.demo-form {
  --surface: #ffffff;
  --surface-2: #f7f5f0;
  --text: #2c2418;
  --text-muted: #5f5645;
  --heading: #6f4720;
  --border: rgba(44, 36, 24, 0.12);
  --border-strong: rgba(44, 36, 24, 0.26);
  background: #ffffff;
  color: #2c2418;
  border-color: rgba(255, 255, 255, 0.5);
}
.demo-form__title { font-size: 1.35rem; margin-bottom: 1.25rem; }
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--heading);
}
.field__hint { color: var(--text-muted); font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ec-yellow);
  box-shadow: var(--ring);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #e5533d; }

.demo-form__legal { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.85rem; }
.demo-form__legal a { color: var(--ec-brown-dark); }
.demo-form__status { font-size: 0.9rem; margin-top: 0.75rem; font-weight: 500; }
.demo-form__status.is-ok { color: var(--ec-green-dark); }
.demo-form__status.is-error { color: #c23b27; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer__brand .brand { margin-bottom: 0.75rem; }
.footer__tagline { color: var(--text-muted); font-size: 0.94rem; max-width: 32ch; }
.footer__col h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.footer__col ul { display: grid; gap: 0.55rem; }
.footer__col li { color: var(--text-muted); font-size: 0.94rem; }
.footer__col a { color: var(--text); text-decoration: none; }
.footer__col a:hover { color: var(--ec-brown); text-decoration: underline; }

.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer__heart { color: var(--ec-brown); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--bg);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .nav__menu.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { padding: 0.8rem 0.6rem; font-size: 1.05rem; }
  .nav__actions { justify-content: space-between; margin-top: 0.5rem; }
  .nav__actions .btn { flex: 1; }
}

@media (min-width: 641px) {
  .hero__stats { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

@media (min-width: 901px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .module { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
  .module--reverse .module__media { order: 2; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .cta__grid { grid-template-columns: 1.1fr 1fr; }
}

/* ---------- Reduced motion & transparency ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .app-window { transform: none; }
  .site-header.is-hidden { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .nav__menu {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg);
  }
  .demo-form { -webkit-backdrop-filter: none; backdrop-filter: none; background: #ffffff; }
}

@media (prefers-contrast: more) {
  :root { --border: rgba(44, 36, 24, 0.4); --border-strong: rgba(44, 36, 24, 0.7); --text-muted: #3d3627; }
  .site-header, .nav__menu { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Página legal (privacidad.html) ---------- */
.legal {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 780px;
}
.legal h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.legal__intro { color: var(--text-muted); font-size: 1.05rem; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.legal p { color: var(--text-muted); }
.legal p + p { margin-top: 0.7rem; }
.legal ul {
  margin-top: 0.6rem;
  padding-left: 1.3rem;
  list-style: disc;
  display: grid;
  gap: 0.45rem;
}
.legal li { color: var(--text-muted); }
.legal__note {
  margin: 1.5rem 0 0;
  border-left: 4px solid var(--ec-yellow);
  padding: 0.6rem 0 0.6rem 1.1rem;
  color: var(--text) !important;
}
.legal__back { display: inline-flex; margin-top: 2.5rem; }
.legal__updated { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; }
