/* =========================================================
   CÓDIGO DIVINO — recreación fiel de codigodivino.site
   ========================================================= */

:root{
  --gold: #FFC300;
  --gold-soft: #E6C57A;
  --brown: #704F26;
  --parchment: #E8DEC1;
  --parchment-2: #E3D8B1;
  --dark: #1D1E20;
  --ink: #1a1a1a;
  --gray-text: #4a4a4a;
  --green: #07BA19;
  --green-hover: #1D1E20;
  --red: #CC0909;
  --green-price: #2AA81C;
  --white: #ffffff;
  --light-gray: #ECEFF3;

  --font-title: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', Arial, sans-serif;

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

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
.book-row > *, .garantia-grid > *, .bonus-grid > *, .profile-grid > *{ min-width:0; }
img{ max-width:100%; display:block; }
a{ color:inherit; }
.container{
  width:100%;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 24px;
}
section{ position:relative; }
.section{ padding:80px 0; }
@media (max-width:720px){ .section{ padding:52px 0; } }

.bg-parchment{ background:var(--parchment); }
.bg-parchment-2{ background:var(--parchment-2); }

h1,h2,h3,h4{
  font-family:var(--font-title);
  color:var(--ink);
  line-height:1.25;
  margin:0 0 18px;
  font-weight:600;
}
h1{ font-size:clamp(1.9rem, 4.2vw, 2.9rem); font-weight:700; }
h2{ font-size:clamp(1.6rem, 3.2vw, 2.2rem); }
h3{ font-size:clamp(1.15rem, 2.2vw, 1.4rem); }
p{ margin:0 0 16px; }
.lead{ font-size:1.08rem; color:var(--gray-text); }
.lead.on-dark{ color:rgba(255,255,255,0.88); }

.eyebrow{
  display:block;
  font-family:var(--font-body);
  font-weight:800;
  letter-spacing:.03em;
  font-size:1.4rem;
  color:var(--ink);
  margin-bottom:10px;
}
.eyebrow strong{ color:var(--gold); }
.gold-text{ color:#B8860B; }
.green-text{ color:var(--green-price); }

.section-head{
  max-width:780px;
  margin:0 auto 40px;
  text-align:center;
}
.center-title{ text-align:center; margin-bottom:28px; }

/* ---------- Botones ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:16px 30px;
  font-family:var(--font-body);
  font-weight:700;
  font-size:.98rem;
  letter-spacing:.02em;
  border-radius:999px;
  border:none;
  cursor:pointer;
  text-decoration:none;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space:normal;
  text-align:center;
  max-width:100%;
}
.btn-cta{
  background:var(--green);
  color:#fff;
  box-shadow:0 14px 30px rgba(7,186,25,0.32);
}
.btn-cta:hover{ background:var(--green-hover); transform:translateY(-2px); }
.btn-cta:active{ transform:translateY(0); }
.btn-lg{ padding:19px 40px; font-size:1.08rem; width:100%; max-width:420px; }
.cta-wrap{ text-align:center; margin-top:34px; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,0.94);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid rgba(0,0,0,0.06);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:12px; padding-bottom:12px;
}
.logo{
  font-family:var(--font-title);
  font-weight:700;
  font-size:1.15rem;
  color:var(--brown);
  letter-spacing:.02em;
  text-decoration:none;
}
.header-cta{ padding:10px 22px; font-size:.86rem; }
@media (max-width:480px){
  .logo{ font-size:.92rem; }
  .header-cta{ padding:9px 15px; font-size:.78rem; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  color:#fff;
  padding:100px 0 90px;
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  z-index:0;
}
.hero-scrim{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(20,15,5,0.55) 0%, rgba(20,15,5,0.35) 45%, rgba(20,15,5,0.65) 100%);
  z-index:1;
}
.hero-inner{
  position:relative; z-index:2;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:48px;
  align-items:center;
}
.hero-inner > *{ min-width:0; }
.brand-word{
  font-family:var(--font-title);
  color:var(--gold);
  font-weight:700;
  font-size:clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom:14px;
}
.hero h1{ color:#fff; }
.hero-visual{ display:flex; justify-content:center; }
.hero-visual img{ max-width:420px; width:100%; filter:drop-shadow(0 30px 45px rgba(0,0,0,0.5)); }
@media (max-width:900px){
  .hero-inner{ grid-template-columns:1fr; text-align:center; }
  .hero .cta-wrap, .hero .btn{ margin-left:auto; margin-right:auto; }
  .hero-visual img{ max-width:280px; }
}

/* ---------- Es para ti / check list ---------- */
.check-list{
  list-style:none; padding:0; margin:0 auto; max-width:760px;
  display:grid; gap:14px;
}
.check-list li{
  background:rgba(255,255,255,0.6);
  border-radius:var(--radius-sm);
  padding:16px 20px;
  font-weight:600;
  font-size:1.02rem;
  color:var(--ink);
}

/* ---------- Incluye: filas de libros ---------- */
.book-row{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:44px;
  align-items:center;
  padding:36px 0;
  border-bottom:1px solid rgba(0,0,0,0.08);
}
.book-row:last-child{ border-bottom:none; }
.book-row.reverse .book-media{ order:2; }
.book-row.reverse .book-copy{ order:1; }
@media (max-width:820px){
  .book-row, .book-row.reverse{ grid-template-columns:1fr; text-align:center; }
  .book-row.reverse .book-media, .book-row.reverse .book-copy{ order:initial; }
}
.book-media{ display:flex; justify-content:center; }
.book-media img{ width:100%; max-width:320px; border-radius:10px; box-shadow:0 24px 40px rgba(0,0,0,0.18); }
.book-label{
  display:inline-block;
  font-family:var(--font-title);
  font-weight:700;
  color:var(--brown);
  font-size:1.1rem;
  margin-bottom:10px;
}
.book-copy p{ font-size:1.02rem; color:var(--gray-text); }
.book-copy .btn{ margin-top:8px; }

/* ---------- Ventajas ---------- */
.advantages-list{
  display:grid; gap:14px; max-width:760px; margin:0 auto;
}
.advantage-item{
  background:var(--light-gray);
  border-radius:var(--radius-sm);
  padding:18px 22px;
  font-size:1.02rem;
  color:var(--ink);
}

/* ---------- ¿Quién puede usarlo? ---------- */
.profile-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
}
@media (max-width:980px){ .profile-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .profile-grid{ grid-template-columns:1fr; } }
.profile-card{
  background:#fff;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 12px 26px rgba(0,0,0,0.08);
  text-align:center;
  padding-bottom:20px;
}
.profile-card img{ width:100%; height:150px; object-fit:cover; }
.profile-card h3{ font-size:1.02rem; margin:16px 16px 6px; }
.profile-card p{ font-size:.92rem; color:var(--gray-text); margin:0 16px; }

/* ---------- Bonos ---------- */
#bonos .eyebrow{ text-align:center; font-size:1.6rem; color:var(--gold); text-shadow:0 1px 0 rgba(0,0,0,0.15); }
.bonus-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:26px;
  margin-top:20px;
}
@media (max-width:820px){ .bonus-grid{ grid-template-columns:1fr; } }
.bonus-card{
  background:var(--light-gray);
  border-radius:var(--radius);
  padding:26px;
  text-align:center;
}
.bonus-tag{
  display:inline-block; font-weight:700; font-size:.82rem;
  letter-spacing:.05em; text-transform:uppercase;
  color:var(--brown); margin-bottom:10px;
}
.bonus-card img{ width:100%; max-width:280px; margin:0 auto 16px; border-radius:8px; }
.bonus-card h3{ font-size:1.08rem; }
.bonus-card p{ font-size:.94rem; color:var(--gray-text); }
.price-tag{ font-weight:700; }
.price-tag s{ color:var(--red); }
.price-tag{ color:var(--green-price); }

