/* ============================================================
   L-Teanina — Landing v2 (imágenes) · l-teanina.anklastore.com
   Paleta y comportamientos tomados de la landing React vigente.
   ============================================================ */

:root {
  --cream: #FAF8F5;
  --cream-2: #F1EFEA;
  --banner-bg: #E0EDB8;
  --dark: #0D2214;
  --dark-2: #112D1D;
  --green: #35A854;
  --green-dark: #1E7A3C;
  --yellow: #FFC93C;
  --glass: rgba(138, 139, 134, 0.55);
  --text: #2E3A30;
  --stack-w: 620px;
  --header-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Banner superior ---------- */
.top-banner {
  position: relative;
  z-index: 90;
  background: var(--banner-bg);
  color: var(--dark-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
  padding: 7px 14px;
  line-height: 1.35;
}
@media (min-width: 480px) { .top-banner { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
@media (min-width: 768px) { .top-banner { font-size: 13.5px; } }

/* ---------- Header sticky (nombre + CTA) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cream);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  padding: 8px 16px;
}
.header-inner {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 4px;
  border-radius: 999px;
  color: var(--dark-2);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: color .3s ease, background .3s ease;
}
.brand-pill svg { width: 17px; height: 17px; flex-shrink: 0; }
.site-header.scrolled .brand-pill { color: #fff; }

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--dark-2);
  color: var(--cream);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(13, 34, 20, .18);
  transition: background .3s ease, color .3s ease, transform .15s ease, box-shadow .3s ease;
}
@media (min-width: 480px) {
  .brand-pill { font-size: 17px; }
  .cta-pill { padding: 9px 20px; font-size: 14px; }
}
.cta-pill:active { transform: scale(.97); }
.site-header.scrolled .cta-pill {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

/* ---------- Stack de imágenes ---------- */
.stack {
  max-width: var(--stack-w);
  margin: 0 auto;
  background: var(--cream);
}
.stack .sec {
  width: 100%;
  height: auto;
}
.stack section { width: 100%; }
#paquetes { scroll-margin-top: 72px; }

/* ---------- Bloques CTA entre secciones ---------- */
.cta-block {
  background: var(--cream);
  padding: 22px 20px 30px;
  text-align: center;
}
.cta-block.pricing-cta { padding-top: 26px; }
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease;
}
.btn span { font-size: 18px; line-height: 1; }
.btn-primary {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 10px 22px rgba(13, 34, 20, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(13, 34, 20, .34); }
.btn-primary:active { transform: scale(.98); }
.btn-outline {
  background: #fff;
  color: var(--dark);
  border-color: rgba(13, 34, 20, .18);
}
.btn-outline:hover { border-color: var(--green); }
.btn-cream { background: var(--yellow); color: var(--dark); }

.cta-note {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7568;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .72);
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  padding: 28px 20px 40px;
}
.site-footer a { color: #fff; }

/* ---------- Barra fija inferior (móvil) ---------- */
.sticky-buy {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: var(--dark-2);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .3s ease;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .22);
}
.sticky-buy.visible { transform: translateY(0); }
.sticky-buy-inner {
  max-width: var(--stack-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sticky-buy-price { display: flex; flex-direction: column; color: #fff; line-height: 1.25; }
.sticky-buy-price strong { font-size: 15px; }
.sticky-buy-price span { font-size: 11px; color: rgba(255, 255, 255, .6); }
.sticky-buy .btn {
  width: auto;
  padding: 12px 26px;
  background: var(--yellow);
  color: var(--dark);
  box-shadow: none;
  font-size: 15px;
}
@media (min-width: 900px) {
  .sticky-buy { display: none; }
}

/* ============================================================
   Checkout (checkout.html)
   ============================================================ */
.co-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}
.co-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dark);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 18px;
}
.co-back:hover { text-decoration: underline; }
.co-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (min-width: 900px) {
  .co-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
.co-card h1 { font-size: clamp(20px, 6vw, 24px); }
.co-card {
  background: #fff;
  border: 1px solid rgba(53, 168, 84, .14);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .04);
}
@media (min-width: 768px) { .co-card { padding: 32px; } }
.co-card h1 { color: var(--dark); letter-spacing: -.02em; margin-bottom: 6px; }
.co-lead { color: #7a8478; font-size: 14px; margin-bottom: 24px; }

.co-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--dark);
  font-size: 16px;
  margin: 22px 0 14px;
}
.co-step:first-of-type { margin-top: 0; }
.co-step i {
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-style: normal;
}
.co-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.co-fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .co-fields { grid-template-columns: minmax(0, 1fr); } .co-fields .full { grid-column: auto; } }

.co-input, .co-select, .co-textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 13px 14px;
  border: 1px solid #e2e2df;
  border-radius: 12px;
  background: #fafafa;
  font: inherit;
  font-size: 15px;
  color: var(--text);
}
.co-input:focus, .co-select:focus, .co-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(53, 168, 84, .15);
}
.co-select:disabled { opacity: .5; }
.co-textarea { resize: none; }

