/* Estética base de carlosmayol.com: negro, gris cálido, blanco 800 y naranja #e65616 */
:root {
  --bg: #1a1a1a;
  --bg-deep: #0b0b0b;
  --card: #222222;
  --card-2: #2a2a2a;
  --line: #333333;
  --text: #898989;
  --text-soft: #b5b5b5;
  --white: #ffffff;
  --accent: #e65616;
  --accent-hover: #ff6a26;
  --accent-soft: rgba(230, 86, 22, 0.14);
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Roboto Slab", Georgia, serif;
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 96px 0; }

/* Tipografía */
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h1, h2, h3, h4 { color: var(--white); line-height: 1.12; }
h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 22px; }
h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
p + p { margin-top: 16px; }
.lead { font-size: 19px; color: var(--text-soft); }
.muted { color: var(--text); }
strong { color: var(--white); font-weight: 600; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--white);
  font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; padding: 18px 34px; border-radius: 6px; border: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--white); }
.btn-ghost:hover { background: var(--card); border-color: var(--accent); }

/* Barra superior */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 5; padding: 22px 0; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; }
.brand { color: var(--white); font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--accent); }
.nav-link { color: var(--text-soft); text-decoration: none; font-size: 14px; }
.nav-link:hover { color: var(--accent); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 75% 40%, rgba(230, 86, 22, .18), transparent 60%), var(--bg-deep);
  padding: 150px 0 110px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero .subtitle { font-size: clamp(20px, 2.4vw, 26px); color: var(--text-soft); margin: 18px 0 30px; font-weight: 300; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .price-tag { color: var(--text-soft); font-size: 14px; }
.hero .price-tag b { color: var(--white); font-size: 20px; }
.cover {
  justify-self: center; width: min(380px, 100%);
  border-radius: 4px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .05), 0 0 120px rgba(230, 86, 22, .25);
  transform: perspective(1400px) rotateY(-12deg) rotateX(3deg);
  transition: transform .5s;
}
.cover:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); }
.socials { display: flex; gap: 12px; margin-top: 36px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: #2b2b2b; color: var(--white); transition: background .2s;
}
.socials a:hover { background: var(--accent); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* Cita destacada */
.quote-band { background: var(--bg); text-align: center; padding: 88px 0; border-top: 1px solid #222; }
.quote-band blockquote {
  font-family: var(--serif); color: var(--white);
  font-size: clamp(24px, 3.4vw, 36px); line-height: 1.35; max-width: 860px; margin: 0 auto; font-weight: 300;
}
.quote-band blockquote em { color: var(--accent); font-style: normal; }
.quote-band cite { display: block; margin-top: 20px; font-style: normal; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* Dos columnas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split.center { align-items: center; }

/* Tarjetas */
.panel { background: var(--card); border-radius: var(--radius); padding: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 30px;
  border: 1px solid transparent; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card .num { color: var(--accent); font-weight: 800; font-size: 14px; letter-spacing: .1em; margin-bottom: 14px; display: block; }
.card p { font-size: 15px; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* Lista con checks */
.checks { list-style: none; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e65616' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Testimonio */
.testimonial { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.testimonial .mark { font-family: var(--serif); font-size: 140px; line-height: .7; color: var(--accent); }
.testimonial p { color: var(--text-soft); font-size: 18px; }
.testimonial .who { margin-top: 24px; }
.testimonial .who b { color: var(--white); display: block; letter-spacing: .06em; }
.testimonial .who span { font-size: 14px; }

/* Autor */
.author-photo { border-radius: var(--radius); filter: grayscale(.25) contrast(1.05); width: 100%; max-width: 440px; }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.creds span { background: var(--card-2); color: var(--text-soft); font-size: 13px; padding: 6px 12px; border-radius: 30px; }
.stats { display: flex; gap: 36px; margin: 28px 0 8px; flex-wrap: wrap; }
.stats b { display: block; color: var(--white); font-size: 34px; font-weight: 800; line-height: 1; }
.stats span { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

/* Compra */
.buy { background: var(--bg-deep); text-align: center; }
.buy-box {
  max-width: 560px; margin: 0 auto; background: var(--card); border-radius: 14px; padding: 48px 40px;
  border: 1px solid #2f2f2f; box-shadow: 0 0 100px rgba(230, 86, 22, .12);
}
.buy-box img { width: 150px; margin: 0 auto 26px; border-radius: 3px; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
.buy-box .price { color: var(--white); font-size: 54px; font-weight: 800; line-height: 1; margin: 6px 0 4px; }
.buy-box .price small { font-size: 20px; color: var(--text); font-weight: 600; }
.buy-box .checks { text-align: left; margin: 28px 0 32px; }
.buy-box .btn { width: 100%; }
.secure { margin-top: 16px; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.secure svg { width: 14px; height: 14px; fill: var(--text); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary {
  color: var(--white); font-weight: 600; font-size: 17px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; }

/* Libro relacionado */
.related { display: grid; grid-template-columns: 140px 1fr auto; gap: 32px; align-items: center; }
.related img { border-radius: 3px; box-shadow: 0 16px 34px rgba(0, 0, 0, .55); }

/* Footer */
footer { background: var(--bg-deep); padding: 40px 0; font-size: 14px; border-top: 1px solid #1f1f1f; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }

/* Barra fija móvil */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: none;
  background: rgba(11, 11, 11, .96); backdrop-filter: blur(8px); border-top: 1px solid #2a2a2a;
  padding: 12px 16px; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(100%); transition: transform .3s;
}
.sticky-buy.show { transform: none; }
.sticky-buy .t { color: var(--white); font-weight: 700; font-size: 15px; line-height: 1.2; }
.sticky-buy .t small { display: block; color: var(--text); font-weight: 400; font-size: 12px; }
.sticky-buy .btn { padding: 12px 18px; font-size: 13px; }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cover, .btn, .card { transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .hero { padding: 120px 0 72px; }
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 44px; }
  .hero .cover { order: -1; width: min(260px, 70%); transform: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .testimonial { grid-template-columns: 1fr; gap: 10px; }
  .testimonial .mark { font-size: 100px; }
  .related { grid-template-columns: 100px 1fr; }
  .related .btn { grid-column: 1 / -1; }
  .sticky-buy { display: flex; }
  body { padding-bottom: 70px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .panel, .buy-box { padding: 32px 22px; }
  .btn { padding: 16px 24px; }
  .hero .cta-row .btn { width: 100%; }
}

/* Primera línea de la biografía */
.bio-first { color: var(--white); font-family: var(--serif); font-size: 24px; font-weight: 300; margin-bottom: 14px; }
.bio-first + p { margin-top: 0; }

/* Foto del autor recortada sobre resplandor */
.author-cutout {
  position: relative; max-width: 440px; width: 100%; justify-self: center;
  background: radial-gradient(closest-side at 50% 55%, rgba(230, 86, 22, .32), rgba(230, 86, 22, .08) 60%, transparent 100%);
}
.author-cutout img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

/* Foto en testimonio */
.testimonial .t-photo {
  width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: 35% 30%;
  border: 3px solid var(--accent); box-shadow: 0 0 40px rgba(230, 86, 22, .25);
}
@media (max-width: 900px) { .testimonial .t-photo { width: 120px; height: 120px; margin-bottom: 10px; } }
