:root{
  --bg:#050607;
  --text:#e9eef2;
  --line:rgba(255,255,255,.08);
  --line2:rgba(255,255,255,.14);
  --shadow:0 20px 60px rgba(0,0,0,.55);
  --r:22px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(170,140,70,.14), transparent 55%),
              radial-gradient(900px 500px at 80% 10%, rgba(255,255,255,.06), transparent 60%),
              var(--bg);
  color:var(--text);
}

/* ===== Topbar ===== */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{display:flex; flex-direction:column; gap:4px}
.brand-kicker{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(255,255,255,.72);
}
.brand-title{
  font-size:18px;
  font-weight:700;
}
.nav{
  display:flex;
  align-items:center;
  gap:10px;
}
.nav a{
  color:rgba(255,255,255,.84);
  text-decoration:none;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.03);
  transition:.2s ease;
  font-size:14px;
}
.nav a:hover{
  border-color: var(--line2);
  background: rgba(255,255,255,.06);
}

/* Links desactivados (pendientes) */
.nav a.nav-disabled{
  opacity:.70;
  cursor: default;
}
.nav a.nav-disabled:hover{
  border-color: var(--line);
  background: rgba(255,255,255,.03);
}

/* Burger */
.burger{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  cursor:pointer;
}
.burger span{
  display:block;
  height:2px;
  margin:6px 10px;
  background: rgba(255,255,255,.85);
  border-radius:2px;
}

/* ===== Banner (SIN RECORTE) ===== */
.banner{
  width:100%;
  border-bottom:1px solid var(--line);
  background: rgba(0,0,0,.35);
}
.banner-img{
  width:100%;
  height: 340px;
  display:block;
  object-fit: contain;
  object-position: center;
  background: rgba(0,0,0,.35);
}

/* ===== Layout ===== */
.container{
  max-width:1180px;
  margin:0 auto;
  padding: 22px 18px 60px;
}

.section{margin-top:34px}
.section-head h2{
  margin:0 0 6px;
  font-size:34px;
}
.section-head p{
  margin:0;
  color:rgba(255,255,255,.70);
}

/* ===== Section head row (Autor + contacto) ===== */
.section-head-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.author-contact-inline{
  color: rgba(255,255,255,.90);
  font-size:16px;
  line-height:1.35;
  border:1px solid rgba(170,140,70,.22);
  background: rgba(0,0,0,.22);
  padding:10px 14px;
  border-radius: 999px;
}
.author-contact-inline .mailto{
  color: rgba(170,140,70,.95);
  text-decoration:none;
  white-space:nowrap;
}
.author-contact-inline .mailto:hover{
  text-decoration: underline;
}
.ac-strong{
  font-weight:900;
  letter-spacing:.02em;
  color: rgba(170,140,70,.98);
}

/* ===== Cards ===== */
.card-soft{
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.pill{
  display:inline-block;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:rgba(255,255,255,.78);
  font-size:14px;
  margin-bottom:14px;
}
.lead{
  color: rgba(255,255,255,.78);
  font-size:18px;
  line-height:1.6;
  margin: 12px 0 18px;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:rgba(255,255,255,.9);
  text-decoration:none;
  font-weight:600;
  cursor:pointer;
  transition:.2s ease;
}
.btn:hover{background: rgba(255,255,255,.06); border-color: var(--line2);}
.btn.primary{
  border-color: rgba(170,140,70,.55);
  background: linear-gradient(180deg, rgba(170,140,70,.22), rgba(255,255,255,.02));
}
.btn.link{
  background: transparent;
  border-color: rgba(170,140,70,.35);
}
.ico{
  width:22px; height:22px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.2);
  font-weight:800;
}

/* Botones pendientes */
.btn.btn-disabled{
  opacity:.75;
  cursor: default;
}
.btn.btn-disabled:hover{
  background: rgba(255,255,255,.03);
  border-color: var(--line);
}

/* ===== HERO ===== */
.hero{
  display:grid;
  grid-template-columns: 1.25fr .95fr;
  gap:18px;
  margin-top: 10px;
}
.hero-left, .hero-right{padding:22px}
.hero-left h1{
  font-size:56px;
  line-height:1.05;
  margin: 6px 0 10px;
}
.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 12px 0 14px;
}

/* ===== Reseña imagen en Hero ===== */
.review-img-wrap{
  margin-top: 10px;
  border-radius: 18px;
  border:1px solid rgba(170,140,70,.18);
  background: rgba(0,0,0,.22);
  padding: 12px;
}
.review-img{
  width:100%;
  height:auto;
  display:block;
  border-radius: 14px;
  border:1px solid var(--line);
}

/* ===== PORTADA (NO RECORTE) ===== */
.cover{
  width:100%;
  height:auto;
  display:block;
  border-radius: 18px;
  border:1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  object-fit: contain;
  background: rgba(0,0,0,.18);
}