.co-pay {
  border: 2px solid var(--green);
  background: rgba(53, 168, 84, .06);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.co-pay strong { color: var(--dark); font-size: 15px; }
.co-pay p { font-size: 12.5px; color: #7a8478; margin-top: 3px; }

/* Resumen */
.co-summary {
  background: var(--dark);
  color: #fff;
  border-radius: 24px;
  padding: 24px;
  position: sticky;
  top: 16px;
}
.co-summary h2 {
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.co-summary h2 span {
  font-size: 11px;
  background: rgba(255, 255, 255, .12);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
}
.co-plans { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.co-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.co-plan:hover { background: rgba(255, 255, 255, .05); }
.co-plan.active { border-color: var(--yellow); background: rgba(255, 201, 60, .12); }
.co-plan .co-plan-name { font-weight: 700; font-size: 14px; }
.co-plan .co-plan-sub { font-size: 11px; color: var(--green); font-weight: 700; }
.co-plan .co-plan-price { font-weight: 700; }
.co-plan.active .co-plan-price { color: var(--yellow); }

.co-line { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: rgba(255, 255, 255, .75); }
.co-free { color: var(--green); font-weight: 700; text-transform: uppercase; font-size: 11px; border: 1px solid rgba(53,168,84,.4); padding: 2px 8px; border-radius: 6px; }
.co-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 22px;
  padding-top: 16px;
  margin: 8px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.co-total span:last-child { color: var(--yellow); }
.co-submit {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--dark);
  font: inherit;
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
  transition: transform .15s ease, opacity .2s ease;
}
.co-submit:hover { transform: translateY(-2px); }
.co-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.co-secure { text-align: center; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-top: 14px; font-weight: 700; }
.co-err { color: #ffd3d3; font-size: 13px; margin-top: 10px; text-align: center; min-height: 18px; }

/* ============================================================
   Gracias (gracias.html)
   ============================================================ */
.ty-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--green);
}
.ty-card {
  max-width: 520px;
  width: 100%;
  background: #fff;
  border-radius: 28px;
  border-top: 10px solid var(--yellow);
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
}
.ty-badge {
  width: 88px; height: 88px;
  border-radius: 999px;
  background: #EAF5EC;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 42px;
}
.ty-card h1 { font-size: clamp(26px, 8vw, 32px); color: var(--dark); letter-spacing: -.02em; margin-bottom: 12px; overflow-wrap: break-word; }
.ty-card p.lead { color: #6b7568; font-size: 16px; margin-bottom: 26px; }
.ty-info {
  background: var(--cream);
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}
.ty-info .row { display: flex; gap: 12px; align-items: center; }
.ty-info .row .ic {
  width: 40px; height: 40px; border-radius: 999px; background: #fff;
  border: 1px solid #eee; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.ty-info .row strong { color: var(--dark); font-size: 14px; display: block; }
.ty-info .row span { color: #6b7568; font-size: 13px; }
.ty-home {
  display: inline-block;
  width: 100%;
  padding: 15px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
