/* =====================================================
 *  styleMaster.css — NicoleTV
 *  MOBILE-FIRST · Liquid Glass · Carmesí
 * ===================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* ---------- VARIABLES ---------- */
:root {
  --main-bg: #050002;
  --accent: #9b0033;
  --accent-soft: rgba(155, 0, 51, 0.4);
  --accent-glow: rgba(155, 0, 51, 0.65);

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-border-soft: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);

  --text-primary: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.65);
  --text-muted: rgba(245, 245, 247, 0.4);

  --font-main: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --letter-spacing-base: 1.5px;
  --letter-spacing-wide: 3px;

  --ease-liquid: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Safe areas iOS (notch) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  /* Blur dinámico: ligero en móvil, fuerte en desktop */
  --blur-light: 12px;
  --blur-medium: 18px;
  --blur-heavy: 24px;
  /* ---------- TIPOGRAFÍA ---------- */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Bebas Neue", "Inter", sans-serif;
  --font-elegant: "Playfair Display", Georgia, serif;

  --letter-spacing-tight: -0.5px;
  --letter-spacing-base: 1.5px;
  --letter-spacing-wide: 3px;
  --letter-spacing-xwide: 6px;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* quita el flash azul al tocar en móvil */
}

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overscroll-behavior: none; /* evita el "rebote" en iOS */
}

html {
  -webkit-text-size-adjust: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-touch-callout: none;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
input {
  font-family: inherit;
}
img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

/* ---------- BODY ---------- */
body {
  font-family: var(--font-main);
  color: var(--text-primary);
  letter-spacing: var(--letter-spacing-base);
  background-color: var(--main-bg);
  background-image:
    radial-gradient(
      ellipse at top right,
      var(--accent-soft) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at bottom left,
      rgba(155, 0, 51, 0.12) 0%,
      transparent 55%
    ),
    linear-gradient(180deg, var(--main-bg) 0%, #000000 100%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh; /* dvh = dynamic viewport, ideal para móviles */
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
}

/* Grano sutil */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.screen,
.modal {
  position: relative;
  z-index: 2;
}

/* ---------- PERFILES (Mobile-First) ---------- */
#profile-selector {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(40px + var(--safe-top)) 20px calc(40px + var(--safe-bottom));
  animation: fadeIn 0.8s var(--ease-liquid);
}

.profile-selector__container {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.profile-selector__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: titleReveal 1.2s var(--ease-liquid) both;
}

.profile-selector__eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: var(--letter-spacing-xwide);
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent-soft);
  border-radius: 100px;
  background: rgba(155, 0, 51, 0.08);
  backdrop-filter: blur(var(--blur-light));
  -webkit-backdrop-filter: blur(var(--blur-light));
  text-shadow: 0 0 20px var(--accent-glow);
}

.profile-selector__title {
  font-family: var(--font-elegant);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 11vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: var(--letter-spacing-tight);
  text-align: center;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
}

.profile-selector__title-line {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #cfcfd4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: lineSlide 0.9s var(--ease-liquid) both;
}

.profile-selector__title-line:nth-child(1) {
  animation-delay: 0.2s;
}
.profile-selector__title-line:nth-child(2) {
  animation-delay: 0.45s;
}

.profile-selector__title-line--accent {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--accent) 60%,
    #ff6b9d 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px var(--accent-soft));
}

.profile-selector__divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin-top: 8px;
  animation: dividerExpand 1s var(--ease-liquid) 0.8s both;
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineSlide {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes dividerExpand {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 60px;
    opacity: 1;
  }
}

.profile-selector__list {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-liquid);
  -webkit-tap-highlight-color: transparent;
}

.profile-card__avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--blur-light));
  -webkit-backdrop-filter: blur(var(--blur-light));
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  transition:
    transform 0.35s var(--ease-liquid),
    box-shadow 0.35s var(--ease-liquid),
    border-color 0.35s var(--ease-liquid);
  will-change: transform;
}

.profile-card__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.15),
    transparent 60%
  );
  pointer-events: none;
}

.profile-card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card__name {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--text-secondary);
  text-transform: uppercase;
  transition:
    color 0.3s var(--ease-liquid),
    letter-spacing 0.3s var(--ease-liquid);
  position: relative;
}

