/* ═══════════════════════════════════════════════
   LA CASITA — TELENOVELA EDITION
   Old Mexican TV · Dramatic · Cinematic · Rich
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --gold:       #C9A84C;
  --gold-light: #E8CC7A;
  --gold-dark:  #8B6914;
  --red:        #8B1A1A;
  --red-bright: #B22222;
  --cream:      #F2E8D0;
  --cream-dark: #D4C4A0;
  --brown:      #2A0F08;
  --brown-mid:  #5C2810;
  --dark:       #0A0402;
  --text-muted: #8A7050;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-drama: 'DM Serif Display', Georgia, serif;
  --font-body:  'Libre Baskerville', Georgia, serif;
  --font-ui:    'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }

/* ═══════════════════════════════════════════════
   BACKGROUND LAYERS
═══════════════════════════════════════════════ */

/* LAYER 1 — particle canvas (gold embers) */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* LAYER 2 — slow shifting gradient light */
.bg-gradient-shift {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(139,26,26,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(201,168,76,0.07) 0%, transparent 70%);
  animation: gradientDrift 18s ease-in-out infinite alternate;
}

@keyframes gradientDrift {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  33%  { transform: translate(3%, 2%) scale(1.04); opacity: 1; }
  66%  { transform: translate(-2%, 4%) scale(0.97); opacity: 0.8; }
  100% { transform: translate(4%, -2%) scale(1.02); opacity: 0.9; }
}

/* LAYER 3 — animated film grain / noise */
.bg-noise {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: grainShift 0.15s steps(1) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-3%, -4%); }
  20%  { transform: translate(4%, 2%); }
  30%  { transform: translate(-2%, 5%); }
  40%  { transform: translate(5%, -1%); }
  50%  { transform: translate(-4%, 3%); }
  60%  { transform: translate(3%, -5%); }
  70%  { transform: translate(-5%, 2%); }
  80%  { transform: translate(2%, 4%); }
  90%  { transform: translate(-3%, -2%); }
  100% { transform: translate(4%, -3%); }
}

/* ensure all page content sits above background */
nav, section, footer, .ticker-wrap {
  position: relative;
  z-index: 1;
}

body {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════════
   ORNAMENTAL DIVIDER
═══════════════════════════════════════════════ */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 48px;
  max-width: 400px;
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.ornament::after {
  background: linear-gradient(to left, transparent, var(--gold));
}

.ornament span {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 6px;
}

/* ═══════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
.nav {
  position: fixed !important;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: linear-gradient(to bottom, rgba(10,4,2,0.95), transparent);
  transition: background 0.4s;
}

.nav.scrolled {
  background: rgba(10,4,2,0.97);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.15));
}

.nav-powered {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  opacity: 0.7;
  border-left: 1px solid rgba(201,168,76,0.3);
  padding-left: 12px;
  line-height: 1.4;
}

.nav-powered strong {
  color: var(--gold);
  font-weight: 500;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--cream-dark);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover { opacity: 1; color: var(--gold); }

.nav-cta {
  background: transparent !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 8px 22px !important;
  opacity: 1 !important;
  font-weight: 400 !important;
  letter-spacing: 0.14em !important;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--dark) !important;
}

.nav-burger {
  display: none;
  background: none;
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--cream);
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: rgba(10,4,2,0.98);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  flex-direction: column;
  z-index: 99;
  padding: 16px 0;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--cream-dark);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 48px;
  border-bottom: 1px solid rgba(201,168,76,0.06);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  max-width: 100%;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10,4,2,1) 0%, rgba(10,4,2,0.2) 40%, rgba(10,4,2,0.1) 70%, rgba(10,4,2,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.sound-btn {
  position: absolute;
  bottom: 36px;
  right: 44px;
  z-index: 3;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.25);
  color: rgba(201,168,76,0.6);
  width: 36px;
  height: 36px;
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  font-family: var(--font-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sound-btn:hover {
  border-color: rgba(201,168,76,0.7);
  color: var(--gold);
}

/* ═══════════════════════════════════════════════
   TICKER
═══════════════════════════════════════════════ */
.ticker-wrap {
  background: var(--red);
  border-top: 1px solid rgba(201,168,76,0.3);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  overflow: hidden;
  padding: 9px 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 56px;
  animation: ticker 30s linear infinite;
}

.ticker-track span {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--cream);
  text-transform: uppercase;
}

