/* ═══════════════════════════════════════════════════════════════════
   Breynner — Landing Page Styles
   Estética: Urban Neon (cyan + magenta sobre fondo casi negro)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg:         #0f0f0f;
  --bg-elevated: #1a1a1a;
  --fg:         #ffffff;
  --fg-muted:   #a0a0a0;
  --accent:     #d4d4d4;
  --accent-dim: #737373;
  --card-bg:    rgba(255, 255, 255, 0.04);
  --card-brd:   rgba(255, 255, 255, 0.08);
  --card-hover: rgba(255, 255, 255, 0.08);
  --shadow:     rgba(0, 0, 0, 0.35);
  --focus:      #ffffff;
  --text:       var(--fg);
}

/* ── JS Loading — hide until settings applied to prevent flash ── */
.js-loading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ───────────────────────────────────────────────────────── */
html { min-height: 100%; }

body {
  font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── Background Video ───────────────────────────────────────────── */
#bgVideo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

/* ── Overlay ── */
.overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.85) 0%, rgba(15, 15, 15, 0.7) 50%, rgba(15, 15, 15, 0.92) 100%);
  z-index: -1;
}

/* ── Content Container ──────────────────────────────────────────── */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 100dvh;
  /* El padding inferior reserva la franja donde vive el .site-footer (que va
     posicionado abajo del todo). Así el contenido sigue centrado y nunca se
     solapa con él, aunque la página crezca (p. ej. si vuelve el contador). */
  padding: 52px 20px calc(84px + env(safe-area-inset-bottom));
}

/* ── Language Switcher — centrado arriba, botones circulares ────── */
.lang-switcher {
  display: flex;
  gap: 10px;
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-brd);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--fg-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--fg);
  border-color: var(--accent-dim);
  background: var(--card-hover);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: var(--card-hover);
  border-color: var(--accent);
  color: var(--fg);
}

/* ── Profile ────────────────────────────────────────────────────── */
.profile-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.profile-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--card-brd);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  background: var(--bg-elevated);
}

.profile-name {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}

/* ── Tagline ────────────────────────────────────────────────────── */
.page-title {
  font-size: clamp(1.1rem, 4vw, 1.55rem);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.4;
  padding: 0 4px;
}

/* ── Live Section wrapper ───────────────────────────────────────── */
.live-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 460px;
}

/* ── Live Card ──────────────────────────────────────────────────── */
.live-card {
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 8px;
  border: 1px solid var(--card-brd);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 40px var(--shadow);
}

/* ── Countdown ──────────────────────────────────────────────────── */
/* Estilo "flip clock": cada número en su propia ficha, con la etiqueta fuera.
   Antes la etiqueta iba dentro, creando caja-dentro-de-caja (dos bordes
   compitiendo con el .live-card que las envuelve). */
.countdown {
  display: flex;
  gap: 9px;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  flex: 1;
  gap: 8px;
}

.unit-card {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 16px 0;
  background: linear-gradient(180deg, #26262b, #191919);
  border: 1px solid var(--card-brd);
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.45);
}

/* La ranura horizontal que sugiere la solapa del reloj */
.unit-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.55);
}

.unit span {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--fg);
  letter-spacing: -0.01em;
  /* Ancho fijo por dígito: sin esto el número "salta" cada segundo */
  font-variant-numeric: tabular-nums;
}

.unit em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Platform CTA below countdown ──────────────────────────────── */
.countdown-platform-heading {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 14px 0 8px;
  text-align: center;
}

.countdown-platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--card-bg);
  border: 1px solid var(--card-brd);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.countdown-platform-btn:hover { 
  transform: scale(1.03); 
  background: var(--card-hover);
  border-color: var(--accent-dim);
  box-shadow: 0 8px 32px var(--shadow);
}
.countdown-platform-btn .link-logo { height: 26px; width: auto; }

/* OnlyFans: mismo acento dorado que el botón de la sección "Sígueme en".
   La clase .btn-of ya estaba en el markup pero nunca se definió, por eso este
   CTA salía gris mientras el otro era dorado. */
.countdown-platform-btn.btn-of {
  border-color: rgba(232,183,74,.45);
  background: linear-gradient(135deg, rgba(232,183,74,.14), rgba(255,255,255,.035));
}
.countdown-platform-btn.btn-of:hover {
  border-color: rgba(232,183,74,.8);
  background: linear-gradient(135deg, rgba(232,183,74,.24), rgba(255,255,255,.05));
  box-shadow: 0 12px 34px rgba(232,183,74,.18);
}

/* ── Buttons (shared base) ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ── Follow Section ────────────────────────────────────────────── */
.follow-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 460px;
}

.follow-heading {
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.90);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ── Platform Buttons Row ─────────────────────────────────────── */
.links-featured {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.links-featured.compact {
  width: auto;
  justify-content: center;
}
.links-featured.compact .link-card {
  width: 100%;
  padding: 14px 24px;
}

.link-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
  width: 100%;
  padding: 16px 24px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--fg);
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.22s ease;
}

