/* ============================================================
   GESTIÓN PROFESIONAL DE ESPACIOS WELLNESS — Clara S. L. Pollach
   Sistema visual: crema editorial · verde profundo · dorado
   (familia visual de cosmeticasomatica.com, en clave clara)
   ============================================================ */

:root {
  --crema: #F5EFE3;
  --crema-2: #EDE4D2;
  --papel: #FBF8F2;
  --verde: #1A3D2B;
  --verde-2: #122B1E;
  --verde-3: #24503A;
  --dorado: #C9A84C;
  --dorado-2: #9C7F2E;
  --ink: #1E2B22;
  --ink-soft: #4A5A4E;
  --linea: rgba(30, 43, 34, 0.14);
  --linea-luz: rgba(245, 239, 227, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--dorado); color: var(--verde-2); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--dorado-2); }
strong { font-weight: 600; }

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dorado-2);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.kicker-light { color: var(--dorado); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--dorado); outline-offset: 3px; }
.btn-gold { background: var(--dorado); color: var(--verde-2); }
.btn-gold:hover { background: #D6B65C; box-shadow: 0 14px 30px rgba(156, 127, 46, 0.28); }
.btn-dark { background: var(--verde); color: var(--crema); }
.btn-dark:hover { background: var(--verde-3); box-shadow: 0 14px 30px rgba(18, 43, 30, 0.25); }
.btn-ghost { border-color: var(--verde); color: var(--verde); }
.btn-ghost:hover { background: var(--verde); color: var(--crema); }
.btn-block { display: block; width: 100%; }

.text-link { color: var(--verde); font-weight: 600; text-decoration: underline; text-decoration-color: var(--dorado); text-underline-offset: 4px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
  background: rgba(245, 239, 227, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--linea); box-shadow: 0 6px 24px rgba(18, 43, 30, 0.06); }
.nav-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.nav-brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav-brand span { font-family: var(--display); font-size: 0.98rem; line-height: 1.15; color: var(--verde); }
.nav-brand em { font-style: italic; color: var(--dorado-2); }
.nav-cta { padding: 0.65rem 1.3rem; font-size: 0.92rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1.25rem, 5vw, 2.5rem); }
.section-head { max-width: 860px; margin: 0 auto clamp(2.5rem, 6vw, 4rem); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-bottom: 1.2rem; }
.lede { color: var(--ink-soft); font-size: 1.12rem; max-width: 700px; margin: 0 auto; }
.num { font-family: var(--display); font-style: italic; color: var(--dorado-2); font-size: 1.1rem; display: block; margin-bottom: 0.6rem; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  padding: calc(8.5rem + env(safe-area-inset-top, 0px)) clamp(1.25rem, 5vw, 2.5rem) 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(201, 168, 76, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(36, 80, 58, 0.10), transparent 60%),
    var(--crema);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(30, 43, 34, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
          mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); color: var(--verde); margin-bottom: 1.6rem; }
