/* =========================================================
   EQUILIBRA 40+ — Landing de conversión (mobile-first)
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f8f2e9;
  --cream-light: #fffaf4;
  --white: #ffffff;
  --terracotta: #c65d42;
  --terracotta-dark: #a84733;
  --terracotta-soft: #efd1c4;
  --sage: #80957b;
  --sage-dark: #5f765b;
  --sage-soft: #dfe7dc;
  --ink: #3c2d2a;
  --muted: #75635e;
  --border: rgba(60, 45, 42, 0.12);
  --shadow: 0 24px 70px rgba(83, 51, 42, 0.13);
  --shadow-soft: 0 14px 42px rgba(83, 51, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
blockquote {
  margin-top: 0;
}

ul {
  padding-left: 1.2rem;
}

body {
  margin: 0;
  padding-bottom: 82px;
  color: var(--ink);
  background: var(--cream-light);
  font-family: var(--sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* -----------------------------------------------------------
   Tipografía base (móvil)
   ----------------------------------------------------------- */
h1,
h2,
h3 {
  font-family: var(--serif);
  text-wrap: balance;
}

h1,
h2 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 8vw, 2.75rem);
  color: var(--terracotta-dark);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 6vw, 2.2rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.3;
}

p {
  color: var(--muted);
  margin-top: 0;
}

/* -----------------------------------------------------------
   Utilidades de layout
   ----------------------------------------------------------- */
.container {
  width: min(calc(100% - 28px), var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 900px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--cream);
}

.section-heading {
  max-width: 790px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading > p:last-child {
  max-width: 680px;
  margin-inline: auto;
  font-size: 1.05rem;
}

.section-kicker,
.eyebrow {
  margin-bottom: 14px;
  color: var(--terracotta);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* -----------------------------------------------------------
   Header
   ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  background: rgba(255, 250, 244, 0.9);
  backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 30px rgba(83, 51, 42, 0.06);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 1.4rem;
  text-decoration: none;
}

.brand-symbol {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--terracotta);
  border-radius: 50%;
  line-height: 1;
}

/* -----------------------------------------------------------
   Botones
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(198, 93, 66, 0.24);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
}

.btn-secondary {
  border-color: var(--terracotta);
  background: transparent;
  color: var(--terracotta-dark);
}

.btn-secondary:hover {
  background: var(--terracotta);
  color: var(--white);
}

.btn-small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn-large {
  min-height: 56px;
  padding: 16px 28px;
}

.btn-block {
  width: 100%;
}

.text-link {
  color: var(--terracotta-dark);
  font-weight: 750;
  text-underline-offset: 4px;
}

/* -----------------------------------------------------------
   Hero
   ----------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 56px;
  background:
    radial-gradient(circle at 12% 12%, rgba(231, 161, 127, 0.18), transparent 34%),
    radial-gradient(circle at 95% 70%, rgba(128, 149, 123, 0.18), transparent 36%),
    var(--cream-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-copy h1 {
  color: var(--terracotta-dark);
}

.hero-lead {
  max-width: 700px;
  margin: 0 auto 28px;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-actions .btn,
.hero-actions .text-link {
  width: 100%;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.92rem;
  list-style: none;
}

.trust-list li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--sage-dark);
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-width: 0;
  width: min(560px, 100%);
  margin-inline: auto;
}

.hero-visual picture {
  position: relative;
  z-index: 2;
}

.hero-visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* -----------------------------------------------------------
   Resumen
   ----------------------------------------------------------- */
.summary-strip {
  border-block: 1px solid var(--border);
  background: var(--white);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.summary-grid > div {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.summary-grid > div:nth-child(2n) {
  border-right: 0;
}

.summary-grid > div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.summary-grid strong {
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
}

.summary-grid span {
  max-width: 145px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

/* -----------------------------------------------------------
   Problema / síntomas
   ----------------------------------------------------------- */
.problem-section {
  background: var(--white);
}

.symptom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.symptom-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--cream-light);
  box-shadow: var(--shadow-soft);
}

.symptom-card span {
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.symptom-card p {
  margin: 0;
}

.support-note {
  margin-top: 24px;
  padding: 20px 22px;
  border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--sage-soft);
  color: var(--sage-dark);
}

.support-note strong {
  color: var(--sage-dark);
}

/* -----------------------------------------------------------
   Cómo funciona (pasos)
   ----------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.step-card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.step-number {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta-soft);
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 800;
}

/* -----------------------------------------------------------
   Qué incluye
   ----------------------------------------------------------- */
.included-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.included-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.included-featured {
  background:
    linear-gradient(135deg, rgba(198, 93, 66, 0.07), rgba(128, 149, 123, 0.08)),
    var(--white);
}

.included-icon {
  display: inline-grid;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 16px;
  background: var(--cream);
  color: var(--terracotta);
  font-size: 1.45rem;
  font-weight: 900;
}

.badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* -----------------------------------------------------------
   Protocolo
   ----------------------------------------------------------- */
.protocol-section {
  background: linear-gradient(135deg, #fff8f1 0%, #eef2eb 100%);
}

.protocol-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.protocol-copy > p:not(.section-kicker) {
  font-size: 1.05rem;
}

.check-list,
.offer-list {
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}

.check-list li,
.offer-list li {
  position: relative;
  margin: 14px 0;
  padding-left: 30px;
}

.check-list li::before,
.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage-dark);
  font-weight: 900;
}