.bonus-closing{ text-align:center; margin-top:56px; }
.bonus-closing h3{ font-family:var(--font-body); font-weight:700; }
.bonus-closing .free-note{ color:var(--green); font-weight:700; font-size:1.15rem; margin-bottom:26px; }

/* ---------- Problema ---------- */
#problema .section-head h2{ font-family:var(--font-title); }

/* ---------- Oferta / precio ---------- */
.offer-section{ background:var(--dark); color:#fff; text-align:center; }
.offer-title{ color:#fff; max-width:760px; margin:0 auto 8px; }
.offer-note{ color:rgba(255,255,255,0.7); margin-bottom:40px; }
.offer-subtitle{ color:#fff; max-width:640px; margin:0 auto 30px; }
.offer-checklist{
  list-style:none; padding:0; margin:0 auto 40px; max-width:520px;
  display:grid; gap:12px; text-align:left;
}
.offer-checklist li{ color:rgba(255,255,255,0.92); font-weight:500; }
.offer-scarcity{ margin-bottom:8px; }
.offer-scarcity p{ color:rgba(255,255,255,0.85); margin:2px 0; }
.offer-section .cta-wrap{ margin:30px auto 50px; }
.price-banner{ padding-top:20px; border-top:1px solid rgba(255,255,255,0.15); }
.price-banner h2{ color:#fff; font-family:var(--font-title); }
.price-old{ text-decoration:line-through; color:rgba(255,255,255,0.5); margin-bottom:0; }
.price-new{ font-family:var(--font-title); font-size:clamp(2.2rem,6vw,3rem); color:var(--green); font-weight:700; }

/* ---------- Garantía ---------- */
.garantia-grid{
  display:grid; grid-template-columns:.9fr 1.4fr; gap:36px; align-items:center;
}
.garantia-badge{ display:flex; justify-content:center; }
.garantia-badge img{ max-width:180px; }
@media (max-width:780px){
  .garantia-grid{ grid-template-columns:1fr; text-align:center; }
}
.garantia-text p{ color:var(--gray-text); }

/* ---------- FAQ ---------- */
.faq-list{ max-width:780px; margin:0 auto; }
.faq-item{ border-bottom:1px solid rgba(0,0,0,0.12); }
.faq-question{
  width:100%;
  background:none; border:none;
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  padding:20px 4px;
  text-align:left;
  font-family:var(--font-body);
  font-weight:700;
  font-size:1.02rem;
  color:var(--ink);
  cursor:pointer;
}
.faq-question .icon{
  flex:none;
  width:26px; height:26px;
  border-radius:50%;
  border:1.5px solid var(--brown);
  color:var(--brown);
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem;
  line-height:1;
  transition:transform .25s ease;
}
.faq-item.open .faq-question .icon{ transform:rotate(45deg); }
.faq-answer{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-answer p{ padding:0 4px 20px; color:var(--gray-text); margin:0; }

/* ---------- Footer ---------- */
.site-footer{
  background:var(--dark);
  color:rgba(255,255,255,0.7);
  padding:36px 0 100px;
  text-align:center;
  font-size:.88rem;
}
.footer-brand{ font-family:var(--font-title); color:var(--gold); font-size:1.1rem; margin-bottom:10px; }
.footer-legal{ max-width:640px; margin:0 auto; line-height:1.6; }
@media (max-width:640px){ .site-footer{ padding-bottom:120px; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta{
  position:fixed; left:0; right:0; bottom:0; z-index:80;
  background:#fff;
  border-top:1px solid rgba(0,0,0,0.1);
  box-shadow:0 -10px 24px rgba(0,0,0,0.12);
  padding:12px 16px;
  display:none;
  transform:translateY(100%);
  transition:transform .3s ease;
}
.sticky-cta.show{ transform:translateY(0); }
@media (max-width:900px){ .sticky-cta{ display:block; } }
.sticky-cta .btn{ width:100%; }
