/* =========================================================
   Carta al Día · Landing
   Mobile-first · Paleta cálida gastro · Serif Fraunces
   ========================================================= */

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding-left: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens ---------- */
:root {
  /* Paleta cálida */
  --cream:      #fbf7f0;
  --cream-2:    #f4ecdd;
  --paper:      #ffffff;
  --ink:        #2a1e14;      /* marrón muy oscuro, casi negro */
  --ink-soft:   #5b4a3a;
  --line:       #e6ddc9;
  --terracota:  #c86b3c;      /* CTA principal */
  --terracota-d:#a95327;      /* hover */
  --olive:      #6a7a4a;      /* acentos */
  --olive-d:    #4f5c37;
  --gold:       #b8894a;      /* detalles */

  /* Tipografía */
  --serif: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Espaciado / radios / sombras */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(42, 30, 20, .06);
  --shadow-md: 0 8px 24px rgba(42, 30, 20, .08);
  --shadow-lg: 0 20px 48px rgba(42, 30, 20, .12);

  /* Ritmo */
  --section-y: 4rem;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 6vw + 1rem, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { color: var(--ink-soft); }

em {
  font-style: italic;
  color: var(--terracota);
}

::selection { background: var(--terracota); color: #fff; }

/* Focus visible: acessible */
:focus-visible {
  outline: 3px solid var(--terracota);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  padding: 0 1.25rem;
  margin: 0 auto;
}
.container--narrow { max-width: 760px; }

.section {
  padding: var(--section-y) 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.section-sub {
  margin-top: .75rem;
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--olive-d);
  margin-bottom: .75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 240, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--terracota);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
}
.brand-name { font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracota);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--terracota-d); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 3rem 0 4rem;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(200, 107, 60, .12), transparent 60%),
    radial-gradient(900px 400px at 0% 20%,   rgba(106, 122, 74, .08),  transparent 60%),
    var(--cream);
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
}
.hero-text .lede {
  margin-top: 1.25rem;
  font-size: 1.15rem;
  max-width: 34ch;
}
.hero-text .lede strong { color: var(--ink); }
.hero h1 { margin-top: .75rem; }
.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.hero-note {
  font-size: .9rem;
  color: var(--ink-soft);
}
.hero-badges {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
}
.hero-badges li {
  font-size: .85rem;
  color: var(--ink-soft);
  padding: .35rem .75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: var(--cream-2);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media-tag {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: .5rem .85rem;
  background: var(--paper);
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: .95rem;
  color: var(--terracota);
  box-shadow: var(--shadow-sm);
}

/* ---------- Antes / Después ---------- */
.beforeafter { background: var(--paper); }
.ba-grid {
  display: grid;
  gap: 1.5rem;
}
.ba-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  padding-bottom: 1rem;
}
.ba-card img {
  width: 100%;
  aspect-ratio: 595/842; /* A4 */
  object-fit: cover;
  background: var(--cream-2);
  display: block;
}
.ba-card figcaption {
  padding: 1rem 1.25rem 0;
  font-size: .95rem;
  color: var(--ink-soft);
}
.ba-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.ba-label--after {
  background: var(--terracota);
  color: #fff;
}

/* ---------- Qué incluye ---------- */
.includes { background: var(--cream); }
.feature-list {
  display: grid;
  gap: 1.25rem;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  position: relative;
}
.feature-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--terracota);
  letter-spacing: .04em;
}
.feature h3 { margin: .35rem 0 .5rem; }
.feature p { font-size: .98rem; }

/* ---------- Cómo funciona ---------- */
.how { background: var(--paper); }
.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
  border: 1px solid var(--line);
}
.step-num {
  position: absolute;
  top: -1.1rem;
  left: 1.5rem;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--terracota);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin: .35rem 0 .5rem; }

/* ---------- Precio ---------- */
.price { background: var(--cream); }
.price-grid {
  display: grid;
  gap: 1.5rem;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.price-card--main {
  border: 2px solid var(--terracota);
  box-shadow: var(--shadow-md);
}
.price-tag {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--olive-d);
  margin-bottom: .5rem;
}
.price-value {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: .1rem;
}
.price-value--sm { font-size: 3rem; }
.price-cur {
  font-size: .55em;
  color: var(--terracota);
  margin-left: .1em;
}
.price-per {
  font-family: var(--sans);
  font-size: .3em;
  font-weight: 500;
  color: var(--ink-soft);
  margin-left: .2em;
}
.price-sub {
  font-size: .95rem;
  color: var(--ink-soft);
  margin-top: .35rem;
  margin-bottom: 1.5rem;
}
.price-list {
  margin: 0 0 1.75rem;
  display: grid;
  gap: .6rem;
}
.price-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink);
  font-size: .98rem;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .55rem;
  height: .3rem;
  border-left: 2px solid var(--terracota);
  border-bottom: 2px solid var(--terracota);
  transform: rotate(-45deg);
}
.price-guarantee {
  margin-top: 1rem;
  font-size: .88rem;
  color: var(--olive-d);
  text-align: center;
}
.price-card--maint {
  background: var(--cream-2);
  border-style: dashed;
}
.maint-desc {
  font-size: .98rem;
  margin-bottom: 1rem;
}
.maint-note {
  font-size: .85rem;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq-list {
  display: grid;
  gap: .75rem;
}
.faq-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--terracota);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-body {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
}
.faq-body p { font-size: .98rem; }
.faq-cta {
  margin-top: 2rem;
  text-align: center;
  font-size: .95rem;
  color: var(--ink-soft);
}
.faq-cta a {
  color: var(--terracota);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
  background:
    linear-gradient(180deg, transparent 0%, rgba(200,107,60,.06) 100%),
    var(--cream);
  padding: 4rem 0 5rem;
}
.cta-final h2 {
  max-width: 22ch;
  margin: 0 auto 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2.5rem 0 2rem;
}
.site-footer .brand-mark { background: var(--terracota); }
.footer-inner {
  display: grid;
  gap: 1.25rem;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-size: .95rem;
}
.footer-nav a {
  color: var(--cream);
  opacity: .85;
  transition: opacity .15s;
}
.footer-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-copy {
  font-size: .85rem;
  color: rgba(251, 247, 240, .55);
}

/* =========================================================
   Desktop breakpoint
   ========================================================= */
@media (min-width: 768px) {
  :root { --section-y: 6rem; }

  body { font-size: 18px; }

  /* Hero: dos columnas */
  .hero { padding: 4.5rem 0 6rem; }
  .hero-grid {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 4rem;
  }
  .hero-text .lede { max-width: 42ch; }
  .hero-cta { flex-direction: row; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

  /* Antes / después: 2 columnas */
  .ba-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Features: 3+2 en desktop */
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .feature:nth-child(4),
  .feature:nth-child(5) {
    grid-column: span 1;
  }

  /* Cómo funciona: 3 columnas */
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
  }

  /* Precio: 2 cards lado a lado */
  .price-grid {
    grid-template-columns: 1.15fr .85fr;
    gap: 2rem;
    align-items: start;
  }

  /* Footer horizontal */
  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
    align-items: center;
  }
  .footer-brand { justify-self: start; }
  .footer-copy { justify-self: end; text-align: right; }
}

@media (min-width: 1024px) {
  h1 { letter-spacing: -0.015em; }
  .hero-grid { gap: 5rem; }
  .feature-list { gap: 2rem; }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
