/* ============================================================
   LA BUTACA · Sitio público — diseño original (oscuro + dorado)
   ============================================================ */
:root {
  --bg-dark: #121212; --bg-panel: #1e1e1e;
  --gold: #f3cf5a; --gold-hover: #ffdf73;
  --text-light: #f5f5f5; --text-muted: #aaaaaa;
  --red-accent: #e50914; --blue-accent: #0056b3; --neon-blue: #00e5ff;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-light); line-height: 1.6; overflow-x: hidden; }

/* ----- ENCABEZADO ----- */
header { background-color: rgba(18,18,18,.95); padding: 1rem 5%; position: fixed; width: 100%; top: 0; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; backdrop-filter: blur(5px); }
.logo-container { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { height: 40px; width: auto; border-radius: 4px; }
.logo-text { font-size: 1.8rem; font-weight: 900; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; }
.logo-text span { color: var(--text-light); }
nav ul { list-style: none; display: flex; gap: 25px; }
nav a { color: var(--text-light); text-decoration: none; font-size: 1rem; font-weight: 600; transition: color .3s; text-transform: uppercase; }
nav a:hover { color: var(--gold); }
/* Botón hamburguesa: oculto en escritorio, visible en móvil. */
.nav-toggle { display: none; background: none; border: 0; color: var(--gold); font-size: 1.7rem;
  cursor: pointer; padding: 2px 6px; line-height: 1; }
.nav-toggle:hover { color: var(--gold-hover); }

/* ----- ENCABEZADO RESPONSIVO (móvil) ----- */
@media (max-width: 760px) {
  header { padding: .75rem 5%; }
  .logo-img { height: 34px; }
  .logo-text { font-size: 1.4rem; letter-spacing: 1px; }
  .nav-toggle { display: block; }
  nav a { font-size: .85rem; }               /* enlaces sueltos (p. ej. "Volver a Cartelera") */
  /* Menú principal: se colapsa detrás del botón hamburguesa. */
  .site-nav { position: absolute; top: 100%; left: 0; width: 100%;
    background: rgba(18,18,18,.98); border-bottom: 1px solid #333; backdrop-filter: blur(6px);
    max-height: 0; overflow: hidden; transition: max-height .32s ease; }
  .site-nav.open { max-height: 70vh; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; font-size: 1.05rem; padding: 15px 8%; border-top: 1px solid #2a2a2a; }
  .site-nav a:hover { background: rgba(243,207,90,.08); color: var(--gold); }
}

/* ----- BANNER PRINCIPAL (hero, 100% ancho) ----- */
.hero { position: relative; width: 100%; margin-top: 70px; min-height: 76vh; display: flex; align-items: center;
  padding: 0 6%; border-bottom: 2px solid var(--gold); overflow: hidden; }
/* Fondo que llena todo el hero. */
.hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
/* Velo oscuro: da contraste al texto (izquierda) y se aclara hacia la derecha
   para dejar ver el reflejo difuminado detrás del póster. */
.hero-fade { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(18,18,18,1) 0%, rgba(18,18,18,.95) 30%, rgba(18,18,18,.58) 55%, rgba(18,18,18,.25) 78%, rgba(18,18,18,.08) 100%); }
.hero-content { position: relative; z-index: 3; max-width: 560px; }
.hero-tag { display: inline-block; background: var(--gold); color: #000; font-weight: 800; font-size: .8rem;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 16px; }
.hero h1 { font-size: 3.3rem; margin-bottom: 10px; color: var(--gold); line-height: 1.08; text-shadow: 0 3px 18px rgba(0,0,0,.6); }
.hero-meta { color: var(--text-light); font-weight: 600; letter-spacing: .5px; margin-bottom: 12px; opacity: .9; }
.hero p { margin-bottom: 20px; color: var(--text-muted); font-size: 1.05rem; }
.hero-content .btn { margin-bottom: 6px; }

/* Modo PÓSTER (imagen vertical): el fondo es el póster muy difuminado y oscurecido,
   y encima se muestra el póster COMPLETO (contain), nítido y centrado a la derecha. */
.hero--poster .hero-bg { filter: blur(26px) brightness(.62); transform: scale(1.2); }
.hero-poster { position: absolute; z-index: 2; top: 50%; right: 10%; transform: translateY(-50%);
  height: 82%; width: auto; max-width: 40%; object-fit: contain;
  border-radius: 10px; box-shadow: 0 18px 46px rgba(0,0,0,.55); }

/* Modo BANNER (imagen horizontal dedicada): se ve nítida y llena a lo ancho. */
.hero--banner .hero-bg { background-position: center; }

@media (max-width: 760px) {
  .hero { align-items: flex-end; padding: 0 7% 30px; min-height: 72vh; }
  .hero-fade { background: linear-gradient(to top, rgba(18,18,18,.98) 0%, rgba(18,18,18,.82) 42%, rgba(18,18,18,.2) 100%); }
  /* En móvil el póster llena el fondo (poca deformación) y se oculta la copia flotante. */
  .hero--poster .hero-bg { filter: brightness(.6); transform: none; }
  .hero-poster { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .hero-content { max-width: 100%; }
}
.btn { display: inline-block; padding: 10px 25px; background-color: var(--gold); color: #000; border: none; border-radius: 5px;
  cursor: pointer; font-weight: bold; text-transform: uppercase; text-decoration: none; transition: background .3s, transform .2s; font-size: .95rem; }
.btn:hover { background-color: var(--gold-hover); transform: scale(1.05); }
.btn-outline { background-color: transparent; border: 2px solid var(--gold); color: var(--gold); margin-left: 10px; }
.btn-outline:hover { background-color: var(--gold); color: #000; }

/* ----- SECCIONES ----- */
.container { width: 90%; max-width: 1400px; margin: auto; padding-bottom: 50px; }
.section-title { text-align: center; font-size: 2.2rem; margin: 60px 0 30px; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; }

/* ----- PROMOCIONES ----- */
.promo-banner { background: linear-gradient(135deg, rgba(229,9,20,.95) 0%, rgba(138,5,12,.95) 100%); border-radius: 15px; padding: 40px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; position: relative; overflow: hidden;
  box-shadow: 0 15px 30px rgba(229,9,20,.3); border: 1px solid rgba(255,255,255,.15); margin-bottom: 24px; }
.promo-banner::before { content: '\f145'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; font-size: 15rem;
  color: rgba(255,255,255,.05); right: -20px; top: -40px; transform: rotate(-15deg); pointer-events: none; }
.promo-content { flex: 1; min-width: 300px; text-align: left; z-index: 1; }
.promo-badge { display: inline-block; background: var(--gold); color: #000; padding: 6px 16px; border-radius: 20px; font-weight: 900;
  font-size: .85rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 2px; animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(243,207,90,.7);} 70%{box-shadow:0 0 0 15px rgba(243,207,90,0);} 100%{box-shadow:0 0 0 0 rgba(243,207,90,0);} }
.promo-content h3 { font-size: 2.8rem; color: #fff; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; text-shadow: 2px 2px 4px rgba(0,0,0,.3); line-height: 1.1; }
.promo-content p.promo-desc { font-size: 1.4rem; color: var(--gold-hover); font-weight: 600; margin-bottom: 10px; }
.promo-content p.promo-terms { font-size: .85rem; color: rgba(255,255,255,.7); font-style: italic; }
.promo-action { z-index: 1; }
.btn-promo { display: inline-block; background: #fff; color: var(--red-accent); padding: 15px 35px; font-size: 1.2rem; font-weight: 900;
  border-radius: 50px; text-decoration: none; text-transform: uppercase; box-shadow: 0 5px 15px rgba(0,0,0,.3); transition: all .3s ease; }
.btn-promo:hover { background: var(--gold); color: #000; transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 20px rgba(243,207,90,.4); }

/* ----- CARTELERA ----- */
.movies-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 25px; }
@media (max-width:1200px){ .movies-grid{grid-template-columns:repeat(4,1fr);} }
@media (max-width:900px){ .movies-grid{grid-template-columns:repeat(3,1fr);} }
@media (max-width:600px){ .movies-grid{grid-template-columns:repeat(2,1fr);} }
.card { background-color: var(--bg-panel); border-radius: 8px; overflow: hidden; transition: transform .3s; border: 1px solid #333;
  text-decoration: none; color: white; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-10px); border-color: var(--gold); box-shadow: 0 10px 20px rgba(212,175,55,.2); }
.card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.card-info { padding: 15px; text-align: left; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.badge { background: var(--red-accent); color: white; padding: 3px 8px; border-radius: 3px; font-size: .7rem; font-weight: bold;
  margin-bottom: 8px; display: inline-block; align-self: flex-start; }
.badge.gris { background: #555; }
.badge.oro { background: var(--gold); color: #000; }
.card-info h3 { font-size: 1.1rem; margin-bottom: 5px; text-transform: uppercase; }
.card-info p { font-size: .8rem; color: var(--text-muted); }

/* ----- DULCERÍA ----- */
.combos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.combo-card { background-color: var(--bg-panel); border-radius: 10px; border: 1px solid #1f293d; overflow: hidden; text-align: center;
  transition: transform .3s; display: flex; flex-direction: column; }
.combo-card:hover { transform: translateY(-5px); border-color: var(--neon-blue); box-shadow: 0 5px 15px rgba(0,229,255,.2); }
.combo-card img { width: 100%; height: 200px; object-fit: cover; border-bottom: 2px solid #1f293d; }
.combo-card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.combo-card-content h3 { font-size: 1.5rem; color: var(--gold); margin-bottom: 10px; text-transform: uppercase; }
.combo-card-content p { font-size: .95rem; color: var(--text-muted); margin-bottom: 15px; min-height: 45px; }
.combo-price { background: rgba(212,175,55,.1); color: var(--gold); font-size: 1.4rem; font-weight: bold; padding: 10px;
  border-radius: 5px; margin-bottom: 15px; border: 1px dashed var(--gold); }

/* ----- CONTACTO ----- */
.contact-section { display: flex; flex-wrap: wrap; gap: 30px; background-color: var(--bg-panel); padding: 40px; border-radius: 10px; border: 1px solid #333; }
.contact-info { flex: 1; min-width: 300px; }
.contact-info h3 { color: var(--gold); margin-bottom: 25px; font-size: 1.8rem; }
.contact-info p { margin-bottom: 20px; font-size: 1.1rem; display: flex; align-items: center; gap: 15px; }
.contact-info i { color: var(--gold); font-size: 1.4rem; width: 30px; text-align: center; }
.map-container { flex: 1; min-width: 300px; height: 350px; border-radius: 10px; overflow: hidden; border: 2px solid #333; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ----- FOOTER ----- */
footer { background-color: #111; padding: 50px 5% 20px; border-top: 2px solid #222; margin-top: 60px; }
.footer-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
@media (max-width:900px){ .footer-content{grid-template-columns:repeat(2,1fr);} }
@media (max-width:500px){ .footer-content{grid-template-columns:1fr;} }
.footer-col h4 { color: var(--gold); font-size: 1.2rem; margin-bottom: 20px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: color .3s; font-size: .95rem; }
.footer-col ul li a:hover { color: #fff; }
.call-center-box { background-color: #1a1a1a; border: 1px solid #333; border-radius: 10px; padding: 25px; text-align: center; }
.call-center-box h4 { color: var(--gold); margin-bottom: 10px; }
.call-center-box h2 { font-size: 2rem; color: #fff; letter-spacing: 2px; margin-bottom: 10px; }
.call-center-box p { color: var(--text-muted); font-size: .9rem; }
.social-container { margin-top: 20px; }
.social-container h4 { margin-bottom: 15px; }
.social-container a { display: inline-block; width: 40px; height: 40px; background-color: #333; color: #fff; text-align: center;
  line-height: 40px; border-radius: 5px; margin-right: 10px; font-size: 1.2rem; transition: background .3s; }
.social-container a.fa-facebook-f:hover { background-color: #1877f2; }
.social-container a.fa-instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-container a.fa-tiktok:hover { background-color: #ff0050; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #333; color: var(--text-muted); font-size: .85rem; }

/* ----- MODAL TRAILER ----- */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.9); z-index: 2000;
  justify-content: center; align-items: center; }
.modal-content { background: var(--bg-panel); padding: 20px; border-radius: 10px; width: 80%; max-width: 800px; position: relative; }
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 1.5rem; color: var(--text-light); cursor: pointer; }
.modal-content iframe { width: 100%; height: 400px; border: none; border-radius: 5px; }

/* ============================================================
   PÁGINA DE PELÍCULA (detalle + horarios + butacas)
   ============================================================ */
.pelicula-container { width: 90%; max-width: 1200px; margin: 100px auto 50px; }
.movie-header h1 { font-size: 2.5rem; color: var(--gold); margin-bottom: 5px; }
.movie-meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; }
.movie-tags span { background: #333; padding: 5px 15px; border-radius: 20px; font-size: .8rem; margin-right: 10px; }

.info-section { background: #fff; color: #000; padding: 20px; border-radius: 8px; margin-bottom: 30px; }
.info-section h3 { color: var(--blue-accent); border-bottom: 1px solid #ddd; padding-bottom: 10px; margin-bottom: 20px; }
.info-content { display: flex; gap: 20px; flex-wrap: wrap; }
.poster { width: 200px; border-radius: 5px; position: relative; overflow: hidden; }
.poster img { width: 100%; border-radius: 5px; }
.poster .ribbon { position: absolute; top: 15px; left: -35px; background: var(--blue-accent); color: white; padding: 5px 40px;
  transform: rotate(-45deg); font-size: .8rem; font-weight: bold; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.synopsis { flex: 1; min-width: 250px; font-size: .95rem; }
.trailer-box { flex: 1; min-width: 300px; }
.trailer-box iframe { width: 100%; height: 220px; border-radius: 5px; border: none; }

.schedule-section { background: var(--bg-panel); padding: 25px; border-radius: 8px; margin-bottom: 30px; border: 1px solid #333; }
.dates-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 15px; margin-bottom: 20px; border-bottom: 1px dashed #444; }
.date-btn { background: transparent; border: none; color: var(--text-light); text-align: center; cursor: pointer; padding: 10px 15px; border-radius: 8px; min-width: 70px; }
.date-btn.active { background: var(--gold); color: #000; font-weight: bold; }
.date-btn span { display: block; font-size: 1.5rem; }
.room-title { font-size: 1.2rem; margin-bottom: 15px; margin-top: 20px; color: var(--text-light); }
.times-row { display: flex; gap: 15px; flex-wrap: wrap; }
.time-btn { background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 8px 20px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: .3s; }
.time-btn:hover, .time-btn.active { background: var(--gold); color: #000; }
.time-btn:disabled { opacity: .3; cursor: not-allowed; }

.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width:800px){ .booking-grid{grid-template-columns:1fr;} }
.panel { background: var(--bg-panel); padding: 25px; border-radius: 8px; border: 1px solid #333; }
.panel h3 { color: var(--gold); margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.ticket-type { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed #333; }
.ticket-info h4 { font-size: 1rem; color: #fff; }
.ticket-info p { font-size: .8rem; color: var(--gold); }
.qty-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn { background: #333; color: white; border: none; width: 30px; height: 30px; border-radius: 5px; cursor: pointer; font-size: 1.2rem; }
.qty-input { width: 40px; text-align: center; background: transparent; border: none; color: white; font-size: 1.1rem; font-weight: bold; }

.screen { background: #555; height: 30px; width: 80%; margin: 30px auto 0; transform: perspective(200px) rotateX(5deg);
  box-shadow: 0 -10px 20px rgba(255,255,255,.1); color: #000; line-height: 30px; font-weight: bold; text-align: center; letter-spacing: 2px; font-size: .8rem; }
.seatmap-frame { display: flex; align-items: stretch; justify-content: center; gap: 10px; }
.sm-wall, .sm-entrance { display: flex; align-items: center; justify-content: center; border-radius: 6px; padding: 0 4px; flex: 0 0 auto; }
.sm-wall { background: #2b2b33; border: 1px solid #3a3a45; align-self: stretch; }
.sm-entrance { background: var(--gold); align-self: flex-end; height: 70px; }
.sm-wall span, .sm-entrance span { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: bold; }
.sm-wall span { color: #9aa0aa; letter-spacing: 3px; font-size: .68rem; }
.sm-entrance span { color: #000; letter-spacing: 1px; font-size: .58rem; }
.seats-container { display: flex; flex-direction: column-reverse; gap: 12px; align-items: center; }
.seats-container .row { display: flex; gap: 12px; align-items: center; }
.rlabel { width: 20px; text-align: center; color: var(--gold); font-weight: bold; font-size: .95rem; flex: 0 0 auto; }
.seat { width: 40px; height: 45px; background-color: #444; border-radius: 8px 8px 4px 4px; cursor: pointer; position: relative;
  display: flex; justify-content: center; align-items: center; font-size: .9rem; font-weight: bold; color: #cfd2d6; transition: .2s; }
.seat::after { content: ''; position: absolute; bottom: -4px; width: 80%; height: 8px; background-color: inherit; border-radius: 4px; }
.seat.selected { background-color: var(--gold); color: #000; }
.seat.occupied { background-color: var(--red-accent); cursor: not-allowed; }
.seat.gap { background: transparent; cursor: default; visibility: hidden; }
.seat:not(.occupied):not(.gap):hover { background-color: #666; }
.seats-note { text-align: center; margin-top: 15px; font-size: .9rem; }

.checkout-bar { background: var(--gold); color: #000; padding: 15px 20px; border-radius: 8px; display: flex;
  justify-content: space-between; align-items: center; margin-top: 20px; font-weight: bold; }
.btn-buy { background: #000; color: var(--gold); border: none; padding: 10px 20px; border-radius: 5px; font-weight: bold; cursor: pointer; text-transform: uppercase; }
.btn-buy:hover { background: #222; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.85);
  z-index: 2000; justify-content: center; align-items: center; }
.modal-form { background: var(--bg-panel); padding: 30px; border-radius: 10px; width: 90%; max-width: 400px; border: 1px solid var(--gold); }
.modal-form h3 { color: var(--gold); margin-bottom: 20px; text-align: center; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-size: .9rem; }
.form-group input { width: 100%; padding: 10px; border-radius: 5px; border: 1px solid #444; background: #222; color: white; }
.form-group input:focus { outline: none; border-color: var(--gold); }
.btn-submit { width: 100%; background: #25D366; color: white; border: none; padding: 12px; border-radius: 5px; font-weight: bold; cursor: pointer; font-size: 1rem; margin-top: 10px; }
.btn-submit:hover { background: #1ebe57; }
.btn-cancel { width: 100%; background: transparent; color: var(--text-muted); border: none; padding: 10px; cursor: pointer; margin-top: 5px; }

.simple-footer { text-align: center; padding: 30px 20px; background-color: #000; color: var(--text-muted); border-top: 1px solid #333; margin-top: 40px; }
.simple-footer .social-icons a { color: white; margin: 0 10px; font-size: 1.5rem; text-decoration: none; }