.profile-card:active .profile-card__name {
  color: var(--accent);
  letter-spacing: 4px;
  text-shadow: 0 0 16px var(--accent-glow);
}

@media (hover: hover) and (pointer: fine) {
  .profile-card:hover .profile-card__name {
    color: var(--text-primary);
    letter-spacing: 4px;
  }
}

/* HOVER solo para dispositivos con ratón real */
@media (hover: hover) and (pointer: fine) {
  .profile-card:hover .profile-card__avatar {
    transform: scale(1.06);
    border-color: var(--accent);
    box-shadow:
      0 12px 48px var(--accent-glow),
      0 0 0 2px var(--accent-soft),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  .profile-card:hover .profile-card__name {
    color: var(--text-primary);
  }
}

/* ---------- MAIN LAYOUT ---------- */
#main-layout {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  animation: fadeIn 0.8s var(--ease-liquid);
  padding-bottom: var(--safe-bottom);
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(14px + var(--safe-top)) calc(20px + var(--safe-right)) 14px
    calc(20px + var(--safe-left));
  background: rgba(5, 0, 2, 0.6);
  backdrop-filter: blur(var(--blur-medium)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur-medium)) saturate(150%);
  border-bottom: 1px solid var(--glass-border-soft);
}

.navbar__logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter 0.25s var(--ease-liquid);
}

.navbar__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(155, 0, 51, 0.3));
  transition: filter 0.25s var(--ease-liquid);
  position: relative;
}

.navbar__logo::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.navbar__logo:active {
  filter: brightness(1.3) drop-shadow(0 0 14px var(--accent-glow));
}

.navbar__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--blur-light));
  -webkit-backdrop-filter: blur(var(--blur-light));
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-liquid),
    border-color 0.2s var(--ease-liquid);
}

.navbar__avatar:active {
  transform: scale(0.92);
  border-color: var(--accent);
}

.navbar__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CATÁLOGO */
.catalog {
  padding: 28px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ============================================
   CATALOG ROWS — Netflix Style
============================================ */
.catalog__row {
  margin-bottom: 56px;
  opacity: 0;
  animation: rowFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--row-delay, 0s);
}

@keyframes rowFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.catalog__row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 0 4vw;
}

.catalog__row-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  margin: 0;
}

.catalog__row-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.catalog__row-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 20px 4vw 60px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.catalog__row-list::-webkit-scrollbar {
  display: none;
}

/* ============================================
   CARDS — Netflix Poster Style
============================================ */
/* La card ahora tiene 2 zonas: imagen arriba + info abajo */
/* La card ahora tiene 2 zonas: imagen arriba + info abajo */
.catalog__card {
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 2 / 3.2; /* un poco más alta para dar espacio al texto */
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #0a0005;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform-origin: center bottom;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease;
  will-change: transform;
  display: flex;
  flex-direction: column;
}

/* Imagen ocupa la parte superior, NO toda la card */
.catalog__card-cover {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  background-size: contain; /* ← cambio clave: ya no recorta */
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
}

/* La sombra ya no es necesaria sobre la imagen */
.catalog__card-shadow {
  display: none;
}

/* Info abajo en su propia zona, NO encima de la imagen */
.catalog__card-info {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, #0a0005 0%, #050002 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 2;
}

.catalog__card-info-top {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog__card-title {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.catalog__card-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* PARTE QUE SE EXPANDE */
.catalog__card-info-expand {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease 0.1s,
    margin-top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog__card-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
  margin: 0 0 10px;
}

.catalog__card-play {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.catalog__card-play:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.05);
}

/* BADGES */
.catalog__card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  border-radius: 3px;
  backdrop-filter: blur(10px);
}

