/* Persanat — paleta y tipografía del diseño original */
:root {
  --bg:        #F6F3EC;
  --card:      #FFFCF5;
  --tan:       #E8DFCB;
  --green:     #2F5D42;
  --green-dk:  #1D3A2A;
  --orange:    #C8623A;
  --orange-dk: #A94E2C;
  --gold:      #E8B45C;
  --gold-lt:   #F0C97B;
  --ink:       #26302A;
  --ink-2:     #3D4A42;
  --muted:     #4C5B51;
  --muted-2:   #5A685E;
  --muted-3:   #6B7A70;
  --muted-4:   #8A968D;
  --line:      rgba(47, 93, 66, 0.12);
  --display:   'Bricolage Grotesque', system-ui, sans-serif;
  --body:      'Instrument Sans', system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--orange); }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; font-weight: 600; color: var(--green-dk); }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 88px; }
.section-last { padding-bottom: 96px; }
.mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; } .mt-44 { margin-top: 44px; }
.mb-36 { margin-bottom: 36px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  padding-top: 16px; padding-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; background: var(--green);
  display: flex; align-items: center; justify-content: center;
  color: var(--bg); font-family: var(--display); font-weight: 700; font-size: 17px;
}
.brand-name { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; color: var(--green-dk); }
.brand-mark-sm { width: 28px; height: 28px; border-radius: 9px; font-size: 14px; }
.brand-name-sm { font-size: 17px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--orange); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px;
  font-size: 16px; font-weight: 500; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn-block { display: flex; width: 100%; margin-top: 30px; }