.quote-card {
  padding: 30px 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.quote-card blockquote {
  margin-bottom: 20px;
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  line-height: 1.2;
}

.quote-card p {
  margin: 0;
}

/* -----------------------------------------------------------
   ¿Para quién?
   ----------------------------------------------------------- */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.fit-card {
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.fit-card ul {
  margin-bottom: 0;
}

.fit-card li {
  margin: 12px 0;
  color: var(--muted);
}

.fit-yes {
  border-top: 5px solid var(--sage);
}

.fit-no {
  border-top: 5px solid var(--terracotta);
}

/* -----------------------------------------------------------
   Oferta
   ----------------------------------------------------------- */
.offer-section {
  padding: 64px 0;
  background: var(--ink);
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.offer-copy h2,
.offer-copy p,
.offer-copy li {
  color: var(--white);
}

.offer-copy > p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
}

.section-kicker-light {
  color: #e7a17f;
}

.offer-list {
  columns: 1;
  column-gap: 34px;
}

.offer-list li::before {
  color: #b7c7b2;
}

.price-card {
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  background: var(--cream-light);
  box-shadow: var(--shadow);
}

.price-label {
  display: block;
  margin-bottom: 10px;
  color: var(--terracotta-dark);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price {
  margin-bottom: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(3rem, 12vw, 4rem);
  font-weight: 700;
  line-height: 1;
}

.price-note,
.secure-note {
  font-size: 0.9rem;
}

.secure-note {
  margin: 14px 0 0;
  text-align: center;
}

/* -----------------------------------------------------------
   FAQ
   ----------------------------------------------------------- */
.faq-section {
  background: var(--white);
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.faq-question span:last-child {
  flex: 0 0 auto;
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 1.8rem;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-answer p {
  padding: 0 24px 22px 4px;
}

/* -----------------------------------------------------------
   CTA final
   ----------------------------------------------------------- */
.final-cta {
  padding: 64px 0 72px;
  background:
    radial-gradient(circle at 85% 20%, rgba(128, 149, 123, 0.18), transparent 32%),
    var(--cream);
  text-align: center;
}

.final-cta p:not(.section-kicker) {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */
.site-footer {
  padding: 56px 0 100px;
  background: #2f2422;
  color: var(--white);
}

.footer-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 32px;
}

.footer-brand {
  color: #efab92;
}

.footer-grid p,
.legal p {
  color: rgba(255, 255, 255, 0.65);
}

.legal {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.legal p {
  max-width: 940px;
  font-size: 0.82rem;
}

/* -----------------------------------------------------------
   Barra CTA fija (móvil)
   ----------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1200;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: rgba(255, 250, 244, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 -10px 30px rgba(83, 51, 42, 0.08);
}

.mobile-cta div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mobile-cta span {
  color: var(--muted);
  font-size: 0.78rem;
}

.mobile-cta strong {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.mobile-cta .btn {
  min-height: 48px;
  padding-inline: 18px;
  font-size: 0.9rem;
}

/* -----------------------------------------------------------
   Animación reveal
   ----------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =============================================================
   Ampliaciones responsive (mobile-first: solo min-width)
   ============================================================= */
@media (min-width: 640px) {
  .summary-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .summary-grid > div {
    border-bottom: 0;
  }

  .summary-grid > div:nth-child(2n) {
    border-right: 1px solid var(--border);
  }

  .summary-grid > div:last-child {
    border-right: 0;
  }

  .symptom-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .included-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-list {
    columns: 2;
  }
}

@media (min-width: 980px) {
  body {
    padding-bottom: 0;
  }

  .mobile-cta {
    display: none;
  }

  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .section {
    padding: 104px 0;
  }

  .offer-section {
    padding: 100px 0;
  }

  .header-inner {
    min-height: 80px;
  }

  .brand {
    font-size: 1.75rem;
  }

  .brand-symbol {
    width: 34px;
    height: 34px;
  }

  h1 {
    font-size: clamp(3rem, 5vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  }

  .hero {
    padding: 72px 0 76px;
  }

  .hero-grid {
    grid-template-columns: 1.03fr 0.97fr;
    align-items: center;
    gap: 60px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-lead {
    margin-inline: 0;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .hero-actions .btn,
  .hero-actions .text-link {
    width: auto;
  }

  .trust-list {
    justify-content: flex-start;
  }

  .hero-visual {
    width: auto;
    margin-inline: 0;
  }

  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .included-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .included-featured {
    grid-column: span 2;
  }

  .protocol-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 64px;
  }

  .offer-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 64px;
  }

  .footer-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

/* =============================================================
   Capa de pulido cálido-editorial
   ============================================================= */
.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -160px -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(198, 93, 66, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.visual-shape {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sage-soft);
  filter: blur(2px);
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .step-card,
  .included-card,
  .fit-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .step-card:hover,
  .included-card:hover,
  .fit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(198, 93, 66, 0.42);
  outline-offset: 4px;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
