/* Las fuentes se cargan con <link> en el HTML (más rápido que @import). Solo DM Sans. */

/* ===== Evita el "font boosting" de Android: misma escala en todo dispositivo ===== */
html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}
body{-webkit-text-size-adjust:100%;text-size-adjust:100%}


:root {
  --bg: #0d0b1f;
  --card-bg: rgba(17, 18, 31, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e5e7eb;
  --muted: #8b86a8;
  --accent: #e0336f;
  --accent2: #ff8fb8;
  --green: #22d3a5;
  --red: #f43f5e;
  --input-bg: rgba(255, 255, 255, 0.025);
}

* {
  box-sizing: border-box;
  font-family: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}

body {
  background: var(--bg);
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(224, 51, 111, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(224, 51, 111, 0.6);
}

/* Selección de Texto */
::selection {
  background: rgba(224, 51, 111, 0.3);
  color: #fff;
}

/* ═══════════ ANIMATED BACKGROUND ═══════════ */
.bg-animated {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  animation: floatGradient 22s ease-in-out infinite;
}

.bg-gradient.g1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #e0336f 0%, transparent 70%);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.bg-gradient.g2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #22d3a5 0%, transparent 70%);
  bottom: -200px;
  right: -200px;
  animation-delay: -7s;
}

.bg-gradient.g3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes floatGradient {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, -40px) scale(1.1); }
  50% { transform: translate(-40px, 80px) scale(0.95); }
  75% { transform: translate(-80px, -80px) scale(1.05); }
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(80px); opacity: 0; }
}

/* ═══════════ LANDING LAYOUT (SPLIT DESIGN) ═══════════ */
.landing-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 100vh;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 24px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* PROMO SIDE (LEFT COLUMN) */
.promo-side {
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

.promo-title {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -1px;
}

.promo-title span {
  font-family: 'DM Sans', sans-serif !important;
  background: linear-gradient(135deg, #ff8fb8, #22d3a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.promo-subtitle {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 36px;
  max-width: 550px;
}

/* PLATFORM GRID */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.platform-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.platform-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.05);
}

.platform-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.platform-card:hover .platform-icon {
  transform: scale(1.15);
}

.platform-info h3 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
}

.platform-info span {
  font-size: 11px;
  color: var(--muted);
}

/* BRAND NEON GLOWS */
.platform-card.netflix:hover {
  border-color: #e50914;
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.25);
}
.platform-card.disney:hover {
  border-color: #0ea5e9;
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.25);
}
.platform-card.prime:hover {
  border-color: #00a8e1;
  box-shadow: 0 10px 25px rgba(0, 168, 225, 0.25);
}
.platform-card.max:hover {
  border-color: #5856d6;
  box-shadow: 0 10px 25px rgba(88, 86, 214, 0.25);
}
.platform-card.spotify:hover {
  border-color: #1ed760;
  box-shadow: 0 10px 25px rgba(30, 215, 96, 0.25);
}
.platform-card.youtube:hover {
  border-color: #ff0000;
  box-shadow: 0 10px 25px rgba(255, 0, 0, 0.25);
}

/* PROMO ADVANTAGES */
.promo-advantages {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.advantage-badge {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 12px;
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.3s;
}

.advantage-badge:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* AUTH SIDE (RIGHT COLUMN) */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.auth-card {
  background: var(--card-bg);
  backdrop-filter: blur(30px) saturate(120%);
  -webkit-backdrop-filter: blur(30px) saturate(120%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 100px rgba(224, 51, 111, 0.08);
  position: relative;
  overflow: hidden;
  animation: cardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* ═══════════ HEADER ═══════════ */
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.brand-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #e0336f, #8b5cf6);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 35px rgba(224, 51, 111, 0.35);
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 10px 35px rgba(224, 51, 111, 0.35); transform: scale(1); }
  50% { box-shadow: 0 10px 50px rgba(224, 51, 111, 0.6); transform: scale(1.03); }
}

.brand {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.brand span {
  font-family: 'DM Sans', sans-serif !important;
  background: linear-gradient(135deg, #ff8fb8, #22d3a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 600;
}

/* ═══════════ ALERTS ═══════════ */
.alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%, 55%, 85% { transform: translateX(-5px); }
  35%, 75% { transform: translateX(5px); }
}

.alert-error {
  background: rgba(244, 63, 94, 0.08);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.18);
}

.alert-success {
  background: rgba(34, 211, 165, 0.08);
  color: #22d3a5;
  border: 1px solid rgba(34, 211, 165, 0.18);
}

.alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* ═══════════ FORM ═══════════ */
.fg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  position: relative;
}

