/* ============================================================
   Huella · Brasa Lenta — landing v0 styles
   Tokens: extracted from CLAUDE.md + Huella Brand Guidelines.
   Variant: SH-A + EP-A + CTA-A.
   ============================================================ */

:root {
  /* Core Brasa Lenta */
  --brasa:   #4B2E28;
  --crema:   #F3EFEA;
  --cobre:   #A47149;
  --carbon:  #1B1B1B;
  --humo:    #CCC7C0;

  /* Extended Huella */
  --terra:   #8B5E3C;
  --salvia:  #7A8B6F;
  --arena:   #D4C5A9;
  --hueso:   #F5F0E8;

  /* Surfaces */
  --bg-page:       var(--hueso);
  --bg-section:    var(--hueso);
  --bg-section-2:  var(--crema);
  --bg-dark:       var(--carbon);
  --bg-accent:     var(--terra);

  /* Text */
  --text:           var(--carbon);
  --text-muted:     rgba(27, 27, 27, 0.72);
  --text-on-dark:   var(--crema);
  --text-on-accent: var(--crema);

  /* Borders */
  --border-soft: rgba(204, 199, 192, 0.55);

  /* Gradients */
  --gradient-premium: linear-gradient(135deg, var(--brasa) 0%, var(--cobre) 100%);

  /* Shadows */
  --shadow-premium: 0 25px 50px -12px rgba(75, 46, 40, 0.25);
  --shadow-card:    0 10px 25px -5px rgba(27, 27, 27, 0.1);
  --shadow-subtle:  0 4px 15px -2px rgba(204, 199, 192, 0.3);

  /* Transitions */
  --transition-elegant: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Type scale */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w-content: 1100px;
  --max-w-narrow:  640px;
}

/* ============================================================
   Reset / base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--terra);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: var(--transition-smooth);
}
a:hover { color: var(--brasa); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--carbon);
  color: var(--crema);
  padding: 12px 18px;
  text-decoration: none;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ============================================================
   Texture overlay
   ============================================================ */

.texture-overlay { position: relative; isolation: isolate; }
.texture-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.texture-overlay > * { position: relative; z-index: 1; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--carbon);
}
.logo:hover { color: var(--brasa); }
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-premium);
  color: var(--crema);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-text {
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.huella-pill {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
  padding: 6px 14px;
  border: 1px solid var(--terra);
  border-radius: 999px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--terra);
  color: var(--crema);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-elegant);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brasa);
  color: var(--crema);
  box-shadow: var(--shadow-premium);
  transform: translateY(-1px);
}
.btn-primary[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: transparent;
  color: var(--carbon);
  border: 1px solid var(--humo);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn-ghost:hover { border-color: var(--terra); color: var(--terra); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background: var(--hueso);
  padding: 96px 24px 80px;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobre);
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--carbon);
  line-height: 1.08;
  margin-bottom: 28px;
  font-size: clamp(2.4rem, 6vw, 4rem);
}
.hero h1 .line-1 { display: block; }
.hero h1 .line-2 {
  display: block;
  font-style: italic;
  font-weight: 600;
  color: var(--cobre);
  margin-top: 6px;
}
.hero-subhead {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 18px;
  line-height: 1.65;
}
.hero-microcopy {
  font-size: 0.85rem;
  color: var(--cobre);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
}

/* ============================================================
   Product
   ============================================================ */

.product {
  background: var(--bg-section-2);
  padding: 96px 24px;
}
.product-inner {
  max-width: var(--max-w-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.pkg-mockup {
  aspect-ratio: 3 / 4;
  background: var(--carbon);
  border-radius: 8px;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 -30px 60px rgba(27, 27, 27, 0.5),
    var(--shadow-premium);
  border: 1px solid rgba(164, 113, 73, 0.15);
  transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
  transition: var(--transition-elegant);
  color: var(--crema);
}
.pkg-mockup:hover {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}
.pkg-parent {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--humo);
  text-transform: uppercase;
  margin-bottom: 32px;
}
.pkg-name {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pkg-variety {
  font-size: 0.9rem;
  color: var(--cobre);
  letter-spacing: 0.1em;
  margin: 6px 0 28px;
  font-weight: 500;
  text-transform: uppercase;
}
.pkg-line {
  width: 36px;
  height: 1px;
  background: var(--cobre);
  margin-bottom: 28px;
  display: block;
}
.pkg-claim {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--cobre);
}
.pkg-weight {
  font-size: 0.62rem;
  color: rgba(204, 199, 192, 0.6);
  margin-top: 28px;
  letter-spacing: 0.06em;
  text-align: center;
}
.product-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--carbon);
  margin-bottom: 8px;
}
.product-format {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.ingredient-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--salvia);
  color: var(--crema);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 22px;
  font-weight: 500;
}
.product-info p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}
.feature-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.feature-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--salvia);
  flex-shrink: 0;
}

/* ============================================================
   Trust pillars
   ============================================================ */

.trust { background: var(--bg-section); padding: 96px 24px; }
.trust-inner { max-width: var(--max-w-content); margin: 0 auto; }
.trust h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--terra);
  text-align: center;
  margin-bottom: 56px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.trust-item { text-align: center; padding: 16px; }
.trust-icon {
  width: 64px;
  height: 64px;
  border: 2px solid var(--salvia);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--salvia);
  font-weight: 600;
  transition: var(--transition-elegant);
}
.trust-item:hover .trust-icon {
  background: var(--salvia);
  color: var(--crema);
}
.trust-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--carbon);
  font-weight: 600;
  margin-bottom: 10px;
}
.trust-item p {
  font-size: 0.85rem;
  color: var(--brasa);
  line-height: 1.6;
}
/* EP-A emphasis: first 3 pillars more prominent */
.trust-item.trust-primary .trust-icon {
  background: var(--terra);
  color: var(--crema);
  border-color: var(--terra);
  width: 72px;
  height: 72px;
  font-size: 1.35rem;
}
.trust-item.trust-primary h3 { color: var(--brasa); }