.catalog__card-badge--new {
  background: var(--card-accent, #9b0033);
  color: #fff;
}

.catalog__card-badge--fav {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   HOVER / EXPAND EFFECT — Netflix
============================================ */
@media (hover: hover) {
  .catalog__card:hover {
    transform: scale(1.18) translateY(-8px);
    z-index: 10;
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.8),
      0 0 0 2px var(--card-accent, #9b0033);
    transition:
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.4s ease,
      z-index 0s;
  }

  .catalog__card:hover .catalog__card-cover {
    transform: scale(1.05);
  }

  .catalog__card:hover .catalog__card-shadow {
    opacity: 1;
  }

  .catalog__card:hover .catalog__card-info-expand {
    max-height: 200px;
    opacity: 1;
    margin-top: 8px;
  }
}

/* Tap móvil */
.catalog__card.is-expanded {
  transform: scale(1.08);
  z-index: 10;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 2px var(--card-accent, #9b0033);
}

.catalog__card.is-expanded .catalog__card-info-expand {
  max-height: 200px;
  opacity: 1;
  margin-top: 8px;
}

/* Margen extra al primer y último card de cada fila */
.catalog__row-list .catalog__card:first-child {
  margin-left: 0;
}
.catalog__row-list .catalog__card:last-child {
  margin-right: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .catalog__card {
    width: 150px;
  }
}
/* HOVER solo desktop */
@media (hover: hover) and (pointer: fine) {
  .catalog__card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: var(--accent);
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.9),
      0 0 36px var(--accent-soft),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
  .catalog__card:hover::after {
    opacity: 1;
  }
}

.catalog__card-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-base);
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.catalog__card-subtitle {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: var(--letter-spacing-wide);
  color: var(--text-muted);
  margin-top: 5px;
  position: relative;
  z-index: 2;
}

/* ---------- IFRAME ---------- */
.content-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: calc(12px + var(--safe-top)) calc(12px + var(--safe-right))
    calc(12px + var(--safe-bottom)) calc(12px + var(--safe-left));
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(var(--blur-medium));
  -webkit-backdrop-filter: blur(var(--blur-medium));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: viewerIn 0.4s var(--ease-liquid) forwards;
}

.content-viewer[hidden] {
  display: none !important;
}

.content-viewer__frame {
  width: 100%;
  height: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: var(--main-bg);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.9),
    0 0 40px var(--accent-soft);
}

.content-viewer__close {
  position: absolute;
  top: calc(20px + var(--safe-top));
  right: calc(20px + var(--safe-right));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--blur-light));
  -webkit-backdrop-filter: blur(var(--blur-light));
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.25s var(--ease-liquid);
}

.content-viewer__close:active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(0.9) rotate(90deg);
}

@keyframes viewerIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- MODAL ADMIN ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none !important;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(var(--blur-medium));
  -webkit-backdrop-filter: blur(var(--blur-medium));
  animation: fadeIn 0.35s var(--ease-liquid);
}

.modal__content {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 40px 28px;
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-heavy)) saturate(170%);
  -webkit-backdrop-filter: blur(var(--blur-heavy)) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: modalIn 0.4s var(--ease-bounce);
}

.modal__title {
  font-family: var(--font-elegant);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-tight);
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #fff, #d8d8de);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal__subtitle {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal__input {
  width: 100%;
  padding: 14px 4px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 16px; /* 16px evita zoom automático en iOS */
  letter-spacing: var(--letter-spacing-wide);
  text-align: center;
  outline: none;
  transition:
    border-color 0.35s var(--ease-liquid),
    box-shadow 0.35s var(--ease-liquid);
}

.modal__input::placeholder {
  color: var(--text-muted);
}

.modal__input:focus {
  border-bottom-color: var(--accent);
  box-shadow: 0 4px 20px -10px var(--accent-glow);
}

.modal__error {
  font-size: 0.72rem;
  color: var(--accent);
  text-align: center;
  margin-top: -14px;
}

.modal__actions {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 4px;
}

.modal__btn {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  padding: 10px 6px;
  color: var(--text-secondary);
  transition:
    color 0.3s var(--ease-liquid),
    text-shadow 0.3s var(--ease-liquid),
    transform 0.2s var(--ease-liquid);
}

.modal__btn--primary:active {
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-glow);
  transform: scale(0.94);
}

.modal__btn--secondary:active {
  color: var(--text-primary);
  transform: scale(0.94);
}

