:root {
  --bg: #0c0b10;
  --bg-alt: #131117;
  --card: #1a1720;
  --border: #2a2632;
  --text: #f2eef5;
  --text-muted: #b9b3c4;
  --red: #e2273a;
  --red-dark: #b81c2c;
  --blue: #3ad1ff;
  --purple: #7b5cff;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
main section { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
/* Blur lives on a pseudo-layer, not on .site-header itself, so backdrop-filter
   doesn't turn the header into a containing block for the fixed mobile nav. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 11, 16, 0.72);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}
.site-header.is-scrolled::before {
  background: rgba(12, 11, 16, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  height: 34px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.main-nav a { color: var(--text-muted); transition: color 0.2s ease; white-space: nowrap; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--text); }
.main-nav .nav-cta {
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
}
.main-nav .nav-cta:hover { background: var(--red-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding-top: 76px;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,13,0.55) 0%, rgba(10,9,13,0.35) 35%, rgba(10,9,13,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 4vh;
  padding-bottom: 6vh;
}
.eyebrow {
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.75em;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
}
.hero-lead {
  font-size: 1.05rem;
  color: #ded9e6;
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 1.5em;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-block { width: 100%; text-align: center; cursor: pointer; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.cartelera-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.cartelera-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.cartelera-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.cards-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.cards-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.kicker {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.6em;
}
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-lead { font-size: 1.05rem; max-width: 60ch; }

.section-head { max-width: 700px; margin-bottom: 2.5em; }
.section-head-center { max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-reverse .split-media { order: 2; }
.split-reverse .split-copy { order: 1; }
.split-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
}
.split-media-portrait img { aspect-ratio: 4 / 5; object-position: top center; }

.spec-list {
  list-style: none;
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 1.5em 0 0;
  flex-wrap: wrap;
}
.spec-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.spec-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
  display: grid;
  gap: 10px;
}
.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
}

.camarines-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}
.camarines-media img {
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
}
.camarines-copy p { font-size: 0.98rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}
.card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.5em;
}
.card a {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.92rem;
}
.card a:hover { color: var(--purple); }

/* Cartelera */
.cartelera-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.poster-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.poster-card:hover { transform: translateY(-4px); border-color: var(--red); }
.poster-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.poster-card-body { padding: 16px 18px 20px; }
.poster-card-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 4px;
}
.poster-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.cartelera-note {
  text-align: center;
  margin: 2.5em 0 0;
}
.cartelera-note a {
  color: var(--blue);
  font-weight: 600;
}
.cartelera-note a:hover { color: var(--purple); }

/* Contact */
.contact-section {
  position: relative;
  background-size: cover;
  background-position: center;
}
.contact-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 1.5em 0 0; display: grid; gap: 16px; }
.contact-list a { font-size: 1.05rem; font-weight: 600; color: #fff; }
.contact-list a:hover { color: var(--blue); }
.contact-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-form {
  background: rgba(19, 17, 23, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(6px);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.form-row .opt { font-weight: 400; color: #7d7686; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-row textarea { resize: vertical; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-alert-ok { background: rgba(58, 209, 255, 0.12); color: var(--blue); border: 1px solid rgba(58,209,255,0.3); }
.form-alert-error { background: rgba(226, 39, 58, 0.12); color: #ff8f9b; border: 1px solid rgba(226,39,58,0.35); }
.form-status { margin-top: 14px; font-size: 0.9rem; text-align: center; }
.form-status.ok { color: var(--blue); }
.form-status.error { color: #ff8f9b; }

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; gap: 20px; margin: 8px 0; }
.footer-links a { color: var(--text-muted); font-weight: 600; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { font-size: 0.82rem; color: #6f6879; margin: 0; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.6);
  z-index: 90;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Responsive */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 76px;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 22px;
    font-size: 1.1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav .nav-cta { margin-top: 8px; }
  .nav-toggle { display: flex; }

  .split, .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse .split-media, .split-reverse .split-copy { order: initial; }
  .camarines-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .cartelera-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
}

/* Cartelera becomes a horizontal, swipeable scroller on phones */
@media (max-width: 560px) {
  .cartelera-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    gap: 16px;
    margin: 0 -24px;
    padding: 4px 24px 12px;
    -webkit-overflow-scrolling: touch;
  }
  .cartelera-grid::-webkit-scrollbar { height: 6px; }
  .cartelera-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
  .poster-card {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
}