/* ===== SINOPSIS (8 líneas) ===== */
.synopsis{padding:20px}
.synopsis-text{
  color: rgba(255,255,255,.84);
  line-height:1.7;
  font-size:16px;
}
.synopsis-text ul{margin:10px 0 0 18px}
.synopsis-text li{margin:6px 0}
.synopsis-text[data-collapsed="true"]{
  display:-webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow:hidden;
}
.synopsis .btn.link{margin-top:12px}

/* ===== VIDEO ===== */
.video-card{padding:18px}
.video{
  width:100%;
  border-radius:18px;
  border:1px solid var(--line);
  background:#000;
}
.video-meta{margin-top:10px}
.video-title{font-weight:800; font-size:18px}
.video-sub{color:rgba(255,255,255,.65)}

/* ===== GALLERY ===== */
.gallery{
  margin-top:16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.g-item{
  margin:0;
  padding:12px;
  border-radius: var(--r);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.g-item img{
  width:100%;
  height:auto;
  display:block;
  border-radius: 16px;
  border:1px solid var(--line);
}
.g-item figcaption{
  margin-top:10px;
  color:rgba(255,255,255,.78);
  font-size:14px;
}

/* ===== AUTHOR (NO RECORTE) ===== */
.author{
  margin-top:16px;
  display:grid;
  grid-template-columns: .95fr 1.25fr;
  gap:16px;
}
.author-media{padding:16px}
.author-img{
  width:100%;
  height:auto;
  display:block;
  border-radius: 18px;
  border:1px solid var(--line);
  object-fit: contain;
  background: rgba(0,0,0,.18);
}
.author-text{padding:22px}
.author-text h3{
  margin:0 0 6px;
  font-size:28px;
}

/* ===== Prologue box ===== */
.prologue-box{
  margin-top:12px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(170,140,70,.25);
  background: rgba(0,0,0,.22);
}
.prologue-title{
  font-weight:900;
  margin-bottom:10px;
}
.prologue-text{
  color: rgba(255,255,255,.86);
  line-height:1.8;
  font-size:16px;
  min-height: 340px; /* MÁS espacio para prólogo largo */
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.prologue-placeholder{
  display:block;
  text-align:center;
  opacity:.8;
  padding-top: 22px;
}

/* ===== Footer ===== */
.footer{
  border-top:1px solid var(--line);
  background: rgba(0,0,0,.55);
}
.footer-inner{
  max-width:1180px;
  margin:0 auto;
  padding: 18px 18px;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.footer-title{font-weight:900}
.footer-sub{color:rgba(255,255,255,.65)}
.footer-links{display:flex; gap:10px; flex-wrap:wrap}
.linklike{
  background:transparent;
  border:0;
  color: rgba(255,255,255,.78);
  cursor:pointer;
  text-decoration: underline;
}
.footer-social{display:flex; gap:10px}
.social{
  width:40px; height:40px;
  display:grid;
  place-items:center;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.9);
  text-decoration:none;
}

/* ===== To top ===== */
.to-top{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.9);
  cursor:pointer;
  display:grid;
  place-items:center;

  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: .2s ease;
}
.to-top.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ===== Modal ===== */
.modal{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.72);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index: 80;
}
.modal[aria-hidden="false"]{display:flex}
.modal-card{
  width:min(760px, 96vw);
  border-radius: 22px;
  border:1px solid var(--line);
  background: rgba(10,12,14,.95);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}
.modal-title{font-weight:900}
.modal-close{
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.9);
  border-radius: 12px;
  padding:8px 10px;
  cursor:pointer;
}
.modal-body{padding:16px; color: rgba(255,255,255,.82); line-height:1.7}
.modal-body h3{margin: 0 0 10px}
.modal-body ul{margin: 10px 0 0 18px}
.modal-body li{margin: 6px 0}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .nav{display:none}
  .burger{display:block}
  .banner-img{height: 220px;}
  .hero{grid-template-columns: 1fr}
  .hero-left h1{font-size:44px}
  .gallery{grid-template-columns: repeat(2,1fr)}
  .author{grid-template-columns: 1fr}
  .author-contact-inline{width:100%}
  .prologue-text{min-height: 260px;}
}
@media (max-width: 560px){
  .banner-img{height: 180px;}
  .hero-left h1{font-size:36px}
  .gallery{grid-template-columns: 1fr}
  .prologue-text{min-height: 220px;}
}

/* Menú desplegable (móvil) */
.nav.is-open{
  display:flex !important;
  position:absolute;
  right: 18px;
  top: 70px;
  flex-direction:column;
  background: rgba(0,0,0,.88);
  border:1px solid var(--line);
  border-radius: 18px;
  padding:12px;
  min-width: 220px;
  gap:8px;
}