/* =========================
   RESET
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   VARIABLES
========================= */

:root {
  --bg: #070505;
  --panel: #121010;
  --panel-2: #1c1514;

  --ink: #f4ebe7;
  --muted: #aa9a94;

  --line: rgba(255, 255, 255, 0.11);

  --red: #c0392b;
  --red-soft: #ff7d73;
  --red-dark: #6f1d18;

  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);

  --radius: 14px;

  --container: 1180px;
}

/* =========================
   BASE
========================= */

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  background:
    radial-gradient(circle at 10% 0%, rgba(192, 57, 43, 0.22), transparent 30rem),
    radial-gradient(circle at 90% 25%, rgba(110, 29, 24, 0.25), transparent 28rem),
    linear-gradient(180deg, #100a09, var(--bg));

  color: var(--ink);

  font-family:
    'Montserrat',
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.7;
}

img,
iframe,
video,
audio {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   HEADER — COMPATIBLE CON AMBAS ESTRUCTURAS
   Peliculas.html: .site-header > .logo + .nav-links
   Casos.html:     .site-header > .nav > .logo-img + .nav-links
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 5, 5, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);

  /* Peliculas.html: hijos directos */
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 2rem;
  gap: 1.5rem;
}

/* .nav dentro del header (Casos.html) */
.site-header .nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo contenedor para Peliculas.html */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
}

/* Logo directo para Casos.html (.logo-img) */
.logo-img {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Imágenes de logo en ambas variantes */
.logo img,
.logo-img img {
  height: 150px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: 0.3s ease;
}

.logo img:hover,
.logo-img img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 10px rgba(255, 60, 60, 0.45));
}

/* =========================
   NAV LINKS — MEJORADO
========================= */

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: rgba(244, 235, 231, 0.68);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(192, 57, 43, 0.22);
  color: #fff;
}

/* =========================
   GENERAL
========================= */

.page {
  min-height: calc(100vh - 64px);
}

.section {
  padding: 4.5rem 0;
}

/* Banner de portada de sección — más grande y con fondo */
.section.compact {
  padding-top: 0;
  padding-bottom: 0;
}

.section.compact > .container {
  padding-top: 0;
  padding-bottom: 0;
}

/* Bloque de cabecera de sección (Casos.html) */
.section-head {
  max-width: 100%;
  background:
    linear-gradient(135deg, rgba(192, 57, 43, 0.18) 0%, transparent 55%),
    linear-gradient(0deg, var(--bg) 0%, rgba(16, 10, 9, 0.6) 100%);
  border-bottom: 1px solid rgba(192, 57, 43, 0.2);
  padding: 4.5rem 1.5rem 3.5rem;
  margin-bottom: 3rem;
}

.section-head .kicker {
  color: var(--red-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.section-head .kicker::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--red-soft);
  border-radius: 2px;
}

.section-head h1,
.section-head h2 {
  margin-top: 0.4rem;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 860px;
}

.section-head .lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.7;
}

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Cards de casos — más grandes y con hover más marcado */
.card-grid {
  padding-bottom: 4rem;
}

.story-card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.story-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 125, 115, 0.55);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 28px rgba(192,57,43,0.1);
}

.story-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(0.2) contrast(1.06) brightness(0.76);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.story-card:hover img {
  filter: grayscale(0) contrast(1.08) brightness(0.85);
  transform: scale(1.03);
}

.story-card div {
  padding: 1.2rem 1rem 1.4rem;
}

.story-card span {
  color: var(--red-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.35rem;
}

.story-card h2 {
  margin-top: 0;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.18;
}

.story-card p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* =========================
   BUTTONS
========================= */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.btn {
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  transition: 0.25s ease;
}

.btn.primary {
  background: var(--red);
  color: #fff;
}

.btn.primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 95vh;
  overflow: hidden;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.35) contrast(1.05) brightness(0.45);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.95), rgba(55,10,9,0.55), rgba(0,0,0,0.88)),
    linear-gradient(0deg, rgba(0,0,0,0.96), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 6rem 1.5rem;
}

.kicker {
  color: var(--red-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  max-width: 960px;
  margin-top: 0.8rem;
  color: #fff;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
}

.hero p,
.lead {
  max-width: 760px;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* =========================
   GRID CARDS
========================= */

.feature-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.feature-card,
.story-card,
.side-panel,
.fact-card,
.media-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 1.3rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.story-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 125, 115, 0.6);
}

