/* ============================================================
   Mi Botiquín — landing site styles
   Brand teal #26D0BD (from the app), amber accent #FF9F0A.
   No build step: plain CSS with custom properties + light/dark.
   ============================================================ */

:root {
  --teal:        #26D0BD;
  --teal-strong: #1FB5A6;
  --teal-soft:   #E7FAF7;
  --amber:       #FF9F0A;

  --ink:    #0E1A1C;
  --body:   #44514F;
  --muted:  #6B7A77;
  --line:   #E3E9E8;
  --bg:     #FFFFFF;
  --bg-alt: #F6FAF9;
  --card:   #FFFFFF;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 12px 40px rgba(14, 26, 28, 0.10);
  --shadow-sm: 0 4px 16px rgba(14, 26, 28, 0.06);
  --maxw: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --ink:    #F2F7F6;
  --body:   #C2CECC;
  --muted:  #8A9794;
  --line:   #20302E;
  --bg:     #0C1413;
  --bg-alt: #0F1B19;
  --card:   #121E1C;
  --teal-soft: #10241F;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
a { color: inherit; text-decoration: none; }
p { color: var(--body); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 700; color: var(--teal-strong);
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700;
  font-size: 0.98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary { background: var(--teal); color: #04201C; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-strong); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-strong); }

/* App Store badge button */
.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg); padding: 11px 18px;
  border-radius: 14px; font-weight: 600; transition: transform .15s ease;
}
.appstore:hover { transform: translateY(-1px); }
.appstore small { display: block; font-size: 0.66rem; opacity: .8; font-weight: 500; }
.appstore strong { font-size: 1.15rem; font-weight: 700; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-weight: 600; color: var(--body); font-size: 0.95rem; }
.nav__links a:hover { color: var(--teal-strong); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; font-size: 1.05rem; color: var(--ink);
}
.nav__burger { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero__icon { width: 78px; height: 78px; border-radius: 20px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.hero h1 span { color: var(--teal-strong); }
.hero .lead { margin: 18px 0 26px; }
.hero__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero__proof { display: flex; gap: 26px; margin-top: 28px; }
.hero__proof div strong { display: block; font-size: 1.35rem; color: var(--ink); font-weight: 800; }
.hero__proof div span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Phone mockups ---------- */
.phones { display: flex; justify-content: center; gap: 18px; }
.phone {
  width: 230px; aspect-ratio: 9 / 19.5; border-radius: 38px;
  background: var(--card); border: 8px solid #15201E;
  box-shadow: var(--shadow); overflow: hidden; position: relative;
}
.phone:nth-child(2) { transform: translateY(26px) scale(.92); opacity: .96; }
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, var(--teal-soft), var(--bg-alt));
  color: var(--muted); font-size: 0.85rem; font-weight: 600; padding: 20px;
}

/* ---------- Trust row ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust__item { display: flex; gap: 12px; align-items: flex-start; }
.trust__item .ic { font-size: 1.5rem; }
.trust__item h3 { margin-bottom: 2px; }
.trust__item p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.feature:last-child { margin-bottom: 0; }
.feature--flip .feature__media { order: -1; }
.feature__text h2 { margin: 10px 0 14px; }
.feature__media { display: flex; justify-content: center; }
.phone--feature { width: 268px; }
.feature__bullets { margin: 16px 0 0; padding-left: 18px; }
.feature__bullets li { color: var(--body); margin-bottom: 6px; }

/* ---------- Small feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
}
.gcard .ic { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.gcard h3 { margin-bottom: 6px; font-size: 1.05rem; }
.gcard p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Developer ---------- */
.dev { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; max-width: 760px; margin: 0 auto; }
.dev__avatar { width: 120px; height: 120px; border-radius: 24px; object-fit: cover; background: var(--teal-soft); }

/* ---------- Download CTA ---------- */
.download { text-align: center; }
.download .qr {
  width: 150px; height: 150px; border-radius: 18px; margin: 22px auto 0;
  background: var(--card); border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--muted); font-size: 0.8rem;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 48px 0 36px; }
.footer__grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: var(--body); font-weight: 600; font-size: 0.92rem; }
.footer__links a:hover { color: var(--teal-strong); }
.footer__legal { margin-top: 26px; font-size: 0.82rem; color: var(--muted); max-width: 70ch; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 22px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--body); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--teal-strong); font-weight: 600; }
.callout {
  background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent);
  border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; font-size: 0.95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__grid, .feature, .feature--flip .feature__media { grid-template-columns: 1fr; }
  .feature__media { order: 0 !important; }
  .trust, .grid { grid-template-columns: 1fr; }
  .dev { grid-template-columns: 1fr; text-align: center; }
  .dev__avatar { margin: 0 auto; }
  .nav__links { display: none; }
  .phones { margin-top: 8px; }
}

/* ---------- Hero video ---------- */
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Premium tag (on feature eyebrows) ---------- */
.tag-premium {
  display: inline-block; margin-left: 8px; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.06em; color: #9A5B00; background: color-mix(in srgb, var(--amber) 22%, transparent);
  padding: 2px 9px; border-radius: 999px; vertical-align: middle; text-transform: none;
}
[data-theme="dark"] .tag-premium { color: var(--amber); }

/* ---------- Pricing page ---------- */
.pricing-hero { text-align: center; padding: 72px 0 8px; }
.pricing-hero .lead { margin: 14px auto 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; margin-top: 44px; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--teal); box-shadow: var(--shadow); position: relative; }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #04201C; font-weight: 800; font-size: 0.72rem;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.15rem; }
.plan__price { margin: 16px 0 2px; }
.plan__price strong { font-size: 2.3rem; color: var(--ink); font-weight: 800; }
.plan__price span { color: var(--muted); font-size: 0.95rem; }
.plan__note { color: var(--teal-strong); font-size: 0.88rem; font-weight: 600; min-height: 1.2em; margin-bottom: 4px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.plan li { padding: 8px 0 8px 26px; position: relative; font-size: 0.93rem; border-top: 1px solid var(--line); color: var(--body); }
.plan li:first-child { border-top: none; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-strong); font-weight: 800; }
.plan li.muted { color: var(--muted); }
.plan li.muted::before { content: "+"; color: var(--muted); }
.plan .btn { margin-top: auto; width: 100%; justify-content: center; }

.compare-wrap { overflow-x: auto; margin-top: 16px; }
.compare { width: 100%; border-collapse: collapse; min-width: 480px; }
.compare th, .compare td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.compare thead th { color: var(--ink); font-weight: 800; }
.compare td.c, .compare th.c { text-align: center; }
.compare .yes { color: var(--teal-strong); font-weight: 800; }
.compare .no { color: var(--muted); }

@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