.fg label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  transition: color 0.3s;
}

.fg:focus-within label {
  color: var(--accent2);
}

.input-wrap {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(224, 51, 111, 0.15), 0 0 15px rgba(224, 51, 111, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.input-wrap .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-wrap:focus-within .icon {
  color: var(--accent2);
}

.input-wrap input {
  flex: 1;
  background: none;
  border: none;
  padding: 14px 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
  width: 100%;
  min-width: 0;
}

.input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* Toggle password */
.toggle-password {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 8px;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.3s;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Validation colors */
.input-wrap.valid {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 211, 165, 0.08);
}

.input-wrap.valid .icon {
  color: var(--green);
}

.input-wrap.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.08);
  animation: shake 0.5s ease;
}

.input-wrap.invalid .icon {
  color: var(--red);
}

/* Grid layout for fields (ej. nombre y apellido) */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tel-wrap {
  display: flex;
  gap: 8px;
  width: 100%;
}

.tel-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ═══════════ REMEMBER & FORGOT ═══════════ */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--muted);
  user-select: none;
  transition: color 0.3s;
}

.remember-me:hover {
  color: #fff;
}

.remember-me input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.checkbox-custom::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s ease;
}

.remember-me input:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(224, 51, 111, 0.4);
}

.remember-me input:checked + .checkbox-custom::after {
  opacity: 1;
  transform: scale(1);
}

.forgot-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 600;
}

.forgot-link:hover {
  color: var(--accent2);
}

/* ═══════════ BUTTON ═══════════ */
.btn-auth {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #e0336f, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(224, 51, 111, 0.25);
  font-family: 'DM Sans', sans-serif !important;
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(224, 51, 111, 0.45);
}

.btn-auth:active {
  transform: scale(0.98) translateY(0);
}

.btn-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading */
.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-auth.loading .btn-text { display: none; }
.btn-auth.loading .btn-spinner { display: block; }

/* ═══════════ REGISTER CTA - DESTACADO ═══════════ */
.register-cta {
  margin-top: 24px;
  position: relative;
}

.register-cta::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, #22d3a5, #0ea5e9, #e0336f, #f59e0b);
  background-size: 300% 300%;
  animation: borderGlow 4s ease infinite;
  z-index: -1;
  opacity: 0.7;
}

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.register-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  background: rgba(10, 11, 20, 0.94);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.register-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 211, 165, 0.08), rgba(14, 165, 233, 0.08));
  opacity: 0;
  transition: opacity 0.3s;
}

.register-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(34, 211, 165, 0.25);
}

.register-btn:hover::before {
  opacity: 1;
}

.register-btn:active {
  transform: scale(0.98);
}

.register-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #22d3a5, #0ea5e9);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  animation: iconGlow 2.5s ease-in-out infinite;
}

@keyframes iconGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(34, 211, 165, 0.35); }
  50% { box-shadow: 0 0 25px rgba(34, 211, 165, 0.6); }
}

.register-text {
  text-align: left;
  line-height: 1.35;
}

.register-text .main-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.register-text .sub-text {
  font-size: 10.5px;
  color: #22d3a5;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.register-arrow {
  font-size: 18px;
  margin-left: auto;
  color: #22d3a5;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.register-btn:hover .register-arrow {
  transform: translateX(5px);
}

