/* =====================================================
   SMILEKIT — LANDING DE PRODUCTO ÚNICO
   Paleta extraída del empaque: morado profundo + violeta vibrante
   Tipografía: Manrope (moderna, redondeada, muy usada en Shopify 2026)
   ===================================================== */

:root {
  /* ---- COLORES (editables) ---- */
  --color-bg:        #ffffff;
  --color-bg-soft:   #f6f3fb;   /* lavanda muy claro para bloques alternos */
  --color-ink:       #221344;   /* texto principal — morado casi negro */
  --color-ink-soft:  #6b6280;   /* texto secundario */
  --color-primary:   #3d1a7a;   /* morado profundo del empaque — marca */
  --color-accent:    #6c2bd9;   /* violeta vibrante — CTA / acentos */
  --color-accent-dark:#5621ad;
  --color-gold:      #f5b942;   /* dorado — solo para badges de descuento */
  --color-whatsapp:  #25d366;
  --color-whatsapp-dark:#1ebe5b;
  --color-border:    #e7e1f5;

  --font-display: "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;

  --max-width: 1180px;
  --radius: 24px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

.accent { color: var(--color-accent); }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- BOTONES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 32px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 10px 26px -10px rgba(108,43,217,.55);
}
.btn--primary:hover { background: var(--color-accent-dark); }

.btn--whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn--whatsapp:hover { background: var(--color-whatsapp-dark); }

.btn--full { width: 100%; }
.btn--center { display: flex; margin: 44px auto 0; width: fit-content; }
.icon-wa { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }

/* =====================================================
   ANNOUNCE BAR
   ===================================================== */
.announce {
  background: var(--color-primary);
  color: #ffffff;
  text-align: center;
  padding: 10px 16px;
  font-size: .82rem;
  font-weight: 600;
  overflow-x: auto;
  white-space: nowrap;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-primary);
}
.header__cart-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .15s ease, background .15s ease;
}
.header__cart-btn:hover { background: var(--color-accent-dark); transform: translateY(-1px); }
.icon-cart { width: 22px; height: 22px; fill: #ffffff; }

/* =====================================================
   HERO
   ===================================================== */
.hero { padding: 52px 24px 60px; text-align: center; }
.hero__inner { max-width: 640px; margin: 0 auto; }

.hero__eyebrow {
  display: inline-block;
  background: var(--color-bg-soft);
  color: var(--color-accent);
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero__subtitle {
  font-size: 1.05rem;
  color: var(--color-ink-soft);
  max-width: 480px;
  margin: 0 auto 32px;
}

.hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 24px 60px -24px rgba(61,26,122,.35);
}
.hero__media img { width: 100%; }

.hero__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero__price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-primary);
}
.hero__price-old {
  font-size: 1.1rem;
  color: var(--color-ink-soft);
  text-decoration: line-through;
}
.hero__badge {
  background: var(--color-gold);
  color: #4a3000;
  font-size: .75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 100px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero__trust {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-pill {
  background: var(--color-bg-soft);
  color: var(--color-ink-soft);
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
}

/* =====================================================
   DIAPOSITIVAS (8 SLIDES)
   ===================================================== */
.slides {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px 90px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.slide {
  position: relative;
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  padding: 28px 28px 36px;
  text-align: center;
}
.slide__counter {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--color-accent);
  background: #ffffff;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.slide__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 22px;
  aspect-ratio: 1/1;
}
.slide__media img,
.slide__media video { width: 100%; height: 100%; object-fit: cover; }

.slide__text h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
}
.slide__text p {
  color: var(--color-ink-soft);
  font-size: .98rem;
  max-width: 440px;
  margin: 0 auto;
}

@media (max-width: 560px) {
  .slide { padding: 22px 20px 30px; }
}

/* =====================================================
   CHECKOUT
   ===================================================== */
.checkout {
  background: var(--color-primary);
  padding: 70px 24px;
}
.checkout__inner { max-width: 540px; margin: 0 auto; }
.checkout__card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 36px;
}
.checkout__title { font-size: 1.7rem; font-weight: 800; margin-bottom: 10px; }
.checkout__subtitle { color: var(--color-ink-soft); font-size: .94rem; margin-bottom: 26px; }

