/* Behind the Mind — estilos compartidos */
:root {
  --bg: #F7F4EF;
  --ink: #15121A;
  --muted: #6B6570;
  --line: #E7E1D8;
  --card: #FFFFFF;
  --soft: #EFEAE2;
  --accent: #15121A;
  --accent-ink: #FFFFFF;
  --accent-soft: #ECE8E1;
  --radius: 22px;
  --max: 1120px;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  color-scheme: light;
}
.t-ebook { --accent: #FF5B3A; --accent-ink: #FFFFFF; --accent-soft: #FFE7E0; }
.t-edita { --accent: #6C4BFF; --accent-ink: #FFFFFF; --accent-soft: #EAE5FF; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
ul { list-style: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Navegación */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 239, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 999px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); background: var(--soft); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-links .btn { color: var(--accent-ink); }
.nav-links .btn:hover { color: var(--accent-ink); background: var(--accent); }
@media (max-width: 640px) { .nav-links .hide-m { display: none; } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--card); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* Tipografía */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
h1 { font-size: clamp(44px, 9vw, 88px); }
h2 { font-size: clamp(32px, 5.5vw, 54px); }
h3 { font-size: 21px; letter-spacing: -.015em; line-height: 1.2; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.accent { color: var(--accent); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 36ch; }
.muted { color: var(--muted); }

/* Secciones */
section { padding: 72px 0; scroll-margin-top: 64px; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.hero { padding-top: 44px; }
.hero-grid { display: grid; gap: 52px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } .hero { padding-top: 72px; } }
.hero h1 { margin: 18px 0 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { margin-top: 16px; }
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Tarjetas */
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.band .card { background: var(--bg); }
.card p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.icon {
  width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 20px; font-weight: 700; margin-bottom: 18px;
}

/* Tarjetas de producto (home) */
.product {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 340px; padding: 32px; border-radius: 28px; text-decoration: none; overflow: hidden;
  background: var(--accent); color: var(--accent-ink); transition: transform .2s ease;
}
.product:hover { transform: translateY(-4px); }
.product .tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.18); }
.product h3 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.035em; line-height: 1; margin-top: 18px; }
.product p { margin-top: 12px; font-size: 17px; opacity: .9; max-width: 30ch; }
.product .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.product .go span { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); display: grid; place-items: center; transition: transform .2s ease; }
.product:hover .go span { transform: translateX(4px); }
.product-soon { background: var(--card); color: var(--ink); border: 1px dashed var(--line); min-height: auto; }
.product-soon .tag { background: var(--soft); }
.product-soon p { color: var(--muted); opacity: 1; }

/* Pasos */
.steps { counter-reset: paso; }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--ink); }
.step .num { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--accent); }
.step h3 { margin-top: 14px; }
.step p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* Listas con check */
.checks li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 14px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.checks.no li::before { content: "✕"; background: var(--soft); color: var(--muted); }

/* Precio */
.price-wrap { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .price-wrap { grid-template-columns: 1fr 1fr; gap: 56px; } }
.price-card { background: var(--ink); color: #fff; border-radius: 28px; padding: 32px; }
.price-card .eyebrow { color: rgba(255,255,255,.6); }
.price-card .amount { font-size: clamp(52px, 8vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin: 14px 0 6px; }
.price-card .amount small { font-size: 20px; font-weight: 500; letter-spacing: 0; opacity: .6; }
.price-card .checks li { border-color: rgba(255,255,255,.12); }
.price-card .checks li::before { background: var(--accent); color: var(--accent-ink); }
.price-card .btn { margin-top: 24px; }
.price-card .note { font-size: 14px; opacity: .6; margin-top: 14px; text-align: center; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; font-size: 18px; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 64ch; }

/* CTA final */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 16ch; margin: 0 auto; }
.cta-final .lead { margin: 18px auto 0; }
.cta-final .actions { justify-content: center; }

/* Pie */
.footer { padding: 36px 0 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Chips flotantes de los mockups */
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(21,18,26,.10);
}
.chip i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; }

/* Mockup: libro */
.stage { position: relative; height: 420px; display: grid; place-items: center; }
.book {
  position: relative; width: 230px; height: 320px; border-radius: 6px 16px 16px 6px; transform: rotate(-6deg);
  background: linear-gradient(160deg, #FF7A5C 0%, var(--accent) 55%, #E0401F 100%);
  box-shadow: inset 10px 0 0 rgba(0,0,0,.10), 9px 9px 0 -1px #FFFFFF, 9px 9px 0 0 var(--line), 0 30px 60px rgba(224,64,31,.30);
  padding: 30px 26px 26px 34px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
}
.book .b-top { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.book .b-title { font-family: var(--serif); font-style: italic; font-size: 46px; line-height: .95; }
.book .b-bottom { font-size: 13px; opacity: .85; }
.stage .c1 { top: 40px; left: 0; }
.stage .c2 { top: 170px; right: 0; }
.stage .c3 { bottom: 36px; left: 18px; }
@media (max-width: 479px) { .stage .book ~ .c1 { top: 18px; } .stage .book ~ .c2 { top: auto; bottom: 100px; } .stage .book ~ .c3 { bottom: 24px; } }
@media (min-width: 480px) { .stage .c1 { left: 6%; } .stage .c2 { right: 4%; } .stage .c3 { left: 10%; } }

/* Mockup: teléfono */
.phone {
  position: relative; width: 220px; height: 400px; border-radius: 36px; background: #0E0B12; padding: 10px;
  box-shadow: 0 30px 60px rgba(108,75,255,.28);
}
.phone .screen {
  position: relative; height: 100%; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 20%, #3B2D7A 0%, #1A1430 60%, #0E0B12 100%);
}
.phone .person { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 140px; height: 220px; border-radius: 70px 70px 0 0; background: linear-gradient(180deg, #8C7BFF, #5A3FE0); opacity: .55; }
.phone .head { position: absolute; left: 50%; top: 86px; transform: translateX(-50%); width: 74px; height: 74px; border-radius: 50%; background: linear-gradient(180deg, #A898FF, #7A61FF); opacity: .7; }
.phone .sub { position: absolute; left: 0; right: 0; bottom: 92px; text-align: center; font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: #fff; text-transform: uppercase; line-height: 1.05; }
.phone .sub b { color: #FFE14D; }
.phone .timeline { position: absolute; left: 14px; right: 14px; bottom: 22px; height: 34px; display: flex; gap: 4px; }
.phone .timeline span { flex: 1; border-radius: 6px; background: rgba(255,255,255,.18); }
.phone .timeline span:nth-child(2) { flex: 2; background: var(--accent); }
.phone .timeline span:nth-child(4) { flex: 1.5; background: rgba(255,255,255,.32); }

/* Collage de la home */
.collage { position: relative; height: 420px; }
.collage .tile { position: absolute; border-radius: 26px; padding: 22px; color: #fff; box-shadow: 0 24px 50px rgba(21,18,26,.14); }
.collage .t1 { width: 62%; height: 260px; left: 0; top: 20px; background: #FF5B3A; transform: rotate(-4deg); }
.collage .t2 { width: 58%; height: 260px; right: 0; top: 130px; background: #6C4BFF; transform: rotate(5deg); }
.collage .tile small { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.collage .tile strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 44px; line-height: .95; margin-top: 10px; }
.collage .tile em { position: absolute; bottom: 22px; left: 22px; font-style: normal; font-size: 14px; opacity: .85; }
.collage .c4 { left: 8%; bottom: 0; }

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