/* ==========================================================================
   ALKY — Landing Page
   Paleta artesanal cálida · Tipografía serif display + sans limpia
   ========================================================================== */

/* ===== Variables ===== */
:root {
  /* Colores */
  --amber: #D4A373;          /* principal: artesanal, pan, natural */
  --amber-dark: #B5855A;
  --olive: #6B7A4F;          /* secundario: local, orgánico */
  --terracotta: #C4704F;     /* acento cálido */
  --mustard: #E0A458;        /* acento mostaza */
  --cream: #FAF6F0;          /* fondo cálido */
  --cream-2: #F3EBDD;
  --ink: #2D2D2D;            /* texto principal */
  --ink-soft: #5C5349;       /* texto secundario */
  --white: #FFFFFF;
  --line: #E7DCC8;           /* bordes suaves */

  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --error: #C0392B;
  --success-bg: #EAF6E7;

  /* Tipografía */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Sombras y radios */
  --shadow-sm: 0 2px 8px rgba(45, 45, 45, 0.06);
  --shadow-md: 0 8px 30px rgba(45, 45, 45, 0.10);
  --shadow-lg: 0 20px 50px rgba(45, 45, 45, 0.14);
  --radius: 16px;
  --radius-sm: 10px;

  /* Layout */
  --container: 1120px;
  --gutter: 24px;
}

/* ===== Reset básico ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Utilidades ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white) !important;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; text-decoration: none; }

.accent {
  color: var(--terracotta);
  font-style: italic;
}

.section { padding: 96px 0; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
}
.section__subtitle {
  color: var(--ink-soft);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section .container { text-align: center; }

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none !important;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: #B05F42; }
.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--whatsapp:hover { background: var(--whatsapp-dark); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--lg { padding: 16px 32px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn--sm.btn--primary { background: var(--terracotta); }

/* ===== Badges ===== */
.badge {
  display: inline-block;
  background: var(--amber);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.badge--sale {
  background: var(--terracotta);
  color: var(--white);
}

/* ===== Navbar ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: 50%;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
}
.nav__links {
  display: flex;
  gap: 26px;
}
.nav__links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .95rem;
}
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__links a:hover { text-decoration: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212,163,115,0.35), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(107,122,79,0.18), transparent 55%),
    var(--cream);
  padding: 120px 0 96px;
  overflow: hidden;
  text-align: center;
}
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; max-width: 780px; margin: 0 auto; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  line-height: 1.1;
  font-weight: 700;
  margin: 24px 0 20px;
}
.hero__title em {
  font-style: italic;
  color: var(--terracotta);
}
.hero__subtitle {
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  padding: 0;
  margin: 44px 0 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ===== Tarjetas base ===== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

/* ===== Problema → Solución ===== */
.ps { background: var(--cream-2); }
.ps .section__title { max-width: 720px; margin-left: auto; margin-right: auto; }
.ps__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  text-align: left;
  margin-top: 12px;
}
.ps__heading { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 18px; }
.ps__heading--problem { color: var(--terracotta); }
.ps__heading--solution { color: var(--olive); }
.ps__card--problem { background: #FBF3EC; border-color: #EBD8C8; }
.ps__card--solution { background: #F3F4EE; border-color: #D8DEC4; }
.ps__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ps__list li { padding-left: 20px; position: relative; }
.ps__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.ps__card--problem .ps__list li::before { background: var(--terracotta); }
.ps__card--solution .ps__list li::before { background: var(--olive); }
.ps__note {
  margin-top: 32px;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* ===== Beneficios ===== */
.benefits { background: var(--cream); }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit { transition: transform .2s ease, box-shadow .2s ease; }
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.benefit__icon { font-size: 2.2rem; display: block; margin-bottom: 14px; }
.benefit__title { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 10px; }
.benefit__text { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.benefit--highlight {
  background: var(--amber);
  border-color: var(--amber-dark);
}
.benefit--highlight .benefit__text,
.benefit--highlight .benefit__title { color: var(--ink); }

/* ===== Precios ===== */
.pricing { background: var(--cream-2); }
.pricing__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 12px;
}
.pricing__card { position: relative; display: flex; flex-direction: column; }
.pricing__price { margin: 18px 0 20px; }
.pricing__amount {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--terracotta);
}
.pricing__period { font-size: 1.1rem; color: var(--ink-soft); }
.pricing__features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.pricing__features li { font-size: .98rem; }
.pricing__card .btn { margin-top: auto; }
.pricing__calc { background: var(--white); }
.pricing__calc-title { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 8px; text-align: left; }
.pricing__calc-text { color: var(--ink-soft); font-size: .98rem; text-align: left; margin: 0 0 22px; }
.pricing__slider-label { display: block; font-weight: 500; text-align: left; margin-bottom: 8px; }
input[type="range"] {
  width: 100%;
  accent-color: var(--terracotta);
  cursor: pointer;
}
.pricing__result {
  margin-top: 22px;
  font-size: 1.05rem;
  text-align: left;
  background: var(--cream);
  padding: 16px;
  border-radius: var(--radius-sm);
}
.pricing__result-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--terracotta);
}
.pricing__fineprint { font-size: .82rem; color: var(--ink-soft); text-align: left; margin: 12px 0 0; }