/* ---------- ANIMACIONES ---------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- TABLET (≥ 600px) ---------- */
@media (min-width: 600px) {
  .profile-card__avatar {
    width: 150px;
    height: 150px;
  }
  .catalog__card {
    width: 190px;
    height: 270px;
  }
  .catalog {
    padding: 36px 0 50px;
  }
  .catalog__row-list {
    gap: 18px;
    padding-left: calc(36px + var(--safe-left));
    padding-right: calc(36px + var(--safe-right));
  }
  .catalog__row-title {
    padding-left: calc(36px + var(--safe-left));
  }
  .navbar {
    padding-left: calc(32px + var(--safe-left));
    padding-right: calc(32px + var(--safe-right));
  }
}

/* ---------- DESKTOP (≥ 1024px) ---------- */
@media (min-width: 1024px) {
  :root {
    --blur-light: 20px;
    --blur-medium: 30px;
    --blur-heavy: 40px;
  }
  .profile-card__avatar {
    width: 170px;
    height: 170px;
  }
  .profile-selector__list {
    gap: 80px;
  }
  .catalog__card {
    width: 220px;
    height: 320px;
    padding: 22px;
  }
  .navbar__logo {
    font-size: 1.35rem;
  }
  .navbar__avatar {
    width: 44px;
    height: 44px;
  }
}

/* ---------- ACCESIBILIDAD ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Fallback sin backdrop-filter */
@supports not (
  (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))
) {
  .navbar {
    background: rgba(5, 0, 2, 0.95);
  }
  .catalog__card,
  .modal__content,
  .profile-card__avatar {
    background: rgba(20, 10, 14, 0.88);
  }
}
/* =====================================================
 *  HERO BANNER
 * ===================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 480px;
  max-height: 650px;
  margin-bottom: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  animation: heroIn 1s var(--ease-liquid) both;
}

.hero__background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 30% 40%,
      var(--hero-accent, var(--accent)) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 75% 70%,
      rgba(155, 0, 51, 0.6) 0%,
      transparent 60%
    ),
    linear-gradient(135deg, #1a0008 0%, #050002 70%);
  filter: saturate(140%) brightness(0.85);
}

/* Efecto de "ondas líquidas" sutil en el hero */
.hero__background::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.04),
      transparent 30%
    ),
    radial-gradient(circle at 80% 60%, rgba(155, 0, 51, 0.15), transparent 35%);
  animation: heroFloat 18s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-3%, 2%) scale(1.05);
  }
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      transparent 30%,
      rgba(5, 0, 2, 0.6) 75%,
      var(--main-bg) 100%
    ),
    linear-gradient(90deg, rgba(5, 0, 2, 0.7) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 calc(20px + var(--safe-left)) 36px calc(20px + var(--safe-left));
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
}

.hero__badge {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-xwide);
  text-transform: uppercase;
  color: var(--accent);
  padding: 7px 14px;
  border: 1px solid var(--accent-soft);
  border-radius: 100px;
  background: rgba(155, 0, 51, 0.12);
  backdrop-filter: blur(var(--blur-light));
  -webkit-backdrop-filter: blur(var(--blur-light));
  width: fit-content;
  text-shadow: 0 0 20px var(--accent-glow);
}

.hero__title {
  font-family: var(--font-elegant);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.2rem, 9vw, 4.5rem);
  letter-spacing: var(--letter-spacing-tight);
  line-height: 0.98;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
  background: linear-gradient(180deg, #ffffff 0%, #d8d8de 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  max-width: 480px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero__actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-base);
  text-transform: uppercase;
  transition: all 0.25s var(--ease-liquid);
  border: 1px solid transparent;
}

.hero__btn-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.hero__btn--play {
  background: var(--text-primary);
  color: #050002;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.2);
}

.hero__btn--info {
  background: var(--glass-bg-strong);
  color: var(--text-primary);
  border-color: var(--glass-border);
  backdrop-filter: blur(var(--blur-light));
  -webkit-backdrop-filter: blur(var(--blur-light));
}

.hero__btn:active {
  transform: scale(0.94);
}
.hero__btn--play:active {
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .hero__btn--play:hover {
    background: #fff;
    box-shadow: 0 6px 28px rgba(255, 255, 255, 0.35);
  }
  .hero__btn--info:hover {
    background: var(--glass-bg-strong);
    border-color: var(--accent);
  }
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =====================================================
 *  FILAS DEL CATÁLOGO — MEJORADAS
 * ===================================================== */
.catalog__row {
  animation: rowSlideIn 0.7s var(--ease-liquid) both;
  animation-delay: var(--row-delay, 0s);
}

@keyframes rowSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.catalog__row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(20px + var(--safe-left));
  gap: 12px;
}