.hero-sub { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 720px; margin: 0 auto 2.4rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

.vsl { margin: 3rem auto 0; max-width: 860px; }
.vsl-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--verde-2); box-shadow: 0 30px 70px rgba(18, 43, 30, 0.25); }
.vsl-frame iframe, .vsl-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.hero-facts {
  position: relative; z-index: 1;
  list-style: none;
  max-width: var(--max);
  margin: clamp(3.5rem, 8vw, 5.5rem) auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--linea);
}
.hero-facts li { padding: 1.6rem 1rem; text-align: center; border-right: 1px solid var(--linea); }
.hero-facts li:last-child { border-right: 0; }
.hero-facts strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--verde); line-height: 1.1; }
.hero-facts span { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- 2. Dolor ---------- */
.pain { background: var(--papel); }
.pain-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pain-card { background: var(--crema); border: 1px solid var(--linea); border-radius: 12px; padding: 2rem 1.75rem; }
.pain-card h3 { font-size: 1.35rem; color: var(--verde); margin-bottom: 0.6rem; }
.pain-card p { color: var(--ink-soft); }
.pain-close { max-width: 760px; margin: clamp(2.5rem, 6vw, 3.5rem) auto 0; text-align: center; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.35; color: var(--verde); }
.pain-close strong { font-weight: 500; font-style: italic; color: var(--dorado-2); }

/* ---------- 3. De A a B ---------- */
.shift { background: var(--verde); color: var(--crema); }
.shift .section-head h2 { color: var(--crema); }
.shift .section-head h2 em { color: var(--dorado); }
.shift-grid { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: stretch; }
.shift-col { border-radius: 14px; padding: 2.2rem 2rem; }
.shift-from { border: 1px solid var(--linea-luz); }
.shift-to { background: var(--verde-3); border: 1px solid rgba(201, 168, 76, 0.45); }
.shift-label { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.2rem; color: rgba(245, 239, 227, 0.6); }
.shift-to .shift-label { color: var(--dorado); }
.shift-col ul { list-style: none; }
.shift-col li { padding: 0.7rem 0; border-bottom: 1px solid var(--linea-luz); }
.shift-col li:last-child { border-bottom: 0; }
.shift-from li { color: rgba(245, 239, 227, 0.62); text-decoration: line-through; text-decoration-color: rgba(201, 168, 76, 0.5); }
.shift-to li { color: var(--crema); }
.shift-arrow { align-self: center; font-family: var(--display); font-size: 2.6rem; color: var(--dorado); }

/* ---------- 4. Programa ---------- */
.topics { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; }
.topic { background: var(--papel); padding: 2rem 1.6rem; transition: background 0.3s; }
.topic:hover { background: #fff; }
.topic h3 { font-size: 1.25rem; color: var(--verde); margin-bottom: 0.6rem; }
.topic p { color: var(--ink-soft); font-size: 0.98rem; }

.includes { max-width: 820px; margin: clamp(2.5rem, 6vw, 3.5rem) auto 0; background: var(--verde); color: var(--crema); border-radius: 14px; padding: clamp(2rem, 4vw, 2.75rem); }
.includes h3 { font-size: 1.6rem; margin-bottom: 1.2rem; color: var(--crema); }

.check-list { list-style: none; }
.check-list li { position: relative; padding: 0.45rem 0 0.45rem 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.85rem;
  width: 1.1rem; height: 0.6rem;
  border-left: 2px solid var(--dorado); border-bottom: 2px solid var(--dorado);
  transform: rotate(-45deg);
}
.check-list.small li { font-size: 0.97rem; padding-top: 0.3rem; padding-bottom: 0.3rem; }
.check-list.small li::before { top: 0.7rem; }

/* ---------- 5. Para quién ---------- */
.who { background: var(--papel); }
.who-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.who-col h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); color: var(--verde); margin-bottom: 1.6rem; }
.who-not { background: var(--crema-2); border-radius: 14px; padding: 2rem; border-left: 3px solid var(--dorado); }
.who-not p { margin-bottom: 0.9rem; color: var(--ink-soft); }
.who-not .kicker { color: var(--dorado-2); }

/* ---------- 6. Resultados ---------- */
.results { background: var(--verde-2); color: var(--crema); }
.results .section-head h2 { color: var(--crema); }
.results .section-head h2 em { color: var(--dorado); }
.results-list { max-width: 860px; margin: 0 auto; list-style: none; counter-reset: r; }
.results-list li {
  counter-increment: r;
  display: grid; grid-template-columns: 3.2rem 1fr; align-items: baseline;
  padding: 1.15rem 0; border-bottom: 1px solid var(--linea-luz);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}
.results-list li::before { content: counter(r, decimal-leading-zero); font-family: var(--display); font-style: italic; color: var(--dorado); }

/* ---------- 7. Autoridad ---------- */
.authority-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.authority-photo { position: relative; }
.authority-photo img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: 0 30px 60px rgba(18, 43, 30, 0.18); }
.authority-photo::before { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border: 1px solid var(--dorado); border-radius: 14px; z-index: -1; }
.authority-text h2 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); color: var(--verde); margin-bottom: 1.3rem; }
.authority-text > p { color: var(--ink-soft); margin-bottom: 1rem; }
.authority-points { list-style: none; margin: 1.6rem 0; border-top: 1px solid var(--linea); }
.authority-points li { padding: 0.75rem 0; border-bottom: 1px solid var(--linea); }
.guest { background: var(--papel); border-radius: 12px; padding: 1.4rem 1.6rem; border: 1px solid var(--linea); }
.guest-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dorado-2); font-weight: 600; margin-bottom: 0.4rem; }

/* ---------- 8. Oferta ---------- */
.offer { background: var(--papel); }
.stack { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--linea); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(18, 43, 30, 0.08); }
.stack table { width: 100%; border-collapse: collapse; }
.stack td { padding: 1.25rem clamp(1.1rem, 3vw, 2rem); border-bottom: 1px solid var(--linea); vertical-align: top; }
.stack td small { display: block; color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.2rem; }
.stack .val { text-align: right; white-space: nowrap; font-weight: 600; color: var(--verde); }
.stack .total td { font-weight: 600; background: var(--crema); }
.stack .total s { color: var(--ink-soft); text-decoration-color: var(--dorado-2); text-decoration-thickness: 2px; }
.price { text-align: center; padding: 2rem 1.5rem 2.3rem; background: var(--verde); color: var(--crema); }
.price-label { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dorado); font-weight: 600; }
.price-num { font-family: var(--display); font-size: clamp(3rem, 8vw, 4.4rem); line-height: 1.1; margin: 0.3rem 0; }
.price-note { color: rgba(245, 239, 227, 0.75); }
.price-btn { margin-top: 1.5rem; padding: 1.1rem 2.2rem; font-size: 1.05rem; }
.price-alt { margin-top: 1.1rem; font-size: 0.92rem; color: rgba(245, 239, 227, 0.7); }
.price-alt a { color: var(--dorado); }
@media (max-width: 720px) { .price-btn { display: block; width: 100%; } }

