/* ============================================================
   E-book Online de Ventas — guía de productos
   Hoja de estilos compartida (estilo editorial, limpio y confiable)
   ============================================================ */

:root {
  /* Paleta verano / catálogo de playa */
  --navy: #1a2744;
  --navy-2: #243352;
  --blue: #2a4a7a;
  --blue-dark: #1e3558;
  --cyan: #4d7ab8;
  --green: #2f9e7a;
  --green-dark: #247a5e;
  --gold: #f4b942;
  --yellow-2: #f0a11a;
  --yellow-light: #ffd98a;
  --coral: #ee6b8a;
  --sand: #f6efe6;
  --bg: #faf6f1;
  --cream: #fff4ec;
  --cream-2: #ffe8d6;
  --white: #ffffff;
  --text: #1f2937;
  --text-soft: #4b5563;
  --muted: #6b7280;
  --border: #eadfd3;
  --radius: 18px;
  --shadow-sm: 0 1px 3px rgba(26, 39, 68, .07);
  --shadow: 0 12px 34px rgba(26, 39, 68, .12);
  --shadow-lg: 0 28px 64px rgba(26, 39, 68, .20);
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #c8d4ef; font-size: 13px; text-align: center; padding: 9px 16px; letter-spacing: .2px; }
.topbar strong { color: var(--gold); }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 19px; }
.brand .logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--blue), var(--cyan)); display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 900; }
.header-cta { background: var(--green); color: #fff !important; padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none !important; transition: transform .15s ease, background .15s ease; }
.header-cta:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(900px 420px at 88% -8%, #ee6b8a44, transparent), linear-gradient(180deg, #1a2744, #2a3d5c); color: #fff; padding: 66px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; background: #ffffff1a; border: 1px solid #ffffff33; color: #e6eeff; padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.hero h1 { font-size: clamp(31px, 4.4vw, 51px); line-height: 1.08; font-weight: 800; letter-spacing: -.5px; margin-bottom: 18px; }
.hero h1 .hl { background: linear-gradient(90deg, var(--gold), var(--yellow-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: #c4d2ee; max-width: 540px; margin-bottom: 28px; }
.hero-list { list-style: none; margin: 0 0 30px; display: grid; gap: 12px; }
.hero-list li { display: flex; align-items: flex-start; gap: 10px; color: #e2eafa; font-size: 15.5px; }
.hero-list li .ck { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 2px; }
.trust-mini { display: flex; align-items: center; gap: 14px; margin-top: 6px; color: #9fb3da; font-size: 13px; flex-wrap: wrap; }
.trust-mini .stars { color: var(--gold); letter-spacing: 1px; }

/* Book mockup */
.book-wrap { display: flex; justify-content: center; }
.book { position: relative; width: 290px; aspect-ratio: 3 / 4; border-radius: 8px 16px 16px 8px; background: linear-gradient(135deg, var(--blue), var(--navy)); box-shadow: var(--shadow-lg); border-left: 9px solid #10122b; padding: 34px 28px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; transform: none; transition: transform .3s ease; }
.book:hover { transform: translateY(-4px); }
.book::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #ffffff22, transparent 18%); }
.book .kicker { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.book .btitle { font-size: 25px; line-height: 1.13; font-weight: 800; margin-top: 10px; }
.book .bfoot { font-size: 12px; color: #c4d2ee; }
.book .pages-tag { align-self: flex-start; background: var(--gold); color: #2a1c00; font-weight: 800; font-size: 12px; padding: 5px 11px; border-radius: 7px; }

.book.book-photo { padding: 0; overflow: hidden; background: #1a1d33; }
.book.book-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book.book-photo .book-overlay {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px 24px 26px;
  background: linear-gradient(180deg, transparent 28%, rgba(12, 14, 32, .88) 78%);
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 17px; padding: 16px 34px; border-radius: 999px; border: none; cursor: pointer; text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-buy { background: linear-gradient(180deg, #34c374, var(--green)); color: #fff; box-shadow: 0 12px 26px rgba(40, 175, 96, .42); }
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(20, 184, 89, .5); }
/* .pulse mantido como classe neutra para no romper el HTML; sin animación para un look más sobrio */
.btn-buy.pulse { animation: none; }
.btn-sub { display: block; text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ---------- Sections ---------- */
section { padding: 66px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 46px; }
.section-head .eyebrow { color: var(--blue); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 37px); color: var(--navy); margin: 10px 0 12px; letter-spacing: -.3px; }
.section-head p { color: var(--text-soft); font-size: 17px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: linear-gradient(135deg, var(--yellow-light), var(--yellow-2)); color: var(--navy); box-shadow: 0 6px 14px rgba(255, 193, 5, .35); }
.card .ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 15px; }

/* ---------- Cómo funciona (steps) ---------- */
.steps { background: var(--white); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 920px; margin: 0 auto; }
.step { text-align: center; padding: 8px; position: relative; }
.step .num { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-weight: 800; font-size: 22px; display: grid; place-items: center; box-shadow: 0 10px 22px rgba(47,107,255,.3); }
.step h3 { color: var(--navy); font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--text-soft); font-size: 15px; }

/* ---------- Aprenderás (learn) ---------- */
.learn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 36px; max-width: 880px; margin: 0 auto; }
.learn-item { display: flex; gap: 14px; align-items: flex-start; }
.learn-item .ck { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: #d8f6e4; color: var(--green-dark); display: grid; place-items: center; font-weight: 800; margin-top: 2px; }
.learn-item p { color: var(--text); font-size: 15.5px; }
.learn-item strong { color: var(--navy); }

/* ---------- Testimonios ---------- */
.testi { background: var(--white); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.testi-card .stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; margin-bottom: 12px; }
.testi-card p { color: var(--text); font-size: 15px; font-style: italic; margin-bottom: 18px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-person .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.testi-person .who strong { display: block; color: var(--navy); font-size: 15px; }
.testi-person .who span { color: var(--muted); font-size: 13px; }

/* ---------- Oferta ---------- */
.offer { background: linear-gradient(180deg, #eaf1ff, #f5f8ff); }
.price-card { max-width: 490px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; text-align: center; }
.price-card .pc-top { background: var(--navy); color: #fff; padding: 22px; }
.price-card .pc-top h3 { font-size: 20px; }
.price-card .pc-top span { color: #c4d2ee; font-size: 14px; }
.price-card .pc-body { padding: 32px 28px 36px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 17px; }
.price-now { font-size: 52px; font-weight: 800; color: var(--green-dark); line-height: 1; margin: 6px 0 2px; }
.price-now small { font-size: 22px; font-weight: 700; vertical-align: super; }
.price-cur { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.price-note { color: var(--text-soft); font-size: 14px; margin-bottom: 24px; }
.price-feats { list-style: none; text-align: left; max-width: 330px; margin: 0 auto 26px; display: grid; gap: 10px; }
.price-feats li { display: flex; gap: 10px; font-size: 15px; color: var(--text); }
.price-feats li::before { content: "✓"; color: var(--green); font-weight: 800; }
.secure-row { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 14px; }

/* Garantía */
.guarantee { max-width: 760px; margin: 40px auto 0; background: #fff; border: 1px dashed var(--green); border-radius: var(--radius); padding: 26px 28px; display: flex; gap: 20px; align-items: center; }
.guarantee .seal { flex: 0 0 86px; width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #1fd06b, #0f9648); color: #fff; display: grid; place-items: center; text-align: center; font-weight: 800; line-height: 1.1; font-size: 13px; box-shadow: 0 8px 20px rgba(20,184,89,.35); }
.guarantee h3 { color: var(--navy); margin-bottom: 6px; }
.guarantee p { color: var(--text-soft); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; color: var(--blue); font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--text-soft); font-size: 15px; }

/* ---------- CTA final ---------- */
.final-cta { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #fff; text-align: center; }
.final-cta h2 { font-size: clamp(26px, 3.6vw, 39px); margin-bottom: 14px; }
.final-cta p { color: #c4d2ee; font-size: 18px; max-width: 560px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1430; color: #9db0d6; padding: 54px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.footer-brand .logo { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--cyan)); display: grid; place-items: center; color: #fff; font-weight: 900; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: #9db0d6; }
.site-footer a:hover { color: #fff; }
.company-data { line-height: 1.75; }
.company-data .lbl { color: #6c80a8; }
.footer-bottom { border-top: 1px solid #1b2a4f; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #6c80a8; font-size: 13px; }
.footer-bottom .pay { display: flex; gap: 8px; align-items: center; }
.footer-bottom .pay span { background: #14234a; border: 1px solid #1b2a4f; border-radius: 6px; padding: 4px 9px; font-size: 11px; color: #b6c4e2; font-weight: 600; }
.disclaimer { font-size: 12px; color: #5e7099; max-width: 900px; margin: 18px auto 0; text-align: center; line-height: 1.6; }

/* ---------- Páginas legales ---------- */
.legal { background: var(--white); min-height: 60vh; padding: 56px 0 72px; }
.legal-card { max-width: 820px; margin: 0 auto; background: #fff; }
.legal h1 { color: var(--navy); font-size: 33px; margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.legal h2 { color: var(--navy); font-size: 20px; margin: 30px 0 10px; }
.legal p, .legal li { color: var(--text-soft); font-size: 15.5px; margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 12px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); font-weight: 600; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--blue); }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 26px 0; }
.contact-box { border: 1px solid var(--border); border-radius: 12px; padding: 22px; background: var(--bg); }
.contact-box .ico { margin-bottom: 10px; color: var(--blue); }
.contact-box .ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar svg, .secure-row svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
.contact-box h3 { color: var(--navy); font-size: 16px; margin-bottom: 6px; }
.contact-box p { font-size: 15px; color: var(--text); margin: 0; }
.note-box { background: #fff8e8; border: 1px solid #ffe2a1; border-radius: 12px; padding: 16px 18px; color: #8a6206; font-size: 14px; margin: 22px 0; }

/* ---------- Animaciones de entrada al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---------- Quiz interactivo (estilo 1º sitio) ---------- */
.catalog { background: var(--white); }
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcat { background: var(--sand); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.pcat img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #fff; }
.pcat .pcat-body { padding: 14px 14px 16px; }
.pcat h3 { font-size: 15px; color: var(--navy); margin: 0 0 4px; }
.pcat p { font-size: 13px; color: var(--text-soft); margin: 0; line-height: 1.45; }
.pcat .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--coral); margin-bottom: 6px; }

.quiz { background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.quiz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 860px; margin: 0 auto; }
.quiz-option {
  display: flex; align-items: center; gap: 16px; width: 100%;
  background: var(--white); border: 2px solid var(--border); border-radius: 16px;
  padding: 18px 20px; cursor: pointer; text-align: left; font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease, background .2s ease;
}
.quiz-option:hover { border-color: var(--yellow-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.quiz-option.selected { border-color: var(--gold); background: #fffdf2; box-shadow: 0 0 0 3px rgba(255, 221, 0, .4), var(--shadow); }
.quiz-option .q-ico {
  flex: 0 0 50px; width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(135deg, var(--yellow-light), var(--yellow-2));
  color: var(--navy); display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(255, 193, 5, .4); transition: transform .2s ease;
}
.quiz-option:hover .q-ico { transform: scale(1.06) rotate(-3deg); }
.quiz-option .q-ico svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.quiz-option .q-label { font-weight: 700; color: var(--navy); font-size: 16px; }
.quiz-option .q-check {
  margin-left: auto; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--navy); display: grid; place-items: center;
  font-weight: 800; font-size: 13px; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .2s ease;
}
.quiz-option.selected .q-check { opacity: 1; transform: scale(1); }
.quiz-result { max-width: 640px; margin: 28px auto 0; text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 26px 28px; box-shadow: var(--shadow); }
.quiz-result[hidden] { display: none; }
.quiz-result.show { animation: qrUp .5s ease; }
@keyframes qrUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.quiz-result .qr-text { color: var(--text); font-size: 16px; margin-bottom: 18px; }
.quiz-result .qr-text strong { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .quiz-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-list { justify-items: start; max-width: 420px; margin-inline: auto; }
  .badge-pill, .trust-mini { margin-inline: auto; justify-content: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .learn-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
  .guarantee { flex-direction: column; text-align: center; }
  .header-cta { display: none; }
}