.feature-card span {
  color: var(--red-soft);
  font-size: 2.1rem;
  font-weight: 800;
}

.feature-card h3 {
  margin-top: 0.8rem;
  color: #fff;
}

.feature-card p {
  margin-top: 0.55rem;
  color: var(--muted);
}

/* =========================
   STORY CARD
========================= */

.story-card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.story-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  filter: grayscale(0.2) contrast(1.06) brightness(0.76);
}

.story-card div {
  padding: 1rem;
}

.story-card span {
  color: var(--red-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-card h2 {
  margin-top: 0.35rem;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.18;
}

.story-card p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================
   DETAIL HERO
========================= */

.detail-hero {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: center;
}

.detail-hero img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  filter: grayscale(0.15) contrast(1.05) brightness(0.72);
}

.detail-hero h1 {
  margin-top: 0.8rem;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.92;
}

.detail-hero p:last-child {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* =========================
   ARTICLE
========================= */

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2rem;
  align-items: start;
}

.article {
  max-width: 820px;
}

.article h2 {
  margin-top: 2rem;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.article p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.03rem;
}

.notice {
  margin-top: 1.4rem;
  padding: 1rem;
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: rgba(192, 57, 43, 0.15);
  color: #ffd7d2;
}

/* =========================
   SIDE PANEL
========================= */

.side-panel {
  position: relative;
  padding: 1.2rem;
  height: fit-content;
}

.side-panel h2 {
  color: #fff;
  font-size: 1.2rem;
}

.side-panel ul {
  display: grid;
  gap: 0.8rem;
  list-style: none;
  margin-top: 1rem;
}

.side-panel li {
  color: var(--muted);
}

audio {
  width: 100%;
  margin-top: 1rem;
}

.video-box {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.video-box iframe {
  width: 100%;
  max-width: 900px;
  height: 500px;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-box {
  margin-top: 2rem;
}

.map-box iframe {
  width: 100%;
  height: 520px;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-banner {
  margin-top: 2rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
}

.info-banner h3 {
  color: #fff;
  font-size: 1.3rem;
}

.info-banner p {
  margin-top: 0.8rem;
  color: var(--muted);
}

/* =========================
   FOOTER
========================= */

.footer {
  margin-top: 4rem;
  padding: 1.6rem;
  text-align: center;
  background: #040303;
  border-top: 1px solid var(--line);
  color: rgba(244, 235, 231, 0.62);
  font-size: 0.88rem;
}

.nav-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.nav-footer a {
  color: #fff;
  font-weight: 700;
}

/* ==========================================================================
   SECCIÓN CINE / PELÍCULAS — MEJORADA VISUALMENTE
   ========================================================================== */

/* Contenedor principal — centrado */
.cine-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  color: #ffffff;
  text-align: center;
}

/* ── HERO SLIDE — FIX PRINCIPAL ──
   El HTML usa scroll-snap horizontal. Le damos altura fija,
   borde redondeado y ocultamos el scrollbar nativo. */
.hero-slide {
  width: 100%;
  height: 480px;
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;

  /* Ocultar scrollbar en todos los navegadores */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-slide::-webkit-scrollbar {
  display: none;
}

/* Cada slide ocupa exactamente el 100% del ancho */
.slide-item {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(0.7);
  transition: transform 6s ease;
}

/* Gradiente sobre cada slide — texto centrado */
.slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem 2rem 1.8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88) 60%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide-info h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.slide-info p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
  line-height: 1.55;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ── MENÚ DE ANCLAS — MEJORADO ── */
.anclas-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0 2.5rem;
  flex-wrap: wrap;
}

.anclas-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1.3rem;
  border: 1px solid rgba(192, 57, 43, 0.5);
  border-radius: 999px;
  background: rgba(192, 57, 43, 0.08);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.anclas-nav a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.35);
}

/* ── CATEGORÍAS — MEJORADAS ── */
.movie-category {
  margin-bottom: 4rem;
}

.movie-category h3 {
  margin-top: 0;
  margin-bottom: 1.75rem;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;

  /* Líneas decorativas a ambos lados */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.movie-category h3::before,
.movie-category h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(192, 57, 43, 0.45));
}

.movie-category h3::before {
  background: linear-gradient(to left, transparent, rgba(192, 57, 43, 0.45));
}