.ticker-dot {
  color: var(--gold) !important;
  letter-spacing: 0 !important;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════
   SECTION SHARED
═══════════════════════════════════════════════ */
section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

.section-header h2 {
  font-family: var(--font-drama);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  line-height: 1.1;
}

.section-sub {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════
   TALENT — CINEMATIC CAST STRIPS
═══════════════════════════════════════════════ */

.talent {
  max-width: 100%;
  padding: 0;
}

.talent-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px 80px;
  text-align: center;
}

/* ── CAST STRIP ── */
.cast-strip {
  display: flex;
  align-items: stretch;
  min-height: 600px;
  border-top: 1px solid rgba(201,168,76,0.08);
  overflow: hidden;
  position: relative;
}

.cast-strip--reverse {
  flex-direction: row-reverse;
}

/* ── POSTER SIDE ── */
.cast-poster {
  flex: 0 0 38%;
  position: relative;
  overflow: hidden;
}

.cast-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.7s ease;
  filter: sepia(0.1) contrast(1.05);
}

.cast-strip:hover .cast-poster img {
  transform: scale(1.03);
}

/* ── INFO SIDE ── */
.cast-info {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 72px;
  background: linear-gradient(135deg, rgba(42,15,8,0.5) 0%, rgba(10,4,2,0.95) 60%);
  overflow: hidden;
}

.cast-strip--reverse .cast-info {
  background: linear-gradient(225deg, rgba(42,15,8,0.5) 0%, rgba(10,4,2,0.95) 60%);
}

/* big ghost name watermark */
.cast-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-drama);
  font-size: clamp(80px, 12vw, 160px);
  font-style: italic;
  color: rgba(201,168,76,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -2px;
  line-height: 1;
}

