/*
Theme Name: Luciana Caffasso Nutrición
Description: Tema a medida para Nutrición Luciana Caffasso. Página única con e-books, testimonios y preguntas frecuentes editables desde el panel.
Version: 1.0.1
Author: Nutrición Luciana Caffasso
Text Domain: luciana-caffasso
Requires at least: 6.0
Requires PHP: 7.4
*/


/* ============================================================
   Nutrición Luciana Caffasso — versión 3 (cálida / orgánica)
   Tema de WordPress.
   ============================================================ */

:root {
  --cream: #f6f1e8;
  --cream-2: #efe8db;
  --paper: #fffdf9;
  --ink: oklch(0.31 0.045 155);
  --ink-soft: oklch(0.48 0.03 155);
  --olive: oklch(0.55 0.08 145);
  --clay: oklch(0.66 0.13 45);
  --clay-deep: oklch(0.48 0.12 45);
  --line: oklch(0.31 0.045 155 / 0.16);

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 34px;
  --r-pill: 999px;

  --gutter: clamp(18px, 5vw, 64px);
  --page: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: var(--clay-deep); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
::selection { background: oklch(0.66 0.13 45 / 0.25); }

.wrap { max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 112px); }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 18px;
}
.serif-em { font-style: italic; color: var(--clay-deep); }
.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-soft); max-width: 56ch; }
.center { text-align: center; margin-inline: auto; }

/* ---------- nav flotante ---------- */
.nav {
  position: sticky;
  top: 14px;
  z-index: 60;
  margin: 14px auto 0;
  max-width: calc(var(--page) - 8px);
  width: calc(100% - 2 * var(--gutter));
}
.nav-inner {
  background: oklch(0.99 0.012 90 / 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 10px 8px 10px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 10px 30px oklch(0.31 0.045 155 / 0.08);
}
.brand {
  font-family: var(--serif);
  font-size: 21px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 2px 8px oklch(0.31 0.045 155 / 0.18); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand small { font-family: var(--sans); font-size: 10px; letter-spacing: 0.42em; text-transform: lowercase; color: var(--ink-soft); margin-bottom: 4px; }
.links { display: flex; align-items: center; gap: 22px; }
.links a { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.links a:hover { color: var(--clay-deep); }
.nav-toggle, .hamb { display: none; }
.hamb {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line);
  cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.hamb i { width: 16px; height: 2px; border-radius: 2px; background: var(--ink); display: block; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  transition: transform 140ms ease, background 140ms linear, color 140ms linear, box-shadow 140ms linear;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-clay { background: var(--clay); color: var(--paper); box-shadow: 0 8px 20px oklch(0.66 0.13 45 / 0.28); }
.btn-clay:hover { background: var(--clay-deep); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--olive); color: var(--paper); }
.btn-outline { border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--cream-2); }
.btn-wide { width: 100%; justify-content: center; }
.btn-sm { padding: 11px 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(44px, 7vw, 92px) clamp(40px, 6vw, 80px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero h1 { font-size: clamp(46px, 7.4vw, 92px); line-height: 0.98; margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 14px; color: var(--ink-soft); }
.hero-note .dots { display: flex; }
.hero-note .dots span { width: 26px; height: 26px; border-radius: 50%; background: var(--cream-2); border: 2px solid var(--cream); margin-left: -8px; }
.hero-note .dots span:first-child { margin-left: 0; }

.hero-art { position: relative; }
.hero-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 120px; box-shadow: 0 20px 50px oklch(0.31 0.045 155 / 0.16); }
.badge {
  position: absolute;
  left: -14px;
  bottom: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 30px oklch(0.31 0.045 155 / 0.12);
}
.badge em { font-family: var(--serif); font-style: italic; color: var(--clay-deep); font-weight: 400; font-size: 17px; }

/* ---------- placeholders ---------- */
.ph {
  position: relative;
  background: repeating-linear-gradient(135deg, var(--cream-2) 0 11px, oklch(0.88 0.02 90) 11px 22px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  min-height: 150px;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 7px 12px;
  border-radius: var(--r-pill);
  text-align: center;
  max-width: 86%;
}
.ph-portrait { aspect-ratio: 4 / 5; }
.ph-book { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.ph-round { border-radius: 50%; width: 46px; height: 46px; min-height: 0; flex: none; }
.ph-round::after { display: none; }

/* ---------- cintas de valores ---------- */
.strip {
  background: var(--ink);
  color: var(--cream);
  padding-block: 18px;
  overflow: hidden;
}
.strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 24px);
}
.strip li { display: flex; align-items: center; gap: 14px; }
.strip li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.strip li:last-child::after { display: none; }

/* ---------- servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms linear;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px oklch(0.31 0.045 155 / 0.12); }
.card .no {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream-2);
  font-family: var(--serif); font-size: 19px;
  color: var(--clay-deep);
}
.card h3 { font-size: clamp(24px, 2.6vw, 31px); }
.card li { position: relative; padding-left: 22px; color: var(--ink-soft); margin-bottom: 8px; font-size: 16px; }
.card li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--olive); }

/* ---------- sobre mí ---------- */
.about {
  background: var(--paper);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.about-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--r-md); }
.about h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.pills li {
  border-radius: var(--r-pill);
  background: var(--cream-2);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- consultas ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plan {
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.plan.dark { background: var(--ink); color: var(--cream); border-color: transparent; }
.plan.dark .eyebrow { color: var(--clay); }
.plan.dark .feat li { color: oklch(0.92 0.02 120); }
.plan.dark .feat li::before { background: var(--clay); }
.plan h3 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 6px; }
.plan .sub { color: var(--ink-soft); margin-bottom: 20px; }
.plan.dark .sub { color: oklch(0.82 0.02 120); }
.feat { margin-bottom: 26px; }
.feat li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 16px; color: var(--ink-soft); }
.feat li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 12px; height: 2px; border-radius: 2px;
  background: var(--olive);
}
.plan .cta { margin-top: auto; }

/* ---------- e-books (carrusel) ---------- */
.books-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.book {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.book:hover { transform: translateY(-6px); box-shadow: 0 18px 40px oklch(0.31 0.045 155 / 0.12); }
.book h3 { font-size: 26px; }
.book .benefits li { font-size: 15px; color: var(--ink-soft); padding-left: 18px; position: relative; margin-bottom: 6px; }
.book .benefits li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; border-radius: 2px; background: var(--clay); }
.book .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.book .price { font-family: var(--serif); font-size: 27px; }
.swipe { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quote {
  background: var(--cream-2);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 8px;
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 160ms linear;
}
.quote:hover { background: oklch(0.93 0.03 70); }
.stars { color: var(--clay); letter-spacing: 3px; font-size: 14px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.18; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 14px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px 22px;
  transition: border-color 140ms linear;
}
.faq details[open] { border-color: oklch(0.66 0.13 45 / 0.5); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 25px);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--clay-deep); }
.faq summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 24px; height: 24px; margin-top: -12px;
  border-radius: 50%;
  background:
    linear-gradient(var(--clay), var(--clay)) center / 11px 2px no-repeat,
    linear-gradient(var(--clay), var(--clay)) center / 2px 11px no-repeat,
    var(--cream-2);
  transition: transform 180ms ease;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- cierre ---------- */