/* ============================================================
   Story
   ============================================================ */

.story {
  background: var(--terra);
  color: var(--crema);
  padding: 96px 24px;
}
.story-inner {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  text-align: center;
}
.story h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--crema);
  margin-bottom: 32px;
}
.story p {
  font-size: 0.95rem;
  color: rgba(243, 239, 234, 0.85);
  line-height: 1.85;
  margin-bottom: 18px;
}
.story .story-highlight {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--arena);
  margin: 28px 0;
  line-height: 1.5;
}

/* ============================================================
   Capture (form)
   ============================================================ */

.capture {
  background: var(--bg-section);
  padding: 96px 24px;
}
.capture-inner {
  max-width: 560px;
  margin: 0 auto;
}
.capture h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--carbon);
  text-align: center;
  margin-bottom: 14px;
}
.capture-subhead {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 36px;
  line-height: 1.6;
}
.capture-followup { text-align: center; font-size: 0.95rem; color: var(--text-muted); }

.lead-form, .survey-form {
  background: var(--crema);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.field-email {
  display: block;
  margin-bottom: 6px;
}
.field-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field-email input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--hueso);
  border: 1px solid var(--humo);
  border-radius: 6px;
  color: var(--carbon);
  transition: var(--transition-smooth);
}
.field-email input:focus {
  border-color: var(--terra);
  outline: 2px solid rgba(139, 94, 60, 0.25);
  outline-offset: 0;
}
.field-help {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 18px;
}
.field-error {
  font-size: 0.82rem;
  color: #b00020;
  margin-bottom: 12px;
}
.field-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 8px 0 22px;
  cursor: pointer;
}
.field-consent input { margin-top: 3px; flex-shrink: 0; }
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lead-form .btn-primary { width: 100%; }
.legal-fineprint {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

.survey-field {
  border: none;
  margin: 0 0 22px;
  padding: 0;
}
.survey-field legend {
  font-size: 0.9rem;
  color: var(--carbon);
  margin-bottom: 10px;
  font-weight: 500;
}
.survey-field select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--hueso);
  border: 1px solid var(--humo);
  border-radius: 6px;
  color: var(--carbon);
}
.likert {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.likert label {
  text-align: center;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid var(--humo);
  border-radius: 6px;
  padding: 10px 4px;
  background: var(--hueso);
  transition: var(--transition-smooth);
}
.likert label small { display: block; font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }
.likert input { display: none; }
.likert label:hover { border-color: var(--terra); }
.likert input:checked + span {
  color: var(--terra);
  font-weight: 600;
}
.likert label:has(input:checked) {
  border-color: var(--terra);
  background: rgba(139, 94, 60, 0.08);
}
.survey-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.survey-actions .btn-primary { flex: 1; }
.survey-actions .btn-ghost { flex: 0 0 auto; }

/* ============================================================
   Sticky CTA (mobile)
   ============================================================ */

.cta-sticky {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 80;
  display: flex;
  justify-content: center;
}
.cta-sticky .btn-primary {
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-premium);
}
@media (min-width: 768px) { .cta-sticky { display: none; } }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--carbon);
  color: var(--crema);
  padding: 64px 24px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand h4 {
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand h4 .big { font-size: 1.8rem; }
.footer-brand h4 .small { font-size: 0.8rem; line-height: 1.2; }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(243, 239, 234, 0.7);
  line-height: 1.65;
  max-width: 380px;
  margin-bottom: 8px;
}
.footer-microcopy {
  font-size: 0.82rem;
  color: rgba(243, 239, 234, 0.55);
  font-style: italic;
}
.social-links { display: flex; gap: 14px; margin-top: 16px; }
.social-links a { color: rgba(243, 239, 234, 0.6); }
.social-links a:hover { color: var(--cobre); }
.col-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--crema);
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(243, 239, 234, 0.7);
  text-decoration: none;
}
.footer-links a:hover { color: var(--cobre); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(243, 239, 234, 0.1);
  font-size: 0.78rem;
  color: rgba(243, 239, 234, 0.45);
}

/* ============================================================
   Cookie banner
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--hueso);
  border: 1px solid var(--humo);
  border-radius: 12px;
  box-shadow: var(--shadow-premium);
  padding: 18px 22px;
  z-index: 90;
}
.cookie-text {
  font-size: 0.88rem;
  color: var(--carbon);
  line-height: 1.55;
  margin-bottom: 14px;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-actions .btn-primary,
.cookie-actions .btn-ghost {
  padding: 10px 18px;
  font-size: 0.85rem;
}
.cookie-config {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-config label {
  font-size: 0.88rem;
  color: var(--carbon);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .product-inner { gap: 48px; }
}

@media (max-width: 768px) {
  .hero { padding: 80px 16px 60px; }
  .product { padding: 64px 16px; }
  .product-inner { grid-template-columns: 1fr; gap: 40px; }
  .pkg-mockup { transform: none; max-width: 320px; margin: 0 auto; }
  .pkg-mockup:hover { transform: none; }
  .trust { padding: 64px 16px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .story { padding: 64px 16px; }
  .capture { padding: 64px 16px; }
  .lead-form, .survey-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 48px 16px 24px; }
  .header-inner { padding: 12px 16px; }
  .logo-text { display: none; }
  body { padding-bottom: 76px; } /* room for sticky CTA */
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .likert { grid-template-columns: repeat(5, 1fr); }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}