.catalog__row-count {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-base);
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Indicador sutil de scroll horizontal en el lado derecho */
.catalog__row-list {
  position: relative;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0%,
    #000 96%,
    transparent 100%
  );
  mask-image: linear-gradient(90deg, #000 0%, #000 96%, transparent 100%);
}

/* =====================================================
 *  CARDS — REDISEÑADAS
 * ===================================================== */
.catalog__card {
  /* Reemplaza completamente el .catalog__card anterior */
  flex: 0 0 auto;
  width: 155px;
  height: 230px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(var(--blur-medium)) saturate(150%);
  -webkit-backdrop-filter: blur(var(--blur-medium)) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  scroll-snap-align: start;
  transition:
    transform 0.3s var(--ease-liquid),
    box-shadow 0.3s var(--ease-liquid),
    border-color 0.3s var(--ease-liquid);
  animation: cardPop 0.5s var(--ease-bounce) both;
  animation-delay: calc(var(--card-index, 0) * 0.06s);
  will-change: transform;
}

@keyframes cardPop {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.catalog__card-cover {
  flex: 1;
  width: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(155, 0, 51, 0.3), transparent 60%),
    linear-gradient(135deg, #2a0010 0%, #0a0004 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.catalog__card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
}

.catalog__card-number {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 400;
  letter-spacing: -1px;
  color: rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 40px rgba(155, 0, 51, 0.4);
  position: relative;
  z-index: 1;
  line-height: 1;
  transition:
    color 0.3s var(--ease-liquid),
    transform 0.3s var(--ease-liquid);
}

.catalog__card-title {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog__card-subtitle {
  font-family: var(--font-elegant);
  font-style: italic;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: none;
}

.catalog__card-info {
  padding: 12px 14px 14px;
  background: rgba(5, 0, 2, 0.5);
  backdrop-filter: blur(var(--blur-light));
  -webkit-backdrop-filter: blur(var(--blur-light));
  border-top: 1px solid var(--glass-border-soft);
}

.catalog__card-title {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog__card-subtitle {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-base);
  color: var(--text-muted);
  margin-top: 3px;
  text-transform: uppercase;
}

/* Badges */
.catalog__card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  backdrop-filter: blur(var(--blur-light));
  -webkit-backdrop-filter: blur(var(--blur-light));
}

.catalog__card-badge--new {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.catalog__card-badge--fav {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  padding: 4px 7px;
}

/* Active y hover de las cards (manten estos) */
.catalog__card:active {
  transform: scale(0.95);
  border-color: var(--accent);
}
.catalog__card:active .catalog__card-number {
  color: rgba(255, 255, 255, 0.18);
  transform: scale(1.1);
}

@media (hover: hover) and (pointer: fine) {
  .catalog__card:hover {
    transform: translateY(-8px) scale(1.04);
    border-color: var(--accent);
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.9),
      0 0 36px var(--accent-soft);
  }
  .catalog__card:hover .catalog__card-number {
    color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
  }
}

/* =====================================================
 *  AJUSTES RESPONSIVE PARA HERO Y CARDS
 * ===================================================== */
@media (min-width: 600px) {
  .hero {
    height: 75vh;
    min-height: 520px;
  }
  .hero__content {
    padding: 0 36px 48px;
    gap: 18px;
  }
  .catalog__card {
    width: 180px;
    height: 260px;
  }
  .catalog__card-number {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    height: 80vh;
    min-height: 580px;
    max-height: 760px;
  }
  .hero__content {
    padding: 0 60px 60px;
    gap: 20px;
    max-width: 760px;
  }
  .hero__description {
    font-size: 1rem;
  }
  .hero__btn {
    padding: 13px 28px;
    font-size: 0.9rem;
  }
  .catalog__card {
    width: 220px;
    height: 310px;
  }
  .catalog__card-number {
    font-size: 5.5rem;
  }
  .catalog__card-title {
    font-size: 1rem;
  }
}

/* Eliminar el padding superior del catálogo porque ahora arranca con el hero */
.catalog {
  padding-top: 0;
  gap: 42px;
}
/* ---------- AVATARES (imágenes) ---------- */
/* ---------- AVATARES (imágenes) ---------- */
#profile-nicole .profile-card__avatar {
  background-image: url("global-assets/Fotos/perfil1.png");
  background-size: cover;
  background-position: center;
}