/* ── GRID DE PELÍCULAS — CENTRADO ── */
.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  justify-content: center;
}

.movies-grid .movie-card {
  width: 100%;
}

/* ── TARJETA DE PELÍCULA — MEJORADA ── */
.movie-card {
  background: linear-gradient(180deg, #161010, #0e0a0a);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(192, 57, 43, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 24px rgba(192, 57, 43, 0.12);
}

.movie-card h4 {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
  letter-spacing: 0.01em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── CONTENEDOR DEL PÓSTER — MEJORADO ── */
.poster-container {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: #1a1010;
}

.poster-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}

/* Capa hover */
.poster-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 1.5rem 1.2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.poster-hover p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Botón trailer */
.btn-trailer {
  display: inline-block;
  background: var(--red);
  color: #ffffff;
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.btn-trailer:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* Activación del hover */
.poster-container:hover img {
  transform: scale(1.06);
  filter: blur(3px) brightness(0.5);
}

.poster-container:hover .poster-hover {
  opacity: 1;
}

/* ── NEWSLETTER — MEJORADO ── */
.newsletter-section {
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.12) 0%, rgba(18, 12, 10, 0.95) 60%);
  border: 1px solid rgba(192, 57, 43, 0.25);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: var(--radius);
  margin: 3.5rem 0 2rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.newsletter-section h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.newsletter-section p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.subscribe-form {
  margin-top: 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.subscribe-form input {
  padding: 0.75rem 1.1rem;
  width: 300px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.subscribe-form input:focus {
  border-color: rgba(192, 57, 43, 0.6);
  background: rgba(255, 255, 255, 0.09);
}

.subscribe-form button {
  background: var(--red);
  color: white;
  border: none;
  padding: 0.75rem 1.6rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  transition: background 0.25s ease, transform 0.2s ease;
}

.subscribe-form button:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* ── BOTÓN VOLVER ARRIBA — MEJORADO ── */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(192, 57, 43, 0.45);
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.back-to-top:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.3);
}

/* Botones prev/next del slider */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.prev-btn { left: 16px; }
.next-btn { right: 16px; }

.prev-btn:hover,
.next-btn:hover {
  background: rgba(192, 57, 43, 0.85);
  border-color: transparent;
  transform: translateY(-50%) scale(1.05);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .site-header {
    padding: 0 1rem;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-height: auto;
    padding-block: 0.5rem;
  }

  /* Casos.html .nav también se adapta */
  .site-header .nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  /* Banner de sección más compacto en tablet */
  .section-head {
    padding: 3rem 1.2rem 2.5rem;
  }

  .feature-grid,
  .card-grid,
  .detail-hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero img {
    height: 360px;
  }

  .video-box iframe {
    height: 340px;
  }

  .map-box iframe {
    height: 360px;
  }

  .side-panel {
    position: relative;
    top: auto;
  }

  .hero-slide {
    height: 380px;
  }

  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero-content,
  .container,
  .detail-hero {
    padding-inline: 1rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .nav-footer {
    flex-direction: column;
  }

  .logo img {
    height: 34px;
  }

  .video-box iframe {
    height: 250px;
  }

  .map-box iframe {
    height: 280px;
  }

  .hero-slide {
    height: 300px;
    border-radius: 8px;
  }

  .slide-info h2 {
    font-size: 1.2rem;
  }

  .poster-container {
    height: 300px;
  }

  .subscribe-form {
    flex-direction: column;
    align-items: center;
  }

  .subscribe-form input {
    width: 100%;
  }

  .anclas-nav {
    gap: 0.5rem;
  }
}.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
}
 
/* 2. Grid de películas centrado */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}
 
/* 3. Logo a 100px en todas las páginas */
.logo img,
.logo-img img {
    height: 100px !important;
    width: auto;
    object-fit: contain;
    display: block;
}
 
/* 4. Botón volver a películas (páginas de detalle) */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(192, 57, 43, 0.55);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: inherit;
    cursor: pointer;
}
 
.back-btn:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
    transform: translateY(-1px);
}
 
/* 5. Logo centrado en páginas de detalle */
.detail-logo {
    display: block;
    margin: 0 auto 1rem;
    height: 70px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
}
 
/* 6. Footer consistente */
.footer {
    margin-top: 4rem;
    padding: 1.6rem;
    text-align: center;
    background: #040303;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: rgba(244, 235, 231, 0.62);
    font-size: 0.88rem;
}