.btn-green { background: var(--green); color: var(--bg); }
.btn-green:hover { background: var(--green-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); border: 1.5px solid rgba(47, 93, 66, 0.3); }
.btn-ghost:hover { border-color: var(--green); background: rgba(47, 93, 66, 0.06); }
.btn-gold { background: var(--gold); color: var(--green-dk); font-weight: 600; }
.btn-gold:hover { background: #FFFDF8; color: var(--green-dk); }
.btn-dark { background: var(--green-dk); color: var(--bg); }
.btn-dark:hover { background: var(--orange); color: #fff; }
[data-wa] { cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 76px; padding-bottom: 84px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  background: rgba(200, 98, 58, 0.1); color: var(--orange-dk);
  padding: 7px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em;
}
.eyebrow-gold { background: rgba(232, 180, 92, 0.2); color: var(--gold-lt); }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.03; letter-spacing: -0.035em; margin: 22px 0 0; text-wrap: balance; }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 22px 0 0; max-width: 30em; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.meta-row {
  display: flex; flex-wrap: wrap; gap: 26px; margin: 38px 0 0; padding: 0;
  list-style: none; font-size: 14.5px; color: var(--muted-3);
}
.meta-row li + li { position: relative; }
.meta-row li + li::before { content: "·"; position: absolute; left: -15px; color: #C9C3B4; }

/* ---------- Placeholders de imagen ---------- */
.ph {
  position: relative; margin: 0; overflow: hidden;
  background: var(--tan); border-radius: 26px;
  display: flex; align-items: center; justify-content: center;
}
.ph::after {
  content: attr(data-label);
  padding: 0 24px; max-width: 22em; text-align: center;
  font-size: 14px; line-height: 1.5; color: rgba(47, 93, 66, 0.5);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-hero { aspect-ratio: 4 / 5; }
.ph-recipe { height: 170px; border-radius: 0; }
.ph-square { aspect-ratio: 1 / 1; border-radius: 18px; background: rgba(255, 255, 255, 0.08); }
.ph-square::after { color: rgba(255, 253, 248, 0.55); }
.ph-wide { aspect-ratio: 16 / 11; border-radius: 16px; background: rgba(0, 0, 0, 0.06); }

/* ---------- Franja de garantías ---------- */
.strip { background: var(--green-dk); color: #E8EDE8; }
.strip-inner {
  padding-top: 26px; padding-bottom: 26px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px;
  font-size: 15px;
}
.strip-inner span { opacity: 0.85; }

/* ---------- Encabezados de sección ---------- */
.section > h2 { font-size: clamp(30px, 3.8vw, 42px); line-height: 1.1; margin: 0; }
.section > h2.narrow { max-width: 16em; }
.sub { font-size: 18px; line-height: 1.6; color: var(--muted-2); margin: 14px 0 0; max-width: 34em; text-wrap: pretty; }

/* ---------- Grillas ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--card); border: 1px solid rgba(47, 93, 66, 0.1);
  border-radius: 20px; padding: 30px 28px;
}
.card .tag { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--orange); letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.card h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; margin: 14px 0 0; }
.card p:not(.tag) { font-size: 16px; line-height: 1.6; color: var(--muted-2); margin: 12px 0 0; text-wrap: pretty; }
.card-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 24px 26px 28px; }
.card-body h3 { font-size: 22px; margin: 0; }
.card-body p { font-size: 15.5px; line-height: 1.6; color: var(--muted-2); margin: 10px 0 0; text-wrap: pretty; }

/* ---------- Destacado equina ---------- */
.feature {
  margin-top: 20px; background: var(--green); color: #EDF2ED;
  border-radius: 24px; padding: 48px 52px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 52px; align-items: center;
}
.feature-title { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.12; margin: 20px 0 0; color: #FFFDF8; }
.feature-body { font-size: 17.5px; line-height: 1.65; margin: 16px 0 0; color: rgba(237, 242, 237, 0.86); text-wrap: pretty; }
.feature-note { font-size: 16px; line-height: 1.6; margin: 14px 0 0; color: rgba(237, 242, 237, 0.66); }
.feature .btn { margin-top: 28px; }

/* ---------- Chips de ingredientes ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 32px 0 0; list-style: none; }
.chips li {
  background: var(--card); border: 1px solid rgba(47, 93, 66, 0.14); color: var(--green);
  border-radius: 999px; padding: 11px 20px; font-size: 16px;
}

/* ---------- Calculadora ---------- */
.calc {
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: 48px 52px;
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px;
}
.calc-title { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; margin: 0; }
.calc-form .sub { margin-bottom: 30px; }
.field-label { display: block; font-size: 15px; font-weight: 500; color: var(--ink-2); margin: 0 0 10px; }
.field-hint { color: var(--muted-4); font-weight: 400; }
#peso { width: 100%; accent-color: var(--green); height: 6px; margin: 0 0 28px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.options:last-child { margin-bottom: 0; }
.options button {
  background: transparent; color: var(--ink-2);
  border: 1.5px solid rgba(47, 93, 66, 0.22); border-radius: 999px;
  padding: 11px 18px; font-family: inherit; font-size: 15.5px;
  cursor: pointer; transition: all .15s;
}
.options button:hover { border-color: var(--green); }
.options button.is-active { background: var(--green); color: #FFFDF8; border-color: var(--green); }

.calc-result {
  background: var(--green); border-radius: 20px; padding: 40px 36px; color: #EDF2ED;
  display: flex; flex-direction: column; justify-content: center;
}
.result-label { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(237, 242, 237, 0.6); margin: 0; }
.result-big { font-family: var(--display); font-size: 64px; line-height: 1; letter-spacing: -0.04em; font-weight: 600; color: #FFFDF8; margin: 10px 0 0; }
.result-big .unit { font-size: 26px; font-weight: 500; margin-left: 6px; color: rgba(255, 253, 248, 0.7); }
.result-mid { font-family: var(--display); font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; color: var(--gold); margin: 10px 0 0; }
.result-note { font-size: 15px; color: rgba(237, 242, 237, 0.75); margin: 8px 0 0; }
.result-fine { font-size: 13px; line-height: 1.5; color: rgba(237, 242, 237, 0.5); margin: 16px 0 0; }
.calc-result hr { border: 0; height: 1px; background: rgba(255, 255, 255, 0.16); margin: 28px 0; width: 100%; }

/* ---------- Pasos ---------- */
.step { border-top: 2px solid rgba(47, 93, 66, 0.18); padding-top: 20px; }
.step-n { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--orange); margin: 0; }
.step h3 { font-size: 21px; letter-spacing: -0.02em; margin: 10px 0 0; }
.step p { font-size: 15.5px; line-height: 1.6; color: var(--muted-2); margin: 9px 0 0; text-wrap: pretty; }

/* ---------- Panel dieta médica ---------- */
.panel {
  background: var(--tan); border-radius: 24px; padding: 48px 52px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
}
.panel-title { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.12; margin: 0; }
.panel-body { font-size: 17.5px; line-height: 1.65; color: var(--muted); margin: 16px 0 0; text-wrap: pretty; }
.panel .btn { margin-top: 26px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
.faq-item { border-top: 1px solid rgba(47, 93, 66, 0.16); padding: 22px 0; }
.faq-item h3 { font-size: 20px; letter-spacing: -0.02em; margin: 0; }
.faq-item p { font-size: 16px; line-height: 1.6; color: var(--muted-2); margin: 10px 0 0; text-wrap: pretty; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--green-dk); border-radius: 26px; padding: 70px 52px; text-align: center; }
.cta-final h2 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.035em; color: #FFFDF8; margin: 0; text-wrap: balance; }
.cta-final p { font-size: 18.5px; line-height: 1.6; color: rgba(237, 242, 237, 0.75); margin: 18px auto 0; max-width: 30em; text-wrap: pretty; }
.cta-final .btn { margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(47, 93, 66, 0.14); }
.footer-inner {
  padding-top: 36px; padding-bottom: 36px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 20px; font-size: 15px; color: var(--muted-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
  .ph-hero { aspect-ratio: 4 / 3; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature, .calc, .panel { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
  .faq { grid-template-columns: 1fr; gap: 0; }
  .section { padding-top: 64px; }
}

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .header-inner { gap: 12px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .feature, .calc, .panel { padding: 28px 24px; border-radius: 20px; }
  .cta-final { padding: 48px 24px; }
  .lede, .sub { font-size: 17px; }
  .strip-inner { flex-direction: column; gap: 10px; }
  .result-big { font-size: 54px; }
  .btn { padding: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