#profile-santi .profile-card__avatar {
  background-image: url("global-assets/Fotos/perfil2.png");
  background-size: cover;
  background-position: center;
}

/* Avatar del navbar (se actualiza dinámicamente con clase) */
.navbar__avatar.is-nicole {
  background-image: url("global-assets/Fotos/perfil1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.navbar__avatar.is-santi {
  background-image: url("global-assets/Fotos/perfil2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Oculta las <img> internas si usas CSS */
.profile-card__avatar-img,
.navbar__avatar-img {
  display: none;
}
.navbar__avatar {
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.navbar__avatar:hover {
  transform: scale(1.1);
  box-shadow:
    0 0 0 2px var(--accent),
    0 0 20px rgba(155, 0, 51, 0.4);
}
.hero__background {
  background-image: url("global-assets/portadas/portada.png") !important;
  background-size: cover;
  background-position: center;
}
/* ============================================
   INFO BUBBLE — Más info modal
============================================ */
.info-bubble {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}

.info-bubble.is-visible {
  pointer-events: auto;
}

.info-bubble__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.info-bubble.is-visible .info-bubble__backdrop {
  opacity: 1;
}

.info-bubble__content {
  position: relative;
  max-width: 520px;
  width: 100%;
  padding: 36px 32px 32px;
  background: linear-gradient(
    145deg,
    rgba(30, 5, 15, 0.95) 0%,
    rgba(15, 2, 8, 0.95) 100%
  );
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(155, 0, 51, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.info-bubble.is-visible .info-bubble__content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.info-bubble__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-bubble__close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: rotate(90deg);
}

.info-bubble__label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent, #9b0033);
  margin-bottom: 14px;
  font-weight: 600;
}

.info-bubble__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 22px;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.info-bubble__text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 14px;
  letter-spacing: 0.2px;
}

.info-bubble__text:last-of-type {
  margin-bottom: 0;
}

.info-bubble__text strong {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(155, 0, 51, 0.25) 50%,
    transparent 100%
  );
  padding: 2px 4px;
  border-radius: 3px;
}

.info-bubble__text em {
  font-style: italic;
  color: rgba(255, 200, 215, 0.9);
}

.info-bubble__heart {
  position: absolute;
  bottom: -10px;
  right: 24px;
  font-size: 28px;
  opacity: 0.7;
  filter: drop-shadow(0 0 12px rgba(155, 0, 51, 0.6));
  animation: heartBeat 2s ease-in-out infinite;
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

@media (max-width: 600px) {
  .info-bubble__content {
    padding: 30px 22px 26px;
    border-radius: 20px;
  }
  .info-bubble__title {
    font-size: 22px;
  }
  .info-bubble__text {
    font-size: 14px;
  }
}
.info-bubble__text--quote {
  margin-top: 22px !important;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 16px;
  color: rgba(255, 200, 215, 0.95);
  text-align: center;
  letter-spacing: 0.3px;
  line-height: 1.6;
}
.info-bubble__content {
  /* ...lo que ya tienes... */
  max-height: 85vh;
  overflow-y: auto;
}

.info-bubble__content::-webkit-scrollbar {
  width: 4px;
}
.info-bubble__content::-webkit-scrollbar-thumb {
  background: rgba(155, 0, 51, 0.4);
  border-radius: 4px;
}
/* ============================================
   SCROLLBAR PERSONALIZADO — Liquid Glass
============================================ */

/* Chrome, Edge, Safari, Opera */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(5, 0, 2, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(155, 0, 51, 0.6) 0%,
    rgba(100, 0, 33, 0.8) 100%
  );
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(200, 30, 80, 0.9) 0%,
    rgba(155, 0, 51, 1) 100%
  );
  background-clip: padding-box;
  box-shadow: 0 0 12px rgba(155, 0, 51, 0.5);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 0, 51, 0.7) rgba(5, 0, 2, 0.5);
}
/* =====================================================
   VIDEO PLAYER — Cinematic Premium
===================================================== */
.video-player {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-player.is-visible {
  pointer-events: auto;
  opacity: 1;
}

.video-player__backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(40, 0, 15, 0.7) 0%,
    rgba(0, 0, 0, 0.96) 70%
  );
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  cursor: pointer;
}