.closer {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: clamp(34px, 5vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.closer h2 { font-size: clamp(32px, 4.6vw, 58px); margin-bottom: 16px; }
.closer p { color: oklch(0.86 0.02 120); max-width: 42ch; }
.closer .eyebrow { color: var(--clay); }
.closer .actions { display: grid; gap: 12px; }

/* ---------- footer ---------- */
.footer { padding-block: clamp(40px, 5vw, 72px) 34px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(22px, 4vw, 56px); }
.footer h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive); margin: 0 0 14px; }
.footer .big { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; margin-bottom: 12px; }
.footer li { margin-bottom: 9px; font-size: 16px; color: var(--ink-soft); }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--clay-deep); text-decoration: underline; }
.footer-bottom {
  margin-top: 44px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 13px; color: var(--ink-soft);
}

/* ---------- WhatsApp fijo ---------- */
.wa {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 70;
  background: var(--clay);
  color: var(--paper);
  border-radius: var(--r-pill);
  padding: 15px 22px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 34px oklch(0.66 0.13 45 / 0.35);
  transition: background 140ms linear, transform 140ms ease;
}
.wa:hover { background: var(--clay-deep); color: var(--paper); transform: translateY(-2px); }

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

@media (max-width: 1000px) {
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .about, .plans, .closer { grid-template-columns: 1fr; }
  .about { text-align: left; }
  .about .ph-portrait { max-width: 320px; aspect-ratio: 4 / 3; }
  .about-photo { max-width: 360px; aspect-ratio: 1 / 1; object-position: 55% 22%; }
  .hero-art { max-width: 440px; }
  .hero-photo { aspect-ratio: 1 / 1; object-position: 50% 18%; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 90px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .books-grid { grid-template-columns: 1fr; }
  .hamb { display: flex; }
  .nav-inner { flex-wrap: wrap; border-radius: var(--r-lg); padding: 8px 10px; }
  .links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  .links a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .links .btn { margin-top: 12px; justify-content: center; border-bottom: 0; }
  .nav-toggle:checked ~ .nav-inner .links { display: flex; }

  .cards, .quotes, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .badge { left: 12px; bottom: 14px; }
}

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

/* ============================================================
   Agregados para WordPress
   ============================================================ */
@media (min-width: 783px) { .admin-bar .nav { top: 46px; } html { scroll-padding-top: 130px; } }
.book .cover { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.empty-note { color: var(--ink-soft); font-size: 15px; }
.quote figcaption .ph-round { display: inline-block; }