/* Badge "GRATIS" */
.free-badge {
  position: absolute;
  top: -10px;
  right: -8px;
  background: linear-gradient(135deg, #22d3a5, #0ea5e9);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  animation: badgePulse 2s ease-in-out infinite;
  z-index: 2;
}

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

/* ═══════════ REDES SOCIALES ═══════════ */
.social-follow {
  margin-top: 24px;
  text-align: center;
}

.social-title {
  display: block;
  font-size: 11px;
  color: #8b86a8;
  margin-bottom: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 700;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.05);
}

.social-btn.fb {
  background: #1877F2;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.35);
}
.social-btn.fb:hover {
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.55);
}

.social-btn.ig {
  background: radial-gradient(circle at 30% 110%, #feda75 0%, #fa7e1e 24%, #d62976 50%, #962fbf 74%, #4f5bd5 100%);
  box-shadow: 0 4px 15px rgba(214, 41, 118, 0.35);
}
.social-btn.ig:hover {
  box-shadow: 0 8px 25px rgba(214, 41, 118, 0.55);
}

.social-btn.wa {
  background: #25D366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}
.social-btn.wa:hover {
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
}

.social-btn.tg {
  background: #229ED9;
  box-shadow: 0 4px 15px rgba(34, 158, 217, 0.35);
}
.social-btn.tg:hover {
  box-shadow: 0 8px 25px rgba(34, 158, 217, 0.55);
}

/* ═══════════ ALREADY HAVE ACCOUNT & FOOTER ═══════════ */
.auth-links {
  text-align: center;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.auth-links a {
  color: var(--accent2);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.auth-links a:hover {
  color: #fff;
}

.legal-foot {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 20px 10px;
  font-size: 11.5px;
  z-index: 2;
  background: transparent;
  pointer-events: auto;
}

.legal-foot a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin: 0 6px;
  transition: color 0.25s;
}

.legal-foot a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ═══════════ MOBILE PLATFORMS SHOWCASE (MARQUEE) ═══════════ */
.mobile-platforms-title {
  display: none;
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1.5px;
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 700;
}

.mobile-platforms-marquee {
  display: none;
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scrollMarquee 18s linear infinite;
  padding: 8px 0;
}

.marquee-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.marquee-item svg {
  width: 18px;
  height: 18px;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════ RESPONSIVE / MEDIA QUERIES ═══════════ */
@media (max-width: 991px) {
  .landing-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 16px;
    max-width: 480px;
    align-content: center;
  }
  .promo-side {
    display: none; /* Ocultar columna principal de publicidad en celular */
  }
  .mobile-platforms-title {
    display: block; /* Mostrar título de marcas en celular */
  }
  .mobile-platforms-marquee {
    display: flex; /* Mostrar marquesina en celular */
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 32px 20px;
    border-radius: 20px;
  }
  .brand {
    font-size: 22px;
  }
  .brand-icon {
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
  .input-wrap input {
    padding: 12px 8px;
    font-size: 13.5px;
  }
  .input-wrap {
    padding: 0 10px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tel-wrap {
    flex-direction: row;
  }
  .btn-auth {
    font-size: 14px;
    padding: 13.5px;
  }
  .register-btn {
    padding: 14px;
  }
  .register-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .register-text .main-text {
    font-size: 13px;
  }
  .register-text .sub-text {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .auth-wrap {
    padding: 0;
  }
  .auth-card {
    padding: 24px 14px;
    border-radius: 18px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .register-btn {
    padding: 12px;
    gap: 8px;
  }
  .register-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
}

/* ═══════════ RENDIMIENTO EN MÓVIL ═══════════
   Los desenfoques grandes y las animaciones infinitas congelan el teléfono
   los primeros segundos. En pantallas pequeñas se simplifican. */
@media (max-width: 900px) {
  .bg-gradient{
    filter: blur(45px);
    opacity: .18;
    animation: none;
  }
  .grid-overlay{ animation: none; }
  .particles{ display: none; }
  .auth-card{
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #14101f;
    box-shadow: 0 18px 44px rgba(0,0,0,.55);
    animation-duration: .4s;
  }
  .auth-left, .auth-card{ animation-duration: .4s; }
}

/* Respeta a quien pide menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after{ animation: none !important; transition: none !important; }
}

/* ── Logo real en la tarjeta de acceso ── */
.brand-icon-img{
  width:52px;height:52px;border-radius:14px;object-fit:cover;
  box-shadow:0 6px 18px rgba(0,0,0,.35);flex-shrink:0;
}

/* ═══════════ MODO CLARO (paleta del logo) ═══════════ */
html[data-tema="claro"]{ color-scheme: light; }
html[data-tema="claro"] body{ background:#f5f1e8; color:#1a2233; }
html[data-tema="claro"] .bg-gradient{ opacity:.14; }
html[data-tema="claro"] .grid-overlay{
  background-image:
    linear-gradient(rgba(27,79,143,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,79,143,.05) 1px, transparent 1px);
}
html[data-tema="claro"] .particle{ background:rgba(27,79,143,.35); }
html[data-tema="claro"] .auth-card{
  background:#ffffff;
  backdrop-filter:none;-webkit-backdrop-filter:none;
  border:1px solid rgba(27,79,143,.14);
  box-shadow:0 22px 50px rgba(27,79,143,.12);
}
html[data-tema="claro"] .auth-card h1,
html[data-tema="claro"] .brand,
html[data-tema="claro"] .promo-title{ color:#1a2233; }
html[data-tema="claro"] .brand span{ color:#d8232a; }
html[data-tema="claro"] input{
  background:#ffffff !important;
  border-color:rgba(27,79,143,.24) !important;
  color:#1a2233 !important;
}
html[data-tema="claro"] input::placeholder{ color:#9aa2b1 !important; }
html[data-tema="claro"] label,
html[data-tema="claro"] .sub,
html[data-tema="claro"] .muted,
html[data-tema="claro"] .promo-text{ color:#5b6472 !important; }
html[data-tema="claro"] a{ color:#1b4f8f; }

/* Botón para cambiar el tema en el login */
.tema-toggle{
  position:fixed;top:16px;right:16px;z-index:50;
  width:40px;height:40px;border-radius:12px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;font-size:17px;line-height:1;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);
  color:inherit;transition:.2s;
}
.tema-toggle:hover{ transform:translateY(-2px); background:rgba(255,255,255,.13); }
html[data-tema="claro"] .tema-toggle{
  background:#ffffff;border-color:rgba(27,79,143,.18);
  box-shadow:0 3px 10px rgba(27,79,143,.1);
}

/* ── Tipografía: Syne se ve muy ancha, se usa DM Sans en los títulos ── */
.promo-title, .brand, .auth-card h1, .auth-title, h1, h2, h3 {
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif !important;
  letter-spacing: -0.3px !important;
}

/* ── Tema automático: sigue la configuración del dispositivo ── */
@media (prefers-color-scheme: light) {
  html:not([data-tema="oscuro"]) body{ background:#f5f1e8; color:#1a2233; }
  html:not([data-tema="oscuro"]) .bg-gradient{ opacity:.14; }
  html:not([data-tema="oscuro"]) .particle{ background:rgba(27,79,143,.35); }
  html:not([data-tema="oscuro"]) .grid-overlay{
    background-image:
      linear-gradient(rgba(27,79,143,.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(27,79,143,.05) 1px, transparent 1px);
  }
  html:not([data-tema="oscuro"]) .auth-card{
    background:#ffffff;
    backdrop-filter:none; -webkit-backdrop-filter:none;
    border:1px solid rgba(27,79,143,.14);
    box-shadow:0 22px 50px rgba(27,79,143,.12);
  }
  html:not([data-tema="oscuro"]) .auth-card h1,
  html:not([data-tema="oscuro"]) .brand,
  html:not([data-tema="oscuro"]) .promo-title{ color:#1a2233; }
  html:not([data-tema="oscuro"]) .brand span{ color:#d8232a; }
  html:not([data-tema="oscuro"]) input{
    background:#ffffff !important; border-color:rgba(27,79,143,.24) !important; color:#1a2233 !important;
  }
  html:not([data-tema="oscuro"]) input::placeholder{ color:#9aa2b1 !important; }
  html:not([data-tema="oscuro"]) label,
  html:not([data-tema="oscuro"]) .sub,
  html:not([data-tema="oscuro"]) .muted,
  html:not([data-tema="oscuro"]) .promo-text{ color:#5b6472 !important; }
  html:not([data-tema="oscuro"]) a{ color:#1b4f8f; }
  html:not([data-tema="oscuro"]) .tema-toggle{
    background:#ffffff; border-color:rgba(27,79,143,.18); box-shadow:0 3px 10px rgba(27,79,143,.1);
  }
}

/* ═══════════════════════════════════════════════════════════
   AJUSTES 2026-09 — letra, pantalla en celular y botón de registro
   ═══════════════════════════════════════════════════════════ */

/* ── Letra: "Entretenimiento" y el botón usaban Syne (se veía estirada) ── */
.brand, .brand span, .btn-auth, .btn-auth .btn-text{
  font-family: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}
.brand{ font-weight: 800; letter-spacing: -0.6px !important; line-height: 1.15; }
.brand span{ font-weight: 900; letter-spacing: -0.6px; }
.btn-auth{ letter-spacing: .2px; font-weight: 800; }

/* ── Celular: la tarjeta arranca arriba (sin centrar con 100vh, que en iPhone
      mide más que la pantalla visible y hacía que todo quedara corrido) ── */
@media (max-width: 991px){
  .landing-container{
    min-height: 100vh;
    min-height: 100svh;
    align-content: start;
    padding-top: max(18px, env(safe-area-inset-top, 0px));
  }
}
/* Campos de 16px en celular: el iPhone hace zoom y baja la pantalla con letra más pequeña */
@media (max-width: 991px){
  .input-wrap input{ font-size: 16px !important; }
}

/* ── Registro GRATIS — estilo gamer con una luz que gira por el borde ── */
.register-cta{ margin-top: 26px; position: relative; }
.register-cta::before{ display: none !important; }          /* se quita el borde de colores fuerte anterior */

.register-btn{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 16px;
  padding: 15px 16px;
  background: #0b0a16;
  box-shadow: 0 0 0 1px rgba(255,79,139,.28), 0 10px 28px rgba(0,0,0,.35), 0 0 22px -6px rgba(34,211,165,.35);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .3s;
}
/* La luz que gira: un cono de color detrás, recortado a un borde finito */
.register-btn::before{
  content: '';
  position: absolute;
  right: auto; bottom: auto;
  left: 50%; top: 50%;
  width: 220%; aspect-ratio: 1 / 1; height: auto;
  z-index: -2;
  opacity: .9 !important;
  background: conic-gradient(from 0deg,
      transparent 0deg 250deg,
      rgba(34,211,165,.0) 250deg,
      rgba(34,211,165,.55) 300deg,
      rgba(255,143,184,.75) 330deg,
      transparent 360deg);
  animation: ctaLuz 4.8s linear infinite;
  transition: opacity .3s;
}
/* Panel interior (deja ver solo 1.5px de la luz como borde) */
.register-btn::after{
  content: '';
  position: absolute;
  inset: 1.5px;
  z-index: -1;
  border-radius: 14.5px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,79,139,.16), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(34,211,165,.12), transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
    #0d0b1a;
}
@keyframes ctaLuz{
  from{ transform: translate(-50%,-50%) rotate(0deg); }
  to{ transform: translate(-50%,-50%) rotate(360deg); }
}

.register-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,79,139,.45), 0 14px 34px rgba(0,0,0,.4), 0 0 30px -4px rgba(34,211,165,.45);
}
.register-btn:active{ transform: scale(.985); }

.register-icon{
  width: 42px; height: 42px; border-radius: 12px; font-size: 21px;
  background: linear-gradient(135deg, #22d3a5, #0ea5e9 55%, #ff4f8b);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 6px 16px rgba(14,165,233,.35);
  animation: ctaIcono 3s ease-in-out infinite;
}
@keyframes ctaIcono{
  0%,100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-2px) rotate(-6deg); }
}
.register-text .main-text{
  font-size: 15px; font-weight: 800; letter-spacing: -.2px; color: #fff;
  text-shadow: 0 0 14px rgba(255,143,184,.35);
}
.register-text .sub-text{
  display: block; margin-top: 3px;
  font-size: 11.5px; font-weight: 600; color: #5eead4; letter-spacing: .2px;
}
.register-arrow{
  width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(34,211,165,.12); border: 1px solid rgba(34,211,165,.3);
  color: #22d3a5; font-weight: 800;
  animation: ctaFlecha 1.8s ease-in-out infinite;
}
@keyframes ctaFlecha{ 0%,100%{ transform: translateX(0); } 50%{ transform: translateX(3px); } }

.free-badge{
  top: -11px; right: 12px;
  font-size: 9.5px; letter-spacing: 1.6px; padding: 5px 11px;
  background: linear-gradient(135deg, #22d3a5, #0ea5e9);
  color: #04121a;
  box-shadow: 0 4px 14px rgba(34,211,165,.35);
  animation: none;
}

@media (max-width: 480px){
  .register-btn{ padding: 13px 14px; gap: 12px; }
  .register-icon{ width: 38px; height: 38px; font-size: 19px; }
  .register-text .main-text{ font-size: 14px; }
  .register-text .sub-text{ font-size: 11px; }
}

/* ═══════════ Campos de usuario y contraseña: un solo bloque con su icono ═══════════ */
.input-wrap{
  background: #16141f;
  border: 1.5px solid rgba(255,143,184,.16);
  padding: 0 6px 0 14px;
  gap: 10px;
}
/* css-dinamico pinta TODOS los inputs con otro fondo: dentro del recuadro va transparente
   (eso era el "espacio" de otro color al comienzo) */
.input-wrap input{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 14px 8px 14px 2px;
}
.input-wrap .icon{
  width: 20px; height: 20px;
  color: #ff8fb8;
  opacity: .9;
}
/* Safari no dibuja el SVG si no tiene tamaño: por eso no se veía el icono en iPhone */
.input-wrap .icon svg{ width: 18px; height: 18px; display: block; flex-shrink: 0; }
.input-wrap:focus-within .icon{ color: #22d3a5; opacity: 1; }
/* Autocompletar de Chrome/Safari sin cuadro amarillo/blanco */
.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus{
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #16141f inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* ═══════════ Textos que casi no se veían ═══════════ */
.forgot-link{ color: #ffc2d9; font-size: 12.5px; font-weight: 700; }
.forgot-link:hover{ color: #fff; text-decoration: underline; }
.remember-me{ color: #b9b4d4; }
.auth-links.anios{
  margin-top: 18px; font-size: 13px; color: #b9b4d4;
}
.auth-links.anios strong{ color: #fff; font-weight: 800; }
.mobile-platforms-title{ color: #b9b4d4; font-size: 11.5px; letter-spacing: 2px; }

/* ═══════════ Plataformas (desde la base de datos) ═══════════ */
.plat-logo{ display: block; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.plat-ini{
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 60%; border-radius: 12px;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.platform-icon .plat-ini{ font-size: 22px; }
.platform-card:hover{
  border-color: var(--pc, #ff4f8b);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--pc, #ff4f8b) 28%, transparent);
}
.platform-mas{ margin: -24px 0 34px; font-size: 13px; color: var(--muted); }
.marquee-item{
  font-size: 12.5px; gap: 9px; padding: 8px 16px 8px 8px;
  border-color: color-mix(in srgb, var(--pc, #ff4f8b) 35%, transparent);
  background: rgba(255,255,255,.04);
  white-space: nowrap;
}
.marquee-item .plat-logo{ border-radius: 7px; }
.marquee-item .plat-ini{ font-size: 12px; border-radius: 7px; }
.mobile-platforms-marquee:hover .marquee-track{ animation-play-state: paused; }

/* ═══════════ Modo claro: mismos arreglos con colores legibles ═══════════ */
html[data-tema="claro"] .input-wrap{ background: #ffffff; border-color: rgba(27,79,143,.24); }
html[data-tema="claro"] .input-wrap input{ color: #1a2233 !important; }
html[data-tema="claro"] .input-wrap .icon{ color: #1b4f8f; }
html[data-tema="claro"] .forgot-link{ color: #1b4f8f; }
html[data-tema="claro"] .auth-links.anios,
html[data-tema="claro"] .remember-me,
html[data-tema="claro"] .mobile-platforms-title{ color: #4a5261; }
html[data-tema="claro"] .auth-links.anios strong{ color: #1a2233; }
html[data-tema="claro"] .marquee-item{ background: #fff; color: #1a2233; }
@media (prefers-color-scheme: light){
  html:not([data-tema="oscuro"]) .input-wrap{ background: #ffffff; border-color: rgba(27,79,143,.24); }
  html:not([data-tema="oscuro"]) .input-wrap input{ color: #1a2233 !important; }
  html:not([data-tema="oscuro"]) .input-wrap .icon{ color: #1b4f8f; }
  html:not([data-tema="oscuro"]) .input-wrap input:-webkit-autofill{ -webkit-text-fill-color: #1a2233; -webkit-box-shadow: 0 0 0 1000px #fff inset !important; }
  html:not([data-tema="oscuro"]) .forgot-link{ color: #1b4f8f; }
  html:not([data-tema="oscuro"]) .auth-links.anios,
  html:not([data-tema="oscuro"]) .remember-me,
  html:not([data-tema="oscuro"]) .mobile-platforms-title{ color: #4a5261; }
  html:not([data-tema="oscuro"]) .auth-links.anios strong{ color: #1a2233; }
  html:not([data-tema="oscuro"]) .marquee-item{ background: #fff; color: #1a2233; }
}

/* ═══════════ Título grande del computador (antes con Syne, se veía estirado) ═══════════ */
.promo-title, .promo-title span{
  font-family: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}
.promo-title{
  font-size: clamp(38px, 3.6vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.6px !important;
  margin-bottom: 18px;
  color: #fff;
}
.promo-title span{
  font-weight: 900;
  letter-spacing: -1.6px;
  background: linear-gradient(100deg, #ff8fb8 0%, #818cf8 35%, #22d3a5 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.promo-subtitle{
  color: #bdb8d8;
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 560px;
}

/* ═══════════ Tarjetas de plataformas en el computador: textos legibles ═══════════ */
.platform-card{ padding: 20px 14px 18px; gap: 12px; justify-content: flex-start; }
.platform-icon{ width: 52px; height: 52px; }
.platform-icon .plat-logo{ width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.platform-info h3{
  font-size: 14.5px; line-height: 1.3; font-weight: 800; letter-spacing: -.2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.platform-info span{
  display: block; font-size: 12px; line-height: 1.4; color: #a9a4c6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.platform-info{ width: 100%; min-width: 0; }
.platform-mas{ color: #a9a4c6; }

/* Registro: al tocarlo se nota de inmediato que está cargando */
.register-btn.cargando{ pointer-events: none; opacity: .92; }
.register-btn.cargando .register-arrow{ color: transparent; position: relative; }
.register-btn.cargando .register-arrow::after{
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(34,211,165,.3); border-top-color: #22d3a5;
  animation: ctaSpin .7s linear infinite;
}
.register-btn.cargando .register-arrow{ animation: none; }
@keyframes ctaSpin{ to{ transform: rotate(360deg); } }

/* Tarjetas de plataformas: solo logo y nombre, centrados */
.platform-card{justify-content:center;gap:14px;padding:22px 14px;min-height:150px}
.platform-info h3{margin:0;font-size:15px;line-height:1.3;text-align:center}