.paths { max-width: 900px; margin: 2rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.path { background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 2rem 1.75rem; display: flex; flex-direction: column; }
.path h3 { font-size: 1.4rem; color: var(--verde); margin-bottom: 0.7rem; }
.path > p { color: var(--ink-soft); margin-bottom: 1rem; }
.path .check-list { margin-bottom: 1.6rem; flex: 1; }
.path-tag { display: inline-block; align-self: flex-start; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--dorado-2); margin-bottom: 0.6rem; }

.guarantee { max-width: 900px; margin: 2rem auto 0; display: flex; align-items: center; gap: 1.5rem; background: var(--crema-2); border-radius: 14px; padding: 1.75rem 2rem; }
.guarantee h3 { font-size: 1.35rem; color: var(--verde); margin-bottom: 0.3rem; }
.guarantee p { color: var(--ink-soft); }
.seal { flex: 0 0 auto; width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--dorado); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--verde); }
.seal span { font-family: var(--body); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 0.2rem; color: var(--dorado-2); }

.premium { max-width: 900px; margin: 2rem auto 0; background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: clamp(1.75rem, 4vw, 2.5rem); }
.premium h3 { font-size: 1.5rem; color: var(--verde); margin-bottom: 1.4rem; text-align: center; }
.premium-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.premium-grid li { background: var(--papel); border-radius: 10px; padding: 1.2rem 1.3rem; border-left: 3px solid var(--dorado); }
.premium-grid strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--verde); margin-bottom: 0.25rem; }
.premium-grid span { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- 9. Continuidad ---------- */
.next-grid { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.next-card { border: 1px solid var(--linea); border-radius: 14px; padding: 2rem 1.75rem; background: var(--papel); }
.next-card h3 { font-size: 1.3rem; color: var(--verde); margin-bottom: 0.6rem; }
.next-card p { color: var(--ink-soft); }

/* ---------- 10. FAQ ---------- */
.faq { background: var(--papel); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font-family: var(--display); font-size: 1.25rem; color: var(--verde);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 1.1rem; font-size: 1.6rem; color: var(--dorado-2); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.4rem; color: var(--ink-soft); }

/* ---------- 11. Cierre ---------- */
.final { background: var(--verde); color: var(--crema); text-align: center; }
.final-inner { max-width: 820px; margin: 0 auto; }
.final h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 1.2rem; }
.final h2 em { color: var(--dorado); }
.final p { color: rgba(245, 239, 227, 0.78); margin-bottom: 2.2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--verde-2); color: rgba(245, 239, 227, 0.78); text-align: center; padding: 3.5rem 1.5rem calc(5.5rem + env(safe-area-inset-bottom, 0px)); font-size: 0.95rem; }
.footer img { width: 110px; margin: 0 auto 1.2rem; }
.footer p { margin-bottom: 0.5rem; }
.footer a { color: var(--dorado); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-small { font-size: 0.82rem; color: rgba(245, 239, 227, 0.5); margin-top: 1rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }

/* ---------- Reveal (defensivo: el contenido nunca queda oculto sin JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); animation: reveal-fallback 0.6s ease 6s forwards; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }
.js .reveal.is-in { opacity: 1; transform: none; animation: none; }
.js.reveal-all .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .topics { grid-template-columns: 1fr 1fr; }
  .who-grid, .authority-grid { grid-template-columns: 1fr; }
  .authority-photo { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 720px) {
  body { font-size: 1.05rem; }
  .nav-brand span { font-size: 0.86rem; }
  .hero { padding-top: calc(7.5rem + env(safe-area-inset-top, 0px)); }
  .hero-ctas .btn { width: 100%; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts li:nth-child(2) { border-right: 0; }
  .hero-facts li:nth-child(-n+2) { border-bottom: 1px solid var(--linea); }
  .pain-grid, .topics, .paths, .next-grid { grid-template-columns: 1fr; }
  .shift-grid { grid-template-columns: 1fr; }
  .shift-arrow { transform: rotate(90deg); justify-self: center; }
  .guarantee { flex-direction: column; text-align: center; }
  .stack td { font-size: 0.97rem; }
}
