/* ============================================
   AI27 — Hoja de estilos principal
   Paleta: #070A0F (negro), #00FF41 (verde terminal),
           #1A2A4A (azul acero), #C8832A (ámbar), #F0F4F8 (blanco)
   ============================================ */

/* --- Reset básico --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Variables --- */
:root {
  --negro:   #070A0F;
  --verde:   #00FF41;
  --azul:    #1A2A4A;
  --ambar:   #C8832A;
  --blanco:  #F0F4F8;
  --gris:    #A8B4C0;
  --gris2:   #1E2530;
  --fuente-mono: 'Courier New', Courier, monospace;
  --fuente-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-w: 860px;
  --radius: 4px;
}

/* --- Base --- */
body {
  background: var(--negro);
  color: var(--blanco);
  font-family: var(--fuente-sans);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
}

/* --- Tipografía --- */
h1, h2, h3, h4 {
  font-family: var(--fuente-mono);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); color: var(--blanco); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--verde); margin-bottom: 1rem; }
h3 { font-size: 1.1rem; color: var(--gris); margin-bottom: .5rem; }
p  { margin-bottom: 1rem; color: var(--gris); }
strong { color: var(--blanco); }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--gris2); }

/* --- Navegación --- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 10, 15, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gris2);
  padding: .9rem 0;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--fuente-mono);
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--verde);
  letter-spacing: .1em;
}
.nav-logo span { color: var(--gris); font-size: .75rem; display: block; line-height: 1; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--fuente-mono);
  font-size: .8rem;
  color: var(--gris);
  letter-spacing: .05em;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--verde); }

/* --- Hero --- */
.hero {
  padding: 5rem 0 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .hero { grid-template-columns: 200px 1fr; align-items: start; }
}
.hero-cover {
  width: 100%; max-width: 200px;
  border: 2px solid var(--gris2);
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(0,255,65,.08);
}
.hero-tag {
  font-family: var(--fuente-mono);
  font-size: .75rem;
  color: var(--verde);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.hero h1 { margin-bottom: .5rem; }
.hero-sub {
  font-family: var(--fuente-mono);
  font-size: 1rem;
  color: var(--gris);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-bottom: 2rem;
}
.badge {
  font-family: var(--fuente-mono);
  font-size: .7rem;
  background: var(--gris2);
  color: var(--gris);
  padding: .25rem .65rem;
  border-radius: 2px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.badge.accent { background: rgba(0,255,65,.1); color: var(--verde); border: 1px solid rgba(0,255,65,.3); }

/* --- Botones CTA --- */
.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  font-family: var(--fuente-mono);
  font-size: .85rem;
  font-weight: bold;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .05em;
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-primary {
  background: var(--verde);
  color: var(--negro);
  border: 2px solid var(--verde);
}
.btn-primary:hover { background: transparent; color: var(--verde); }
.btn-secondary {
  background: transparent;
  color: var(--blanco);
  border: 2px solid var(--gris2);
}
.btn-secondary:hover { border-color: var(--gris); }

/* --- Terminal (fragmento del libro) --- */
.terminal {
  background: #0B0F14;
  border: 1px solid var(--gris2);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.terminal::before {
  content: '● ● ●';
  font-size: .6rem;
  color: var(--gris2);
  letter-spacing: .3em;
  display: block;
  margin-bottom: 1rem;
}
.terminal-line {
  font-family: var(--fuente-mono);
  font-size: .9rem;
  color: var(--verde);
  line-height: 1.8;
  white-space: pre-wrap;
}
.terminal-line.human { color: var(--blanco); }
.terminal-line.dim { color: var(--gris); }
.cursor::after {
  content: '█';
  animation: blink 1s step-end infinite;
  color: var(--verde);
}
@keyframes blink { 50% { opacity: 0; } }

/* --- Sinopsis --- */
.sinopsis p { font-size: 1.05rem; color: var(--gris); max-width: 65ch; }
.sinopsis p:last-child { margin-bottom: 0; }

/* --- Reseñas --- */
.reseñas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.reseña-card {
  background: var(--gris2);
  border-left: 3px solid var(--verde);
  padding: 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.reseña-card blockquote {
  font-style: italic;
  color: var(--blanco);
  font-size: .95rem;
  margin-bottom: .75rem;
}
.reseña-card cite {
  font-family: var(--fuente-mono);
  font-size: .75rem;
  color: var(--gris);
  not-style: normal;
}
.stars { color: var(--ambar); font-size: .85rem; margin-bottom: .5rem; }

/* --- Temas --- */
.temas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.tema-item {
  background: var(--gris2);
  padding: 1.25rem;
  border-radius: var(--radius);
  border-top: 2px solid var(--azul);
}
.tema-item h3 { color: var(--blanco); font-size: .9rem; }
.tema-item p { font-size: .85rem; margin-bottom: 0; }

/* --- Tráiler embed --- */
.video-wrapper {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--gris2);
  margin-top: 1.5rem;
}
.video-wrapper iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* --- Ficha técnica --- */
.ficha-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.ficha-table tr { border-bottom: 1px solid var(--gris2); }
.ficha-table td { padding: .6rem 0; font-size: .9rem; }
.ficha-table td:first-child {
  font-family: var(--fuente-mono);
  font-size: .75rem;
  color: var(--gris);
  width: 40%;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.ficha-table td:last-child { color: var(--blanco); }

/* --- Personajes / bio --- */
.bio-block { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.bio-block img { width: 140px; border-radius: var(--radius); flex-shrink: 0; }
.bio-text h2 { margin-bottom: .75rem; }

/* --- Serie --- */
.libros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.libro-card { text-align: center; }
.libro-card img { border: 2px solid var(--gris2); border-radius: var(--radius); margin-bottom: .75rem; }
.libro-card .libro-num {
  font-family: var(--fuente-mono);
  font-size: .7rem;
  color: var(--verde);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.libro-card h3 { font-size: 1rem; color: var(--blanco); }
.libro-card.proximamente img { opacity: .3; filter: grayscale(1); }
.libro-card.proximamente h3 { color: var(--gris); }

/* --- Formulario email --- */
.email-form {
  background: var(--gris2);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--azul);
  margin-top: 1.5rem;
  max-width: 480px;
}
.email-form p { font-size: .95rem; margin-bottom: 1rem; }
.form-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.form-row input[type="email"] {
  flex: 1;
  min-width: 200px;
  background: var(--negro);
  border: 1px solid var(--gris2);
  border-radius: var(--radius);
  color: var(--blanco);
  font-family: var(--fuente-mono);
  font-size: .85rem;
  padding: .65rem 1rem;
  outline: none;
  transition: border-color .2s;
}
.form-row input[type="email"]:focus { border-color: var(--verde); }
.form-row button {
  font-family: var(--fuente-mono);
  font-size: .8rem;
  font-weight: bold;
  background: var(--verde);
  color: var(--negro);
  border: none;
  border-radius: var(--radius);
  padding: .65rem 1.25rem;
  cursor: pointer;
  transition: opacity .2s;
  letter-spacing: .05em;
}
.form-row button:hover { opacity: .85; }
.form-note { font-size: .75rem; color: var(--gris); margin-top: .5rem; margin-bottom: 0; }

/* --- Descargables (prensa) --- */
.descargas-list { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.descargas-list li a {
  display: flex; align-items: center; gap: .75rem;
  background: var(--gris2);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  transition: background .2s;
}
.descargas-list li a:hover { background: #252d3a; }
.dl-icon { font-size: 1.2rem; }
.dl-info strong { display: block; font-size: .9rem; color: var(--blanco); }
.dl-info span { font-size: .75rem; color: var(--gris); font-family: var(--fuente-mono); }

/* --- Footer --- */
.site-footer {
  background: #050709;
  border-top: 1px solid var(--gris2);
  padding: 2.5rem 0;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: var(--fuente-mono);
  font-size: 1rem;
  color: var(--verde);
  font-weight: bold;
}
.footer-brand span { display: block; font-size: .75rem; color: var(--gris); font-weight: normal; }
.footer-links { display: flex; gap: 1.25rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: .8rem; color: var(--gris); transition: color .2s; }
.footer-links a:hover { color: var(--verde); }
.footer-copy { font-size: .75rem; color: var(--gris2); width: 100%; }

/* --- Utilidades --- */
.text-verde { color: var(--verde); }
.text-gris  { color: var(--gris); }
.text-ambar { color: var(--ambar); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mono { font-family: var(--fuente-mono); }

/* --- Prensa --- */
.press-release {
  border-left: 3px solid var(--verde);
  padding-left: 1.5rem;
  margin-top: 1.5rem;
}
.press-dateline {
  font-family: var(--fuente-mono);
  font-size: .85rem;
  color: var(--ambar);
  margin-bottom: 1rem;
}
.press-headline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--blanco);
  margin-bottom: 1rem;
}
.press-quote {
  border-left: 2px solid var(--ambar);
  margin: 1.5rem 0;
  padding: .75rem 1.25rem;
  background: var(--gris2);
  border-radius: var(--radius);
}
.press-quote p { color: var(--blanco); font-style: italic; margin-bottom: .25rem; }
.press-quote cite { font-size: .85rem; color: var(--ambar); }
.press-specs { list-style: none; padding: 0; margin: .75rem 0 1rem; }
.press-specs li { padding: .3rem 0; border-bottom: 1px solid var(--gris2); color: var(--gris); }
.press-specs li:last-child { border-bottom: none; }
.press-assets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.press-asset-card {
  background: var(--gris2);
  border: 1px solid var(--azul);
  border-radius: var(--radius);
  overflow: hidden;
}
.press-asset-preview { background: var(--azul); padding: 1rem; text-align: center; }
.press-asset-preview img { max-height: 200px; margin: 0 auto; object-fit: contain; }
.press-asset-info { padding: 1rem; }
.press-asset-info h4 { color: var(--blanco); margin-bottom: .5rem; }
.interview-questions { padding-left: 1.5rem; margin-top: 1rem; }
.interview-questions li { color: var(--gris); margin-bottom: .75rem; padding-left: .5rem; }
.contact-press { background: var(--gris2); border-radius: var(--radius); padding: 1.5rem; margin: 1rem 0; }
.contact-press p { margin-bottom: .5rem; }
.contact-press a { color: var(--verde); }
.press-note { font-size: .9rem; color: var(--gris); font-style: italic; }
.btn-sm { padding: .35rem .85rem; font-size: .85rem; }

/* --- Responsive --- */
@media (max-width: 600px) {
  .nav-links { gap: 1rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-cover { max-width: 160px; }
  section { padding: 2.5rem 0; }
  .bio-block { flex-direction: column; }
  .bio-block img { width: 100px; }
}