/* ============================================================
   RecetIA - Digital Epicurean design system
   Sitio estático Jekyll. HTML + CSS nativo, sin frameworks.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --green: #006e1c;
  --green-600: #0a7a22;
  --green-dark-1: #0a2614;
  --green-dark-2: #0d3318;
  --orange: #8b5000;
  --cream: #fafaf5;
  --ink: #1a1c19;
  --muted: #747772;

  --surface-lowest: #ffffff;
  --surface-low: #f1f1ec;
  --surface-container: #d5e5cf;
  --surface-high: #becab9;

  --border-soft: #d9ddd5;
  --border-strong: #becab9;

  --font-serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --pill: 999px;

  --shadow-soft: 0 1px 2px rgba(26, 28, 25, 0.04), 0 8px 24px rgba(26, 28, 25, 0.06);
  --shadow-float: 0 12px 40px rgba(10, 38, 20, 0.14), 0 2px 8px rgba(10, 38, 20, 0.08);

  --container: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--green-600); text-decoration: none; box-shadow: var(--shadow-float); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-low); text-decoration: none; }
.btn--light { background: #fff; color: var(--green); }
.btn--light:hover { background: #f4f7f1; text-decoration: none; box-shadow: var(--shadow-float); }
.btn--active:active { transform: translateY(1px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 245, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header--legal { background: rgba(255, 255, 255, 0.9); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-family: var(--font-serif); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--green); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(120, 220, 119, 0.22), transparent 60%),
    linear-gradient(160deg, var(--green-dark-1) 0%, var(--green-dark-2) 42%, var(--green) 130%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-top: 84px;
  padding-bottom: 96px;
  min-height: min(760px, 88dvh);
}
.hero .eyebrow { color: #a7e3a0; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #eafbe8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.hero__badge b { color: #fff; }
.hero h1 {
  color: #fff;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.04;
  margin-bottom: 20px;
}
.hero h1 em { font-style: italic; color: #bff0b6; }
.hero__sub {
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.55;
  max-width: 30rem;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Badges de tienda "Próximamente" (no clicables, pre-lanzamiento) */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: default;
  min-width: 168px;
}
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge__txt { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge__txt small { font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: #9fe098; font-weight: 700; }
.store-badge__txt b { font-size: 15px; font-weight: 700; }

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  width: 268px;
  aspect-ratio: 9 / 19.3;
  margin-inline: auto;
  border-radius: 40px;
  background: #0c0f0b;
  padding: 11px;
  box-shadow: var(--shadow-float), 0 0 0 2px rgba(255, 255, 255, 0.06) inset;
}
.phone::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: #0c0f0b;
  border-radius: var(--pill);
  z-index: 2;
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(170deg, var(--green-dark-1), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  padding: 24px;
}
.phone__placeholder img { width: 62px; height: 62px; border-radius: 16px; box-shadow: var(--shadow-float); }
.phone__placeholder b { font-family: var(--font-serif); font-size: 21px; }
.phone__placeholder small { font-size: 12px; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.04em; }
.phone--float { animation: floaty 6s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Secciones genéricas ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--cream { background: var(--cream); }
.section--white { background: var(--surface-lowest); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- Features (bento) ---------- */
.features {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 18px;
}
.feature {
  position: relative;
  padding: 30px;
  border-radius: var(--r-lg);
  background: var(--surface-lowest);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--surface-container);
  color: var(--green);
  margin-bottom: 18px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
/* celda grande, verde */
.feature--lg {
  grid-column: 1;
  grid-row: 1 / 3;
  background: linear-gradient(165deg, var(--green-dark-2), var(--green));
  border-color: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.feature--lg .feature__icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.feature--lg h3 { color: #fff; font-size: 28px; }
.feature--lg p { color: rgba(255, 255, 255, 0.85); font-size: 17px; }
/* celda ancha, tinte crema-verde */
.feature--wide { grid-column: 2 / 4; background: var(--surface-container); border-color: transparent; }
.feature--wide .feature__icon { background: #fff; }

/* ---------- Galería de capturas ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  align-items: start;
}
.shot { text-align: center; }
.shot .phone { width: 100%; max-width: 232px; }
.shot figcaption { margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--ink); }
.shot figcaption span { display: block; font-weight: 500; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Waitlist ---------- */
.waitlist {
  color: #fff;
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(120, 220, 119, 0.18), transparent 55%),
    linear-gradient(150deg, var(--green-dark-1), var(--green));
  text-align: center;
}
.waitlist h2 { color: #fff; font-size: clamp(30px, 4.4vw, 44px); }
.waitlist p { color: rgba(255, 255, 255, 0.85); font-size: 18px; max-width: 34rem; margin: 0 auto 34px; }
.wl-form { display: flex; gap: 12px; max-width: 480px; margin-inline: auto; }
.wl-form input[type="email"] {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 15px 18px;
  border-radius: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}
.wl-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.65); }
.wl-form input[type="email"]:focus { border-color: #fff; background: rgba(255, 255, 255, 0.2); }
.wl-note { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.wl-note a { color: #d6f2c9; text-decoration: underline; }
.wl-status { margin-top: 18px; font-weight: 600; min-height: 1.4em; }
.wl-status--ok { color: #bff0b6; }
.wl-status--err { color: #ffd7c7; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark-1);
  color: rgba(255, 255, 255, 0.72);
  padding-block: 60px 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .brand { color: #fff; }
.footer-brand p { margin: 16px 0 0; max-width: 22rem; font-size: 15px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: rgba(255, 255, 255, 0.72); font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: rgba(255, 255, 255, 0.5); }

/* ---------- Layout legal ---------- */
.legal-hero {
  background: linear-gradient(160deg, var(--green-dark-1), var(--green));
  color: #fff;
  padding-block: 56px;
}
.legal-hero .eyebrow { color: #a7e3a0; margin-bottom: 12px; }
.legal-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 46px); margin: 0; }
.legal-hero .updated { margin-top: 14px; color: rgba(255, 255, 255, 0.75); font-size: 14.5px; }
.legal-wrap { background: var(--cream); padding-block: 56px 80px; }
.legal-doc {
  max-width: 760px;
  margin-inline: auto;
  background: var(--surface-lowest);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 5vw, 60px);
  overflow-wrap: anywhere;
}
.legal-doc > *:first-child { margin-top: 0; }
.legal-doc h1 { font-size: 32px; margin-top: 0; }
.legal-doc h2 { font-size: 25px; margin-top: 2em; padding-top: 0.4em; }
.legal-doc h3 { font-size: 19px; margin-top: 1.6em; }
.legal-doc p, .legal-doc li { font-size: 16.5px; line-height: 1.75; color: #2c2f2b; }
.legal-doc ul, .legal-doc ol { padding-left: 1.3em; }
.legal-doc li { margin-bottom: 0.5em; }
.legal-doc a { text-decoration: underline; text-underline-offset: 2px; }
.legal-doc strong { color: var(--ink); }
.legal-doc hr { border: none; border-top: 1px solid var(--border-soft); margin: 2.2em 0; }
.legal-doc blockquote {
  margin: 1.5em 0;
  padding: 14px 20px;
  background: var(--surface-low);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: #33362f;
}
.legal-doc code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface-low);
  padding: 2px 6px;
  border-radius: 6px;
}
.legal-doc table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
  -webkit-overflow-scrolling: touch;
}
.legal-doc th, .legal-doc td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); }
.legal-doc th { background: var(--surface-low); font-family: var(--font-sans); font-weight: 700; }
.legal-doc em { color: var(--muted); }

/* índice de documentos legales (index simple, no la landing) */
.doc-index { display: grid; gap: 14px; margin: 26px 0; }
.doc-index a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: var(--surface-lowest);
  border: 1px solid var(--border-soft); border-radius: var(--r);
  font-weight: 600; color: var(--ink); box-shadow: var(--shadow-soft);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.doc-index a:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); text-decoration: none; color: var(--green); }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 72px; min-height: 0; text-align: center; }
  .hero .eyebrow, .hero__badge { justify-content: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions, .store-badges { justify-content: center; }
  .features { grid-template-columns: 1fr; }
  .feature--lg, .feature--wide { grid-column: auto; grid-row: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 14px 24px 20px;
    background: var(--cream); border-bottom: 1px solid var(--border-soft);
  }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border-strong);
    background: transparent; cursor: pointer;
  }
  .nav-cta .btn { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .shot .phone { max-width: 258px; }
  .wl-form { flex-direction: column; }
  .wl-form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone--float { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
