/* ============================================================
   EMBUDO DE JUGOS PARA EL ACNÉ — SISTEMA DE DISEÑO COMPARTIDO
   Archivo: styles.css
   Dependencias: Google Fonts (cargadas desde cada HTML)
   Usado por: index.html, gracias.html, guia.html, ventas.html
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── VARIABLES GLOBALES ── */
:root {
  /* Paleta verde natural */
  --gd: #1a3a2a;       /* verde oscuro — fondos principales */
  --gm: #2d5c3f;       /* verde medio — hovers */
  --gs: #4a8a5e;       /* verde suave — acentos */
  --gl: #7ec89a;       /* verde claro — textos sobre oscuro */
  --gp: #d4f0df;       /* verde pálido — badges, chips */
  /* Crema */
  --cr: #faf6ee;       /* crema — fondo principal */
  --cd: #f0e9d8;       /* crema oscura — secciones alternas */
  /* Ámbar */
  --am: #e8954a;       /* ámbar — CTA principal */
  --al: #f5c98a;       /* ámbar claro — detalles */
  /* Texto */
  --td: #1a2018;       /* texto principal */
  --tm: #3d4a38;       /* texto medio */
  --ts: #6b7a62;       /* texto suave / muted */
  --wh: #ffffff;
  /* Tipografía */
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'DM Sans', sans-serif;
  /* Radios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 100px;
}

/* ── BASE ── */
body {
  font-family: var(--sans);
  background: var(--cr);
  color: var(--td);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

/* Textura de fondo global */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(74,138,94,.07) 0%, transparent 45%),
    radial-gradient(circle at 88% 78%, rgba(232,149,74,.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(26,58,42,.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── TIPOGRAFÍA BASE ── */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  line-height: 1.15;
  color: var(--gd);
}

p { color: var(--tm); font-weight: 300; }

/* ── LAYOUT HELPERS ── */
.container {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad    { padding: 72px 0; }
.section-pad-sm { padding: 48px 0; }

.section-dark { background: var(--gd); }
.section-alt  { background: var(--cd); }

/* ── BADGE / EYEBROW ── */
.badge {
  display: inline-block;
  background: var(--gp);
  color: var(--gd);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(74,138,94,.2);
}

.badge-amber {
  background: rgba(232,149,74,.15);
  color: #854f0b;
  border-color: rgba(232,149,74,.3);
}

/* ── SECTION HEADER ── */
.section-title {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: var(--gd);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gs);
}

.section-title.on-dark { color: var(--cr); }
.section-title.on-dark em { color: var(--gl); }

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--am);
  border-radius: 2px;
  margin: 16px auto 40px;
}

.section-sub {
  font-size: 16px;
  color: var(--tm);
  line-height: 1.75;
  text-align: center;
  max-width: 520px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.section-sub.on-dark { color: rgba(212,240,223,.7); }

/* ── BOTONES ── */
.btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: var(--r-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .15s, opacity .15s, background .2s;
  letter-spacing: -.01em;
  line-height: 1;
}

.btn-primary {
  background: var(--gd);
  color: var(--wh);
}
.btn-primary:hover { background: var(--gm); transform: translateY(-2px); }

.btn-amber {
  background: var(--am);
  color: var(--wh);
}
.btn-amber:hover { opacity: .88; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--gd);
  border: 1.5px solid var(--gd);
}
.btn-outline:hover { background: var(--gd); color: var(--wh); }

.btn-full { display: block; width: 100%; text-align: center; }
.btn-sm { font-size: 14px; padding: 11px 24px; }
.btn-lg { font-size: 20px; padding: 20px 52px; }

/* ── CARDS ── */
.card {
  background: var(--wh);
  border: 1px solid rgba(74,138,94,.12);
  border-radius: var(--r-xl);
  padding: 24px;
}

.card-dark {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(126,200,154,.18);
  border-radius: var(--r-xl);
  padding: 24px;
}

/* ── SOCIAL PROOF / STATS ── */
.stats-bar {
  position: relative;
  z-index: 1;
  background: var(--cd);
  border-top: 1px solid rgba(74,138,94,.12);
  border-bottom: 1px solid rgba(74,138,94,.12);
  padding: 24px;
}

.stats-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gd);
  display: block;
}