.cast-label {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cast-name {
  font-family: var(--font-drama);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
  font-style: normal;
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cast-name em {
  font-style: italic;
  color: var(--gold-light);
  display: block;
}

.cast-bio {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.85;
  color: rgba(242,232,208,0.6);
  max-width: 480px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.cast-socials {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cast-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.cast-social-link:hover {
  opacity: 1;
}

.cast-social-link img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.cast-social-link span {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

/* live badge */
.talent-live-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--red-bright);
  color: white;
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 5px 10px;
  display: none;
  z-index: 6;
  animation: livePulse 2s ease-in-out infinite;
}

.talent-live-badge.active { display: block; }

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ═══════════════════════════════════════════════
   STREAMS
═══════════════════════════════════════════════ */
.streams {
  max-width: 100%;
  padding: 100px 48px;
  background: linear-gradient(180deg, rgba(42,15,8,0.25) 0%, rgba(10,4,2,0) 100%);
  border-top: 1px solid rgba(201,168,76,0.08);
  border-bottom: 1px solid rgba(201,168,76,0.08);
}

.streams-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.streams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stream-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px;
  border: 1px solid rgba(201,168,76,0.12);
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.stream-card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-4px); }
.stream-card:hover .stream-arrow { transform: translateX(4px); }

.stream-platform {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.twitch-card .stream-platform  { color: #9146FF; }
.ig-card .stream-platform      { color: #e06030; }
.tiktok-card .stream-platform  { color: var(--cream-dark); }

.stream-name {
  font-family: var(--font-drama);
  font-size: 22px;
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
  margin-top: 10px;
}

.stream-handle {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stream-arrow {
  font-size: 16px;
  color: var(--gold);
  margin-top: 20px;
  transition: transform 0.2s;
  font-family: var(--font-ui);
}

/* ═══════════════════════════════════════════════
   COMMUNITY CTA
═══════════════════════════════════════════════ */
.community {
  max-width: 100%;
  padding: 120px 48px;
  position: relative;
  overflow: hidden;
}

.community-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-drama);
  font-size: clamp(80px, 14vw, 180px);
  font-style: italic;
  color: rgba(201,168,76,0.03);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: 0.1em;
}

.community-inner {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.community-inner h2 {
  font-family: var(--font-drama);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  line-height: 1.1;
}

.community-inner p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: rgba(242,232,208,0.6);
}

.email-form {
  display: flex;
  width: 100%;
  max-width: 420px;
  margin-top: 8px;
}

.email-form input {
  flex: 1;
  background: rgba(242,232,208,0.04);
  border: 1px solid rgba(201,168,76,0.25);
  border-right: none;
  color: var(--cream);
  padding: 13px 18px;
  font-family: var(--font-ui);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.email-form input::placeholder { color: var(--text-muted); }
.email-form input:focus { border-color: var(--gold); }

.email-form button {
  background: var(--gold);
  border: none;
  color: var(--dark);
  padding: 13px 24px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.email-form button:hover { background: var(--gold-light); }

.email-sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  min-height: 20px;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-logo {
  height: 32px;
  object-fit: contain;
  opacity: 0.5;
}

.footer p {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.footer-socials {
  display: flex;
  gap: 28px;
}

.footer-socials a {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-socials a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════
   TWITCH EMBED
═══════════════════════════════════════════════ */
.twitch-player-wrap {
  margin: 0 auto 48px;
  max-width: 800px;
  width: 100%;
}

.twitch-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.twitch-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  flex-shrink: 0;
  transition: background 0.3s;
}
.twitch-live-dot.is-live {
  background: #e31b23;
  box-shadow: 0 0 8px rgba(227,27,35,0.7);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px rgba(227,27,35,0.7); }
  50% { box-shadow: 0 0 18px rgba(227,27,35,1); }
}

.twitch-status-text { flex: 1; }

.twitch-open-btn {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
}
.twitch-open-btn:hover { opacity: 0.7; }

.twitch-embed-container {
  position: relative;
  width: 100%;
  padding-bottom: 75%; /* 4:3 */
  background: #0a0a0a;
  border: 1px solid rgba(201,168,76,0.15);
}
.twitch-embed-container iframe,
.twitch-embed-container > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── FOLLOW STRIP ── */
.follow-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(201,168,76,0.12);
}

.follow-strip-label {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.follow-strip-links {
  display: flex;
  align-items: center;
  gap: 0;
}

.follow-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  text-decoration: none;
  transition: opacity 0.2s;
  opacity: 0.6;
}

.follow-link:hover {
  opacity: 1;
}

.follow-link img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.follow-link span {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.follow-divider {
  width: 1px;
  height: 18px;
  background: rgba(201,168,76,0.2);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */












@media (max-width: 900px) {
  .twitch-player-wrap { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav {
  position: fixed !important; padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  section { padding: 72px 20px; }

  .cast-strip { flex-direction: column; min-height: auto; }
  .cast-strip--reverse { flex-direction: column; }
  .cast-poster { flex: none; width: 100%; max-height: 480px; }
  .cast-info { padding: 40px 24px; }
  .cast-watermark { font-size: 72px; }
  .talent-intro { padding: 72px 24px 48px; }
  .talent-card { width: 100%; max-width: 360px; }

  .streams { padding: 72px 0; }
  .streams-inner { padding: 0 20px; }

  .community { padding: 80px 20px; }
  .email-form { flex-direction: column; }
  .email-form input { border-right: 1px solid rgba(201,168,76,0.25); border-bottom: none; }

  .footer { padding: 40px 20px; }
  .sound-btn { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .follow-strip-links { flex-direction: column; gap: 4px; }
  .follow-divider { width: 32px; height: 1px; }
  .follow-link { padding: 8px 20px; }
}