.link-card:hover  {
  transform: translateY(-3px) scale(1.015);
  background: linear-gradient(135deg, rgba(0,229,255,0.16), rgba(255,45,123,0.11));
  border-color: rgba(0,229,255,0.7);
  box-shadow: 0 12px 34px rgba(0,229,255,0.16), 0 0 22px rgba(255,45,123,0.10);
}
.link-card:active { transform: scale(0.97); }

.link-logo { height: 28px; width: auto; object-fit: contain; flex-shrink: 0; filter: brightness(0) invert(1); }

/* OnlyFans — acento dorado (sustituye al cian; el hover propio evita que vuelva a azul) */
.link-card.link-of { border-color: rgba(232,183,74,.45); background: linear-gradient(135deg, rgba(232,183,74,.14), rgba(255,255,255,.035)); }
.link-card.link-of:hover {
  border-color: rgba(232,183,74,.8);
  background: linear-gradient(135deg, rgba(232,183,74,.24), rgba(255,255,255,.05));
  box-shadow: 0 12px 34px rgba(232,183,74,.18);
}

/* ── Live Layout — VIP first + prominent when live ─────────────── */
.follow-section.live-of .links-featured {
  flex-direction: column;
  align-items: center;
}
.follow-section.live-of .links-featured .link-card.platform-live {
  flex: none;
  width: 70%;
  padding: 15px 20px;
  order: -1;
}
.follow-section.live-of .links-featured .link-card:not(.platform-live) {
  flex: none;
  width: auto;
  padding: 11px 36px;
}

/* ── Platform Live Highlight ──────────────────────────────────── */
.link-card.platform-live {
  animation: pulse-platform 2s ease-in-out infinite;
  border-color: var(--accent);
}

@keyframes pulse-platform {
  0%, 100% { box-shadow: 0 0 18px var(--accent-dim), 0 0 34px var(--accent-dim); border-color: var(--accent-dim); }
  50%      { box-shadow: 0 0 30px var(--accent), 0 0 55px var(--accent-dim); border-color: var(--accent); }
}

/* EN VIVO badge */
.live-badge {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  animation: pulse-live-text 1.6s ease-in-out infinite;
  padding: 2px 0;
}

.live-badge .live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-live-dot 1.6s ease-in-out infinite;
}

.live-badge.visible { display: flex !important; }

@keyframes pulse-live-text {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

@keyframes pulse-live-dot {
  0%, 100% { box-shadow: 0 0 5px var(--accent-dim); }
  50%      { box-shadow: 0 0 12px var(--accent); }
}

/* ── Social Icons ───────────────────────────────────────────────── */
.socials {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  max-width: 460px;
  width: 100%;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 0;
  flex-shrink: 1;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  border-color: rgba(0,229,255,0.7);
  background: rgba(0,229,255,0.12);
  box-shadow: 0 8px 26px rgba(0,229,255,0.18);
}

.social-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ── Footer ─────────────────────────────────────────────────────── */
/* Anclado al fondo de .content (que es position:relative y mide 100dvh como
   mínimo). Sale del flujo a propósito: así el bloque de contenido queda
   centrado por su cuenta y el footer se apoya abajo, en la franja que le
   reserva el padding-bottom de .content. */
.site-footer {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: calc(30px + env(safe-area-inset-bottom));
  font-size: 0.72rem;
  color: var(--fg-muted);
  text-align: center;
  letter-spacing: 0.05em;
}

/* Crédito de autoría — mismo tratamiento que en la landing de Dahyn:
   fijo abajo a la izquierda y muy tenue, para que no compita con el contenido. */
.credit {
  position: fixed;
  bottom: 12px;
  left: 14px;
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.12);
  letter-spacing: 0.08em;
  font-family: 'Helvetica Neue', -apple-system, sans-serif;
  z-index: 5;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* El padding inferior debe seguir reservando la franja del .site-footer */
  .content { padding: 58px 22px calc(78px + env(safe-area-inset-bottom)); gap: 20px; }
}

@media (max-width: 480px) {
  .lang-switcher { top: 16px; }
  .lang-btn { width: 40px; height: 40px; font-size: 0.7rem; }
  .profile-photo { width: 168px; height: 168px; }
  .profile-name { letter-spacing: 0.1em; }
  .page-title { font-size: 1rem; letter-spacing: 0.1em; }

  .unit span  { font-size: 1.8rem; }
  .unit em    { font-size: 0.56rem; }
  .unit       { gap: 6px; }
  .unit-card  { padding: 12px 0; }
  .countdown  { gap: 6px; }

  .live-card { border-radius: 8px; padding: 16px; }

  .links-featured { flex-direction: column; gap: 8px; }
  .links-featured .link-card { flex: none; width: 100%; }

  .socials { gap: 8px; }
  .social-icon { width: 46px; height: 46px; }
  .social-icon img { width: 22px; height: 22px; }
}

@media (max-width: 340px) {
  .unit span { font-size: 1.5rem; }
  .unit em   { font-size: 0.5rem; }
  .unit-card { padding: 10px 0; }
  .countdown { gap: 4px; }
  .socials { gap: 6px; }
  .social-icon { width: 42px; height: 42px; }
}