.stat-lbl {
  font-size: 11px;
  color: var(--ts);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── TESTIMONIALES ── */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.testi-card {
  background: var(--wh);
  border: 1px solid rgba(74,138,94,.12);
  border-radius: var(--r-lg);
  padding: 22px;
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}

.star {
  width: 14px;
  height: 14px;
  fill: var(--am);
}

.testi-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--tm);
  line-height: 1.65;
  margin-bottom: 16px;
  font-weight: 300;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--gd);
  flex-shrink: 0;
}

.testi-name { font-size: 13px; font-weight: 500; color: var(--td); }
.testi-detail { font-size: 11px; color: var(--ts); }

/* ── CHECKLIST ── */
.check-list { list-style: none; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(74,138,94,.1);
  font-size: 15px;
  color: var(--tm);
  line-height: 1.6;
  font-weight: 300;
}

.check-item:last-child { border-bottom: none; }

.check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-circle.green { background: var(--gp); color: var(--gm); }
.check-circle.red   { background: rgba(226,75,74,.1); color: #a32d2d; }

/* ── CALLOUT / QUOTE ── */
.callout {
  background: var(--gp);
  border-left: 4px solid var(--gm);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.callout p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--gd);
  line-height: 1.65;
  font-weight: 300;
}

.callout.dark {
  background: rgba(255,255,255,.07);
  border-left-color: var(--gl);
}

.callout.dark p { color: var(--gp); }

/* ── FAQ ACCORDION ── */
.faq-list { max-width: 600px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid rgba(74,138,94,.12); }

.faq-btn {
  width: 100%; text-align: left;
  background: transparent; border: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--gd);
  line-height: 1.4;
  transition: color .15s;
}

.faq-btn:hover { color: var(--gs); }

.faq-icon {
  font-size: 22px;
  color: var(--gs);
  flex-shrink: 0;
  transition: transform .2s;
  line-height: 1;
}

.faq-answer {
  font-size: 14px;
  color: var(--tm);
  line-height: 1.75;
  font-weight: 300;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .2s;
}

.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 18px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── STICKY NAV BAR ── */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gd);
  padding: 13px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.sticky-nav-text {
  font-size: 14px;
  color: var(--gp);
  font-family: var(--serif);
  font-style: italic;
}

/* ── ANNOUNCEMENT BAR ── */
.announcement-bar {
  background: var(--gd);
  padding: 10px 24px;
  text-align: center;
  color: var(--gp);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .02em;
  position: relative;
  z-index: 10;
}

.announcement-bar span {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--al);
  border-radius: 50%;
  margin: 0 10px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ── FORMULARIO ── */
.form-field { margin-bottom: 14px; }

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--tm);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.form-field input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(74,138,94,.25);
  border-radius: var(--r-sm);
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--td);
  background: var(--cr);
  transition: border-color .2s, background .2s, box-shadow .2s;
  outline: none;
}

.form-field input:focus {
  border-color: var(--gs);
  background: var(--wh);
  box-shadow: 0 0 0 3px rgba(74,138,94,.12);
}

.form-field input::placeholder { color: #aab5a4; }

/* ── PRIVACY NOTE ── */
.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ts);
  margin-top: 12px;
  text-align: center;
}

/* ── SUCCESS STATE ── */
.success-state { display: none; text-align: center; padding: 16px 0; }

.success-icon {
  width: 56px; height: 56px;
  background: var(--gp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid var(--gl);
}

.success-state h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gd);
  margin-bottom: 8px;
}

.success-state p { font-size: 14px; color: var(--ts); line-height: 1.6; }

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fadeup  { animation: fadeUp  .6s ease both; }
.anim-scalein { animation: scaleIn .5s ease both; }
.anim-fadein  { animation: fadeIn  .4s ease both; }

.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .45s; }
.delay-5 { animation-delay: .6s; }

/* ── FOOTER ── */
.site-footer {
  background: #111c16;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.site-footer p {
  font-size: 12px;
  color: rgba(212,240,223,.35);
  line-height: 1.7;
}

.site-footer a {
  color: rgba(212,240,223,.5);
  text-decoration: none;
}

.site-footer a:hover { color: var(--gl); }

.footer-disclaimer {
  font-size: 11px;
  color: rgba(212,240,223,.22);
  margin-top: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .btn-lg { font-size: 17px; padding: 17px 32px; }
  .stats-inner { gap: 24px; }
  .sticky-nav-text { display: none; }
  .section-pad { padding: 48px 0; }
}