/* Contenedor del video */
.video-player__container {
  position: relative;
  flex: 0 1 900px;
  aspect-ratio: 16 / 9;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 80px rgba(155, 0, 51, 0.25);
}

.video-player.is-visible .video-player__container {
  transform: scale(1) translateY(0);
}

/* Glow rojizo alrededor */
.video-player__container::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(155, 0, 51, 0.4),
    rgba(255, 255, 255, 0.05)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.video-player__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.video-player__close {
  position: absolute;
  top: -52px;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.video-player__close:hover {
  background: rgba(155, 0, 51, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 30px rgba(155, 0, 51, 0.5);
}

/* =====================================================
   BURBUJA LATERAL DE LA HISTORIA
===================================================== */
.video-player__story {
  position: relative;
  flex: 0 1 380px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 36px 32px;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(30, 5, 15, 0.75),
    rgba(15, 0, 8, 0.85)
  );
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateX(40px);
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.video-player.is-visible .video-player__story {
  transform: translateX(0);
  opacity: 1;
}

/* Scrollbar custom */
.video-player__story::-webkit-scrollbar {
  width: 4px;
}
.video-player__story::-webkit-scrollbar-track {
  background: transparent;
}
.video-player__story::-webkit-scrollbar-thumb {
  background: rgba(155, 0, 51, 0.4);
  border-radius: 4px;
}

.video-player__story-label {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(155, 0, 51, 0.15);
  border: 1px solid rgba(155, 0, 51, 0.3);
  color: #ff6b8b;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.video-player__story-title {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, #ffb3c8 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 8px 0;
}

.video-player__story-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  font-style: italic;
}

.video-player__story-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 16px 0;
}

.video-player__story-text strong {
  color: #ff6b8b;
  font-weight: 600;
}

.video-player__story-text em {
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
}