.checkout__product {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 26px;
}
.checkout__product img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.checkout__product div { display: flex; flex-direction: column; gap: 4px; }
.checkout__product-price { color: var(--color-accent); font-weight: 700; font-size: .9rem; }

.checkout__form { display: flex; flex-direction: column; gap: 16px; }
.checkout__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--color-ink-soft);
}
.checkout__form input {
  font-size: 1rem;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  color: var(--color-ink);
}
.checkout__form input:focus { border-color: var(--color-accent); }

.qty-control {
  display: flex;
  align-items: center;
  width: fit-content;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-control button {
  background: var(--color-bg-soft);
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-ink);
}
.qty-control button:hover { background: var(--color-border); }
.qty-control input {
  width: 50px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--color-border);
  border-right: 1.5px solid var(--color-border);
  border-radius: 0;
  font-weight: 700;
}

.checkout__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1.5px dashed var(--color-border);
  font-weight: 700;
}
.checkout__total strong { font-size: 1.6rem; color: var(--color-primary); }
.checkout__note { text-align: center; font-size: .78rem; color: var(--color-ink-soft); }

/* =====================================================
   REVIEWS
   ===================================================== */
.reviews { padding: 70px 24px; text-align: center; }
.reviews__inner { max-width: var(--max-width); margin: 0 auto; }
.reviews__title { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.reviews__subtitle { color: var(--color-ink-soft); max-width: 500px; margin: 0 auto 36px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.reviews__card img { border-radius: var(--radius); width: 100%; }

@media (max-width: 760px) {
  .reviews__grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* =====================================================
   FOOTER: POLÍTICAS + DERECHOS DE AUTOR
   ===================================================== */
.footer {
  background: var(--color-bg-soft);
  padding: 64px 24px 32px;
}
.footer__inner { max-width: 760px; margin: 0 auto; }
.footer__brand { text-align: center; margin-bottom: 36px; }
.footer__logo { font-size: 1.3rem; font-weight: 800; color: var(--color-primary); }
.footer__brand p { color: var(--color-ink-soft); font-size: .9rem; margin-top: 6px; }

.footer__bottom { text-align: center; color: var(--color-ink-soft); font-size: .85rem; }
.footer__legal { margin-top: 8px; opacity: .9; line-height: 1.8; }
.footer__link {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--color-accent);
  font-size: inherit;
  font-family: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.footer__link:hover { color: var(--color-accent-dark); }
.footer__link:focus-visible {
  outline: none;
  text-decoration-thickness: 2px;
}

/* =====================================================
   MODAL DE POLÍTICAS
   ===================================================== */
.policies-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34,19,68,.55);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
}
.policies-overlay.active { opacity: 1; visibility: visible; }

.policies-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(.96);
  width: min(560px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease;
}
.policies-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.policies-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--color-border);
}
.policies-modal__header h2 { font-size: 1.2rem; font-weight: 800; }
.policies-modal__header button { font-size: 1.2rem; color: var(--color-ink-soft); }

.policies-content { padding: 22px 26px 30px; display: flex; flex-direction: column; gap: 14px; }
.policies-content h3 { font-size: 1.02rem; font-weight: 800; color: var(--color-primary); margin-top: 6px; }
.policies-content p { font-size: .92rem; color: var(--color-ink-soft); line-height: 1.6; }
.policies-content strong { color: var(--color-ink); }


/* =====================================================
   BOTÓN FLOTANTE WHATSAPP
   ===================================================== */
.float-wa {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.35);
  z-index: 60;
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.float-wa svg { width: 30px; height: 30px; fill: #fff; }
.float-wa:hover { background: var(--color-whatsapp-dark); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5), 0 8px 24px -6px rgba(0,0,0,.35); }
  50% { box-shadow: 0 0 0 10px rgba(37,211,102,0), 0 8px 24px -6px rgba(0,0,0,.35); }
}