/* ===== Público objetivo ===== */
.audience { background: var(--cream); }
.audience__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0;
  margin: 0;
}
.audience__item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.audience__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.audience__item span { font-size: 1.7rem; }

/* ===== Registro ===== */
.register {
  background:
    linear-gradient(0deg, rgba(212,163,115,0.25), rgba(212,163,115,0.25)),
    var(--cream-2);
}
.register__inner { max-width: 620px; }
.register__offer {
  background: var(--white);
  border: 2px dashed var(--amber-dark);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin: 0 0 28px;
  font-size: 1rem;
  color: var(--ink);
}
.register__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  text-align: left;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 15px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(196,112,79,0.15);
  background: var(--white);
}
.field input.invalid, .field select.invalid { border-color: var(--error); }
.field__error {
  color: var(--error);
  font-size: .82rem;
  min-height: 0;
  display: none;
}
.field__error.visible { display: block; }
.register__privacy { font-size: .82rem; color: var(--ink-soft); text-align: center; margin: 4px 0 0; }
.register__success {
  background: var(--success-bg);
  border: 1px solid #C6E3BE;
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}
.register__success h3 { font-family: var(--font-display); font-size: 1.7rem; margin: 12px 0 8px; }
.register__success p { color: var(--ink-soft); margin: 0 0 22px; }

/* ===== FAQ ===== */
.faq { background: var(--cream); }
.faq__inner { max-width: 760px; }
.faq__list { text-align: left; display: grid; gap: 12px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 22px;
  list-style: none;
  position: relative;
  transition: background .15s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--terracotta);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { content: '−'; }
.faq__item summary:hover { background: var(--cream); }
.faq__item p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--ink-soft);
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 0 40px;
  text-align: center;
}
.footer__inner { display: grid; gap: 18px; justify-items: center; }
.footer .brand__mark { background: var(--amber); }
.footer .brand__name { color: var(--cream); }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; }
.footer__tagline { color: #CBBFAE; margin: 0; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: var(--cream); font-weight: 500; }
.footer__links a:hover { color: var(--amber); text-decoration: underline; }
.footer__copy { color: #9C9184; font-size: .9rem; margin: 0; }
.footer__copy a { color: var(--amber); }

/* ===== Animaciones de scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .ps__grid, .pricing__layout { grid-template-columns: 1fr; }
  .benefits__grid, .audience__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .section { padding: 68px 0; }
  .hero { padding: 84px 0 68px; }
}
@media (max-width: 560px) {
  .benefits__grid, .audience__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .btn--lg { width: 100%; }
  .nav__inner { gap: 10px; }
  .nav .btn--sm { display: none; }
}