.video-player__story-quote {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 2px solid rgba(155, 0, 51, 0.6);
  background: rgba(155, 0, 51, 0.06);
  border-radius: 0 12px 12px 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.video-player__story-heart {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 20px;
  animation: heartPulse 2s ease-in-out infinite;
}

@keyframes heartPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* Responsive: en móvil/tablet apila vertical */
@media (max-width: 1100px) {
  .video-player {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    overflow-y: auto;
  }
  .video-player__container {
    flex: 0 0 auto;
    width: 100%;
    max-width: 700px;
  }
  .video-player__story {
    flex: 0 0 auto;
    width: 100%;
    max-width: 700px;
    max-height: none;
  }
  .video-player__close {
    top: -45px;
  }
}
/* ====
   SISTEMA DE TOASTS — Admin Premium
==== */
#toast-container {
  position: fixed;
  bottom: 110px;
  right: 20px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: linear-gradient(
    135deg,
    rgba(20, 3, 10, 0.96),
    rgba(10, 1, 5, 0.98)
  );
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5f5f7;
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(155, 0, 51, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 340px;
  pointer-events: auto;
  animation: toastIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast.toast--success {
  border-left: 2px solid rgba(0, 229, 255, 0.7);
}
.toast.toast--warning {
  border-left: 2px solid rgba(255, 180, 0, 0.7);
}
.toast.toast--error {
  border-left: 2px solid rgba(155, 0, 51, 0.9);
}
.toast.toast--info {
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.toast__icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast__message {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.88);
}

.toast__confirm {
  background: linear-gradient(135deg, var(--accent), #c9184a);
  border: none;
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(155, 0, 51, 0.4);
}
.toast__confirm:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(155, 0, 51, 0.6);
}

.toast__cancel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.toast__cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@keyframes toastIn {
  from {
    transform: translateX(120%) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}
@keyframes toastOut {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(120%) scale(0.8);
    opacity: 0;
  }
}

/* ====
   ADMIN NAVBAR INFERIOR — Liquid Glass Dock
==== */
#admin-navbar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: linear-gradient(
    135deg,
    rgba(18, 3, 10, 0.85),
    rgba(8, 1, 5, 0.9)
  );
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 100px;
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(155, 0, 51, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: navbarIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  white-space: nowrap;
}

@keyframes navbarIn {
  from {
    transform: translateX(-50%) translateY(80px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
  }
}

.admin-nav__label {
  font-size: 0.58rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  margin-right: 6px;
  line-height: 1;
}
.admin-nav__label span {
  color: var(--accent);
  font-weight: 700;
}

.admin-nav__btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 9px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.admin-nav__btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transform: translateY(-1px);
}

.admin-nav__btn--publish {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    #c9184a 100%
  ) !important;
  color: white !important;
  font-weight: 700;
  padding: 9px 22px;
  box-shadow:
    0 4px 20px rgba(155, 0, 51, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  letter-spacing: 1.5px;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.admin-nav__btn--publish:hover {
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow:
    0 8px 30px rgba(155, 0, 51, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* ====
   PANEL ADMIN — Sheet Premium
==== */
#admin-panel {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#admin-panel.is-open {
  pointer-events: auto;
  opacity: 1;
}

.admin-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  cursor: pointer;
}

.admin-panel__sheet {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 78vh;
  background: linear-gradient(
    160deg,
    rgba(22, 4, 12, 0.97) 0%,
    rgba(12, 1, 6, 0.99) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px 28px 20px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(50px) scale(0.97);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 -30px 100px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(155, 0, 51, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#admin-panel.is-open .admin-panel__sheet {
  transform: translateY(0) scale(1);
}

/* Handle bar */
.admin-panel__sheet::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  z-index: 1;
}

.admin-panel__header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  margin-top: 8px;
}

.admin-panel__tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50px;
  padding: 4px;
}

.admin-panel__tab {
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid transparent;
  font-weight: 500;
}
.admin-panel__tab.is-active {
  background: linear-gradient(
    135deg,
    rgba(155, 0, 51, 0.3),
    rgba(100, 0, 33, 0.4)
  );
  border-color: rgba(155, 0, 51, 0.4);
  color: #fff;
  box-shadow:
    0 4px 16px rgba(155, 0, 51, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.admin-panel__close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-panel__close:hover {
  background: rgba(155, 0, 51, 0.25);
  border-color: rgba(155, 0, 51, 0.4);
  color: #fff;
  transform: rotate(90deg);
}

.admin-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 0, 51, 0.3) transparent;
}
.admin-panel__body::-webkit-scrollbar {
  width: 4px;
}
.admin-panel__body::-webkit-scrollbar-thumb {
  background: rgba(155, 0, 51, 0.35);
  border-radius: 4px;
}

/* ====
   STATS TAB
==== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.stat-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(155, 0, 51, 0.5);
  letter-spacing: -1px;
}

.stat-card__label {
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.visits-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.visit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.3px;
  transition: background 0.2s ease;
}
.visit-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.visit-item__profile {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
}
.visit-item__device {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
}
.visit-item__time {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.68rem;
  font-style: italic;
}

/* ====
   EDITOR TAB
==== */
.editor-section-title {
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.editor-month-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s ease;
}
.editor-month-item:hover {
  border-color: rgba(155, 0, 51, 0.2);
}

.editor-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.editor-field label {
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}

.editor-field input,
.editor-field textarea,
.editor-field select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  color: #f5f5f7;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  width: 100%;
  letter-spacing: 0.3px;
}
.editor-field input:focus,
.editor-field textarea:focus {
  border-color: rgba(155, 0, 51, 0.5);
  box-shadow: 0 0 0 3px rgba(155, 0, 51, 0.1);
}
.editor-field input[type="color"] {
  height: 42px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 10px;
}
.editor-field textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

.editor-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.editor-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}
.editor-toggle label:first-child {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.5px;
}

.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease;
}
.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, var(--accent), #c9184a);
  border-color: rgba(155, 0, 51, 0.4);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
/* ====
   DISEÑO TAB
==== */
.design-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.design-preview {
  height: 80px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), rgba(155, 0, 51, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease;
  margin-bottom: 4px;
}

/* Título de sección dentro del panel */
.panel-section-title {
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.panel-section-title:first-child {
  margin-top: 0;
}
