@import url(https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700;800&family=Orbitron:wght@400;600;700;900&display=swap);
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* ===============================================
   REGISTRO USUARIO - DISEÑO PROFESIONAL MODERNO
   =============================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CONTAINER PRINCIPAL */
.registro-usuario-container-main {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #0f1419 0%, #1a202c 25%, #2d3748 50%, #1a365d 75%, #1e3a8a 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

/* EFECTOS DE FONDO */
.registro-usuario-background-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.registro-usuario-particles-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(59, 130, 246, 0.15), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(14, 165, 233, 0.1), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(99, 179, 237, 0.2), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: particlesFloat 20s linear infinite;
}

@keyframes particlesFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-100px); }
}

/* WRAPPER DE CONTENIDO */
.registro-usuario-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  animation: slideInUp 0.6s ease-out;
}

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

/* SECCIÓN HEADER */
.registro-usuario-header-section {
  margin-bottom: 32px;
}

.registro-usuario-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  margin-bottom: 24px;
}

.registro-usuario-back-button:hover:not(:disabled) {
  background: rgba(255,255,255,0.25);
  transform: translateX(-2px);
}

.registro-usuario-back-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* LOGO SECTION */
.registro-usuario-logo-section {
  text-align: center;
}

.registro-usuario-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.registro-usuario-logo-image {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  border: 3px solid rgba(255,255,255,0.2);
  object-fit: cover;
}

.registro-usuario-main-title {
  color: white;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  margin-bottom: 4px;
}

.registro-usuario-main-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  font-weight: 400;
}

/* TARJETA DEL FORMULARIO */
.registro-usuario-form-card {
  background: rgba(30, 41, 59, 0.95);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.3),
    0 0 0 1px rgba(59, 130, 246, 0.2);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* FORMULARIO */
.registro-usuario-form-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* GRUPOS DE INPUT */
.registro-usuario-input-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.registro-usuario-input-field {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid rgba(71, 85, 105, 0.5);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #f1f5f9;
  background: rgba(51, 65, 85, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  position: relative;
}

.registro-usuario-input-field:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
  background: rgba(51, 65, 85, 0.9);
}

.registro-usuario-input-field::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.registro-usuario-input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* UNDERLINE ANIMADO */
.registro-usuario-input-underline {
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  margin-top: -2px;
}

.registro-usuario-input-field:focus + .registro-usuario-input-underline {
  transform: scaleX(1);
}

/* TEXTO DE AYUDA */
.registro-usuario-input-help {
  font-size: 12px;
  color: #94a3b8;
  margin-left: 4px;
  font-weight: 400;
}

/* CONTENEDOR DE TELÉFONO */
.registro-usuario-telefono-container {
  display: flex;
  gap: 0;
  align-items: stretch;
  position: relative;
}

.registro-usuario-pais-selector {
  position: relative;
  flex-shrink: 0;
  z-index: 100;
}

.registro-usuario-pais-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px;
  border: 2px solid rgba(71, 85, 105, 0.5);
  border-right: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 12px 0 0 12px;
  background: rgba(51, 65, 85, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  color: #f1f5f9;
  min-width: 120px;
  height: 100%;
  position: relative;
  z-index: 101;
}

.registro-usuario-pais-button:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(71, 85, 105, 0.7);
  z-index: 102;
}

.registro-usuario-pais-button:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  z-index: 102;
}

.registro-usuario-pais-flag {
  font-size: 18px;
  flex-shrink: 0;
}

.registro-usuario-pais-code {
  font-weight: 600;
  color: #f1f5f9;
  flex-shrink: 0;
}

.registro-usuario-pais-arrow {
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.3s ease;
  margin-left: auto;
}

.registro-usuario-pais-button:hover .registro-usuario-pais-arrow {
  transform: rotate(180deg);
}

/* TELEFONO INPUT */
.registro-usuario-telefono-input {
  flex: 1 1;
  padding: 16px 20px;
  border: 2px solid rgba(71, 85, 105, 0.5);
  border-left: none;
  border-radius: 0 12px 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: #f1f5f9;
  background: rgba(51, 65, 85, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.registro-usuario-telefono-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: rgba(51, 65, 85, 0.9);
}

/* DROPDOWN DE PAÍSES */
.registro-usuario-pais-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 280px;
  background: rgba(15, 23, 42, 0.98);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  box-shadow: 
    0 20px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(59, 130, 246, 0.2);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  animation: dropdownSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.registro-usuario-pais-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  color: #e2e8f0;
}

.registro-usuario-pais-option:last-child {
  border-bottom: none;
}

.registro-usuario-pais-option:hover {
  background: rgba(59, 130, 246, 0.15);
  transform: translateX(4px);
  color: #f1f5f9;
}

.registro-usuario-pais-selected {
  background: rgba(59, 130, 246, 0.25) !important;
  color: #93c5fd !important;
  font-weight: 600;
  border-left: 4px solid #3b82f6;
  transform: translateX(4px);
}

.registro-usuario-pais-selected .registro-usuario-pais-code {
  color: #93c5fd;
}

.registro-usuario-pais-name {
  flex: 1 1;
  font-weight: 500;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registro-usuario-pais-selected .registro-usuario-pais-name {
  color: #cbd5e1;
  font-weight: 600;
}

/* SCROLLBAR DEL DROPDOWN */
.registro-usuario-pais-dropdown::-webkit-scrollbar {
  width: 8px;
}

.registro-usuario-pais-dropdown::-webkit-scrollbar-track {
  background: rgba(51, 65, 85, 0.3);
  border-radius: 4px;
}

.registro-usuario-pais-dropdown::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.4);
  border-radius: 4px;
}

.registro-usuario-pais-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.6);
}

/* CONTENEDOR DE PASSWORD */
.registro-usuario-password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.registro-usuario-password-toggle {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.registro-usuario-password-toggle:hover {
  background: #f3f4f6;
}

/* CHECKBOX GROUP */
.registro-usuario-checkbox-group {
  margin: 8px 0;
}

.registro-usuario-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: #cbd5e1;
}

.registro-usuario-checkbox-label input[type="checkbox"] {
  display: none;
}

.registro-usuario-checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(71, 85, 105, 0.5);
  border-radius: 6px;
  background: rgba(51, 65, 85, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.registro-usuario-checkbox-label input:checked + .registro-usuario-checkbox-custom {
  background: #3b82f6;
  border-color: #3b82f6;
}

.registro-usuario-checkbox-label input:checked + .registro-usuario-checkbox-custom::after {
  content: "✓";
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.registro-usuario-terms-link {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.registro-usuario-terms-link:hover {
  border-bottom-color: #60a5fa;
}

/* MENSAJE DE ERROR */
.registro-usuario-error-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 500;
  animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* BOTÓN DE SUBMIT */
.registro-usuario-submit-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  margin-top: 8px;
}

.registro-usuario-submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e3a8a 100%);
}

.registro-usuario-submit-button:active:not(:disabled) {
  transform: translateY(0);
}

.registro-usuario-submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

/* LOADING SPINNER */
.registro-usuario-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* SECCIÓN FOOTER */
.registro-usuario-footer-section {
  margin-top: 32px;
  text-align: center;
}

.registro-usuario-security-info {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.registro-usuario-security-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.registro-usuario-security-icon {
  font-size: 16px;
}

.registro-usuario-login-link {
  color: #94a3b8;
  font-size: 14px;
  margin: 0;
}

.registro-usuario-login-button {
  background: none;
  border: none;
  color: #60a5fa;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.2s ease;
}

.registro-usuario-login-button:hover:not(:disabled) {
  color: #3b82f6;
  text-decoration: underline;
}

/* =============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================= */

/* MOBILE PEQUEÑO */
@media (max-width: 480px) {
  .registro-usuario-container-main {
    padding: 16px;
  }
  
  .registro-usuario-content-wrapper {
    max-width: 100%;
  }
  
  .registro-usuario-form-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
  
  .registro-usuario-main-title {
    font-size: 24px;
  }
  
  .registro-usuario-main-subtitle {
    font-size: 14px;
  }
  
  .registro-usuario-input-field,
  .registro-usuario-telefono-input {
    padding: 14px 16px;
    font-size: 16px; /* Evita zoom en iOS */
  }
  
  .registro-usuario-pais-button {
    min-width: 100px;
    padding: 14px 12px;
  }
  
  /* DROPDOWN MÓVIL MEJORADO */
  .registro-usuario-pais-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 32px);
    max-width: 420px;
    max-height: 70vh;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 
      0 25px 80px rgba(0,0,0,0.5),
      0 0 0 1px rgba(59, 130, 246, 0.3);
    -webkit-backdrop-filter: blur(20px);
            backdrop-filter: blur(20px);
    z-index: 9999;
  }
  
  /* OVERLAY PARA MÓVIL */
  .registro-usuario-pais-dropdown::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: -1;
    animation: overlayFade 0.3s ease;
  }
  
  @keyframes overlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .registro-usuario-pais-option {
    padding: 18px 24px;
    font-size: 16px;
  }
  
  .registro-usuario-security-info {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  
  .registro-usuario-security-item {
    justify-content: center;
  }
}

/* TABLET */
@media (min-width: 481px) and (max-width: 768px) {
  .registro-usuario-form-card {
    padding: 32px;
  }
  
  .registro-usuario-pais-dropdown {
    max-height: 200px;
  }
}

/* DESKTOP PEQUEÑO */
@media (min-width: 769px) and (max-width: 1024px) {
  .registro-usuario-content-wrapper {
    max-width: 460px;
  }
  
  .registro-usuario-form-card {
    padding: 36px;
  }
}

/* DESKTOP GRANDE */
@media (min-width: 1025px) {
  .registro-usuario-container-main {
    padding: 40px;
  }
  
  .registro-usuario-content-wrapper {
    max-width: 480px;
  }
  
  .registro-usuario-input-field:hover {
    border-color: #d1d5db;
  }
  
  .registro-usuario-input-field:hover:focus {
    border-color: #667eea;
  }
}

/* MODO OSCURO */
@media (prefers-color-scheme: dark) {
  .registro-usuario-form-card {
    background: rgba(30, 30, 40, 0.95);
  }
  
  .registro-usuario-input-field,
  .registro-usuario-telefono-input {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
  }
  
  .registro-usuario-input-field::placeholder {
    color: #9ca3af;
  }
  
  .registro-usuario-pais-button {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
  }
  
  .registro-usuario-pais-dropdown {
    background: #1f2937;
    border-color: #374151;
  }
  
  .registro-usuario-pais-option {
    color: #f9fafb;
  }
  
  .registro-usuario-pais-option:hover {
    background: #374151;
  }
}

/* ESTADOS DE ACCESIBILIDAD */
.registro-usuario-input-field:focus-visible,
.registro-usuario-pais-button:focus-visible,
.registro-usuario-submit-button:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* OPTIMIZACIONES DE PERFORMANCE */
.registro-usuario-input-field,
.registro-usuario-pais-button,
.registro-usuario-submit-button {
  will-change: transform;
}

/* REDUCE MOTION */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Inicio.css */
.inicio-login {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 30%, #16213e 70%, #0f3460 100%);
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Background Animation */
.inicio-login__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.inicio-background__particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  animation: inicio-pulse-background 12s ease-in-out infinite;
}

/* Login Container */
.inicio-login__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
  flex: 1 1;
}

/* Welcome Section */
.inicio-welcome {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  animation: inicio-fadeIn 0.8s ease-out;
}

.inicio-welcome__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.inicio-brand__logo {
  position: relative;
  width: 80px;
  height: 80px;
}

.inicio-logo__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inicio-logo__image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.inicio-logo__fallback {
  display: none;
  width: 100%;
  height: 100%;
  background: #0066CC;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}

.inicio-logo__icon {
  font-size: 2rem;
}

.inicio-brand__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inicio-brand__title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d4ff, #ff6b6b, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: inicio-gradient-text 5s ease-in-out infinite;
}

.inicio-brand__subtitle {
  font-size: 1rem;
  color: #8892b0;
  font-weight: 500;
}

.inicio-welcome__platforms {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.inicio-platform {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inicio-platform:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.inicio-platform--disney {
  background: rgba(0, 102, 204, 0.15);
  border: 1px solid rgba(0, 102, 204, 0.3);
  color: #0066CC;
}

.inicio-platform--netflix {
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: #E50914;
}

.inicio-platform--amazon {
  background: rgba(255, 153, 0, 0.15);
  border: 1px solid rgba(255, 153, 0, 0.3);
  color: #FF9900;
}

.inicio-platform--more {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.inicio-welcome__features {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.inicio-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #8892b0;
}

.inicio-feature__icon {
  font-size: 1.2rem;
  animation: inicio-bounce 2s ease-in-out infinite;
}

.inicio-feature__text {
  font-weight: 500;
}

/* Auth Section */
.inicio-auth {
  flex: 1 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inicio-auth__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  animation: inicio-slideIn 0.5s ease-out;
}

.inicio-auth__header {
  text-align: center;
  margin-bottom: 2rem;
}

.inicio-auth__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.inicio-auth__description {
  font-size: 0.9rem;
  color: #8892b0;
}

.inicio-auth__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.inicio-field {
  position: relative;
}

.inicio-field__input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  transition: all 0.3s ease;
}

.inicio-field__input:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
  transform: scale(1.01);
}

.inicio-field__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.inicio-field__input--error {
  border-color: #ff4b4b;
  animation: inicio-shake 0.3s ease;
}

.inicio-field__password {
  position: relative;
  display: flex;
  align-items: center;
}

.inicio-field__toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: #8892b0;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.inicio-field__toggle:hover {
  color: #00d4ff;
  transform: scale(1.1);
}

.inicio-field__underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #00d4ff;
  transition: width 0.3s ease;
}

.inicio-field__input:focus + .inicio-field__underline {
  width: 100%;
}

.inicio-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  animation: inicio-slideIn 0.3s ease-out;
}

.inicio-alert--error {
  background: rgba(255, 75, 75, 0.15);
  border: 1px solid rgba(255, 75, 75, 0.3);
  color: #ff4b4b;
}

.inicio-alert--success {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: #00ff88;
}

.inicio-alert__icon {
  font-size: 1rem;
  animation: inicio-pulse-icon 2s ease-in-out infinite;
}

.inicio-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 75, 75, 0.15);
  border: 1px solid rgba(255, 75, 75, 0.3);
  border-radius: 8px;
  margin-bottom: 1rem;
  animation: inicio-shake 0.5s ease;
}

.inicio-block__icon {
  font-size: 1.2rem;
}

.inicio-block__content {
  display: flex;
  flex-direction: column;
}

.inicio-block__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ff4b4b;
}

.inicio-block__timer {
  font-size: 0.85rem;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}

.inicio-submit {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  background: #0066CC;
  color: #ffffff;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.inicio-submit:hover:not(:disabled) {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.inicio-submit--loading, .inicio-submit--blocked {
  opacity: 0.5;
  cursor: not-allowed;
}

.inicio-submit__loading, .inicio-submit__content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inicio-loading__spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid #00d4ff;
  border-radius: 50%;
  animation: inicio-spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.inicio-submit__icon {
  font-size: 1rem;
  animation: inicio-pulse-icon 2s ease-in-out infinite;
}

.inicio-auth__footer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.inicio-security {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.inicio-security__badge {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inicio-security__badge:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.inicio-security__icon {
  font-size: 1.2rem;
  color: #00d4ff;
}

.inicio-auth__actions {
  text-align: center;
}

.inicio-register {
  background: none;
  border: none;
  color: #00d4ff;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.inicio-register:hover {
  color: #00aaff;
  transform: translateY(-2px);
}

.inicio-register__icon {
  font-size: 1rem;
  animation: inicio-pulse-icon 2s ease-in-out infinite;
}

.inicio-support {
  text-align: center;
}

.inicio-support__title {
  font-size: 0.85rem;
  color: #8892b0;
  margin-bottom: 0.5rem;
}

.inicio-whatsapp {
  background: none;
  border: none;
  color: #00ff88;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.inicio-whatsapp:hover {
  color: #00cc6e;
  transform: translateY(-2px);
}

.inicio-whatsapp__icon {
  font-size: 1rem;
  animation: inicio-pulse-icon 2s ease-in-out infinite;
}

/* Status Bar */
.inicio-status {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.inicio-status__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inicio-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.inicio-status__dot--active {
  background: #00ff88;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
  animation: inicio-pulse-green 2s infinite;
}

.inicio-status__dot--pending {
  background: #ff6b6b;
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
  animation: inicio-pulse-red 2s infinite;
}

.inicio-status__text {
  font-size: 0.85rem;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
}

/* Footer */
.inicio-footer {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.inicio-footer__text {
  font-size: 0.85rem;
  color: #8892b0;
}

.inicio-footer__attempts {
  font-size: 0.75rem;
  color: #ff4b4b;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 0.5rem;
}

/* Animations */
@keyframes inicio-fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes inicio-slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes inicio-pulse-background {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

@keyframes inicio-gradient-text {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes inicio-pulse-green {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 136, 0.6); transform: scale(1); }
  50% { box-shadow: 0 0 15px rgba(0, 255, 136, 0.8); transform: scale(1.1); }
}

@keyframes inicio-pulse-red {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 107, 107, 0.6); transform: scale(1); }
  50% { box-shadow: 0 0 15px rgba(255, 107, 107, 0.8); transform: scale(1.1); }
}

@keyframes inicio-pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes inicio-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes inicio-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
  20%, 40%, 60%, 80% { transform: translateX(3px); }
}

@keyframes inicio-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .inicio-login__container {
    padding: 1.5rem;
  }

  .inicio-welcome {
    gap: 1.5rem;
  }

  .inicio-brand__title {
    font-size: 1.5rem;
  }

  .inicio-auth__card {
    padding: 1.5rem;
  }

  .inicio-auth__title {
    font-size: 1.3rem;
  }

  .inicio-status {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .inicio-brand__logo {
    width: 60px;
    height: 60px;
  }

  .inicio-brand__title {
    font-size: 1.2rem;
  }

  .inicio-brand__subtitle {
    font-size: 0.85rem;
  }

  .inicio-auth__card {
    padding: 1rem;
  }

  .inicio-field__input {
    padding: 0.6rem;
    font-size: 0.8rem;
  }

  .inicio-submit {
    padding: 0.6rem;
    font-size: 0.8rem;
  }

  .inicio-welcome__platforms {
    gap: 0.5rem;
  }

  .inicio-platform {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .inicio-feature {
    font-size: 0.8rem;
  }

  .inicio-status__text {
    font-size: 0.75rem;
  }
}
/* ==============================================
   NUEVAS ADICIONES - AGREGAR AL FINAL DE TU CSS
============================================== */

/* Modal de recuperación de contraseña */
.inicio-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: inicio-fadeIn 0.3s ease;
}

.inicio-modal {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  animation: inicio-slideIn 0.3s ease;
}

.inicio-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.inicio-modal__title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.inicio-modal__close {
  background: transparent;
  border: none;
  color: #8892b0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.inicio-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: scale(1.1);
}

.inicio-modal__description {
  color: #8892b0;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

.inicio-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Botón ¿Olvidaste tu contraseña? */
.inicio-forgot-password {
  background: transparent;
  border: none;
  color: #00d4ff;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem 0;
  text-align: center;
  text-decoration: underline;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.inicio-forgot-password:hover {
  color: #00aaff;
  text-decoration: none;
  transform: translateY(-1px);
}

.inicio-forgot-password:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modificación para logos sin texto en status */
.inicio-status__logo-only {
  height: 32px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: all 0.3s ease;
  cursor: pointer;
}

.inicio-status__item:hover .inicio-status__logo-only {
  filter: brightness(1.1);
  transform: scale(1.05);
}

/* Botón WhatsApp Flotante */
.inicio-whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #20c659 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 25px rgba(37, 211, 102, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: 999;
  animation: inicio-whatsapp-pulse 3s infinite;
}

.inicio-whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 
    0 12px 35px rgba(37, 211, 102, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #20c659 0%, #1db954 100%);
}

.inicio-whatsapp-float:active {
  transform: scale(0.95);
}

.inicio-whatsapp-float__image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(1.1);
}

.inicio-whatsapp-float__icon-fallback {
  display: none;
  font-size: 28px;
  color: white;
}

/* Animación específica para WhatsApp */
@keyframes inicio-whatsapp-pulse {
  0%, 100% {
    box-shadow: 
      0 8px 25px rgba(37, 211, 102, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 12px 35px rgba(37, 211, 102, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 0 0 8px rgba(37, 211, 102, 0.1);
  }
}

/* Ajustes responsive para las nuevas funcionalidades */
@media (max-width: 768px) {
  .inicio-modal {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .inicio-modal__title {
    font-size: 1.3rem;
  }
  
  .inicio-whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
  }
  
  .inicio-whatsapp-float__image {
    width: 28px;
    height: 28px;
  }
  
  .inicio-status__logo-only {
    height: 24px;
    max-width: 80px;
  }
}

@media (max-width: 480px) {
  .inicio-modal {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .inicio-modal__title {
    font-size: 1.2rem;
  }
  
  .inicio-whatsapp-float {
    width: 50px;
    height: 50px;
  }
  
  .inicio-whatsapp-float__image {
    width: 24px;
    height: 24px;
  }
  
  .inicio-whatsapp-float__icon-fallback {
    font-size: 20px;
  }
  
  .inicio-status__logo-only {
    height: 20px;
    max-width: 60px;
  }
}

/* ==============================================
   CSS ACTUALIZADO - AGREGAR AL FINAL DE TU INICIO.CSS
============================================== */

/* Modal de recuperación de contraseña */
.inicio-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: inicio-fadeIn 0.3s ease;
}

.inicio-modal {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  animation: inicio-slideIn 0.3s ease;
}

.inicio-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.inicio-modal__title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.inicio-modal__close {
  background: transparent;
  border: none;
  color: #8892b0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.inicio-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: scale(1.1);
}

.inicio-modal__description {
  color: #8892b0;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

.inicio-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Botón ¿Olvidaste tu contraseña? */
.inicio-forgot-password {
  background: transparent;
  border: none;
  color: #00d4ff;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem 0;
  text-align: center;
  text-decoration: underline;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.inicio-forgot-password:hover {
  color: #00aaff;
  text-decoration: none;
  transform: translateY(-1px);
}

.inicio-forgot-password:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Status con logos - Grid mejorado para más plataformas */
.inicio-status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.inicio-status__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  min-height: 60px;
}

.inicio-status__item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.inicio-status__logo-only {
  height: 32px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: all 0.3s ease;
  cursor: pointer;
}

.inicio-status__item:hover .inicio-status__logo-only {
  filter: brightness(1.1);
  transform: scale(1.05);
}

/* Botón WhatsApp Flotante */
.inicio-whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #20c659 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 25px rgba(37, 211, 102, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: 999;
  animation: inicio-whatsapp-pulse 3s infinite;
}

.inicio-whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 
    0 12px 35px rgba(37, 211, 102, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #20c659 0%, #1db954 100%);
}

.inicio-whatsapp-float:active {
  transform: scale(0.95);
}

.inicio-whatsapp-float__image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(1.1);
}

.inicio-whatsapp-float__icon-fallback {
  display: none;
  font-size: 28px;
  color: white;
}

/* Animación específica para WhatsApp */
@keyframes inicio-whatsapp-pulse {
  0%, 100% {
    box-shadow: 
      0 8px 25px rgba(37, 211, 102, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 12px 35px rgba(37, 211, 102, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 0 0 8px rgba(37, 211, 102, 0.1);
  }
}

/* Ajustes responsive para las nuevas funcionalidades */
@media (max-width: 768px) {
  .inicio-modal {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .inicio-modal__title {
    font-size: 1.3rem;
  }
  
  .inicio-whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
  }
  
  .inicio-whatsapp-float__image {
    width: 28px;
    height: 28px;
  }
  
  .inicio-status {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.8rem;
    padding: 0.8rem;
  }
  
  .inicio-status__item {
    padding: 0.6rem;
    min-height: 50px;
  }
  
  .inicio-status__logo-only {
    height: 24px;
    max-width: 80px;
  }
}

@media (max-width: 480px) {
  .inicio-modal {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .inicio-modal__title {
    font-size: 1.2rem;
  }
  
  .inicio-whatsapp-float {
    width: 50px;
    height: 50px;
  }
  
  .inicio-whatsapp-float__image {
    width: 24px;
    height: 24px;
  }
  
  .inicio-whatsapp-float__icon-fallback {
    font-size: 20px;
  }
  
  .inicio-status {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .inicio-status__item {
    padding: 0.4rem;
    min-height: 40px;
  }
  
  .inicio-status__logo-only {
    height: 20px;
    max-width: 60px;
  }
}

/* ==============================================
   CSS MÓVIL - SOLO PARA PLATAFORMAS
============================================== */

/* Plataformas en tablet */
@media (max-width: 768px) {
  .inicio-status {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0.8rem;
    max-width: 100%;
  }
  
  .inicio-status__item {
    padding: 0.6rem;
    min-height: 50px;
  }
  
  .inicio-status__logo-only {
    height: 24px;
    max-width: 80px;
  }
}

/* Plataformas en móvil */
@media (max-width: 480px) {
  .inicio-status {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
    margin: 0 1rem;
  }
  
  .inicio-status__item {
    padding: 0.4rem;
    min-height: 40px;
    border-radius: 6px;
  }
  
  .inicio-status__logo-only {
    height: 20px;
    max-width: 60px;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 360px) {
  .inicio-status {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    padding: 0.4rem;
  }
  
  .inicio-status__item {
    padding: 0.3rem;
    min-height: 35px;
  }
  
  .inicio-status__logo-only {
    height: 18px;
    max-width: 50px;
  }
}
/* ═══════════════════════════════════════════════════════════
   🏰 DISNEY+ - MAGICAL STREAMING THEME
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   🎨 VARIABLES DE TEMA DISNEY+
   ═══════════════════════════════════════════════════════════ */
.disney-platform {
  --disney-primary: #113CCF;
  --disney-primary-dark: #0D2EA0;
  --disney-primary-light: #2B52E8;
  --disney-secondary: #0A1E4D;
  --disney-accent: #1E4FD9;
  --disney-bg-dark: #040911;
  --disney-bg-card: #0E1420;
  --disney-bg-elevated: #131B2E;
  --disney-text-primary: #ffffff;
  --disney-text-secondary: #C5D3E8;
  --disney-text-muted: #6B7A99;
  --disney-border: rgba(17, 60, 207, 0.15);
  --disney-border-bright: rgba(17, 60, 207, 0.4);
  --disney-glow: rgba(17, 60, 207, 0.3);
  --disney-success: #46d369;
  --disney-warning: #fbbf24;
  --disney-error: #ef4444;
  --disney-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --disney-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* ═══════════════════════════════════════════════════════════
   🎯 CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.disney-platform {
  font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--disney-bg-dark) 0%, #060d1a 100%);
  border-radius: 24px;
  border: 1px solid var(--disney-border);
  box-shadow: var(--disney-shadow-lg), 
              0 0 0 1px rgba(17, 60, 207, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: platformEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.disney-platform::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--disney-primary) 30%, 
    var(--disney-primary-light) 50%, 
    var(--disney-primary) 70%, 
    transparent 100%
  );
  animation: topBarScan 3s ease-in-out infinite;
}

.disney-platform::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(17, 60, 207, 0.08) 0%, transparent 70%);
  animation: ambientGlow 8s ease-in-out infinite;
  pointer-events: none;
}

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

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

@keyframes ambientGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
  50% { transform: translate(10%, 10%) rotate(180deg); opacity: 0.8; }
}

/* ═══════════════════════════════════════════════════════════
   🎯 HEADER CON BRANDING
   ═══════════════════════════════════════════════════════════ */
.disney-header {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--disney-border);
  animation: headerSlideIn 0.5s ease-out 0.1s backwards;
}

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

.disney-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.disney-logo {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  padding: 8px;
  background: linear-gradient(135deg, var(--disney-bg-elevated) 0%, var(--disney-bg-card) 100%);
  border: 2px solid var(--disney-border-bright);
  box-shadow: 0 8px 24px rgba(17, 60, 207, 0.25),
              0 0 20px rgba(17, 60, 207, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: logoPulse 3s ease-in-out infinite;
}

.disney-logo:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 32px rgba(17, 60, 207, 0.4),
              0 0 40px rgba(17, 60, 207, 0.3);
  border-color: var(--disney-primary);
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(17, 60, 207, 0.25), 0 0 20px rgba(17, 60, 207, 0.15); }
  50% { box-shadow: 0 8px 24px rgba(17, 60, 207, 0.4), 0 0 30px rgba(17, 60, 207, 0.25); }
}

.disney-info h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--disney-primary) 0%, var(--disney-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-shadow: 0 0 30px rgba(17, 60, 207, 0.3);
  animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.disney-correos-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, rgba(17, 60, 207, 0.15) 0%, rgba(17, 60, 207, 0.05) 100%);
  border: 1px solid var(--disney-border-bright);
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--disney-primary-light);
  letter-spacing: 0.5px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.disney-correos-count:hover {
  background: linear-gradient(135deg, rgba(17, 60, 207, 0.25) 0%, rgba(17, 60, 207, 0.1) 100%);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════
   📝 FORMULARIO PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.disney-form {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  animation: formFadeIn 0.5s ease-out 0.2s backwards;
}

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

.disney-form-group {
  margin-bottom: 1.5rem;
}

.disney-form-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--disney-text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.disney-input-container {
  position: relative;
}

.disney-form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--disney-text-primary);
  background: var(--disney-bg-card);
  border: 2px solid var(--disney-border);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.disney-form-input::placeholder {
  color: var(--disney-text-muted);
  font-weight: 400;
}

.disney-form-input:focus {
  background: var(--disney-bg-elevated);
  border-color: var(--disney-primary);
  box-shadow: 0 0 0 3px rgba(17, 60, 207, 0.15),
              inset 0 2px 8px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(17, 60, 207, 0.1);
  transform: translateY(-2px);
}

.disney-form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.disney-input-help {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--disney-text-muted);
  font-family: 'Rajdhani', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   🚀 BOTÓN DE CONSULTA
   ═══════════════════════════════════════════════════════════ */
.disney-btn-consultar {
  width: 100%;
  padding: 1.2rem 2rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--disney-primary) 0%, var(--disney-accent) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 60, 207, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.disney-btn-consultar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.disney-btn-consultar:hover::before {
  left: 100%;
}

.disney-btn-consultar:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(17, 60, 207, 0.5),
              0 0 40px rgba(17, 60, 207, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.2);
}

.disney-btn-consultar:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}

.disney-btn-consultar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.disney-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.disney-btn-icon {
  font-size: 1.3rem;
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.disney-btn-text {
  font-weight: 700;
}

.disney-btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.disney-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════
   ⚠️ ALERTAS Y NOTIFICACIONES
   ═══════════════════════════════════════════════════════════ */
.disney-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  animation: alertSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.disney-alert-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.disney-alert-icon {
  font-size: 1.3rem;
  animation: iconPulse 2s ease-in-out infinite;
}

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

.disney-alert-message {
  flex: 1 1;
}

/* ═══════════════════════════════════════════════════════════
   📊 CONTENEDOR DE RESULTADOS
   ═══════════════════════════════════════════════════════════ */
.disney-result-container {
  background: linear-gradient(135deg, var(--disney-bg-elevated) 0%, var(--disney-bg-card) 100%);
  border: 1px solid var(--disney-border-bright);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: resultExpand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.disney-result-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--disney-primary), transparent);
  animation: resultGlow 2s ease-in-out infinite;
}

@keyframes resultExpand {
  from {
    opacity: 0;
    transform: scale(0.95);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: scale(1);
    max-height: 1000px;
  }
}

@keyframes resultGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.disney-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--disney-border);
}

.disney-result-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--disney-text-primary);
  letter-spacing: 0.5px;
}

.disney-result-icon {
  font-size: 1.5rem;
  animation: iconBounce 2s ease-in-out infinite;
}

.disney-result-title {
  font-weight: 700;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ═══════════════════════════════════════════════════════════
   🔑 DISPLAY DE CÓDIGO
   ═══════════════════════════════════════════════════════════ */
.disney-result-code {
  background: var(--disney-bg-dark);
  border: 1px solid var(--disney-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.disney-result-code:hover {
  border-color: var(--disney-border-bright);
  box-shadow: 0 4px 16px rgba(17, 60, 207, 0.15);
}

.disney-code-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border-left: 4px solid var(--disney-primary);
  margin-bottom: 1rem;
}

.disney-code-value {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--disney-primary-light);
  letter-spacing: 8px;
  text-shadow: 0 0 20px rgba(17, 60, 207, 0.5);
  animation: codeGlow 2s ease-in-out infinite;
}

@keyframes codeGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(17, 60, 207, 0.5); }
  50% { text-shadow: 0 0 30px rgba(17, 60, 207, 0.8); }
}

.disney-code-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.disney-validez-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: badgePulse 2s ease-in-out infinite;
}

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

.disney-status-valid {
  background: linear-gradient(135deg, rgba(70, 211, 105, 0.2) 0%, rgba(70, 211, 105, 0.05) 100%);
  border: 1px solid rgba(70, 211, 105, 0.4);
  color: #86efac;
  box-shadow: 0 0 20px rgba(70, 211, 105, 0.2);
}

.disney-status-expiring {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.disney-status-expired {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.disney-status-unknown {
  background: linear-gradient(135deg, rgba(107, 122, 153, 0.2) 0%, rgba(107, 122, 153, 0.05) 100%);
  border: 1px solid rgba(107, 122, 153, 0.4);
  color: #9ca3af;
  box-shadow: 0 0 20px rgba(107, 122, 153, 0.2);
}

.disney-fecha-email {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--disney-text-muted);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.disney-btn-copy {
  padding: 0.875rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--disney-primary);
  background: linear-gradient(135deg, var(--disney-bg-elevated) 0%, var(--disney-bg-card) 100%);
  border: 2px solid var(--disney-border-bright);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.disney-btn-copy:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--disney-bg-card) 0%, var(--disney-bg-dark) 100%);
  border-color: var(--disney-primary);
  box-shadow: 0 6px 24px rgba(17, 60, 207, 0.3);
}

.disney-btn-copy:active {
  transform: translateY(-1px) scale(0.98);
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE - MOBILE FIRST
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .disney-platform {
    padding: 1.25rem;
    border-radius: 16px;
    margin: 0 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .disney-header {
    margin-bottom: 1.5rem;
  }

  .disney-brand {
    gap: 1rem;
  }

  .disney-logo {
    width: 55px;
    height: 55px;
  }

  .disney-info h1 {
    font-size: 1.75rem;
  }

  .disney-correos-count {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
  }

  .disney-form-label {
    font-size: 0.85rem;
  }

  .disney-form-input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
  }

  .disney-btn-consultar {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .disney-result-container {
    padding: 1.25rem;
  }

  .disney-result-header h3 {
    font-size: 1.1rem;
  }

  .disney-code-value {
    font-size: 1.5rem;
    letter-spacing: 4px;
  }

  .disney-code-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .disney-platform {
    padding: 1rem;
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
    border-radius: 12px;
  }

  .disney-logo {
    width: 50px;
    height: 50px;
  }

  .disney-info h1 {
    font-size: 1.5rem;
  }

  .disney-btn-consultar {
    font-size: 0.95rem;
  }

  .disney-btn-icon {
    font-size: 1.1rem;
  }

  .disney-form-input {
    font-size: 0.9rem;
  }

  .disney-code-value {
    font-size: 1.25rem;
    letter-spacing: 3px;
  }

  .disney-btn-copy {
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   ✨ EFECTOS ESPECIALES Y ACABADOS
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Efecto de escaneo futurista */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ═══════════════════════════════════════════════════════════
   📱 AGREGAR ESTAS CORRECCIONES AL RESPONSIVE DE DISNEY+
   ═══════════════════════════════════════════════════════════ */

/* ✅ AÑADE ESTO AL .disney-info EN TODAS LAS RESOLUCIONES */
.disney-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

/* ✅ CORRIGE EL RESPONSIVE MÓVIL - Reemplaza todo el @media (max-width: 768px) */
@media (max-width: 768px) {
  .disney-platform {
    padding: 1.25rem;
    border-radius: 16px;
    margin: 0 0.75rem;
    max-width: calc(100% - 1.5rem);
    overflow-x: hidden; /* ✅ IMPORTANTE: evita scroll horizontal */
  }

  .disney-header {
    margin-bottom: 1.5rem;
  }

  .disney-brand {
    gap: 1rem;
  }

  .disney-logo {
    width: 55px;
    height: 55px;
  }

  .disney-info h1 {
    font-size: 1.75rem;
    margin: 0;
  }

  .disney-correos-count {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    margin-top: 0;
    margin-left: -10px; /* ✅ Mueve a la izquierda */
  }

  .disney-form-label {
    font-size: 0.85rem;
  }

  .disney-form-input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 100%; /* ✅ IMPORTANTE */
    box-sizing: border-box;
  }

  .disney-btn-consultar {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    width: 100%;
  }

  /* ✅ ESTOS SON LOS QUE FALTAN PARA LOS RESULTADOS */
  .disney-result-container {
    padding: 1rem; /* ✅ Reduce padding */
    max-width: 100%;
    box-sizing: border-box;
  }

  .disney-result-header h3 {
    font-size: 1rem;
    flex-wrap: wrap;
  }

  .disney-result-icon {
    font-size: 1.2rem;
  }

  .disney-result-title {
    font-size: 0.95rem;
  }

  /* ✅ ARREGLA EL CÓDIGO DISPLAY */
  .disney-code-display {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .disney-code-value {
    font-size: 1.5rem;
    letter-spacing: 4px;
    word-break: break-all; /* ✅ IMPORTANTE: corta el código si es muy largo */
    text-align: center;
  }

  .disney-btn-copy {
    width: 100%; /* ✅ Botón a ancho completo */
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  /* ✅ ARREGLA LOS BADGES */
  .disney-code-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .disney-validez-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }

  .disney-fecha-email {
    font-size: 0.8rem;
  }
}

/* ✅ TAMBIÉN AÑADE ESTO PARA MÓVILES MUY PEQUEÑOS */
@media (max-width: 480px) {
  .disney-platform {
    padding: 1rem;
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
    border-radius: 12px;
  }

  .disney-logo {
    width: 50px;
    height: 50px;
  }

  .disney-info h1 {
    font-size: 1.5rem;
  }

  .disney-correos-count {
    margin-left: -10px;
  }

  .disney-btn-consultar {
    font-size: 0.95rem;
    padding: 0.9rem 1.25rem;
  }

  .disney-code-value {
    font-size: 1.25rem;
    letter-spacing: 3px;
  }

  .disney-result-container {
    padding: 0.875rem;
  }
}



/* ═══════════════════════════════════════════════════════════
   🎯 SELECTOR PERSONALIZADO (DROPDOWN)
   ═══════════════════════════════════════════════════════════ */
.disney-custom-select {
  position: relative;
  width: 100%;
}

.disney-select-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--disney-bg-card);
  border: 2px solid var(--disney-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.disney-select-display:hover {
  border-color: var(--disney-border-bright);
  background: var(--disney-bg-elevated);
}

.disney-selected-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.disney-option-icon {
  font-size: 1.3rem;
}

.disney-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.disney-option-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--disney-text-primary);
}

.disney-option-desc {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: var(--disney-text-muted);
}

.disney-dropdown-arrow {
  font-size: 0.8rem;
  color: var(--disney-text-muted);
  transition: transform 0.3s ease;
}

.disney-dropdown-arrow.active {
  transform: rotate(180deg);
  color: var(--disney-primary-light);
}

.disney-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--disney-bg-elevated);
  border: 2px solid var(--disney-border-bright);
  border-radius: 12px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: dropdownSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.disney-select-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--disney-border);
}

.disney-select-option:last-child {
  border-bottom: none;
}

.disney-select-option:hover {
  background: rgba(17, 60, 207, 0.1);
}

.disney-select-option.selected {
  background: rgba(17, 60, 207, 0.15);
  border-left: 3px solid var(--disney-primary);
}

/* ═══════════════════════════════════════════════════════════
   🔗 DISPLAY DE LINKS
   ═══════════════════════════════════════════════════════════ */
.disney-result-link {
  background: var(--disney-bg-dark);
  border: 1px solid var(--disney-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.disney-result-link:hover {
  border-color: var(--disney-border-bright);
  box-shadow: 0 4px 16px rgba(17, 60, 207, 0.15);
}

.disney-link-preview {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border-left: 4px solid var(--disney-primary);
  margin-bottom: 1rem;
}

.disney-link-text {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85rem;
  color: var(--disney-text-secondary);
  word-break: break-all;
}

.disney-link-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.disney-btn-open {
  flex: 1 1;
  padding: 0.875rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--disney-primary) 0%, var(--disney-accent) 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.disney-btn-open:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(17, 60, 207, 0.4);
}

.disney-link-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE PARA DROPDOWN Y LINKS
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .disney-select-display {
    padding: 0.875rem 1rem;
  }

  .disney-option-title {
    font-size: 0.95rem;
  }

  .disney-option-desc {
    font-size: 0.75rem;
  }

  .disney-link-actions {
    flex-direction: column;
  }

  .disney-btn-open {
    width: 100%;
  }
}
/* ═══════════════════════════════════════════════════════════
   🎬 NETFLIX - PREMIUM STREAMING THEME
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   🎨 VARIABLES DE TEMA NETFLIX
   ═══════════════════════════════════════════════════════════ */
.netflix-platform {
  --netflix-primary: #E50914;
  --netflix-primary-dark: #B20710;
  --netflix-primary-light: #F40612;
  --netflix-secondary: #221F1F;
  --netflix-accent: #E50914;
  --netflix-bg-dark: #000000;
  --netflix-bg-card: #141414;
  --netflix-bg-elevated: #1F1F1F;
  --netflix-text-primary: #ffffff;
  --netflix-text-secondary: #B3B3B3;
  --netflix-text-muted: #808080;
  --netflix-border: rgba(229, 9, 20, 0.15);
  --netflix-border-bright: rgba(229, 9, 20, 0.4);
  --netflix-glow: rgba(229, 9, 20, 0.3);
  --netflix-success: #46d369;
  --netflix-warning: #fbbf24;
  --netflix-error: #ef4444;
  --netflix-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --netflix-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* ═══════════════════════════════════════════════════════════
   🎯 CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.netflix-platform {
  font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--netflix-bg-dark) 0%, #0a0a0a 100%);
  border-radius: 24px;
  border: 1px solid var(--netflix-border);
  box-shadow: var(--netflix-shadow-lg), 
              0 0 0 1px rgba(229, 9, 20, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: visible;
  animation: platformEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.netflix-platform::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--netflix-primary) 30%, 
    var(--netflix-primary-light) 50%, 
    var(--netflix-primary) 70%, 
    transparent 100%
  );
  animation: topBarScan 3s ease-in-out infinite;
}

.netflix-platform::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.08) 0%, transparent 70%);
  animation: ambientGlow 8s ease-in-out infinite;
  pointer-events: none;
}

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

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

@keyframes ambientGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
  50% { transform: translate(10%, 10%) rotate(180deg); opacity: 0.8; }
}

/* ═══════════════════════════════════════════════════════════
   🎯 HEADER CON BRANDING
   ═══════════════════════════════════════════════════════════ */
.netflix-header {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--netflix-border);
  animation: headerSlideIn 0.5s ease-out 0.1s backwards;
}

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

.netflix-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.netflix-logo {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  padding: 8px;
  background: linear-gradient(135deg, var(--netflix-bg-elevated) 0%, var(--netflix-bg-card) 100%);
  border: 2px solid var(--netflix-border-bright);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.25),
              0 0 20px rgba(229, 9, 20, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: logoPulse 3s ease-in-out infinite;
}

.netflix-logo:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 32px rgba(229, 9, 20, 0.4),
              0 0 40px rgba(229, 9, 20, 0.3);
  border-color: var(--netflix-primary);
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(229, 9, 20, 0.25), 0 0 20px rgba(229, 9, 20, 0.15); }
  50% { box-shadow: 0 8px 24px rgba(229, 9, 20, 0.4), 0 0 30px rgba(229, 9, 20, 0.25); }
}

.netflix-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.netflix-info h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--netflix-primary) 0%, var(--netflix-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-shadow: 0 0 30px rgba(229, 9, 20, 0.3);
  animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.netflix-correos-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  margin-top: 0;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.15) 0%, rgba(229, 9, 20, 0.05) 100%);
  border: 1px solid var(--netflix-border-bright);
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--netflix-primary-light);
  letter-spacing: 0.5px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.netflix-correos-count:hover {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.25) 0%, rgba(229, 9, 20, 0.1) 100%);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════
   📝 FORMULARIO PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.netflix-form {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  animation: formFadeIn 0.5s ease-out 0.2s backwards;
}

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

.netflix-form-group {
  margin-bottom: 1.5rem;
}

.netflix-form-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--netflix-text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.netflix-input-container {
  position: relative;
}

.netflix-form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--netflix-text-primary);
  background: var(--netflix-bg-card);
  border: 2px solid var(--netflix-border);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.netflix-form-input::placeholder {
  color: var(--netflix-text-muted);
  font-weight: 400;
}

.netflix-form-input:focus {
  background: var(--netflix-bg-elevated);
  border-color: var(--netflix-primary);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15),
              inset 0 2px 8px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(229, 9, 20, 0.1);
  transform: translateY(-2px);
}

.netflix-form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.netflix-input-help {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--netflix-text-muted);
  font-family: 'Rajdhani', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   🎛️ CUSTOM SELECT DROPDOWN
   ═══════════════════════════════════════════════════════════ */
.netflix-custom-select {
  position: relative;
}

.netflix-select-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--netflix-bg-card);
  border: 2px solid var(--netflix-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.netflix-select-display:hover {
  background: var(--netflix-bg-elevated);
  border-color: var(--netflix-border-bright);
  transform: translateY(-2px);
}



.netflix-option-icon {
  font-size: 1.5rem;
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.netflix-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.netflix-option-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--netflix-text-primary);
}

.netflix-option-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--netflix-text-muted);
}

.netflix-selected-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1;
  min-width: 0; /* Permite que el contenido se comprima */
}

.netflix-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1;
  min-width: 0; /* Previene overflow */
}

.netflix-option-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--netflix-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.netflix-option-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--netflix-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.netflix-dropdown-arrow {
  font-size: 0.8rem;
  color: var(--netflix-text-secondary);
  transition: transform 0.3s ease;
  margin-left: auto;
  padding-left: 1rem;
  flex-shrink: 0; /* Evita que se comprima */
}

/* ═══════════════════════════════════════════════════════════
   📱 AJUSTES RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .netflix-selected-option {
    gap: 0.75rem;
  }

  .netflix-dropdown-arrow {
    padding-left: 0.75rem;
    font-size: 0.75rem;
  }

  .netflix-option-title {
    font-size: 0.9rem;
  }

  .netflix-option-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .netflix-selected-option {
    gap: 0.5rem;
  }

  .netflix-dropdown-arrow {
    padding-left: 0.5rem;
  }

  .netflix-option-icon {
    font-size: 1.1rem;
  }
}

.netflix-dropdown-arrow.active {
  transform: rotate(180deg);
}

.netflix-select-options {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--netflix-bg-elevated);
  border: 2px solid var(--netflix-border-bright);
  border-radius: 12px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: dropdownExpand 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 100%;
  box-sizing: border-box;
}

@keyframes dropdownExpand {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.netflix-select-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--netflix-border);
}

.netflix-select-option:last-child {
  border-bottom: none;
}

.netflix-select-option:hover {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.15) 0%, rgba(229, 9, 20, 0.05) 100%);
}

.netflix-select-option.selected {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.2) 0%, rgba(229, 9, 20, 0.1) 100%);
  border-left: 3px solid var(--netflix-primary);
}

/* ═══════════════════════════════════════════════════════════
   🚀 BOTÓN DE CONSULTA
   ═══════════════════════════════════════════════════════════ */
.netflix-btn-consultar {
  width: 100%;
  padding: 1.2rem 2rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--netflix-primary) 0%, var(--netflix-accent) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.netflix-btn-consultar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.netflix-btn-consultar:hover::before {
  left: 100%;
}

.netflix-btn-consultar:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(229, 9, 20, 0.5),
              0 0 40px rgba(229, 9, 20, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.2);
}

.netflix-btn-consultar:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}

.netflix-btn-consultar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.netflix-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.netflix-btn-icon {
  font-size: 1.3rem;
}

.netflix-btn-text {
  font-weight: 700;
}

.netflix-btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.netflix-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════
   ⚠️ ALERTAS Y NOTIFICACIONES
   ═══════════════════════════════════════════════════════════ */
.netflix-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  animation: alertSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
}

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

.netflix-alert-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.netflix-alert-icon {
  font-size: 1.3rem;
  animation: iconPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

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

.netflix-alert-message {
  flex: 1 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ═══════════════════════════════════════════════════════════
   📊 CONTENEDOR DE RESULTADOS
   ═══════════════════════════════════════════════════════════ */
.netflix-result-container {
  background: linear-gradient(135deg, var(--netflix-bg-elevated) 0%, var(--netflix-bg-card) 100%);
  border: 1px solid var(--netflix-border-bright);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: resultExpand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.netflix-result-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--netflix-primary), transparent);
  animation: resultGlow 2s ease-in-out infinite;
}

@keyframes resultExpand {
  from {
    opacity: 0;
    transform: scale(0.95);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: scale(1);
    max-height: 1000px;
  }
}

@keyframes resultGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.netflix-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--netflix-border);
}

.netflix-result-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--netflix-text-primary);
  letter-spacing: 0.5px;
}

.netflix-result-icon {
  font-size: 1.5rem;
  animation: iconBounce 2s ease-in-out infinite;
  flex-shrink: 0;
}

.netflix-result-title {
  font-weight: 700;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ═══════════════════════════════════════════════════════════
   🔑 DISPLAY DE CÓDIGO
   ═══════════════════════════════════════════════════════════ */
.netflix-result-code {
  background: var(--netflix-bg-dark);
  border: 1px solid var(--netflix-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.netflix-result-code:hover {
  border-color: var(--netflix-border-bright);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.15);
}

.netflix-code-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border-left: 4px solid var(--netflix-primary);
  margin-bottom: 1rem;
  max-width: 100%;
  box-sizing: border-box;
}

.netflix-code-value {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--netflix-primary-light);
  letter-spacing: 8px;
  text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
  animation: codeGlow 2s ease-in-out infinite;
  word-break: break-all;
  overflow-wrap: break-word;
}

@keyframes codeGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(229, 9, 20, 0.5); }
  50% { text-shadow: 0 0 30px rgba(229, 9, 20, 0.8); }
}

.netflix-code-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.netflix-validez-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: badgePulse 2s ease-in-out infinite;
  white-space: nowrap;
}

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

.netflix-status-valid {
  background: linear-gradient(135deg, rgba(70, 211, 105, 0.2) 0%, rgba(70, 211, 105, 0.05) 100%);
  border: 1px solid rgba(70, 211, 105, 0.4);
  color: #86efac;
  box-shadow: 0 0 20px rgba(70, 211, 105, 0.2);
}

.netflix-status-expiring {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.netflix-status-expired {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.netflix-status-unknown {
  background: linear-gradient(135deg, rgba(128, 128, 128, 0.2) 0%, rgba(128, 128, 128, 0.05) 100%);
  border: 1px solid rgba(128, 128, 128, 0.4);
  color: #9ca3af;
  box-shadow: 0 0 20px rgba(128, 128, 128, 0.2);
}

.netflix-fecha-email {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--netflix-text-muted);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   🔗 PREVIEW Y ACCIONES DE LINK
   ═══════════════════════════════════════════════════════════ */
.netflix-result-link {
  background: var(--netflix-bg-dark);
  border: 1px solid var(--netflix-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.netflix-result-link:hover {
  border-color: var(--netflix-border-bright);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.15);
}

.netflix-link-preview {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--netflix-primary);
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.netflix-link-text {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9rem;
  color: var(--netflix-text-secondary);
  word-break: break-all;
  overflow-wrap: break-word;
  line-height: 1.6;
}

.netflix-link-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.netflix-link-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.netflix-btn-open,
.netflix-btn-copy {
  flex: 1 1;
  padding: 0.875rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.netflix-btn-open {
  background: linear-gradient(135deg, var(--netflix-primary) 0%, var(--netflix-accent) 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.3);
}

.netflix-btn-open:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(229, 9, 20, 0.5);
}

.netflix-btn-copy {
  background: linear-gradient(135deg, var(--netflix-bg-elevated) 0%, var(--netflix-bg-card) 100%);
  color: var(--netflix-primary);
  border: 2px solid var(--netflix-border-bright);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.netflix-btn-copy:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--netflix-bg-card) 0%, var(--netflix-bg-dark) 100%);
  border-color: var(--netflix-primary);
  box-shadow: 0 6px 24px rgba(229, 9, 20, 0.3);
}

.netflix-btn-open:active,
.netflix-btn-copy:active {
  transform: translateY(-1px) scale(0.98);
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE - MOBILE FIRST
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .netflix-platform {
    padding: 1.25rem;
    border-radius: 16px;
    margin: 0 0.75rem;
    max-width: calc(100% - 1.5rem);
    overflow-x: hidden;
  }

  .netflix-header {
    margin-bottom: 1.5rem;
  }

  .netflix-brand {
    gap: 1rem;
  }

  .netflix-logo {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
  }

  .netflix-info h1 {
    font-size: 1.75rem;
  }

  .netflix-correos-count {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    margin-left: -10px;
  }

  .netflix-form-label {
    font-size: 0.85rem;
  }

  .netflix-form-input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .netflix-custom-select {
    width: 100%;
  }

  .netflix-select-display {
    padding: 0.875rem 1rem;
  }

  .netflix-option-icon {
    font-size: 1.2rem;
  }

  .netflix-option-title {
    font-size: 0.95rem;
  }

  .netflix-option-desc {
    font-size: 0.8rem;
  }

  .netflix-btn-consultar {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .netflix-result-container {
    padding: 1rem;
    margin-top: 1.5rem;
  }

  .netflix-result-header h3 {
    font-size: 1rem;
    flex-wrap: wrap;
  }

  .netflix-result-icon {
    font-size: 1.2rem;
  }

  .netflix-result-title {
    font-size: 0.95rem;
  }

  .netflix-result-code,
  .netflix-result-link {
    padding: 1rem;
  }

  .netflix-code-display {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }

  .netflix-code-value {
    font-size: 1.5rem;
    letter-spacing: 4px;
    text-align: center;
  }

  .netflix-btn-copy {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  .netflix-code-status,
  .netflix-link-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .netflix-validez-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }

  .netflix-fecha-email {
    font-size: 0.8rem;
  }

  .netflix-link-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .netflix-btn-open,
  .netflix-btn-copy {
    width: 100%;
  }

  .netflix-link-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .netflix-platform {
    padding: 1rem;
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
    border-radius: 12px;
  }

  .netflix-logo {
    width: 50px;
    height: 50px;
  }

  .netflix-info h1 {
    font-size: 1.5rem;
  }

  .netflix-correos-count {
    margin-left: -10px;
  }

  .netflix-btn-consultar {
    font-size: 0.95rem;
  }

  .netflix-btn-icon {
    font-size: 1.1rem;
  }

  .netflix-form-input {
    font-size: 0.9rem;
  }

  .netflix-code-value {
    font-size: 1.25rem;
    letter-spacing: 3px;
  }

  .netflix-result-container {
    padding: 0.875rem;
  }

  .netflix-code-display {
    padding: 0.875rem;
  }

  .netflix-link-text {
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   ✨ EFECTOS ESPECIALES Y ACABADOS
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


.netflix-fecha-email {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--netflix-text-muted);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  white-space: nowrap;
}

/* ✅ RESPONSIVE PARA MÓVIL */
@media (max-width: 768px) {
  .netflix-fecha-email {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }
}

@media (max-width: 480px) {
  .netflix-fecha-email {
    font-size: 0.75rem;
    white-space: normal;
  }
}

/* ═══════════════════════════════════════════════════════════
   📦 AMAZON PRIME VIDEO - PREMIUM STREAMING THEME
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   🎨 VARIABLES DE TEMA AMAZON PRIME VIDEO
   ═══════════════════════════════════════════════════════════ */
.amazonprime-platform {
  --amazon-primary: #00A8E1;
  --amazon-primary-dark: #0088B8;
  --amazon-primary-light: #1EBFEF;
  --amazon-secondary: #0C1E2E;
  --amazon-accent: #08AAE3;
  --amazon-bg-dark: #050A0F;
  --amazon-bg-card: #0D1419;
  --amazon-bg-elevated: #141B23;
  --amazon-text-primary: #ffffff;
  --amazon-text-secondary: #C5D5E3;
  --amazon-text-muted: #6B7E91;
  --amazon-border: rgba(0, 168, 225, 0.15);
  --amazon-border-bright: rgba(0, 168, 225, 0.4);
  --amazon-glow: rgba(0, 168, 225, 0.3);
  --amazon-success: #46d369;
  --amazon-warning: #fbbf24;
  --amazon-error: #ef4444;
  --amazon-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --amazon-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* ═══════════════════════════════════════════════════════════
   🎯 CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.amazonprime-platform {
  font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--amazon-bg-dark) 0%, #070d13 100%);
  border-radius: 24px;
  border: 1px solid var(--amazon-border);
  box-shadow: var(--amazon-shadow-lg), 
              0 0 0 1px rgba(0, 168, 225, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: platformEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.amazonprime-platform::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--amazon-primary) 30%, 
    var(--amazon-primary-light) 50%, 
    var(--amazon-primary) 70%, 
    transparent 100%
  );
  animation: topBarScan 3s ease-in-out infinite;
}

.amazonprime-platform::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 168, 225, 0.08) 0%, transparent 70%);
  animation: ambientGlow 8s ease-in-out infinite;
  pointer-events: none;
}

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

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

@keyframes ambientGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
  50% { transform: translate(10%, 10%) rotate(180deg); opacity: 0.8; }
}

/* ═══════════════════════════════════════════════════════════
   🎯 HEADER CON BRANDING
   ═══════════════════════════════════════════════════════════ */
.amazonprime-header {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--amazon-border);
  animation: headerSlideIn 0.5s ease-out 0.1s backwards;
}

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

.amazonprime-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.amazonprime-logo {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  padding: 8px;
  background: linear-gradient(135deg, var(--amazon-bg-elevated) 0%, var(--amazon-bg-card) 100%);
  border: 2px solid var(--amazon-border-bright);
  box-shadow: 0 8px 24px rgba(0, 168, 225, 0.25),
              0 0 20px rgba(0, 168, 225, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: logoPulse 3s ease-in-out infinite;
}

.amazonprime-logo:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 168, 225, 0.4),
              0 0 40px rgba(0, 168, 225, 0.3);
  border-color: var(--amazon-primary);
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 168, 225, 0.25), 0 0 20px rgba(0, 168, 225, 0.15); }
  50% { box-shadow: 0 8px 24px rgba(0, 168, 225, 0.4), 0 0 30px rgba(0, 168, 225, 0.25); }
}

.amazonprime-info h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--amazon-primary) 0%, var(--amazon-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-shadow: 0 0 30px rgba(0, 168, 225, 0.3);
  animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.amazonprime-correos-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, rgba(0, 168, 225, 0.15) 0%, rgba(0, 168, 225, 0.05) 100%);
  border: 1px solid var(--amazon-border-bright);
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amazon-primary-light);
  letter-spacing: 0.5px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.amazonprime-correos-count:hover {
  background: linear-gradient(135deg, rgba(0, 168, 225, 0.25) 0%, rgba(0, 168, 225, 0.1) 100%);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════
   📝 FORMULARIO PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.amazonprime-form {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  animation: formFadeIn 0.5s ease-out 0.2s backwards;
}

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

.amazonprime-form-group {
  margin-bottom: 1.5rem;
}

.amazonprime-form-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--amazon-text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.amazonprime-input-container {
  position: relative;
}

.amazonprime-form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--amazon-text-primary);
  background: var(--amazon-bg-card);
  border: 2px solid var(--amazon-border);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.amazonprime-form-input::placeholder {
  color: var(--amazon-text-muted);
  font-weight: 400;
}

.amazonprime-form-input:focus {
  background: var(--amazon-bg-elevated);
  border-color: var(--amazon-primary);
  box-shadow: 0 0 0 3px rgba(0, 168, 225, 0.15),
              inset 0 2px 8px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(0, 168, 225, 0.1);
  transform: translateY(-2px);
}

.amazonprime-form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.amazonprime-input-help {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--amazon-text-muted);
  font-family: 'Rajdhani', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   🎛️ CUSTOM SELECT DROPDOWN
   ═══════════════════════════════════════════════════════════ */
.amazonprime-custom-select {
  position: relative;
}

.amazonprime-select-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--amazon-bg-card);
  border: 2px solid var(--amazon-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.amazonprime-select-display:hover {
  background: var(--amazon-bg-elevated);
  border-color: var(--amazon-border-bright);
  transform: translateY(-2px);
}

.amazonprime-selected-option {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.amazonprime-option-icon {
  font-size: 1.5rem;
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.amazonprime-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.amazonprime-option-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--amazon-text-primary);
}

.amazonprime-option-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--amazon-text-muted);
}

.amazonprime-dropdown-arrow {
  font-size: 0.8rem;
  color: var(--amazon-text-secondary);
  transition: transform 0.3s ease;
}

.amazonprime-dropdown-arrow.active {
  transform: rotate(180deg);
}

.amazonprime-select-options {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--amazon-bg-elevated);
  border: 2px solid var(--amazon-border-bright);
  border-radius: 12px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: dropdownExpand 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropdownExpand {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.amazonprime-select-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--amazon-border);
}

.amazonprime-select-option:last-child {
  border-bottom: none;
}

.amazonprime-select-option:hover {
  background: linear-gradient(135deg, rgba(0, 168, 225, 0.15) 0%, rgba(0, 168, 225, 0.05) 100%);
}

.amazonprime-select-option.selected {
  background: linear-gradient(135deg, rgba(0, 168, 225, 0.2) 0%, rgba(0, 168, 225, 0.1) 100%);
  border-left: 3px solid var(--amazon-primary);
}

/* ═══════════════════════════════════════════════════════════
   🚀 BOTÓN DE CONSULTA
   ═══════════════════════════════════════════════════════════ */
.amazonprime-btn-consultar {
  width: 100%;
  padding: 1.2rem 2rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amazon-primary) 0%, var(--amazon-accent) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 168, 225, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.amazonprime-btn-consultar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.amazonprime-btn-consultar:hover::before {
  left: 100%;
}

.amazonprime-btn-consultar:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 168, 225, 0.5),
              0 0 40px rgba(0, 168, 225, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.2);
}

.amazonprime-btn-consultar:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}

.amazonprime-btn-consultar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.amazonprime-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.amazonprime-btn-icon {
  font-size: 1.3rem;
  animation: iconFloat 2s ease-in-out infinite;
}

.amazonprime-btn-text {
  font-weight: 700;
}

.amazonprime-btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.amazonprime-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════
   ⚠️ ALERTAS Y NOTIFICACIONES
   ═══════════════════════════════════════════════════════════ */
.amazonprime-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  animation: alertSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.amazonprime-alert-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.amazonprime-alert-icon {
  font-size: 1.3rem;
  animation: iconPulse 2s ease-in-out infinite;
}

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

.amazonprime-alert-message {
  flex: 1 1;
}

/* ═══════════════════════════════════════════════════════════
   📊 CONTENEDOR DE RESULTADOS
   ═══════════════════════════════════════════════════════════ */
.amazonprime-result-container {
  background: linear-gradient(135deg, var(--amazon-bg-elevated) 0%, var(--amazon-bg-card) 100%);
  border: 1px solid var(--amazon-border-bright);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: resultExpand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.amazonprime-result-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amazon-primary), transparent);
  animation: resultGlow 2s ease-in-out infinite;
}

@keyframes resultExpand {
  from {
    opacity: 0;
    transform: scale(0.95);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: scale(1);
    max-height: 1000px;
  }
}

@keyframes resultGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.amazonprime-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--amazon-border);
}

.amazonprime-result-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--amazon-text-primary);
  letter-spacing: 0.5px;
}

.amazonprime-result-icon {
  font-size: 1.5rem;
  animation: iconBounce 2s ease-in-out infinite;
}

.amazonprime-result-title {
  font-weight: 700;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ═══════════════════════════════════════════════════════════
   🔑 DISPLAY DE CÓDIGO
   ═══════════════════════════════════════════════════════════ */
.amazonprime-result-code {
  background: var(--amazon-bg-dark);
  border: 1px solid var(--amazon-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.amazonprime-result-code:hover {
  border-color: var(--amazon-border-bright);
  box-shadow: 0 4px 16px rgba(0, 168, 225, 0.15);
}

.amazonprime-code-display {
  display: flex;
  flex-direction: column;  /* ← CAMBIADO: de horizontal a vertical */
  align-items: center;     /* ← CAMBIADO: centrar elementos */
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border-left: 4px solid var(--amazon-primary);
  margin-bottom: 1rem;
}

.amazonprime-code-value {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--amazon-primary-light);
  letter-spacing: 8px;
  text-shadow: 0 0 20px rgba(0, 168, 225, 0.5);
  animation: codeGlow 2s ease-in-out infinite;
  text-align: center;  /* ← AÑADIDO: centrar el código */
}

@keyframes codeGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(0, 168, 225, 0.5); }
  50% { text-shadow: 0 0 30px rgba(0, 168, 225, 0.8); }
}

.amazonprime-btn-copy {
  width: 100%;  /* ← AÑADIDO: botón ocupa todo el ancho */
  padding: 0.875rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--amazon-primary);
  background: linear-gradient(135deg, var(--amazon-bg-elevated) 0%, var(--amazon-bg-card) 100%);
  border: 2px solid var(--amazon-border-bright);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.amazonprime-btn-copy:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--amazon-bg-card) 0%, var(--amazon-bg-dark) 100%);
  border-color: var(--amazon-primary);
  box-shadow: 0 6px 24px rgba(0, 168, 225, 0.3);
}

.amazonprime-btn-copy:active {
  transform: translateY(-1px) scale(0.98);
}

.amazonprime-code-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.amazonprime-validez-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: badgePulse 2s ease-in-out infinite;
}

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

.amazonprime-status-valid {
  background: linear-gradient(135deg, rgba(70, 211, 105, 0.2) 0%, rgba(70, 211, 105, 0.05) 100%);
  border: 1px solid rgba(70, 211, 105, 0.4);
  color: #86efac;
  box-shadow: 0 0 20px rgba(70, 211, 105, 0.2);
}

.amazonprime-status-expiring {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.amazonprime-status-expired {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.amazonprime-status-unknown {
  background: linear-gradient(135deg, rgba(107, 126, 145, 0.2) 0%, rgba(107, 126, 145, 0.05) 100%);
  border: 1px solid rgba(107, 126, 145, 0.4);
  color: #9ca3af;
  box-shadow: 0 0 20px rgba(107, 126, 145, 0.2);
}

.amazonprime-fecha-email {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--amazon-text-muted);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE - MOBILE FIRST
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .amazonprime-platform {
    padding: 1.25rem;
    border-radius: 16px;
    margin: 0 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .amazonprime-header {
    margin-bottom: 1.5rem;
  }

  .amazonprime-brand {
    gap: 1rem;
  }

  .amazonprime-logo {
    width: 55px;
    height: 55px;
  }

  .amazonprime-info h1 {
    font-size: 1.75rem;
  }

  .amazonprime-correos-count {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
  }

  .amazonprime-form-label {
    font-size: 0.85rem;
  }

  .amazonprime-form-input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
  }

  .amazonprime-btn-consultar {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .amazonprime-result-container {
    padding: 1.25rem;
  }

  .amazonprime-result-header h3 {
    font-size: 1.1rem;
  }

  .amazonprime-code-value {
    font-size: 1.5rem;
    letter-spacing: 4px;
  }

  .amazonprime-code-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .amazonprime-platform {
    padding: 1rem;
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
    border-radius: 12px;
  }

  .amazonprime-logo {
    width: 50px;
    height: 50px;
  }

  .amazonprime-info h1 {
    font-size: 1.5rem;
  }

  .amazonprime-btn-consultar {
    font-size: 0.95rem;
  }

  .amazonprime-btn-icon {
    font-size: 1.1rem;
  }

  .amazonprime-form-input {
    font-size: 0.9rem;
  }

  .amazonprime-code-value {
    font-size: 1.25rem;
    letter-spacing: 3px;
  }

  .amazonprime-btn-copy {
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   ✨ EFECTOS ESPECIALES Y ACABADOS
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Efecto de escaneo futurista */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ═══════════════════════════════════════════════════════════
   🎬 HBO MAX - PREMIUM STREAMING THEME
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   🎨 VARIABLES DE TEMA HBO MAX
   ═══════════════════════════════════════════════════════════ */
.hbomax-platform {
  --hbo-primary: #0073FF;
  --hbo-primary-dark: #0052CC;
  --hbo-primary-light: #3399FF;
  --hbo-secondary: #120C1D;
  --hbo-accent: #00A8FF;
  --hbo-bg-dark: #0A0A0F;
  --hbo-bg-card: #0F0F17;
  --hbo-bg-elevated: #14141F;
  --hbo-text-primary: #ffffff;
  --hbo-text-secondary: #B8BCC8;
  --hbo-text-muted: #6B7280;
  --hbo-border: rgba(0, 115, 255, 0.15);
  --hbo-border-bright: rgba(0, 115, 255, 0.4);
  --hbo-glow: rgba(0, 115, 255, 0.3);
  --hbo-success: #10B981;
  --hbo-warning: #FBBF24;
  --hbo-error: #EF4444;
  --hbo-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --hbo-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* ═══════════════════════════════════════════════════════════
   🎯 CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.hbomax-platform {
  font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--hbo-bg-dark) 0%, #0D0D15 100%);
  border-radius: 24px;
  border: 1px solid var(--hbo-border);
  box-shadow: var(--hbo-shadow-lg), 
              0 0 0 1px rgba(0, 115, 255, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: platformEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.hbomax-platform::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--hbo-primary) 30%, 
    var(--hbo-primary-light) 50%, 
    var(--hbo-primary) 70%, 
    transparent 100%
  );
  animation: topBarScan 3s ease-in-out infinite;
}

.hbomax-platform::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 115, 255, 0.08) 0%, transparent 70%);
  animation: ambientGlow 8s ease-in-out infinite;
  pointer-events: none;
}

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

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

@keyframes ambientGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
  50% { transform: translate(10%, 10%) rotate(180deg); opacity: 0.8; }
}

/* ═══════════════════════════════════════════════════════════
   🎯 HEADER CON BRANDING
   ═══════════════════════════════════════════════════════════ */
.hbomax-header {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hbo-border);
  animation: headerSlideIn 0.5s ease-out 0.1s backwards;
}

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

.hbomax-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hbomax-logo {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  padding: 8px;
  background: linear-gradient(135deg, var(--hbo-bg-elevated) 0%, var(--hbo-bg-card) 100%);
  border: 2px solid var(--hbo-border-bright);
  box-shadow: 0 8px 24px rgba(0, 115, 255, 0.25),
              0 0 20px rgba(0, 115, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: logoPulse 3s ease-in-out infinite;
}

.hbomax-logo:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 115, 255, 0.4),
              0 0 40px rgba(0, 115, 255, 0.3);
  border-color: var(--hbo-primary);
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 115, 255, 0.25), 0 0 20px rgba(0, 115, 255, 0.15); }
  50% { box-shadow: 0 8px 24px rgba(0, 115, 255, 0.4), 0 0 30px rgba(0, 115, 255, 0.25); }
}

.hbomax-info h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--hbo-primary) 0%, var(--hbo-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-shadow: 0 0 30px rgba(0, 115, 255, 0.3);
  animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.hbomax-correos-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, rgba(0, 115, 255, 0.15) 0%, rgba(0, 115, 255, 0.05) 100%);
  border: 1px solid var(--hbo-border-bright);
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hbo-primary-light);
  letter-spacing: 0.5px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hbomax-correos-count:hover {
  background: linear-gradient(135deg, rgba(0, 115, 255, 0.25) 0%, rgba(0, 115, 255, 0.1) 100%);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════
   📝 FORMULARIO PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.hbomax-form {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  animation: formFadeIn 0.5s ease-out 0.2s backwards;
}

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

.hbomax-form-group {
  margin-bottom: 1.5rem;
}

.hbomax-form-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hbo-text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hbomax-input-container {
  position: relative;
}

.hbomax-form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--hbo-text-primary);
  background: var(--hbo-bg-card);
  border: 2px solid var(--hbo-border);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.hbomax-form-input::placeholder {
  color: var(--hbo-text-muted);
  font-weight: 400;
}

.hbomax-form-input:focus {
  background: var(--hbo-bg-elevated);
  border-color: var(--hbo-primary);
  box-shadow: 0 0 0 3px rgba(0, 115, 255, 0.15),
              inset 0 2px 8px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(0, 115, 255, 0.1);
  transform: translateY(-2px);
}

.hbomax-form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hbomax-input-help {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--hbo-text-muted);
  font-family: 'Rajdhani', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   🎛️ CUSTOM SELECT DROPDOWN
   ═══════════════════════════════════════════════════════════ */
.hbomax-custom-select {
  position: relative;
}

.hbomax-select-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--hbo-bg-card);
  border: 2px solid var(--hbo-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hbomax-select-display:hover {
  background: var(--hbo-bg-elevated);
  border-color: var(--hbo-border-bright);
  transform: translateY(-2px);
}

.hbomax-selected-option {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hbomax-option-icon {
  font-size: 1.5rem;
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.hbomax-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hbomax-option-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--hbo-text-primary);
}

.hbomax-option-desc {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--hbo-text-muted);
}

.hbomax-dropdown-arrow {
  font-size: 0.8rem;
  color: var(--hbo-text-secondary);
  transition: transform 0.3s ease;
}

.hbomax-dropdown-arrow.active {
  transform: rotate(180deg);
}

.hbomax-select-options {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--hbo-bg-elevated);
  border: 2px solid var(--hbo-border-bright);
  border-radius: 12px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: dropdownExpand 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropdownExpand {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hbomax-select-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--hbo-border);
}

.hbomax-select-option:last-child {
  border-bottom: none;
}

.hbomax-select-option:hover {
  background: linear-gradient(135deg, rgba(0, 115, 255, 0.15) 0%, rgba(0, 115, 255, 0.05) 100%);
}

.hbomax-select-option.selected {
  background: linear-gradient(135deg, rgba(0, 115, 255, 0.2) 0%, rgba(0, 115, 255, 0.1) 100%);
  border-left: 3px solid var(--hbo-primary);
}

/* ═══════════════════════════════════════════════════════════
   🚀 BOTÓN DE CONSULTA
   ═══════════════════════════════════════════════════════════ */
.hbomax-btn-consultar {
  width: 100%;
  padding: 1.2rem 2rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--hbo-primary) 0%, var(--hbo-accent) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 115, 255, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hbomax-btn-consultar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.hbomax-btn-consultar:hover::before {
  left: 100%;
}

.hbomax-btn-consultar:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 115, 255, 0.5),
              0 0 40px rgba(0, 115, 255, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.2);
}

.hbomax-btn-consultar:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}

.hbomax-btn-consultar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.hbomax-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hbomax-btn-icon {
  font-size: 1.3rem;
  animation: iconFloat 2s ease-in-out infinite;
}

.hbomax-btn-text {
  font-weight: 700;
}

.hbomax-btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hbomax-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════
   ⚠️ ALERTAS Y NOTIFICACIONES
   ═══════════════════════════════════════════════════════════ */
.hbomax-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  animation: alertSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.hbomax-alert-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

.hbomax-alert-icon {
  font-size: 1.3rem;
  animation: iconPulse 2s ease-in-out infinite;
}

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

.hbomax-alert-message {
  flex: 1 1;
}

/* ═══════════════════════════════════════════════════════════
   📊 CONTENEDOR DE RESULTADOS
   ═══════════════════════════════════════════════════════════ */
.hbomax-result-container {
  background: linear-gradient(135deg, var(--hbo-bg-elevated) 0%, var(--hbo-bg-card) 100%);
  border: 1px solid var(--hbo-border-bright);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: resultExpand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.hbomax-result-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--hbo-primary), transparent);
  animation: resultGlow 2s ease-in-out infinite;
}

@keyframes resultExpand {
  from {
    opacity: 0;
    transform: scale(0.95);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: scale(1);
    max-height: 1000px;
  }
}

@keyframes resultGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.hbomax-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hbo-border);
}

.hbomax-result-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--hbo-text-primary);
  letter-spacing: 0.5px;
}

.hbomax-result-icon {
  font-size: 1.5rem;
  animation: iconBounce 2s ease-in-out infinite;
}

.hbomax-result-title {
  font-weight: 700;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ═══════════════════════════════════════════════════════════
   🔑 DISPLAY DE CÓDIGO
   ═══════════════════════════════════════════════════════════ */
.hbomax-result-code {
  background: var(--hbo-bg-dark);
  border: 1px solid var(--hbo-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.hbomax-result-code:hover {
  border-color: var(--hbo-border-bright);
  box-shadow: 0 4px 16px rgba(0, 115, 255, 0.15);
}

.hbomax-code-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border-left: 4px solid var(--hbo-primary);
  margin-bottom: 1rem;
}

.hbomax-code-value {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--hbo-primary-light);
  letter-spacing: 8px;
  text-shadow: 0 0 20px rgba(0, 115, 255, 0.5);
  animation: codeGlow 2s ease-in-out infinite;
  text-align: center;
}

@keyframes codeGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(0, 115, 255, 0.5); }
  50% { text-shadow: 0 0 30px rgba(0, 115, 255, 0.8); }
}

.hbomax-btn-copy {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hbo-primary);
  background: linear-gradient(135deg, var(--hbo-bg-elevated) 0%, var(--hbo-bg-card) 100%);
  border: 2px solid var(--hbo-border-bright);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hbomax-btn-copy:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--hbo-bg-card) 0%, var(--hbo-bg-dark) 100%);
  border-color: var(--hbo-primary);
  box-shadow: 0 6px 24px rgba(0, 115, 255, 0.3);
}

.hbomax-btn-copy:active {
  transform: translateY(-1px) scale(0.98);
}

.hbomax-code-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.hbomax-validez-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: badgePulse 2s ease-in-out infinite;
}

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

.hbomax-status-valid {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.hbomax-status-expiring {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #FDE68A;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.hbomax-status-expired {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.hbomax-status-unknown {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(107, 114, 128, 0.05) 100%);
  border: 1px solid rgba(107, 114, 128, 0.4);
  color: #9CA3AF;
  box-shadow: 0 0 20px rgba(107, 114, 128, 0.2);
}

.hbomax-fecha-email {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--hbo-text-muted);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}


/* ═══════════════════════════════════════════════════════════
   🔗 PREVIEW Y ACCIONES DE LINK
   ═══════════════════════════════════════════════════════════ */
.hbomax-result-link {
  background: var(--hbo-bg-dark);
  border: 1px solid var(--hbo-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.hbomax-result-link:hover {
  border-color: var(--hbo-border-bright);
  box-shadow: 0 4px 16px rgba(0, 115, 255, 0.15);
}

.hbomax-link-preview {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--hbo-primary);
}

.hbomax-link-text {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9rem;
  color: var(--hbo-text-secondary);
  word-break: break-all;
  line-height: 1.6;
}

.hbomax-link-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.hbomax-validez-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: badgePulse 2s ease-in-out infinite;
}

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

.hbomax-status-valid {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.hbomax-status-expiring {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #FDE68A;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.hbomax-status-expired {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.hbomax-status-unknown {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(107, 114, 128, 0.05) 100%);
  border: 1px solid rgba(107, 114, 128, 0.4);
  color: #9CA3AF;
  box-shadow: 0 0 20px rgba(107, 114, 128, 0.2);
}

.hbomax-fecha-email {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--hbo-text-muted);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.hbomax-link-actions {
  display: flex;
flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hbomax-btn-open,
.hbomax-btn-copy {
  flex: 1 1;
  padding: 0.875rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.hbomax-btn-open {
  background: linear-gradient(135deg, var(--hbo-primary) 0%, var(--hbo-accent) 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 115, 255, 0.3);
}

.hbomax-btn-open:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 115, 255, 0.5);
}

.hbomax-btn-copy {
  background: linear-gradient(135deg, var(--hbo-bg-elevated) 0%, var(--hbo-bg-card) 100%);
  color: var(--hbo-primary);
  border: 2px solid var(--hbo-border-bright);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hbomax-btn-copy:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--hbo-bg-card) 0%, var(--hbo-bg-dark) 100%);
  border-color: var(--hbo-primary);
  box-shadow: 0 6px 24px rgba(0, 115, 255, 0.3);
}

.hbomax-btn-open:active,
.hbomax-btn-copy:active {
  transform: translateY(-1px) scale(0.98);
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE - MOBILE FIRST
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hbomax-platform {
    padding: 1.25rem;
    border-radius: 16px;
    margin: 0 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .hbomax-header {
    margin-bottom: 1.5rem;
  }

  .hbomax-brand {
    gap: 1rem;
  }

  .hbomax-logo {
    width: 55px;
    height: 55px;
  }

  .hbomax-info h1 {
    font-size: 1.75rem;
  }

  .hbomax-correos-count {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
  }

  .hbomax-form-label {
    font-size: 0.85rem;
  }

  .hbomax-form-input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
  }

  .hbomax-btn-consultar {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .hbomax-result-container {
    padding: 1.25rem;
  }

  .hbomax-result-header h3 {
    font-size: 1.1rem;
  }

  .hbomax-code-value {
    font-size: 1.5rem;
    letter-spacing: 4px;
  }

  .hbomax-link-actions {
    flex-direction: column;
  }

  .hbomax-btn-open,
  .hbomax-btn-copy {
    width: 100%;
  }

  .hbomax-link-status,
  .hbomax-code-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hbomax-platform {
    padding: 1rem;
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
    border-radius: 12px;
  }

  .hbomax-logo {
    width: 50px;
    height: 50px;
  }

  .hbomax-info h1 {
    font-size: 1.5rem;
  }

  .hbomax-btn-consultar {
    font-size: 0.95rem;
  }

  .hbomax-btn-icon {
    font-size: 1.1rem;
  }

  .hbomax-form-input {
    font-size: 0.9rem;
  }

  .hbomax-code-value {
    font-size: 1.25rem;
    letter-spacing: 3px;
  }

  .hbomax-link-text {
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   ✨ EFECTOS ESPECIALES Y ACABADOS
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Efecto de escaneo futurista */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ═══════════════════════════════════════════════════════════
   🎌 CRUNCHYROLL PREMIUM - FUTURISTIC ANIME THEME
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   🎨 VARIABLES DE TEMA CRUNCHYROLL
   ═══════════════════════════════════════════════════════════ */
.crunchyroll-platform {
  --cr-primary: #f47521;
  --cr-primary-dark: #d86518;
  --cr-primary-light: #ff8c3a;
  --cr-secondary: #23252b;
  --cr-accent: #ff6b35;
  --cr-bg-dark: #0a0b0e;
  --cr-bg-card: #141519;
  --cr-bg-elevated: #1a1c23;
  --cr-text-primary: #ffffff;
  --cr-text-secondary: #b4b8c5;
  --cr-text-muted: #6b7280;
  --cr-border: rgba(244, 117, 33, 0.15);
  --cr-border-bright: rgba(244, 117, 33, 0.4);
  --cr-glow: rgba(244, 117, 33, 0.3);
  --cr-success: #10b981;
  --cr-warning: #fbbf24;
  --cr-error: #ef4444;
  --cr-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --cr-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* ═══════════════════════════════════════════════════════════
   🎯 CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.crunchyroll-platform {
  font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--cr-bg-dark) 0%, #0f1117 100%);
  border-radius: 24px;
  border: 1px solid var(--cr-border);
  box-shadow: var(--cr-shadow-lg), 
              0 0 0 1px rgba(244, 117, 33, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: platformEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.crunchyroll-platform::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--cr-primary) 30%, 
    var(--cr-primary-light) 50%, 
    var(--cr-primary) 70%, 
    transparent 100%
  );
  animation: topBarScan 3s ease-in-out infinite;
}

.crunchyroll-platform::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(244, 117, 33, 0.08) 0%, transparent 70%);
  animation: ambientGlow 8s ease-in-out infinite;
  pointer-events: none;
}

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

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

@keyframes ambientGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
  50% { transform: translate(10%, 10%) rotate(180deg); opacity: 0.8; }
}

/* ═══════════════════════════════════════════════════════════
   🎯 HEADER CON BRANDING
   ═══════════════════════════════════════════════════════════ */
.crunchyroll-header {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--cr-border);
  animation: headerSlideIn 0.5s ease-out 0.1s backwards;
}

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

.crunchyroll-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.crunchyroll-logo {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  padding: 8px;
  background: linear-gradient(135deg, var(--cr-bg-elevated) 0%, var(--cr-bg-card) 100%);
  border: 2px solid var(--cr-border-bright);
  box-shadow: 0 8px 24px rgba(244, 117, 33, 0.25),
              0 0 20px rgba(244, 117, 33, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: logoPulse 3s ease-in-out infinite;
}

.crunchyroll-logo:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 32px rgba(244, 117, 33, 0.4),
              0 0 40px rgba(244, 117, 33, 0.3);
  border-color: var(--cr-primary);
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(244, 117, 33, 0.25), 0 0 20px rgba(244, 117, 33, 0.15); }
  50% { box-shadow: 0 8px 24px rgba(244, 117, 33, 0.4), 0 0 30px rgba(244, 117, 33, 0.25); }
}

/* ✅ Info siempre en columna (PC y móvil) */
.crunchyroll-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.crunchyroll-info h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--cr-primary) 0%, var(--cr-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-shadow: 0 0 30px rgba(244, 117, 33, 0.3);
  animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.crunchyroll-correos-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  margin-top: 0;
  background: linear-gradient(135deg, rgba(244, 117, 33, 0.15) 0%, rgba(244, 117, 33, 0.05) 100%);
  border: 1px solid var(--cr-border-bright);
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cr-primary-light);
  letter-spacing: 0.5px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.crunchyroll-correos-count:hover {
  background: linear-gradient(135deg, rgba(244, 117, 33, 0.25) 0%, rgba(244, 117, 33, 0.1) 100%);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════
   📝 FORMULARIO PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.crunchyroll-form {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  animation: formFadeIn 0.5s ease-out 0.2s backwards;
}

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

.crunchyroll-form-group {
  margin-bottom: 1.5rem;
}

.crunchyroll-form-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cr-text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.crunchyroll-input-container {
  position: relative;
}

.crunchyroll-form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--cr-text-primary);
  background: var(--cr-bg-card);
  border: 2px solid var(--cr-border);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.crunchyroll-form-input::placeholder {
  color: var(--cr-text-muted);
  font-weight: 400;
}

.crunchyroll-form-input:focus {
  background: var(--cr-bg-elevated);
  border-color: var(--cr-primary);
  box-shadow: 0 0 0 3px rgba(244, 117, 33, 0.15),
              inset 0 2px 8px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(244, 117, 33, 0.1);
  transform: translateY(-2px);
}

.crunchyroll-form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.crunchyroll-input-help {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--cr-text-muted);
  font-family: 'Rajdhani', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   🚀 BOTÓN DE CONSULTA
   ═══════════════════════════════════════════════════════════ */
.crunchyroll-btn-consultar {
  width: 100%;
  padding: 1.2rem 2rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cr-primary) 0%, var(--cr-accent) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(244, 117, 33, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.crunchyroll-btn-consultar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.crunchyroll-btn-consultar:hover::before {
  left: 100%;
}

.crunchyroll-btn-consultar:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(244, 117, 33, 0.5),
              0 0 40px rgba(244, 117, 33, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.2);
}

.crunchyroll-btn-consultar:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}

.crunchyroll-btn-consultar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.crunchyroll-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.crunchyroll-btn-icon {
  font-size: 1.3rem;
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.crunchyroll-btn-text {
  font-weight: 700;
}

.crunchyroll-btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.crunchyroll-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════
   ⚠️ ALERTAS Y NOTIFICACIONES
   ═══════════════════════════════════════════════════════════ */
.crunchyroll-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  animation: alertSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.crunchyroll-alert-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.crunchyroll-alert-icon {
  font-size: 1.3rem;
  animation: iconPulse 2s ease-in-out infinite;
}

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

.crunchyroll-alert-message {
  flex: 1 1;
}

/* ═══════════════════════════════════════════════════════════
   📊 CONTENEDOR DE RESULTADOS
   ═══════════════════════════════════════════════════════════ */
.crunchyroll-result-container {
  background: linear-gradient(135deg, var(--cr-bg-elevated) 0%, var(--cr-bg-card) 100%);
  border: 1px solid var(--cr-border-bright);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: resultExpand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.crunchyroll-result-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cr-primary), transparent);
  animation: resultGlow 2s ease-in-out infinite;
}

@keyframes resultExpand {
  from {
    opacity: 0;
    transform: scale(0.95);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: scale(1);
    max-height: 1000px;
  }
}

@keyframes resultGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.crunchyroll-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cr-border);
}

.crunchyroll-result-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cr-text-primary);
  letter-spacing: 0.5px;
}

.crunchyroll-result-icon {
  font-size: 1.5rem;
  animation: iconBounce 2s ease-in-out infinite;
}

.crunchyroll-result-title {
  font-weight: 700;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ═══════════════════════════════════════════════════════════
   🔗 PREVIEW Y ACCIONES DE LINK
   ═══════════════════════════════════════════════════════════ */
.crunchyroll-result-link {
  background: var(--cr-bg-dark);
  border: 1px solid var(--cr-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.crunchyroll-result-link:hover {
  border-color: var(--cr-border-bright);
  box-shadow: 0 4px 16px rgba(244, 117, 33, 0.15);
}

.crunchyroll-link-preview {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--cr-primary);
}

.crunchyroll-link-text {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9rem;
  color: var(--cr-text-secondary);
  word-break: break-all;
  line-height: 1.6;
}

.crunchyroll-link-actions {
  display: flex;
  flex-direction: column;  /* ← CAMBIADO: botones verticales */
  gap: 0.75rem;
  margin-top: 1rem;
}

.crunchyroll-btn-open,
.crunchyroll-btn-copy {
  width: 100%;  /* ← CAMBIADO: de flex: 1 a width: 100% */
  padding: 0.875rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.crunchyroll-btn-open {
  background: linear-gradient(135deg, var(--cr-primary) 0%, var(--cr-accent) 100%);
  color: #ffffff;
  border: 2px solid transparent;  /* ← AÑADIDO: para consistencia */
  box-shadow: 0 4px 16px rgba(244, 117, 33, 0.3);
}

.crunchyroll-btn-open:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(244, 117, 33, 0.5);
}

.crunchyroll-btn-copy {
  background: linear-gradient(135deg, var(--cr-bg-elevated) 0%, var(--cr-bg-card) 100%);
  color: var(--cr-primary);
  border: 2px solid var(--cr-border-bright);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.crunchyroll-btn-copy:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--cr-bg-card) 0%, var(--cr-bg-dark) 100%);
  border-color: var(--cr-primary);
  box-shadow: 0 6px 24px rgba(244, 117, 33, 0.3);
}

.crunchyroll-btn-open:active,
.crunchyroll-btn-copy:active {
  transform: translateY(-1px) scale(0.98);
}

.crunchyroll-link-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.crunchyroll-validez-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: badgePulse 2s ease-in-out infinite;
}

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

.crunchyroll-status-valid {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.crunchyroll-status-expiring {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.crunchyroll-status-expired {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.crunchyroll-status-unknown {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(107, 114, 128, 0.05) 100%);
  border: 1px solid rgba(107, 114, 128, 0.4);
  color: #9ca3af;
  box-shadow: 0 0 20px rgba(107, 114, 128, 0.2);
}

.crunchyroll-fecha-email {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--cr-text-muted);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE - MOBILE FIRST
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .crunchyroll-platform {
    padding: 1.25rem;
    border-radius: 16px;
    margin: 0 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .crunchyroll-header {
    margin-bottom: 1.5rem;
  }

  .crunchyroll-brand {
    gap: 1rem;
  }

  .crunchyroll-logo {
    width: 55px;
    height: 55px;
  }

  .crunchyroll-info h1 {
    font-size: 1.75rem;
  }

  .crunchyroll-correos-count {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    margin-left: -10px; /* ✅ Ajusta más a la izquierda en móvil */
  }

  .crunchyroll-form-label {
    font-size: 0.85rem;
  }

  .crunchyroll-form-input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

  .crunchyroll-btn-consultar {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .crunchyroll-result-container {
    padding: 1.25rem;
  }

  .crunchyroll-result-header h3 {
    font-size: 1.1rem;
  }

  .crunchyroll-link-actions {
    flex-direction: column;
  }

  .crunchyroll-btn-open,
  .crunchyroll-btn-copy {
    width: 100%;
  }

  .crunchyroll-link-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .crunchyroll-platform {
    padding: 1rem;
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
    border-radius: 12px;
  }

  .crunchyroll-logo {
    width: 50px;
    height: 50px;
  }

  .crunchyroll-info h1 {
    font-size: 1.5rem;
  }

  .crunchyroll-correos-count {
    margin-left: -10px; /* ✅ Mismo ajuste para móviles pequeños */
  }

  .crunchyroll-btn-consultar {
    font-size: 0.95rem;
  }

  .crunchyroll-btn-icon {
    font-size: 1.1rem;
  }

  .crunchyroll-form-input {
    font-size: 0.9rem;
  }

  .crunchyroll-link-text {
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   ✨ EFECTOS ESPECIALES Y ACABADOS
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Efecto de escaneo futurista */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
/* ═══════════════════════════════════════════════════════════
   🎯 SELECTOR PERSONALIZADO (DROPDOWN)
   ═══════════════════════════════════════════════════════════ */
.crunchyroll-custom-select {
  position: relative;
  width: 100%;
}

.crunchyroll-select-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--cr-bg-card);
  border: 2px solid var(--cr-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.crunchyroll-select-display:hover {
  border-color: var(--cr-border-bright);
  background: var(--cr-bg-elevated);
}

.crunchyroll-selected-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.crunchyroll-option-icon {
  font-size: 1.3rem;
}

.crunchyroll-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.crunchyroll-option-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cr-text-primary);
}

.crunchyroll-option-desc {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: var(--cr-text-muted);
}

.crunchyroll-dropdown-arrow {
  font-size: 0.8rem;
  color: var(--cr-text-muted);
  transition: transform 0.3s ease;
}

.crunchyroll-dropdown-arrow.active {
  transform: rotate(180deg);
  color: var(--cr-primary-light);
}

.crunchyroll-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--cr-bg-elevated);
  border: 2px solid var(--cr-border-bright);
  border-radius: 12px;
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: dropdownSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.crunchyroll-select-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--cr-border);
}

.crunchyroll-select-option:last-child {
  border-bottom: none;
}

.crunchyroll-select-option:hover {
  background: rgba(244, 117, 33, 0.1);
}

.crunchyroll-select-option.selected {
  background: rgba(244, 117, 33, 0.15);
  border-left: 3px solid var(--cr-primary);
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE PARA DROPDOWN
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .crunchyroll-select-display {
    padding: 0.875rem 1rem;
  }

  .crunchyroll-option-title {
    font-size: 0.95rem;
  }

  .crunchyroll-option-desc {
    font-size: 0.75rem;
  }
}
/* ═══════════════════════════════════════════════════════════
   🏔️ PARAMOUNT+ - PREMIUM MOUNTAIN THEME
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   🎨 VARIABLES DE TEMA PARAMOUNT+
   ═══════════════════════════════════════════════════════════ */
.paramount-platform {
  --paramount-primary: #2864f0;
  --paramount-primary-dark: #2050dc;
  --paramount-primary-light: #4080ff;
  --paramount-secondary: #000a3b;
  --paramount-accent: #3070ff;
  --paramount-bg-dark: #000510;
  --paramount-bg-card: #0a0d1a;
  --paramount-bg-elevated: #0f1222;
  --paramount-text-primary: #ffffff;
  --paramount-text-secondary: #b8c0d8;
  --paramount-text-muted: #6b7593;
  --paramount-border: rgba(40, 100, 240, 0.15);
  --paramount-border-bright: rgba(40, 100, 240, 0.4);
  --paramount-glow: rgba(40, 100, 240, 0.3);
  --paramount-success: #10b981;
  --paramount-warning: #fbbf24;
  --paramount-error: #ef4444;
  --paramount-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --paramount-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* ═══════════════════════════════════════════════════════════
   🎯 CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.paramount-platform {
  font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--paramount-bg-dark) 0%, #0a0d18 100%);
  border-radius: 24px;
  border: 1px solid var(--paramount-border);
  box-shadow: var(--paramount-shadow-lg), 
              0 0 0 1px rgba(40, 100, 240, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: platformEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.paramount-platform::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--paramount-primary) 30%, 
    var(--paramount-primary-light) 50%, 
    var(--paramount-primary) 70%, 
    transparent 100%
  );
  animation: topBarScan 3s ease-in-out infinite;
}

.paramount-platform::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(40, 100, 240, 0.08) 0%, transparent 70%);
  animation: ambientGlow 8s ease-in-out infinite;
  pointer-events: none;
}

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

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

@keyframes ambientGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
  50% { transform: translate(10%, 10%) rotate(180deg); opacity: 0.8; }
}

/* ═══════════════════════════════════════════════════════════
   🎯 HEADER CON BRANDING
   ═══════════════════════════════════════════════════════════ */
.paramount-header {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--paramount-border);
  animation: headerSlideIn 0.5s ease-out 0.1s backwards;
}

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

.paramount-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.paramount-logo {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  padding: 8px;
  background: linear-gradient(135deg, var(--paramount-bg-elevated) 0%, var(--paramount-bg-card) 100%);
  border: 2px solid var(--paramount-border-bright);
  box-shadow: 0 8px 24px rgba(40, 100, 240, 0.25),
              0 0 20px rgba(40, 100, 240, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: logoPulse 3s ease-in-out infinite;
}

.paramount-logo:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 32px rgba(40, 100, 240, 0.4),
              0 0 40px rgba(40, 100, 240, 0.3);
  border-color: var(--paramount-primary);
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(40, 100, 240, 0.25), 0 0 20px rgba(40, 100, 240, 0.15); }
  50% { box-shadow: 0 8px 24px rgba(40, 100, 240, 0.4), 0 0 30px rgba(40, 100, 240, 0.25); }
}

.paramount-info h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--paramount-primary) 0%, var(--paramount-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-shadow: 0 0 30px rgba(40, 100, 240, 0.3);
  animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.paramount-correos-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, rgba(40, 100, 240, 0.15) 0%, rgba(40, 100, 240, 0.05) 100%);
  border: 1px solid var(--paramount-border-bright);
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--paramount-primary-light);
  letter-spacing: 0.5px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.paramount-correos-count:hover {
  background: linear-gradient(135deg, rgba(40, 100, 240, 0.25) 0%, rgba(40, 100, 240, 0.1) 100%);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════
   📝 FORMULARIO PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.paramount-form {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  animation: formFadeIn 0.5s ease-out 0.2s backwards;
}

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

.paramount-form-group {
  margin-bottom: 1.5rem;
}

.paramount-form-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--paramount-text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.paramount-input-container {
  position: relative;
}

.paramount-form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--paramount-text-primary);
  background: var(--paramount-bg-card);
  border: 2px solid var(--paramount-border);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.paramount-form-input::placeholder {
  color: var(--paramount-text-muted);
  font-weight: 400;
}

.paramount-form-input:focus {
  background: var(--paramount-bg-elevated);
  border-color: var(--paramount-primary);
  box-shadow: 0 0 0 3px rgba(40, 100, 240, 0.15),
              inset 0 2px 8px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(40, 100, 240, 0.1);
  transform: translateY(-2px);
}

.paramount-form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.paramount-input-help {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--paramount-text-muted);
  font-family: 'Rajdhani', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   🚀 BOTÓN DE CONSULTA
   ═══════════════════════════════════════════════════════════ */
.paramount-btn-consultar {
  width: 100%;
  padding: 1.2rem 2rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--paramount-primary) 0%, var(--paramount-accent) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(40, 100, 240, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.paramount-btn-consultar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.paramount-btn-consultar:hover::before {
  left: 100%;
}

.paramount-btn-consultar:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(40, 100, 240, 0.5),
              0 0 40px rgba(40, 100, 240, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.2);
}

.paramount-btn-consultar:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}

.paramount-btn-consultar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.paramount-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.paramount-btn-icon {
  font-size: 1.3rem;
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.paramount-btn-text {
  font-weight: 700;
}

.paramount-btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.paramount-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════
   ⚠️ ALERTAS Y NOTIFICACIONES
   ═══════════════════════════════════════════════════════════ */
.paramount-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  animation: alertSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.paramount-alert-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.paramount-alert-icon {
  font-size: 1.3rem;
  animation: iconPulse 2s ease-in-out infinite;
}

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

.paramount-alert-message {
  flex: 1 1;
}

/* ═══════════════════════════════════════════════════════════
   📊 CONTENEDOR DE RESULTADOS
   ═══════════════════════════════════════════════════════════ */
.paramount-result-container {
  background: linear-gradient(135deg, var(--paramount-bg-elevated) 0%, var(--paramount-bg-card) 100%);
  border: 1px solid var(--paramount-border-bright);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: resultExpand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.paramount-result-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--paramount-primary), transparent);
  animation: resultGlow 2s ease-in-out infinite;
}

@keyframes resultExpand {
  from {
    opacity: 0;
    transform: scale(0.95);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: scale(1);
    max-height: 1000px;
  }
}

@keyframes resultGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.paramount-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--paramount-border);
}

.paramount-result-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--paramount-text-primary);
  letter-spacing: 0.5px;
}

.paramount-result-icon {
  font-size: 1.5rem;
  animation: iconBounce 2s ease-in-out infinite;
}

.paramount-result-title {
  font-weight: 700;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ═══════════════════════════════════════════════════════════
   🔗 PREVIEW Y ACCIONES DE LINK
   ═══════════════════════════════════════════════════════════ */
.paramount-result-link {
  background: var(--paramount-bg-dark);
  border: 1px solid var(--paramount-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.paramount-result-link:hover {
  border-color: var(--paramount-border-bright);
  box-shadow: 0 4px 16px rgba(40, 100, 240, 0.15);
}

.paramount-link-preview {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--paramount-primary);
}

.paramount-link-text {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9rem;
  color: var(--paramount-text-secondary);
  word-break: break-all;
  line-height: 1.6;
}

.paramount-link-actions {
  display: flex;
  flex-direction: column;  /* ← CAMBIADO: botones verticales */
  gap: 0.75rem;
  margin-top: 1rem;
}

.paramount-btn-open,
.paramount-btn-copy {
  width: 100%;  /* ← CAMBIADO: de flex: 1 a width: 100% */
  padding: 0.875rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.paramount-btn-open {
  background: linear-gradient(135deg, var(--paramount-primary) 0%, var(--paramount-accent) 100%);
  color: #ffffff;
  border: 2px solid transparent;  /* ← AÑADIDO: para consistencia */
  box-shadow: 0 4px 16px rgba(40, 100, 240, 0.3);
}

.paramount-btn-open:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(40, 100, 240, 0.5);
}

.paramount-btn-copy {
  background: linear-gradient(135deg, var(--paramount-bg-elevated) 0%, var(--paramount-bg-card) 100%);
  color: var(--paramount-primary);
  border: 2px solid var(--paramount-border-bright);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.paramount-btn-copy:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--paramount-bg-card) 0%, var(--paramount-bg-dark) 100%);
  border-color: var(--paramount-primary);
  box-shadow: 0 6px 24px rgba(40, 100, 240, 0.3);
}

.paramount-btn-open:active,
.paramount-btn-copy:active {
  transform: translateY(-1px) scale(0.98);
}

.paramount-link-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.paramount-validez-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: badgePulse 2s ease-in-out infinite;
}

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

.paramount-status-valid {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.paramount-status-expiring {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.paramount-status-expired {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.paramount-status-unknown {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(107, 114, 128, 0.05) 100%);
  border: 1px solid rgba(107, 114, 128, 0.4);
  color: #9ca3af;
  box-shadow: 0 0 20px rgba(107, 114, 128, 0.2);
}

.paramount-fecha-email {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--paramount-text-muted);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE - MOBILE FIRST
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .paramount-platform {
    padding: 1.25rem;
    border-radius: 16px;
    margin: 0 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .paramount-header {
    margin-bottom: 1.5rem;
  }

  .paramount-brand {
    gap: 1rem;
  }

  .paramount-logo {
    width: 55px;
    height: 55px;
  }

  .paramount-info h1 {
    font-size: 1.75rem;
  }

  .paramount-correos-count {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
  }

  .paramount-form-label {
    font-size: 0.85rem;
  }

  .paramount-form-input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
  }

  .paramount-btn-consultar {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .paramount-result-container {
    padding: 1.25rem;
  }

  .paramount-result-header h3 {
    font-size: 1.1rem;
  }

  .paramount-link-actions {
    flex-direction: column;
  }

  .paramount-btn-open,
  .paramount-btn-copy {
    width: 100%;
  }

  .paramount-link-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .paramount-platform {
    padding: 1rem;
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
    border-radius: 12px;
  }

  .paramount-logo {
    width: 50px;
    height: 50px;
  }

  .paramount-info h1 {
    font-size: 1.5rem;
  }

  .paramount-btn-consultar {
    font-size: 0.95rem;
  }

  .paramount-btn-icon {
    font-size: 1.1rem;
  }

  .paramount-form-input {
    font-size: 0.9rem;
  }

  .paramount-link-text {
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   ✨ EFECTOS ESPECIALES Y ACABADOS
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Efecto de escaneo futurista */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ═══════════════════════════════════════════════════════════
   📺 VIX - PREMIUM STREAMING THEME
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   🎨 VARIABLES DE TEMA VIX
   ═══════════════════════════════════════════════════════════ */
.vix-platform {
  --vix-primary: #FF5900;
  --vix-primary-dark: #E24B00;
  --vix-primary-light: #FF7020;
  --vix-secondary: #090D18;
  --vix-accent: #F52D1F;
  --vix-bg-dark: #050608;
  --vix-bg-card: #0D0F14;
  --vix-bg-elevated: #13151C;
  --vix-text-primary: #F2F2F2;
  --vix-text-secondary: #C5C8D0;
  --vix-text-muted: #6B7280;
  --vix-border: rgba(255, 89, 0, 0.15);
  --vix-border-bright: rgba(255, 89, 0, 0.4);
  --vix-glow: rgba(255, 89, 0, 0.3);
  --vix-success: #46d369;
  --vix-warning: #fbbf24;
  --vix-error: #ef4444;
  --vix-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --vix-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* ═══════════════════════════════════════════════════════════
   🎯 CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.vix-platform {
  font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--vix-bg-dark) 0%, var(--vix-secondary) 100%);
  border-radius: 24px;
  border: 1px solid var(--vix-border);
  box-shadow: var(--vix-shadow-lg), 
              0 0 0 1px rgba(255, 89, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: platformEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.vix-platform::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--vix-primary) 30%, 
    var(--vix-primary-light) 50%, 
    var(--vix-primary) 70%, 
    transparent 100%
  );
  animation: topBarScan 3s ease-in-out infinite;
}

.vix-platform::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 89, 0, 0.08) 0%, transparent 70%);
  animation: ambientGlow 8s ease-in-out infinite;
  pointer-events: none;
}

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

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

@keyframes ambientGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
  50% { transform: translate(10%, 10%) rotate(180deg); opacity: 0.8; }
}

/* ═══════════════════════════════════════════════════════════
   🎯 HEADER CON BRANDING
   ═══════════════════════════════════════════════════════════ */
.vix-header {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--vix-border);
  animation: headerSlideIn 0.5s ease-out 0.1s backwards;
}

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

.vix-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.vix-logo {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  padding: 8px;
  background: linear-gradient(135deg, var(--vix-bg-elevated) 0%, var(--vix-bg-card) 100%);
  border: 2px solid var(--vix-border-bright);
  box-shadow: 0 8px 24px rgba(255, 89, 0, 0.25),
              0 0 20px rgba(255, 89, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: logoPulse 3s ease-in-out infinite;
}

.vix-logo:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 32px rgba(255, 89, 0, 0.4),
              0 0 40px rgba(255, 89, 0, 0.3);
  border-color: var(--vix-primary);
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(255, 89, 0, 0.25), 0 0 20px rgba(255, 89, 0, 0.15); }
  50% { box-shadow: 0 8px 24px rgba(255, 89, 0, 0.4), 0 0 30px rgba(255, 89, 0, 0.25); }
}

.vix-info h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--vix-primary) 0%, var(--vix-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-shadow: 0 0 30px rgba(255, 89, 0, 0.3);
  animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.vix-correos-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, rgba(255, 89, 0, 0.15) 0%, rgba(255, 89, 0, 0.05) 100%);
  border: 1px solid var(--vix-border-bright);
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vix-primary-light);
  letter-spacing: 0.5px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.vix-correos-count:hover {
  background: linear-gradient(135deg, rgba(255, 89, 0, 0.25) 0%, rgba(255, 89, 0, 0.1) 100%);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════
   📝 FORMULARIO PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.vix-form {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  animation: formFadeIn 0.5s ease-out 0.2s backwards;
}

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

.vix-form-group {
  margin-bottom: 1.5rem;
}

.vix-form-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--vix-text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.vix-input-container {
  position: relative;
}

.vix-form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--vix-text-primary);
  background: var(--vix-bg-card);
  border: 2px solid var(--vix-border);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.vix-form-input::placeholder {
  color: var(--vix-text-muted);
  font-weight: 400;
}

.vix-form-input:focus {
  background: var(--vix-bg-elevated);
  border-color: var(--vix-primary);
  box-shadow: 0 0 0 3px rgba(255, 89, 0, 0.15),
              inset 0 2px 8px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(255, 89, 0, 0.1);
  transform: translateY(-2px);
}

.vix-form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vix-input-help {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--vix-text-muted);
  font-family: 'Rajdhani', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   🚀 BOTÓN DE CONSULTA
   ═══════════════════════════════════════════════════════════ */
.vix-btn-consultar {
  width: 100%;
  padding: 1.2rem 2rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--vix-primary) 0%, var(--vix-accent) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(255, 89, 0, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.vix-btn-consultar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.vix-btn-consultar:hover::before {
  left: 100%;
}

.vix-btn-consultar:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255, 89, 0, 0.5),
              0 0 40px rgba(255, 89, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.2);
}

.vix-btn-consultar:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}

.vix-btn-consultar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.vix-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.vix-btn-icon {
  font-size: 1.3rem;
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.vix-btn-text {
  font-weight: 700;
}

.vix-btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.vix-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════
   ⚠️ ALERTAS Y NOTIFICACIONES
   ═══════════════════════════════════════════════════════════ */
.vix-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  animation: alertSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.vix-alert-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.vix-alert-icon {
  font-size: 1.3rem;
  animation: iconPulse 2s ease-in-out infinite;
}

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

.vix-alert-message {
  flex: 1 1;
}

/* ═══════════════════════════════════════════════════════════
   📊 CONTENEDOR DE RESULTADOS
   ═══════════════════════════════════════════════════════════ */
.vix-result-container {
  background: linear-gradient(135deg, var(--vix-bg-elevated) 0%, var(--vix-bg-card) 100%);
  border: 1px solid var(--vix-border-bright);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: resultExpand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.vix-result-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--vix-primary), transparent);
  animation: resultGlow 2s ease-in-out infinite;
}

@keyframes resultExpand {
  from {
    opacity: 0;
    transform: scale(0.95);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: scale(1);
    max-height: 1000px;
  }
}

@keyframes resultGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.vix-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vix-border);
}

.vix-result-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--vix-text-primary);
  letter-spacing: 0.5px;
}

.vix-result-icon {
  font-size: 1.5rem;
  animation: iconBounce 2s ease-in-out infinite;
}

.vix-result-title {
  font-weight: 700;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ═══════════════════════════════════════════════════════════
   🔗 PREVIEW Y ACCIONES DE LINK
   ═══════════════════════════════════════════════════════════ */
.vix-result-link {
  background: var(--vix-bg-dark);
  border: 1px solid var(--vix-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.vix-result-link:hover {
  border-color: var(--vix-border-bright);
  box-shadow: 0 4px 16px rgba(255, 89, 0, 0.15);
}

.vix-link-preview {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--vix-primary);
}

.vix-link-text {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9rem;
  color: var(--vix-text-secondary);
  word-break: break-all;
  line-height: 1.6;
}

.vix-link-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.vix-btn-open,
.vix-btn-copy {
  width: 100%;  /* ← CAMBIADO: Quité flex: 1 y puse width: 100% */
  padding: 0.875rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.vix-btn-open {
  background: linear-gradient(135deg, var(--vix-primary) 0%, var(--vix-accent) 100%);
  color: #ffffff;
  border: 2px solid transparent;  /* ← AÑADIDO: Para consistencia */
  box-shadow: 0 4px 16px rgba(255, 89, 0, 0.3);
}

.vix-btn-open:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(255, 89, 0, 0.5);
}

.vix-btn-copy {
  background: linear-gradient(135deg, var(--vix-bg-elevated) 0%, var(--vix-bg-card) 100%);
  color: var(--vix-primary);
  border: 2px solid var(--vix-border-bright);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.vix-btn-copy:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--vix-bg-card) 0%, var(--vix-bg-dark) 100%);
  border-color: var(--vix-primary);
  box-shadow: 0 6px 24px rgba(255, 89, 0, 0.3);
}

.vix-btn-open:active,
.vix-btn-copy:active {
  transform: translateY(-1px) scale(0.98);
}

.vix-link-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.vix-validez-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: badgePulse 2s ease-in-out infinite;
}

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

.vix-status-valid {
  background: linear-gradient(135deg, rgba(70, 211, 105, 0.2) 0%, rgba(70, 211, 105, 0.05) 100%);
  border: 1px solid rgba(70, 211, 105, 0.4);
  color: #86efac;
  box-shadow: 0 0 20px rgba(70, 211, 105, 0.2);
}

.vix-status-expiring {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.vix-status-expired {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.vix-status-unknown {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(107, 114, 128, 0.05) 100%);
  border: 1px solid rgba(107, 114, 128, 0.4);
  color: #9ca3af;
  box-shadow: 0 0 20px rgba(107, 114, 128, 0.2);
}

.vix-fecha-email {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--vix-text-muted);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE - MOBILE FIRST
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .vix-platform {
    padding: 1.25rem;
    border-radius: 16px;
    margin: 0 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .vix-header {
    margin-bottom: 1.5rem;
  }

  .vix-brand {
    gap: 1rem;
  }

  .vix-logo {
    width: 55px;
    height: 55px;
  }

  .vix-info h1 {
    font-size: 1.75rem;
  }

  .vix-correos-count {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
  }

  .vix-form-label {
    font-size: 0.85rem;
  }

  .vix-form-input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
  }

  .vix-btn-consultar {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .vix-result-container {
    padding: 1.25rem;
  }

  .vix-result-header h3 {
    font-size: 1.1rem;
  }

  .vix-link-actions {
    flex-direction: column;
  }

  .vix-btn-open,
  .vix-btn-copy {
    width: 100%;
  }

  .vix-link-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .vix-platform {
    padding: 1rem;
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
    border-radius: 12px;
  }

  .vix-logo {
    width: 50px;
    height: 50px;
  }

  .vix-info h1 {
    font-size: 1.5rem;
  }

  .vix-btn-consultar {
    font-size: 0.95rem;
  }

  .vix-btn-icon {
    font-size: 1.1rem;
  }

  .vix-form-input {
    font-size: 0.9rem;
  }

  .vix-link-text {
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   ✨ EFECTOS ESPECIALES Y ACABADOS
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Efecto de escaneo futurista */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ═══════════════════════════════════════════════════════════
   ⚽ LIGA1 MAX - PREMIUM SPORTS STREAMING THEME
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   🎨 VARIABLES DE TEMA LIGA1 MAX
   ═══════════════════════════════════════════════════════════ */
.liga1max-platform {
  --liga1-primary: #E82C43;
  --liga1-primary-dark: #C31F36;
  --liga1-primary-light: #F24458;
  --liga1-secondary: #1A0A0E;
  --liga1-accent: #F90F18;
  --liga1-bg-dark: #0D0507;
  --liga1-bg-card: #150A0D;
  --liga1-bg-elevated: #1D1014;
  --liga1-text-primary: #F8F8F8;
  --liga1-text-secondary: #D8BFC5;
  --liga1-text-muted: #7A6169;
  --liga1-border: rgba(232, 44, 67, 0.15);
  --liga1-border-bright: rgba(232, 44, 67, 0.4);
  --liga1-glow: rgba(232, 44, 67, 0.3);
  --liga1-success: #46d369;
  --liga1-warning: #fbbf24;
  --liga1-error: #ef4444;
  --liga1-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --liga1-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* ═══════════════════════════════════════════════════════════
   🎯 CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.liga1max-platform {
  font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--liga1-bg-dark) 0%, #0f0608 100%);
  border-radius: 24px;
  border: 1px solid var(--liga1-border);
  box-shadow: var(--liga1-shadow-lg), 
              0 0 0 1px rgba(232, 44, 67, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: platformEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.liga1max-platform::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--liga1-primary) 30%, 
    var(--liga1-primary-light) 50%, 
    var(--liga1-primary) 70%, 
    transparent 100%
  );
  animation: topBarScan 3s ease-in-out infinite;
}

.liga1max-platform::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(232, 44, 67, 0.08) 0%, transparent 70%);
  animation: ambientGlow 8s ease-in-out infinite;
  pointer-events: none;
}

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

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

@keyframes ambientGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
  50% { transform: translate(10%, 10%) rotate(180deg); opacity: 0.8; }
}

/* ═══════════════════════════════════════════════════════════
   🎯 HEADER CON BRANDING
   ═══════════════════════════════════════════════════════════ */
.liga1max-header {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--liga1-border);
  animation: headerSlideIn 0.5s ease-out 0.1s backwards;
}

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

.liga1max-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.liga1max-logo {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  padding: 8px;
  background: linear-gradient(135deg, var(--liga1-bg-elevated) 0%, var(--liga1-bg-card) 100%);
  border: 2px solid var(--liga1-border-bright);
  box-shadow: 0 8px 24px rgba(232, 44, 67, 0.25),
              0 0 20px rgba(232, 44, 67, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: logoPulse 3s ease-in-out infinite;
}

.liga1max-logo:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 32px rgba(232, 44, 67, 0.4),
              0 0 40px rgba(232, 44, 67, 0.3);
  border-color: var(--liga1-primary);
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(232, 44, 67, 0.25), 0 0 20px rgba(232, 44, 67, 0.15); }
  50% { box-shadow: 0 8px 24px rgba(232, 44, 67, 0.4), 0 0 30px rgba(232, 44, 67, 0.25); }
}

.liga1max-info h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--liga1-primary) 0%, var(--liga1-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-shadow: 0 0 30px rgba(232, 44, 67, 0.3);
  animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.liga1max-correos-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, rgba(232, 44, 67, 0.15) 0%, rgba(232, 44, 67, 0.05) 100%);
  border: 1px solid var(--liga1-border-bright);
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--liga1-primary-light);
  letter-spacing: 0.5px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.liga1max-correos-count:hover {
  background: linear-gradient(135deg, rgba(232, 44, 67, 0.25) 0%, rgba(232, 44, 67, 0.1) 100%);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════
   📝 FORMULARIO PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.liga1max-form {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  animation: formFadeIn 0.5s ease-out 0.2s backwards;
}

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

.liga1max-form-group {
  margin-bottom: 1.5rem;
}

.liga1max-form-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--liga1-text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.liga1max-input-container {
  position: relative;
}

.liga1max-form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--liga1-text-primary);
  background: var(--liga1-bg-card);
  border: 2px solid var(--liga1-border);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.liga1max-form-input::placeholder {
  color: var(--liga1-text-muted);
  font-weight: 400;
}

.liga1max-form-input:focus {
  background: var(--liga1-bg-elevated);
  border-color: var(--liga1-primary);
  box-shadow: 0 0 0 3px rgba(232, 44, 67, 0.15),
              inset 0 2px 8px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(232, 44, 67, 0.1);
  transform: translateY(-2px);
}

.liga1max-form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.liga1max-input-help {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--liga1-text-muted);
  font-family: 'Rajdhani', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   🚀 BOTÓN DE CONSULTA
   ═══════════════════════════════════════════════════════════ */
.liga1max-btn-consultar {
  width: 100%;
  padding: 1.2rem 2rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--liga1-primary) 0%, var(--liga1-accent) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(232, 44, 67, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.liga1max-btn-consultar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.liga1max-btn-consultar:hover::before {
  left: 100%;
}

.liga1max-btn-consultar:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(232, 44, 67, 0.5),
              0 0 40px rgba(232, 44, 67, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.2);
}

.liga1max-btn-consultar:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}

.liga1max-btn-consultar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.liga1max-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.liga1max-btn-icon {
  font-size: 1.3rem;
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.liga1max-btn-text {
  font-weight: 700;
}

.liga1max-btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.liga1max-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════
   ⚠️ ALERTAS Y NOTIFICACIONES
   ═══════════════════════════════════════════════════════════ */
.liga1max-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  animation: alertSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.liga1max-alert-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.liga1max-alert-icon {
  font-size: 1.3rem;
  animation: iconPulse 2s ease-in-out infinite;
}

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

.liga1max-alert-message {
  flex: 1 1;
}

/* ═══════════════════════════════════════════════════════════
   📊 CONTENEDOR DE RESULTADOS
   ═══════════════════════════════════════════════════════════ */
.liga1max-result-container {
  background: linear-gradient(135deg, var(--liga1-bg-elevated) 0%, var(--liga1-bg-card) 100%);
  border: 1px solid var(--liga1-border-bright);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: resultExpand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.liga1max-result-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--liga1-primary), transparent);
  animation: resultGlow 2s ease-in-out infinite;
}

@keyframes resultExpand {
  from {
    opacity: 0;
    transform: scale(0.95);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: scale(1);
    max-height: 1000px;
  }
}

@keyframes resultGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.liga1max-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--liga1-border);
}

.liga1max-result-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--liga1-text-primary);
  letter-spacing: 0.5px;
}

.liga1max-result-icon {
  font-size: 1.5rem;
  animation: iconBounce 2s ease-in-out infinite;
}

.liga1max-result-title {
  font-weight: 700;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ═══════════════════════════════════════════════════════════
   🔗 PREVIEW Y ACCIONES DE LINK
   ═══════════════════════════════════════════════════════════ */
.liga1max-result-link {
  background: var(--liga1-bg-dark);
  border: 1px solid var(--liga1-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.liga1max-result-link:hover {
  border-color: var(--liga1-border-bright);
  box-shadow: 0 4px 16px rgba(232, 44, 67, 0.15);
}

.liga1max-link-preview {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--liga1-primary);
}

.liga1max-link-text {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9rem;
  color: var(--liga1-text-secondary);
  word-break: break-all;
  line-height: 1.6;
}

.liga1max-link-actions {
  display: flex;
  flex-direction: column;  /* ← CAMBIADO: botones verticales */
  gap: 0.75rem;
  margin-top: 1rem;
}

.liga1max-btn-open,
.liga1max-btn-copy {
  width: 100%;  /* ← CAMBIADO: de flex: 1 a width: 100% */
  padding: 0.875rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.liga1max-btn-open {
  background: linear-gradient(135deg, var(--liga1-primary) 0%, var(--liga1-accent) 100%);
  color: #ffffff;
  border: 2px solid transparent;  /* ← AÑADIDO: para consistencia de tamaño */
  box-shadow: 0 4px 16px rgba(232, 44, 67, 0.3);
}

.liga1max-btn-open:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(232, 44, 67, 0.5);
}

.liga1max-btn-copy {
  background: linear-gradient(135deg, var(--liga1-bg-elevated) 0%, var(--liga1-bg-card) 100%);
  color: var(--liga1-primary);
  border: 2px solid var(--liga1-border-bright);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.liga1max-btn-copy:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--liga1-bg-card) 0%, var(--liga1-bg-dark) 100%);
  border-color: var(--liga1-primary);
  box-shadow: 0 6px 24px rgba(232, 44, 67, 0.3);
}

.liga1max-btn-open:active,
.liga1max-btn-copy:active {
  transform: translateY(-1px) scale(0.98);
}

.liga1max-link-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.liga1max-validez-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: badgePulse 2s ease-in-out infinite;
}

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

.liga1max-status-valid {
  background: linear-gradient(135deg, rgba(70, 211, 105, 0.2) 0%, rgba(70, 211, 105, 0.05) 100%);
  border: 1px solid rgba(70, 211, 105, 0.4);
  color: #86efac;
  box-shadow: 0 0 20px rgba(70, 211, 105, 0.2);
}

.liga1max-status-expiring {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.liga1max-status-expired {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.liga1max-status-unknown {
  background: linear-gradient(135deg, rgba(122, 97, 105, 0.2) 0%, rgba(122, 97, 105, 0.05) 100%);
  border: 1px solid rgba(122, 97, 105, 0.4);
  color: #9ca3af;
  box-shadow: 0 0 20px rgba(122, 97, 105, 0.2);
}

.liga1max-fecha-email {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--liga1-text-muted);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE - MOBILE FIRST
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .liga1max-platform {
    padding: 1.25rem;
    border-radius: 16px;
    margin: 0 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .liga1max-header {
    margin-bottom: 1.5rem;
  }

  .liga1max-brand {
    gap: 1rem;
  }

  .liga1max-logo {
    width: 55px;
    height: 55px;
  }

  .liga1max-info h1 {
    font-size: 1.75rem;
  }

  .liga1max-correos-count {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
  }

  .liga1max-form-label {
    font-size: 0.85rem;
  }

  .liga1max-form-input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
  }

  .liga1max-btn-consultar {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .liga1max-result-container {
    padding: 1.25rem;
  }

  .liga1max-result-header h3 {
    font-size: 1.1rem;
  }

  .liga1max-link-actions {
    flex-direction: column;
  }

  .liga1max-btn-open,
  .liga1max-btn-copy {
    width: 100%;
  }

  .liga1max-link-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .liga1max-platform {
    padding: 1rem;
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
    border-radius: 12px;
  }

  .liga1max-logo {
    width: 50px;
    height: 50px;
  }

  .liga1max-info h1 {
    font-size: 1.5rem;
  }

  .liga1max-btn-consultar {
    font-size: 0.95rem;
  }

  .liga1max-btn-icon {
    font-size: 1.1rem;
  }

  .liga1max-form-input {
    font-size: 0.9rem;
  }

  .liga1max-link-text {
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   ✨ EFECTOS ESPECIALES Y ACABADOS
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Efecto de escaneo futurista */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ═══════════════════════════════════════════════════════════
   📱 MOVISTAR PLAY - PREMIUM STREAMING THEME
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   🎨 VARIABLES DE TEMA MOVISTAR PLAY
   ═══════════════════════════════════════════════════════════ */
.movistarplay-platform {
  --movistar-primary: #019BF3;
  --movistar-primary-dark: #0179C2;
  --movistar-primary-light: #1EAEFF;
  --movistar-secondary: #0B1824;
  --movistar-accent: #009EF7;
  --movistar-bg-dark: #050A10;
  --movistar-bg-card: #0C1319;
  --movistar-bg-elevated: #121A24;
  --movistar-text-primary: #F5F5F5;
  --movistar-text-secondary: #C5D5E5;
  --movistar-text-muted: #6B7E92;
  --movistar-border: rgba(1, 155, 243, 0.15);
  --movistar-border-bright: rgba(1, 155, 243, 0.4);
  --movistar-glow: rgba(1, 155, 243, 0.3);
  --movistar-success: #46d369;
  --movistar-warning: #fbbf24;
  --movistar-error: #ef4444;
  --movistar-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  --movistar-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* ═══════════════════════════════════════════════════════════
   🎯 CONTENEDOR PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.movistarplay-platform {
  font-family: 'Space Grotesk', 'Rajdhani', sans-serif;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--movistar-bg-dark) 0%, #070d15 100%);
  border-radius: 24px;
  border: 1px solid var(--movistar-border);
  box-shadow: var(--movistar-shadow-lg), 
              0 0 0 1px rgba(1, 155, 243, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: platformEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.movistarplay-platform::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--movistar-primary) 30%, 
    var(--movistar-primary-light) 50%, 
    var(--movistar-primary) 70%, 
    transparent 100%
  );
  animation: topBarScan 3s ease-in-out infinite;
}

.movistarplay-platform::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(1, 155, 243, 0.08) 0%, transparent 70%);
  animation: ambientGlow 8s ease-in-out infinite;
  pointer-events: none;
}

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

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

@keyframes ambientGlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.5; }
  50% { transform: translate(10%, 10%) rotate(180deg); opacity: 0.8; }
}

/* ═══════════════════════════════════════════════════════════
   🎯 HEADER CON BRANDING
   ═══════════════════════════════════════════════════════════ */
.movistarplay-header {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--movistar-border);
  animation: headerSlideIn 0.5s ease-out 0.1s backwards;
}

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

.movistarplay-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.movistarplay-logo {
  width: 65px;
  height: 65px;
  border-radius: 16px;
  padding: 8px;
  background: linear-gradient(135deg, var(--movistar-bg-elevated) 0%, var(--movistar-bg-card) 100%);
  border: 2px solid var(--movistar-border-bright);
  box-shadow: 0 8px 24px rgba(1, 155, 243, 0.25),
              0 0 20px rgba(1, 155, 243, 0.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: logoPulse 3s ease-in-out infinite;
}

.movistarplay-logo:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 32px rgba(1, 155, 243, 0.4),
              0 0 40px rgba(1, 155, 243, 0.3);
  border-color: var(--movistar-primary);
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(1, 155, 243, 0.25), 0 0 20px rgba(1, 155, 243, 0.15); }
  50% { box-shadow: 0 8px 24px rgba(1, 155, 243, 0.4), 0 0 30px rgba(1, 155, 243, 0.25); }
}

.movistarplay-info h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--movistar-primary) 0%, var(--movistar-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-shadow: 0 0 30px rgba(1, 155, 243, 0.3);
  animation: titleShimmer 4s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

.movistarplay-correos-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, rgba(1, 155, 243, 0.15) 0%, rgba(1, 155, 243, 0.05) 100%);
  border: 1px solid var(--movistar-border-bright);
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--movistar-primary-light);
  letter-spacing: 0.5px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.movistarplay-correos-count:hover {
  background: linear-gradient(135deg, rgba(1, 155, 243, 0.25) 0%, rgba(1, 155, 243, 0.1) 100%);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════
   📝 FORMULARIO PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.movistarplay-form {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
  animation: formFadeIn 0.5s ease-out 0.2s backwards;
}

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

.movistarplay-form-group {
  margin-bottom: 1.5rem;
}

.movistarplay-form-label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--movistar-text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.movistarplay-input-container {
  position: relative;
}

.movistarplay-form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--movistar-text-primary);
  background: var(--movistar-bg-card);
  border: 2px solid var(--movistar-border);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.movistarplay-form-input::placeholder {
  color: var(--movistar-text-muted);
  font-weight: 400;
}

.movistarplay-form-input:focus {
  background: var(--movistar-bg-elevated);
  border-color: var(--movistar-primary);
  box-shadow: 0 0 0 3px rgba(1, 155, 243, 0.15),
              inset 0 2px 8px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(1, 155, 243, 0.1);
  transform: translateY(-2px);
}

.movistarplay-form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.movistarplay-input-help {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--movistar-text-muted);
  font-family: 'Rajdhani', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   🚀 BOTÓN DE CONSULTA
   ═══════════════════════════════════════════════════════════ */
.movistarplay-btn-consultar {
  width: 100%;
  padding: 1.2rem 2rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--movistar-primary) 0%, var(--movistar-accent) 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(1, 155, 243, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.movistarplay-btn-consultar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.movistarplay-btn-consultar:hover::before {
  left: 100%;
}

.movistarplay-btn-consultar:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(1, 155, 243, 0.5),
              0 0 40px rgba(1, 155, 243, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.2);
}

.movistarplay-btn-consultar:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
}

.movistarplay-btn-consultar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.movistarplay-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.movistarplay-btn-icon {
  font-size: 1.3rem;
  animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.movistarplay-btn-text {
  font-weight: 700;
}

.movistarplay-btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.movistarplay-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ═══════════════════════════════════════════════════════════
   ⚠️ ALERTAS Y NOTIFICACIONES
   ═══════════════════════════════════════════════════════════ */
.movistarplay-alert {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  animation: alertSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.movistarplay-alert-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.movistarplay-alert-icon {
  font-size: 1.3rem;
  animation: iconPulse 2s ease-in-out infinite;
}

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

.movistarplay-alert-message {
  flex: 1 1;
}

/* ═══════════════════════════════════════════════════════════
   📊 CONTENEDOR DE RESULTADOS
   ═══════════════════════════════════════════════════════════ */
.movistarplay-result-container {
  background: linear-gradient(135deg, var(--movistar-bg-elevated) 0%, var(--movistar-bg-card) 100%);
  border: 1px solid var(--movistar-border-bright);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: resultExpand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.movistarplay-result-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--movistar-primary), transparent);
  animation: resultGlow 2s ease-in-out infinite;
}

@keyframes resultExpand {
  from {
    opacity: 0;
    transform: scale(0.95);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: scale(1);
    max-height: 1000px;
  }
}

@keyframes resultGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.movistarplay-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--movistar-border);
}

.movistarplay-result-header h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--movistar-text-primary);
  letter-spacing: 0.5px;
}

.movistarplay-result-icon {
  font-size: 1.5rem;
  animation: iconBounce 2s ease-in-out infinite;
}

.movistarplay-result-title {
  font-weight: 700;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ═══════════════════════════════════════════════════════════
   🔗 PREVIEW Y ACCIONES DE LINK
   ═══════════════════════════════════════════════════════════ */
.movistarplay-result-link {
  background: var(--movistar-bg-dark);
  border: 1px solid var(--movistar-border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.movistarplay-result-link:hover {
  border-color: var(--movistar-border-bright);
  box-shadow: 0 4px 16px rgba(1, 155, 243, 0.15);
}

.movistarplay-link-preview {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--movistar-primary);
}

.movistarplay-link-text {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9rem;
  color: var(--movistar-text-secondary);
  word-break: break-all;
  line-height: 1.6;
}

.movistarplay-link-actions {
  display: flex;
  flex-direction: column;  /* ← CAMBIADO: botones verticales */
  gap: 0.75rem;
  margin-top: 1rem;
}

.movistarplay-btn-open,
.movistarplay-btn-copy {
  width: 100%;  /* ← CAMBIADO: de flex: 1 a width: 100% */
  padding: 0.875rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.movistarplay-btn-open {
  background: linear-gradient(135deg, var(--movistar-primary) 0%, var(--movistar-accent) 100%);
  color: #ffffff;
  border: 2px solid transparent;  /* ← AÑADIDO: para consistencia */
  box-shadow: 0 4px 16px rgba(1, 155, 243, 0.3);
}

.movistarplay-btn-open:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(1, 155, 243, 0.5);
}

.movistarplay-btn-copy {
  background: linear-gradient(135deg, var(--movistar-bg-elevated) 0%, var(--movistar-bg-card) 100%);
  color: var(--movistar-primary);
  border: 2px solid var(--movistar-border-bright);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.movistarplay-btn-copy:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--movistar-bg-card) 0%, var(--movistar-bg-dark) 100%);
  border-color: var(--movistar-primary);
  box-shadow: 0 6px 24px rgba(1, 155, 243, 0.3);
}

.movistarplay-btn-open:active,
.movistarplay-btn-copy:active {
  transform: translateY(-1px) scale(0.98);
}

.movistarplay-link-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.movistarplay-validez-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  animation: badgePulse 2s ease-in-out infinite;
}

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

.movistarplay-status-valid {
  background: linear-gradient(135deg, rgba(70, 211, 105, 0.2) 0%, rgba(70, 211, 105, 0.05) 100%);
  border: 1px solid rgba(70, 211, 105, 0.4);
  color: #86efac;
  box-shadow: 0 0 20px rgba(70, 211, 105, 0.2);
}

.movistarplay-status-expiring {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.05) 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

.movistarplay-status-expired {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.movistarplay-status-unknown {
  background: linear-gradient(135deg, rgba(107, 126, 146, 0.2) 0%, rgba(107, 126, 146, 0.05) 100%);
  border: 1px solid rgba(107, 126, 146, 0.4);
  color: #9ca3af;
  box-shadow: 0 0 20px rgba(107, 126, 146, 0.2);
}

.movistarplay-fecha-email {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: var(--movistar-text-muted);
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}


/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE - MOBILE FIRST
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .movistarplay-platform {
    padding: 1.25rem;
    border-radius: 16px;
    margin: 0 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .movistarplay-header {
    margin-bottom: 1.5rem;
  }

  .movistarplay-brand {
    gap: 1rem;
  }

  .movistarplay-logo {
    width: 55px;
    height: 55px;
  }

  .movistarplay-info h1 {
    font-size: 1.75rem;
  }

  .movistarplay-correos-count {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
  }

  .movistarplay-form-label {
    font-size: 0.85rem;
  }

  .movistarplay-form-input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
  }

  .movistarplay-btn-consultar {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .movistarplay-result-container {
    padding: 1.25rem;
  }

  .movistarplay-result-header h3 {
    font-size: 1.1rem;
  }

  .movistarplay-link-actions {
    flex-direction: column;
  }

  .movistarplay-btn-open,
  .movistarplay-btn-copy {
    width: 100%;
  }

  .movistarplay-link-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .movistarplay-platform {
    padding: 1rem;
    margin: 0 0.5rem;
    max-width: calc(100% - 1rem);
    border-radius: 12px;
  }

  .movistarplay-logo {
    width: 50px;
    height: 50px;
  }

  .movistarplay-info h1 {
    font-size: 1.5rem;
  }

  .movistarplay-btn-consultar {
    font-size: 0.95rem;
  }

  .movistarplay-btn-icon {
    font-size: 1.1rem;
  }

  .movistarplay-form-input {
    font-size: 0.9rem;
  }

  .movistarplay-link-text {
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   ✨ EFECTOS ESPECIALES Y ACABADOS
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Efecto de escaneo futurista */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ═══════════════════════════════════════════════════════════
   👤 MIS CUENTAS - PERFIL Y ASIGNACIONES
   ═══════════════════════════════════════════════════════════ */

.miscuentas-main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  animation: fadeInUp 0.5s ease-out;
}

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

/* ═══════════════════════════════════════════════════════════
   🎯 LOADING STATE
   ═══════════════════════════════════════════════════════════ */
.miscuentas-loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 1.5rem;
}

.miscuentas-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(76, 175, 80, 0.2);
  border-top-color: #4CAF50;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.miscuentas-loading-text {
  font-size: 1.1rem;
  color: #b3b3b3;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   📋 HEADER CON INFO DEL USUARIO
   ═══════════════════════════════════════════════════════════ */
.miscuentas-header-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.miscuentas-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.miscuentas-info-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.miscuentas-info-box:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #4CAF50;
  transform: translateY(-2px);
}

.miscuentas-info-label {
  font-size: 0.85rem;
  color: #808080;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.miscuentas-info-value {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
  word-break: break-word;
}

.miscuentas-info-value-highlight {
  font-size: 1.3rem;
  color: #4CAF50;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   🟢 ESTADO DE LA CUENTA
   ═══════════════════════════════════════════════════════════ */
.miscuentas-status-section {
  margin-bottom: 2rem;
}

.miscuentas-status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  flex-wrap: wrap;
  gap: 1rem;
}

.miscuentas-status-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.miscuentas-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.miscuentas-status-active {
  background: #4CAF50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.miscuentas-status-inactive {
  background: #FF9800;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.miscuentas-status-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.miscuentas-status-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.miscuentas-date-label {
  font-size: 0.9rem;
  color: #808080;
  font-weight: 600;
}

.miscuentas-date-value {
  font-size: 0.95rem;
  color: #b3b3b3;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   📺 PLATAFORMAS CON CORREOS
   ═══════════════════════════════════════════════════════════ */
.miscuentas-platforms-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.miscuentas-platform-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.miscuentas-platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--miscuentas-platform-color);
  opacity: 0.5;
}

.miscuentas-platform-card:hover {
  border-color: var(--miscuentas-platform-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
              0 0 20px var(--miscuentas-platform-color);
  transform: translateY(-2px);
}

.miscuentas-platform-expanded {
  border-color: var(--miscuentas-platform-color);
}

/* ═══════════════════════════════════════════════════════════
   🎯 HEADER DE PLATAFORMA (CLICKEABLE)
   ═══════════════════════════════════════════════════════════ */
.miscuentas-platform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 1rem;
}

.miscuentas-platform-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.miscuentas-platform-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1 1;
  min-width: 0;
}

.miscuentas-platform-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: contain;
  padding: 5px;
  background: rgba(255, 18, 18, 0.05);
  border: 3px solid var(--miscuentas-platform-color);
  box-shadow: 0 0 15px var(--miscuentas-platform-color);
  flex-shrink: 0;
}

.miscuentas-platform-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.miscuentas-platform-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.miscuentas-platform-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.miscuentas-platform-subtitle {
  font-size: 0.9rem;
  color: var(--miscuentas-platform-color);
  font-weight: 600;
}

.miscuentas-platform-date {
  font-size: 0.8rem;
  color: #808080;
}

.miscuentas-platform-right {
  flex-shrink: 0;
}

.miscuentas-expand-arrow {
  font-size: 1.2rem;
  color: #808080;
  transition: transform 0.3s ease;
  display: inline-block;
}

.miscuentas-expand-rotated {
  transform: rotate(180deg);
  color: var(--miscuentas-platform-color);
}

/* ═══════════════════════════════════════════════════════════
   📧 CUERPO EXPANDIBLE CON CORREOS
   ═══════════════════════════════════════════════════════════ */
.miscuentas-platform-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.miscuentas-email-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.miscuentas-email-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--miscuentas-platform-color);
  transform: translateX(5px);
}

.miscuentas-email-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.miscuentas-email-number {
  font-size: 0.85rem;
  font-weight: 700;
  color: #808080;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}

.miscuentas-email-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.miscuentas-email-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.miscuentas-email-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1;
  min-width: 0;
}

.miscuentas-email-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.miscuentas-email-address {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  word-break: break-all;
}

.miscuentas-copy-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--miscuentas-platform-color) 0%, var(--miscuentas-platform-color) 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.miscuentas-copy-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
              0 0 20px var(--miscuentas-platform-color);
}

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

.miscuentas-copy-success {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  animation: successPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.miscuentas-copy-icon {
  font-size: 1.1rem;
}

.miscuentas-copy-text {
  font-weight: 700;
}

.miscuentas-email-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.miscuentas-footer-label {
  font-size: 0.8rem;
  color: #808080;
  font-weight: 600;
}

.miscuentas-footer-value {
  font-size: 0.85rem;
  color: #b3b3b3;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   📊 HISTORIAL DE CONSULTAS
   ═══════════════════════════════════════════════════════════ */
.miscuentas-historial-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.miscuentas-historial-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.5rem 0;
}

.miscuentas-historial-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.miscuentas-historial-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
  gap: 1rem;
  flex-wrap: wrap;
}

.miscuentas-historial-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.miscuentas-historial-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1;
  min-width: 0;
}

.miscuentas-historial-platform {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.miscuentas-historial-email {
  font-size: 0.85rem;
  color: #808080;
  word-break: break-all;
}

.miscuentas-historial-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.miscuentas-historial-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  white-space: nowrap;
}

.miscuentas-historial-success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.05) 100%);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #4CAF50;
}

.miscuentas-historial-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.miscuentas-historial-timestamp {
  font-size: 0.75rem;
  color: #666666;
}

/* ═══════════════════════════════════════════════════════════
   📭 ESTADO VACÍO
   ═══════════════════════════════════════════════════════════ */
.miscuentas-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  animation: fadeInUp 0.5s ease-out;
}

.miscuentas-empty-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.miscuentas-empty-title {
  font-size: 1.8rem;
  color: #ffffff;
  margin: 0 0 1rem 0;
}

.miscuentas-empty-text {
  font-size: 1.1rem;
  color: #808080;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   📝 FOOTER
   ═══════════════════════════════════════════════════════════ */
.miscuentas-footer-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.miscuentas-footer-note {
  font-size: 0.95rem;
  color: #b3b3b3;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.miscuentas-footer-uid {
  font-size: 0.85rem;
  color: #666666;
  margin: 0;
  word-break: break-all;
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE - MÓVIL
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .miscuentas-main-container {
    padding: 1rem;
  }

  .miscuentas-header-section {
    padding: 1.25rem;
  }

  .miscuentas-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .miscuentas-info-box {
    padding: 0.75rem;
  }

  .miscuentas-info-value {
    font-size: 1rem;
  }

  .miscuentas-info-value-highlight {
    font-size: 1.1rem;
  }

  .miscuentas-status-card {
    padding: 1rem;
  }

  .miscuentas-platform-header {
    padding: 1rem;
  }

  .miscuentas-platform-logo {
    width: 40px;
    height: 40px;
  }

  .miscuentas-platform-name {
    font-size: 1.2rem;
  }

  .miscuentas-platform-body {
    padding: 0 1rem 1rem 1rem;
  }

  .miscuentas-email-content {
    flex-direction: column;
    align-items: stretch;
  }

  .miscuentas-copy-btn {
    width: 100%;
    justify-content: center;
  }

  .miscuentas-historial-section {
    padding: 1.25rem;
  }

  .miscuentas-historial-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .miscuentas-historial-right {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .miscuentas-main-container {
    padding: 0.75rem;
  }

  .miscuentas-info-grid {
    grid-template-columns: 1fr;
  }

  .miscuentas-platform-name {
    font-size: 1.1rem;
  }

  .miscuentas-email-address {
    font-size: 0.9rem;
  }
}


.miscuentas-platform-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.miscuentas-copy-all-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #2196F3 0%, #4CAF50 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.miscuentas-copy-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.miscuentas-copy-all-btn.miscuentas-copied {
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
}

@media (max-width: 768px) {
  .miscuentas-platform-right {
    gap: 8px;
  }

  .miscuentas-copy-all-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════
   ⚙️ CONFIGURACIÓN - GESTIÓN DE CUENTA Y SEGURIDAD
   ═══════════════════════════════════════════════════════════ */

.config-main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  animation: fadeInUp 0.5s ease-out;
}

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

/* ═══════════════════════════════════════════════════════════
   🔄 LOADING STATE
   ═══════════════════════════════════════════════════════════ */
.config-loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 1.5rem;
}

.config-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 152, 0, 0.2);
  border-top-color: #FF9800;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.config-loading-text {
  font-size: 1.1rem;
  color: #b3b3b3;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   🎯 HEADER
   ═══════════════════════════════════════════════════════════ */
.config-header-section {
  margin-bottom: 2rem;
}

.config-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.config-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.config-icon-wrapper {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 152, 0, 0.05) 100%);
  border: 2px solid rgba(255, 152, 0, 0.3);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 152, 0, 0.2);
}

.config-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.config-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.config-subtitle {
  font-size: 1rem;
  color: #808080;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   📑 TABS
   ═══════════════════════════════════════════════════════════ */
.config-tabs-wrapper {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.config-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #808080;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  bottom: -2px;
}

.config-tab-btn:hover {
  color: #FF9800;
  background: rgba(255, 152, 0, 0.05);
}

.config-tab-active {
  color: #FF9800;
  border-bottom-color: #FF9800;
}

.config-tab-icon {
  font-size: 1.3rem;
}

.config-tab-text {
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   📄 CARDS
   ═══════════════════════════════════════════════════════════ */
.config-content-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.config-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: cardSlideIn 0.4s ease-out backwards;
}

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

.config-card:hover {
  border-color: rgba(255, 152, 0, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.config-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.config-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.config-card-body {
  padding: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   📊 DATOS PERSONALES
   ═══════════════════════════════════════════════════════════ */
.config-data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.config-data-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.config-data-label {
  font-size: 0.85rem;
  color: #808080;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-data-value-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.config-data-value-wrapper:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 152, 0, 0.3);
}

.config-data-value {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 600;
  flex: 1 1;
  word-break: break-word;
}

.config-data-badge {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 152, 0, 0.05) 100%);
  border: 1px solid rgba(255, 152, 0, 0.4);
  color: #FF9800;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-status-badge {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-status-active {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.05) 100%);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #4CAF50;
}

.config-status-inactive {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(255, 152, 0, 0.05) 100%);
  border: 1px solid rgba(255, 152, 0, 0.4);
  color: #FF9800;
}

/* ═══════════════════════════════════════════════════════════
   📋 BOTÓN DE COPIAR
   ═══════════════════════════════════════════════════════════ */
.config-copy-btn {
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.config-copy-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.config-copy-success {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  animation: successPulse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* ═══════════════════════════════════════════════════════════
   🔑 UID BOX
   ═══════════════════════════════════════════════════════════ */
.config-uid-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 152, 0, 0.2);
  border-radius: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.config-uid-code {
  flex: 1 1;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #FF9800;
  background: rgba(255, 152, 0, 0.1);
  padding: 0.75rem;
  border-radius: 6px;
  word-break: break-all;
}

.config-copy-btn-large {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.config-copy-btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.config-copy-icon {
  font-size: 1.1rem;
}

.config-uid-note {
  font-size: 0.9rem;
  color: #808080;
  margin: 0;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   📺 PLATAFORMAS
   ═══════════════════════════════════════════════════════════ */
.config-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.config-platform-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.config-platform-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #FF9800;
  transform: translateY(-2px);
}

.config-platform-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.config-platform-status {
  font-size: 1.2rem;
}

.config-empty-text {
  font-size: 1rem;
  color: #808080;
  text-align: center;
  padding: 2rem;
}

/* ═══════════════════════════════════════════════════════════
   🔐 FORMULARIO DE CONTRASEÑA
   ═══════════════════════════════════════════════════════════ */
.config-password-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.config-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.config-form-label {
  font-size: 0.9rem;
  color: #b3b3b3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-input-wrapper {
  position: relative;
}

.config-form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.config-form-input::placeholder {
  color: #666666;
}

.config-form-input:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: #FF9800;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.15);
}

.config-form-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.config-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.config-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #FF9800;
}

.config-checkbox-label {
  font-size: 0.95rem;
  color: #b3b3b3;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   ⚠️ ALERTAS
   ═══════════════════════════════════════════════════════════ */
.config-alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  animation: alertSlideIn 0.3s ease-out;
}

@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.config-alert-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.05) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.config-alert-success {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.05) 100%);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #81c784;
}

/* ═══════════════════════════════════════════════════════════
   🚀 BOTONES DE ACCIÓN
   ═══════════════════════════════════════════════════════════ */
.config-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 152, 0, 0.4);
}

.config-submit-btn:active:not(:disabled) {
  transform: translateY(-1px);
}

.config-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.config-btn-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.config-btn-icon {
  font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════════════════
   🚪 BOTÓN CERRAR SESIÓN
   ═══════════════════════════════════════════════════════════ */
.config-logout-text {
  font-size: 1rem;
  color: #b3b3b3;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

.config-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.config-logout-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(244, 67, 54, 0.4);
}

.config-logout-icon {
  font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE - MÓVIL
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .config-main-container {
    padding: 1rem;
  }

  .config-title {
    font-size: 1.75rem;
  }

  .config-icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .config-tabs-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .config-tabs-wrapper::-webkit-scrollbar {
    display: none;
  }

  .config-tab-btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .config-data-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .config-uid-box {
    flex-direction: column;
    align-items: stretch;
  }

  .config-copy-btn-large {
    width: 100%;
    justify-content: center;
  }

  .config-platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .config-card-header {
    padding: 1.25rem;
  }

  .config-card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .config-main-container {
    padding: 0.75rem;
  }

  .config-title {
    font-size: 1.5rem;
  }

  .config-subtitle {
    font-size: 0.9rem;
  }

  .config-platforms-grid {
    grid-template-columns: 1fr;
  }

  .config-submit-btn,
  .config-logout-btn {
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
  }
}

:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #131729;
  --bg-tertiary: #1a1f3a;
  --bg-card: #1e2442;
  --bg-hover: #252b4a;
  --text-primary: #ffffff;
  --text-secondary: #b8c5d6;
  --text-muted: #8392ab;
  --border-color: #2d3548;
  --border-hover: #3d4558;
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --sidebar-width: 280px;
  --sidebar-collapsed: 80px;
  --navbar-height: 64px;
  --z-navbar: 1000;
  --z-sidebar: 999;
  --z-modal: 2000;
  --z-overlay: 1999;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: #0a0e27;
  background: var(--bg-primary);
  color: #ffffff;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.panel-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0a0e27;
  background: var(--bg-primary);
}

.panel-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  height: var(--navbar-height);
  background: #131729;
  background: var(--bg-secondary);
  border-bottom: 1px solid #2d3548;
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  z-index: var(--z-navbar);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  box-shadow: var(--shadow-md);
}

.panel-navbar-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  gap: 1rem;
  max-width: 100%;
}

.panel-menu-button-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #1a1f3a;
  background: var(--bg-tertiary);
  border: 1px solid #2d3548;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #ffffff;
  color: var(--text-primary);
  cursor: pointer;
  transition: 0.2s ease;
  transition: var(--transition-fast);
}

.panel-menu-button-mobile:hover {
  background: #252b4a;
  background: var(--bg-hover);
  border-color: #667eea;
  border-color: var(--accent-primary);
}

.panel-menu-button-mobile:active {
  transform: scale(0.95);
}

.panel-sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #1a1f3a;
  background: var(--bg-tertiary);
  border: 1px solid #2d3548;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #ffffff;
  color: var(--text-primary);
  cursor: pointer;
  transition: 0.2s ease;
  transition: var(--transition-fast);
}

.panel-sidebar-toggle:hover {
  background: #252b4a;
  background: var(--bg-hover);
  border-color: #667eea;
  border-color: var(--accent-primary);
}

.panel-navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1;
  min-width: 0;
}

.panel-logo-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1f3a;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.panel-logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}

.panel-navbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.panel-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.user-rol-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.panel-logout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #1a1f3a;
  background: var(--bg-tertiary);
  border: 1px solid #2d3548;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #ffffff;
  color: var(--text-primary);
  cursor: pointer;
  transition: 0.2s ease;
  transition: var(--transition-fast);
}

.panel-logout-button:hover {
  background: #ef4444;
  background: var(--accent-danger);
  border-color: #ef4444;
  border-color: var(--accent-danger);
  color: #fff;
}

.panel-main-layout {
  display: flex;
  margin-top: 64px;
  margin-top: var(--navbar-height);
  min-height: calc(100vh - 64px);
  min-height: calc(100vh - var(--navbar-height));
  position: relative;
}

.panel-sidebar {
  position: fixed;
  left: 0;
  top: 64px;
  top: var(--navbar-height);
  bottom: 0;
  width: 280px;
  width: var(--sidebar-width);
  background: #131729;
  background: var(--bg-secondary);
  border-right: 1px solid #2d3548;
  border-right: 1px solid var(--border-color);
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.3s ease, transform 0.3s ease;
  transition: width var(--transition-normal), transform var(--transition-normal);
  z-index: 999;
  z-index: var(--z-sidebar);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  box-shadow: var(--shadow-md);
}

.panel-sidebar.closed {
  width: 80px;
  width: var(--sidebar-collapsed);
}

.panel-sidebar::-webkit-scrollbar {
  width: 6px;
}

.panel-sidebar::-webkit-scrollbar-track {
  background: #131729;
  background: var(--bg-secondary);
}

.panel-sidebar::-webkit-scrollbar-thumb {
  background: #2d3548;
  background: var(--border-color);
  border-radius: 3px;
}

.panel-sidebar::-webkit-scrollbar-thumb:hover {
  background: #3d4558;
  background: var(--border-hover);
}

.panel-sidebar-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-sidebar-header {
  padding: 0.5rem 0;
}

.panel-sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #8392ab;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.panel-stats-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #b8c5d6;
  color: var(--text-secondary);
}

.stats-item {
  color: #667eea;
  color: var(--accent-primary);
  font-weight: 600;
}

.stats-divider {
  color: #2d3548;
  color: var(--border-color);
}

.panel-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.panel-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #b8c5d6;
  color: var(--text-secondary);
  cursor: pointer;
  transition: 0.2s ease;
  transition: var(--transition-fast);
  text-align: left;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.panel-sidebar-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #667eea;
  background: var(--accent-primary);
  transform: scaleY(0);
  transition: 0.2s ease;
  transition: var(--transition-fast);
}

.panel-sidebar-item:hover {
  background: #252b4a;
  background: var(--bg-hover);
  border-color: #3d4558;
  border-color: var(--border-hover);
  color: #ffffff;
  color: var(--text-primary);
}

.panel-sidebar-item.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  border-color: #667eea;
  border-color: var(--accent-primary);
  color: #ffffff;
  color: var(--text-primary);
}

.panel-sidebar-item.active::before {
  transform: scaleY(1);
}

.panel-sidebar-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.panel-sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.panel-sidebar-icon-inner {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1f3a;
  background: var(--bg-tertiary);
  border: 1px solid #2d3548;
  border: 1px solid var(--border-color);
}

.panel-sidebar-item:hover .panel-sidebar-icon-inner {
  border-color: #667eea;
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(102, 126, 234, 0.3);
}

.platform-icon-img,
.platform-cosmic-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-sidebar-info {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.panel-sidebar-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-sidebar-status {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  width: -webkit-fit-content;
  width: fit-content;
}

.status-active {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  color: var(--accent-success);
}

.status-locked {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  color: var(--accent-danger);
}

.status-maintenance {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  color: var(--accent-warning);
}

.panel-sidebar-arrow {
  flex-shrink: 0;
  opacity: 0.5;
  transition: 0.2s ease;
  transition: var(--transition-fast);
}

.panel-sidebar-item:hover .panel-sidebar-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.panel-sidebar.closed .panel-sidebar-header,
.panel-sidebar.closed .panel-sidebar-info,
.panel-sidebar.closed .panel-sidebar-arrow,
.panel-sidebar.closed .tragamonedas-widget-sidebar {
  display: none;
}

.panel-sidebar.closed .panel-sidebar-item {
  justify-content: center;
  padding: 0.75rem;
}

.panel-sidebar-mobile {
  position: fixed;
  left: 0;
  top: 64px;
  top: var(--navbar-height);
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: #131729;
  background: var(--bg-secondary);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  transition: transform var(--transition-normal);
  z-index: 999;
  z-index: var(--z-sidebar);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  box-shadow: var(--shadow-lg);
}

.panel-sidebar-mobile.open {
  transform: translateX(0);
}

.panel-sidebar-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #2d3548;
  border-bottom: 1px solid var(--border-color);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: #131729;
  background: var(--bg-secondary);
  z-index: 10;
}

.panel-sidebar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #1a1f3a;
  background: var(--bg-tertiary);
  border: 1px solid #2d3548;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #ffffff;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  transition: 0.2s ease;
  transition: var(--transition-fast);
}

.panel-sidebar-close:hover {
  background: #ef4444;
  background: var(--accent-danger);
  border-color: #ef4444;
  border-color: var(--accent-danger);
  color: #fff;
}

.panel-stats-mini-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #b8c5d6;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  background: #1a1f3a;
  background: var(--bg-tertiary);
  border-bottom: 1px solid #2d3548;
  border-bottom: 1px solid var(--border-color);
}

.panel-sidebar-overlay {
  position: fixed;
  inset: 0;
  top: 64px;
  top: var(--navbar-height);
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: calc(999 - 1);
  z-index: calc(var(--z-sidebar) - 1);
  animation: fadeIn 0.3s ease;
  animation: fadeIn var(--transition-normal);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.panel-content {
  flex: 1 1;
  margin-left: 280px;
  margin-left: var(--sidebar-width);
  padding: 1.5rem;
  background: #0a0e27;
  background: var(--bg-primary);
  transition: margin-left 0.3s ease;
  transition: margin-left var(--transition-normal);
  min-height: calc(100vh - 64px);
  min-height: calc(100vh - var(--navbar-height));
}

.panel-sidebar.closed ~ .panel-content {
  margin-left: 80px;
  margin-left: var(--sidebar-collapsed);
}

.tragamonedas-widget-sidebar {
  margin: 16px 12px 24px;
  padding: 20px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
  border: 2px solid rgba(33, 150, 243, 0.2);
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.tragamonedas-widget-sidebar::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.03) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.traga-screen-sidebar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.traga-slot-sidebar {
  aspect-ratio: 1;
  background: radial-gradient(ellipse at center, #000814 0%, #000000 100%);
  border-radius: 12px;
  border: 3px solid rgba(30, 41, 59, 0.8);
  position: relative;
  overflow: hidden;
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.5);
}

.traga-slot-sidebar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 50%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
  border-radius: 9px;
}

.traga-reel {
  width: 100%;
  height: 300%;
  position: absolute;
  top: -100%;
  display: flex;
  flex-direction: column;
  transition: top 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.traga-reel.spinning {
  animation: spinReel 0.08s linear infinite;
}

@keyframes spinReel {
  0% { top: -100%; }
  100% { top: -200%; }
}

.traga-symbol {
  width: 100%;
  height: 33.333%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
}

.traga-icon-sidebar {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease;
}

.traga-reel.spinning .traga-icon-sidebar {
  filter: blur(4px) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
  opacity: 0.8;
}

.slot-question-sidebar {
  font-size: 32px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.traga-counter-sidebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.08), rgba(124, 58, 237, 0.08));
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(33, 150, 243, 0.15);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.traga-counter-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.1), transparent);
  animation: shine 3s ease-in-out infinite;
}

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

.counter-label-sidebar {
  font-size: 11px;
  font-weight: 700;
  color: #b8c5d6;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.counter-value-sidebar {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.6));
  }
}

.traga-controls-sidebar {
  width: 100%;
  position: relative;
  z-index: 1;
}

.traga-lever-sidebar {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 
    0 6px 20px rgba(33, 150, 243, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.traga-lever-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.traga-lever-sidebar:hover:not(:disabled)::before {
  left: 100%;
}

.traga-lever-sidebar:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 28px rgba(33, 150, 243, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.traga-lever-sidebar:active:not(:disabled) {
  transform: translateY(0);
}

.traga-lever-sidebar.pulling {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  animation: pulling 1.2s ease-in-out infinite;
}

@keyframes pulling {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 32px rgba(124, 58, 237, 0.8);
    transform: scale(1.02);
  }
}

.traga-timer-button {
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.9), rgba(51, 65, 85, 0.9));
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.8;
}

.traga-timer-button:hover {
  transform: none;
}

.traga-error-sidebar {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 10px;
  position: relative;
  z-index: 1;
}

.error-text-sidebar {
  font-size: 12px;
  font-weight: 600;
  color: var(--danger-color);
  text-align: center;
}

.panel-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #0a0e27;
  background: var(--bg-primary);
  gap: 1rem;
}

.panel-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #2d3548;
  border: 4px solid var(--border-color);
  border-top-color: #667eea;
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.panel-loading-text {
  font-size: 1rem;
  color: #b8c5d6;
  color: var(--text-secondary);
  font-weight: 600;
}

.dashboard-error {
  padding: 1rem;
  margin-bottom: 1rem;
}

.error-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  border: 1px solid var(--accent-danger);
  border-radius: 12px;
}

.error-icon {
  font-size: 2rem;
}

.error-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #ef4444;
  color: var(--accent-danger);
  margin-bottom: 0.25rem;
}

.error-text p {
  font-size: 0.875rem;
  color: #b8c5d6;
  color: var(--text-secondary);
}

.btn-retry {
  padding: 0.5rem 1rem;
  background: #ef4444;
  background: var(--accent-danger);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  transition: var(--transition-fast);
}

.btn-retry:hover {
  background: #dc2626;
}

.prize-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  z-index: var(--z-modal);
  padding: 1rem;
  animation: fadeIn 0.3s ease;
  animation: fadeIn var(--transition-normal);
}

.prize-modal-compact {
  position: relative;
  background: linear-gradient(135deg, #1e2442, #1a1f3a);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-tertiary));
  border: 2px solid #667eea;
  border: 2px solid var(--accent-primary);
  border-radius: 20px;
  max-width: 450px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 0 50px rgba(102, 126, 234, 0.5);
  animation: scaleIn 0.3s ease;
  animation: scaleIn var(--transition-normal);
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.prize-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: #131729;
  background: var(--bg-secondary);
  border: 1px solid #2d3548;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #ffffff;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
  transition: var(--transition-fast);
}

.prize-close:hover {
  background: #ef4444;
  background: var(--accent-danger);
  border-color: #ef4444;
  border-color: var(--accent-danger);
  color: #fff;
}

.prize-content {
  text-align: center;
}

.prize-icon-big {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.prize-title {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #667eea, #764ba2);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.prize-subtitle {
  font-size: 1rem;
  color: #b8c5d6;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.prize-platform-box {
  background: #0a0e27;
  background: var(--bg-primary);
  border: 2px solid #667eea;
  border: 2px solid var(--accent-primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.prize-platform-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 4px 16px rgba(102, 126, 234, 0.6));
}

.prize-platform-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  color: var(--text-primary);
}

.prize-text {
  font-size: 0.9rem;
  color: #b8c5d6;
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.prize-text-bold {
  font-size: 1rem;
  font-weight: 700;
  color: #667eea;
  color: var(--accent-primary);
  margin: 1rem 0;
}

.prize-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin: 1rem 0;
  transition: 0.2s ease;
  transition: var(--transition-fast);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.prize-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
  font-size: 1.5rem;
}

.prize-user {
  font-size: 0.85rem;
  color: #8392ab;
  color: var(--text-muted);
  margin-top: 1rem;
}

.prize-user strong {
  color: #ffffff;
  color: var(--text-primary);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .panel-logo-text {
    font-size: 0.85rem;
  }
  .panel-user-name {
    max-width: 120px;
    font-size: 0.85rem;
  }
  .panel-sidebar {
    width: 240px;
  }
  .panel-content {
    margin-left: 240px;
  }
  .panel-sidebar.closed ~ .panel-content {
    margin-left: 80px;
    margin-left: var(--sidebar-collapsed);
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 56px;
  }
  .panel-navbar-content {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }
  .panel-menu-button-mobile {
    display: flex;
  }
  .panel-sidebar-toggle {
    display: none;
  }
  .panel-logo-text {
    font-size: 0.75rem;
    max-width: 120px;
  }
  .panel-user-name {
    display: none;
  }
  .user-rol-badge {
    margin-left: 0;
  }
  .panel-logout-button {
    width: 36px;
    height: 36px;
  }
  .panel-sidebar {
    display: none;
  }
  .panel-content {
    margin-left: 0;
    padding: 1rem;
    width: 100%;
  }
  .traga-screen-sidebar {
    gap: 8px;
  }
  .slot-question-sidebar {
    font-size: 24px;
  }
  .counter-value-sidebar {
    font-size: 20px;
  }
  .prize-modal-compact {
    max-width: calc(100vw - 2rem);
    padding: 1.5rem;
  }
  .prize-title {
    font-size: 1.5rem;
  }
  .prize-platform-img {
    width: 60px;
    height: 60px;
  }
  .prize-platform-name {
    font-size: 1.25rem;
  }
  .prize-whatsapp-btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --navbar-height: 52px;
  }
  .panel-navbar-content {
    padding: 0 0.5rem;
  }
  .panel-logo-wrapper {
    width: 32px;
    height: 32px;
  }
  .panel-logo-text {
    font-size: 0.7rem;
    max-width: 100px;
  }
  .panel-menu-button-mobile,
  .panel-logout-button {
    width: 32px;
    height: 32px;
  }
  .panel-content {
    padding: 0.75rem;
  }
  .panel-sidebar-mobile {
    max-width: 90vw;
  }
  .tragamonedas-widget-sidebar {
    padding: 16px;
  }
  .traga-screen-sidebar {
    gap: 8px;
  }
  .slot-question-sidebar {
    font-size: 24px;
  }
  .counter-value-sidebar {
    font-size: 20px;
  }
  .prize-modal-compact {
    padding: 1rem;
  }
  .prize-icon-big {
    font-size: 3rem;
  }
  .prize-title {
    font-size: 1.25rem;
  }
}

.text-center { text-align: center; }
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }



/* 🎨 Contenedor del nombre + badge vertical */
.panel-user-name-wrapper {
  display: flex;
  flex-direction: column; /* ⬅️ VERTICAL */
  align-items: flex-end; /* Alineado a la derecha */
  gap: 4px;
}

.panel-user-name {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

/* 🎨 Badge de Rol (ahora debajo del nombre) */
.user-rol-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-left: 0; /* ⬅️ Sin margen izquierdo */
}

.user-rol-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* 🎨 Responsive móvil */
@media (max-width: 768px) {
  .panel-user-name-wrapper {
    align-items: center; /* Centrado en móvil */
  }
  
  .panel-user-name {
    font-size: 12px;
  }
  
  .user-rol-badge {
    font-size: 8px;
    padding: 2px 6px;
  }
}

:root {
  --admin-black: #000000;
  --admin-black-card: #050505;
  --admin-black-lighter: #0d0d0d;
  --admin-red: #8b0000;
  --admin-red-light: #b71c1c;
  --admin-red-dark: #5f0000;
  --admin-gold: #b8860b;
  --admin-gold-light: #daa520;
  --admin-gold-dark: #8b6914;
  --admin-border: rgba(139, 0, 0, 0.2);
  --admin-border-light: rgba(139, 0, 0, 0.3);
  --admin-glow-red: rgba(139, 0, 0, 0.8);
  --admin-glow-gold: rgba(184, 134, 11, 0.7);
  --admin-text: #ffffff;
  --admin-text-secondary: #a0a0a0;
  --admin-text-muted: #6b6b6b;
  --admin-success: #0d7350;
  --admin-warning: #d97706;
  --admin-error: #b71c1c;
  --admin-sidebar-width: 280px;
  --admin-sidebar-collapsed: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */

.admin-panel-container {
  min-height: 100vh;
  background: #000000;
  background: var(--admin-black);
  font-family: 'Rajdhani', sans-serif;
  color: #ffffff;
  color: var(--admin-text);
}

/* ========================================
   NAVBAR
   ======================================== */

.admin-navbar {
  background: #050505;
  background: var(--admin-black-card);
  border-bottom: 1px solid rgba(139, 0, 0, 0.2);
  border-bottom: 1px solid var(--admin-border);
  padding: 12px 20px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.admin-navbar-content {
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-sidebar-toggle {
  background: transparent;
  border: 1px solid rgba(139, 0, 0, 0.2);
  border: 1px solid var(--admin-border);
  color: #ffffff;
  color: var(--admin-text);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.admin-sidebar-toggle:hover {
  background: rgba(139, 0, 0, 0.15);
  border-color: #8b0000;
  border-color: var(--admin-red);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(139, 0, 0, 0.8);
  box-shadow: 0 0 15px var(--admin-glow-red);
}

.admin-menu-button-mobile {
  background: transparent;
  border: 1px solid rgba(139, 0, 0, 0.2);
  border: 1px solid var(--admin-border);
  color: #ffffff;
  color: var(--admin-text);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.admin-menu-button-mobile:hover {
  background: rgba(139, 0, 0, 0.15);
  border-color: #8b0000;
  border-color: var(--admin-red);
}

.admin-navbar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.admin-logo-wrapper {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #5f0000, #8b0000);
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-red));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.8);
  box-shadow: 0 0 30px var(--admin-glow-red);
  animation: logoFloat 3s ease-in-out infinite;
  border: 1px solid #8b0000;
  border: 1px solid var(--admin-red);
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.admin-logo-wrapper svg {
  color: #daa520;
  color: var(--admin-gold-light);
  filter: drop-shadow(0 0 5px rgba(184, 134, 11, 0.7));
  filter: drop-shadow(0 0 5px var(--admin-glow-gold));
}

.admin-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-logo-title {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #b71c1c, #daa520);
  background: linear-gradient(135deg, var(--admin-red-light), var(--admin-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  text-transform: uppercase;
  filter: drop-shadow(0 0 10px rgba(139, 0, 0, 0.8));
  filter: drop-shadow(0 0 10px var(--admin-glow-red));
}

.admin-logo-subtitle {
  font-size: 11px;
  font-weight: 700;
  color: #a0a0a0;
  color: var(--admin-text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-navbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.admin-btn-refresh {
  background: #0d0d0d;
  background: var(--admin-black-lighter);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border: 1px solid var(--admin-border);
  color: #ffffff;
  color: var(--admin-text);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-btn-refresh:hover:not(:disabled) {
  background: #5f0000;
  background: var(--admin-red-dark);
  border-color: #8b0000;
  border-color: var(--admin-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.8);
  box-shadow: 0 4px 20px var(--admin-glow-red);
}

.admin-btn-refresh:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-btn-refresh .spinning {
  animation: refreshSpin 1s linear infinite;
}

@keyframes refreshSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Dropdown de Notificaciones */
.admin-notifications-dropdown {
  position: relative;
}

.admin-notification-btn {
  width: 44px;
  height: 44px;
  background: #0d0d0d;
  background: var(--admin-black-lighter);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  color: #ffffff;
  color: var(--admin-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.admin-notification-btn:hover {
  background: #5f0000;
  background: var(--admin-red-dark);
  border-color: #8b0000;
  border-color: var(--admin-red);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.8);
  box-shadow: 0 0 20px var(--admin-glow-red);
}

.admin-notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #8b0000, #b71c1c);
  background: linear-gradient(135deg, var(--admin-red), var(--admin-red-light));
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.8);
  box-shadow: 0 0 20px var(--admin-glow-red);
  border: 1px solid #5f0000;
  border: 1px solid var(--admin-red-dark);
  animation: badgePulse 2s ease-in-out infinite;
}

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

.admin-notification-dropdown-content {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 400px;
  max-height: 500px;
  background: #050505;
  background: var(--admin-black-card);
  border: 1px solid rgba(139, 0, 0, 0.3);
  border: 1px solid var(--admin-border-light);
  border-radius: 16px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.95);
  overflow: hidden;
  z-index: 1000;
  animation: dropdownSlideIn 0.3s ease;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-notification-dropdown-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #5f0000, transparent);
  background: linear-gradient(135deg, var(--admin-red-dark), transparent);
  border-bottom: 1px solid rgba(139, 0, 0, 0.2);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-notification-dropdown-header h3 {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  color: var(--admin-text);
  letter-spacing: 1px;
}

.admin-notification-dropdown-count {
  font-size: 12px;
  font-weight: 700;
  color: #b8860b;
  color: var(--admin-gold);
  background: rgba(184, 134, 11, 0.15);
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  border: 1px solid #8b6914;
  border: 1px solid var(--admin-gold-dark);
}

.admin-notification-dropdown-list {
  max-height: 360px;
  overflow-y: auto;
  background: #000000;
  background: var(--admin-black);
}

.admin-notification-dropdown-list::-webkit-scrollbar {
  width: 6px;
}

.admin-notification-dropdown-list::-webkit-scrollbar-track {
  background: #0d0d0d;
  background: var(--admin-black-lighter);
}

.admin-notification-dropdown-list::-webkit-scrollbar-thumb {
  background: #8b0000;
  background: var(--admin-red);
  border-radius: 10px;
}

.admin-notification-dropdown-empty {
  padding: 50px 20px;
  text-align: center;
  color: #a0a0a0;
  color: var(--admin-text-secondary);
}

.admin-notification-dropdown-empty svg {
  margin: 0 auto 12px;
  opacity: 0.5;
  color: #6b6b6b;
  color: var(--admin-text-muted);
}

.admin-notification-dropdown-empty p {
  font-size: 14px;
  font-weight: 500;
}

.admin-notification-dropdown-item {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(139, 0, 0, 0.2);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: #050505;
  background: var(--admin-black-card);
}

.admin-notification-dropdown-item:hover {
  background: #0d0d0d;
  background: var(--admin-black-lighter);
  border-left: 3px solid #8b0000;
  border-left: 3px solid var(--admin-red);
}

.admin-notification-unread {
  background: linear-gradient(90deg, #5f0000, #050505);
  background: linear-gradient(90deg, var(--admin-red-dark), var(--admin-black-card));
  border-left: 3px solid #8b0000;
  border-left: 3px solid var(--admin-red);
}

.admin-notification-dropdown-item-avatar {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #5f0000, #8b0000);
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-red));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.8);
  box-shadow: 0 0 20px var(--admin-glow-red);
  border: 1px solid #8b0000;
  border: 1px solid var(--admin-red);
}

.admin-notification-dropdown-item-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.admin-notification-dropdown-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  color: var(--admin-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-notification-dropdown-item-details p {
  font-size: 12px;
  font-weight: 500;
  color: #a0a0a0;
  color: var(--admin-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 2px 0;
}

.admin-notification-dropdown-item-time {
  font-size: 11px;
  font-weight: 600;
  color: #6b6b6b;
  color: var(--admin-text-muted);
  letter-spacing: 0.3px;
}

.admin-notification-dropdown-item-dot {
  width: 10px;
  height: 10px;
  background: #8b0000;
  background: var(--admin-red);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(139, 0, 0, 0.8);
  box-shadow: 0 0 15px var(--admin-glow-red);
  animation: dotPulse 2s ease-in-out infinite;
  border: 1px solid #b71c1c;
  border: 1px solid var(--admin-red-light);
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.admin-notification-dropdown-footer {
  padding: 12px 20px;
  background: #050505;
  background: var(--admin-black-card);
  border-top: 1px solid rgba(139, 0, 0, 0.2);
  border-top: 1px solid var(--admin-border);
}

.admin-notification-dropdown-view-all {
  width: 100%;
  background: transparent;
  border: none;
  color: #b8860b;
  color: var(--admin-gold);
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-notification-dropdown-view-all:hover {
  color: #daa520;
  color: var(--admin-gold-light);
  transform: translateX(4px);
}

/* Info del Usuario */
.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #0d0d0d;
  background: var(--admin-black-lighter);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.admin-user-info:hover {
  background: #5f0000;
  background: var(--admin-red-dark);
  border-color: #8b0000;
  border-color: var(--admin-red);
  box-shadow: 0 0 15px rgba(139, 0, 0, 0.8);
  box-shadow: 0 0 15px var(--admin-glow-red);
}

.admin-user-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #5f0000, #8b0000);
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-red));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(139, 0, 0, 0.8);
  box-shadow: 0 0 15px var(--admin-glow-red);
  border: 1px solid #8b0000;
  border: 1px solid var(--admin-red);
}

.admin-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-user-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  color: var(--admin-text);
  letter-spacing: 0.3px;
}

.admin-user-badge {
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #b71c1c, #daa520);
  background: linear-gradient(135deg, var(--admin-red-light), var(--admin-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-logout-button {
  background: linear-gradient(135deg, #5f0000, #8b0000);
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-red));
  border: 1px solid #8b0000;
  border: 1px solid var(--admin-red);
  color: white;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.8);
  box-shadow: 0 0 20px var(--admin-glow-red);
}

.admin-logout-button:hover {
  background: linear-gradient(135deg, #8b0000, #b71c1c);
  background: linear-gradient(135deg, var(--admin-red), var(--admin-red-light));
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(139, 0, 0, 0.8);
  box-shadow: 0 6px 30px var(--admin-glow-red);
}

/* ========================================
   LAYOUT PRINCIPAL
   ======================================== */

.admin-main-layout {
  display: flex;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

/* ========================================
   SIDEBAR
   ======================================== */

.admin-sidebar {
  width: 280px;
  width: var(--admin-sidebar-width);
  flex-shrink: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  overflow-x: hidden;
  background: #050505;
  background: var(--admin-black-card);
  border-right: 1px solid rgba(139, 0, 0, 0.2);
  border-right: 1px solid var(--admin-border);
  transition: width 0.3s ease;
  z-index: 100;
}

.admin-sidebar.closed {
  width: 70px;
  width: var(--admin-sidebar-collapsed);
}

.admin-sidebar-content {
  padding: 20px 0;
}

.admin-sidebar-header {
  padding: 0 20px 16px;
  border-bottom: 1px solid rgba(139, 0, 0, 0.2);
  border-bottom: 1px solid var(--admin-border);
  margin-bottom: 16px;
}

.admin-sidebar-title {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  color: var(--admin-text);
  margin: 0 0 10px 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #b71c1c, #b8860b);
  background: linear-gradient(135deg, var(--admin-red-light), var(--admin-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(139, 0, 0, 0.8));
  filter: drop-shadow(0 0 10px var(--admin-glow-red));
}

.admin-stats-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #a0a0a0;
  color: var(--admin-text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.admin-stats-mini svg {
  color: #b8860b;
  color: var(--admin-gold);
}

.admin-stats-mini-mobile {
  padding: 14px 20px;
  background: linear-gradient(135deg, #5f0000, transparent);
  background: linear-gradient(135deg, var(--admin-red-dark), transparent);
  border-bottom: 1px solid rgba(139, 0, 0, 0.2);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #a0a0a0;
  color: var(--admin-text-secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.admin-stats-mini-mobile svg {
  color: #b8860b;
  color: var(--admin-gold);
}

.admin-sidebar::-webkit-scrollbar {
  width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: #000000;
  background: var(--admin-black);
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: #8b0000;
  background: var(--admin-red);
  border-radius: 10px;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
}

.admin-sidebar-item {
  width: 100%;
  background: #0d0d0d;
  background: var(--admin-black-lighter);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border: 1px solid var(--admin-border);
  color: #ffffff;
  color: var(--admin-text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.admin-sidebar-item:hover {
  background: #5f0000;
  background: var(--admin-red-dark);
  border-color: #8b0000;
  border-color: var(--admin-red);
  transform: translateX(4px);
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.8);
  box-shadow: 0 0 20px var(--admin-glow-red);
}

.admin-sidebar-item.active {
  background: linear-gradient(135deg, #5f0000, #8b0000);
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-red));
  border-color: #b71c1c;
  border-color: var(--admin-red-light);
  box-shadow: 0 4px 25px rgba(139, 0, 0, 0.8);
  box-shadow: 0 4px 25px var(--admin-glow-red);
}

.admin-sidebar.closed .admin-sidebar-item {
  justify-content: center;
  padding: 14px 12px;
}

.admin-sidebar.closed .admin-sidebar-info,
.admin-sidebar.closed .admin-sidebar-arrow {
  display: none;
}

.admin-sidebar.closed .admin-sidebar-header {
  display: none;
}

.admin-sidebar.closed .admin-sidebar-badge {
  position: absolute;
  top: 8px;
  right: 8px;
}

.admin-sidebar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #b8860b;
  color: var(--admin-gold);
}

.admin-sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1;
  min-width: 0;
}

.admin-sidebar-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  color: var(--admin-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}

.admin-sidebar-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  color: #0d7350;
  color: var(--admin-success);
}

.admin-sidebar-badge {
  margin-left: auto;
  background: linear-gradient(135deg, #8b0000, #b71c1c);
  background: linear-gradient(135deg, var(--admin-red), var(--admin-red-light));
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  min-width: 24px;
  text-align: center;
  box-shadow: 0 0 15px rgba(139, 0, 0, 0.8);
  box-shadow: 0 0 15px var(--admin-glow-red);
  border: 1px solid #5f0000;
  border: 1px solid var(--admin-red-dark);
}

.admin-sidebar-arrow {
  flex-shrink: 0;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.admin-sidebar-item:hover .admin-sidebar-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.admin-sidebar-footer {
  padding: 16px 20px;
  margin-top: 16px;
  border-top: 1px solid rgba(139, 0, 0, 0.2);
  border-top: 1px solid var(--admin-border);
}

.admin-system-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #0d0d0d;
  background: var(--admin-black-lighter);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #a0a0a0;
  color: var(--admin-text-secondary);
  letter-spacing: 0.5px;
  border: 1px solid rgba(139, 0, 0, 0.2);
  border: 1px solid var(--admin-border);
}

.admin-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

.admin-status-online {
  background: #0d7350;
  background: var(--admin-success);
  box-shadow: 0 0 10px #0d7350;
  box-shadow: 0 0 10px var(--admin-success);
}

.admin-status-error {
  background: #b71c1c;
  background: var(--admin-error);
  box-shadow: 0 0 10px #b71c1c;
  box-shadow: 0 0 10px var(--admin-error);
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* SIDEBAR MOBILE */
.admin-sidebar-mobile {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: #050505;
  background: var(--admin-black-card);
  border-right: 1px solid rgba(139, 0, 0, 0.3);
  border-right: 1px solid var(--admin-border-light);
  transition: left 0.3s ease;
  z-index: 1100;
  overflow-y: auto;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.95);
}

.admin-sidebar-mobile.open {
  left: 0;
}

.admin-sidebar-mobile-header {
  padding: 20px;
  border-bottom: 1px solid rgba(139, 0, 0, 0.2);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #5f0000, transparent);
  background: linear-gradient(135deg, var(--admin-red-dark), transparent);
}

.admin-sidebar-mobile-header h3 {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  color: var(--admin-text);
  letter-spacing: 1px;
}

.admin-sidebar-close {
  background: #0d0d0d;
  background: var(--admin-black-lighter);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border: 1px solid var(--admin-border);
  color: #ffffff;
  color: var(--admin-text);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.admin-sidebar-close:hover {
  color: #b71c1c;
  color: var(--admin-red-light);
  background: #5f0000;
  background: var(--admin-red-dark);
  border-color: #8b0000;
  border-color: var(--admin-red);
  transform: rotate(90deg);
}

.admin-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1099;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}

/* ========================================
   CONTENIDO PRINCIPAL
   ======================================== */

.admin-content {
  flex: 1 1;
  min-width: 0;
  padding: 32px;
  transition: margin-left 0.3s ease;
  background: #000000;
  background: var(--admin-black);
}

.admin-content.full-width {
  margin-left: 0;
}

/* ========================================
   PÁGINA DE NOTIFICACIONES
   ======================================== */

.admin-notifications-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-notifications-header {
  background: linear-gradient(135deg, #5f0000, #050505);
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-black-card));
  border: 1px solid rgba(139, 0, 0, 0.3);
  border: 1px solid var(--admin-border-light);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.8);
  box-shadow: 0 0 30px var(--admin-glow-red);
}

.admin-notifications-header-content {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-notifications-header-content svg {
  color: #b8860b;
  color: var(--admin-gold);
  filter: drop-shadow(0 0 10px rgba(184, 134, 11, 0.7));
  filter: drop-shadow(0 0 10px var(--admin-glow-gold));
}

.admin-notifications-header h1 {
  font-family: 'Orbitron', monospace;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  color: var(--admin-text);
  margin-bottom: 6px;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(139, 0, 0, 0.8);
  text-shadow: 0 0 20px var(--admin-glow-red);
}

.admin-notifications-header p {
  font-size: 14px;
  font-weight: 500;
  color: #a0a0a0;
  color: var(--admin-text-secondary);
}

.admin-notifications-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-notification-stat-badge {
  background: #0d0d0d;
  background: var(--admin-black-lighter);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #b8860b;
  color: var(--admin-gold);
  letter-spacing: 0.5px;
}

.admin-notifications-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-notification-card {
  background: #050505;
  background: var(--admin-black-card);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.admin-notification-card:hover {
  background: #0d0d0d;
  background: var(--admin-black-lighter);
  border-color: #8b0000;
  border-color: var(--admin-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.8);
}

.admin-notification-card.unread {
  border-left: 4px solid #8b0000;
  border-left: 4px solid var(--admin-red);
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.8);
  box-shadow: 0 0 30px var(--admin-glow-red);
  background: linear-gradient(90deg, #5f0000, #050505);
  background: linear-gradient(90deg, var(--admin-red-dark), var(--admin-black-card));
}

.admin-notification-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(139, 0, 0, 0.2);
  border-bottom: 1px solid var(--admin-border);
}

.admin-notification-user {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1;
}

.admin-notification-avatar {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #5f0000, #8b0000);
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-red));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 25px rgba(139, 0, 0, 0.8);
  box-shadow: 0 0 25px var(--admin-glow-red);
  border: 1px solid #8b0000;
  border: 1px solid var(--admin-red);
}

.admin-notification-user-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  color: var(--admin-text);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.admin-notification-user-info p {
  font-size: 12px;
  font-weight: 500;
  color: #a0a0a0;
  color: var(--admin-text-secondary);
  letter-spacing: 0.3px;
}

.admin-notification-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.admin-btn-primary,
.admin-btn-secondary {
  padding: 10px 18px;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.admin-btn-primary {
  background: linear-gradient(135deg, #5f0000, #8b0000);
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-red));
  color: white;
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.8);
  box-shadow: 0 0 20px var(--admin-glow-red);
  border: 1px solid #8b0000;
  border: 1px solid var(--admin-red);
}

.admin-btn-primary:hover {
  background: linear-gradient(135deg, #8b0000, #b71c1c);
  background: linear-gradient(135deg, var(--admin-red), var(--admin-red-light));
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(139, 0, 0, 0.8);
  box-shadow: 0 6px 30px var(--admin-glow-red);
}

.admin-btn-secondary {
  background: #0d0d0d;
  background: var(--admin-black-lighter);
  border: 1px solid rgba(139, 0, 0, 0.2);
  border: 1px solid var(--admin-border);
  color: #ffffff;
  color: var(--admin-text);
}

.admin-btn-secondary:hover {
  background: #5f0000;
  background: var(--admin-red-dark);
  border-color: #8b0000;
  border-color: var(--admin-red);
}

.admin-notification-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.admin-notification-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #0d0d0d;
  background: var(--admin-black-lighter);
  border-radius: 10px;
  border: 1px solid rgba(139, 0, 0, 0.2);
  border: 1px solid var(--admin-border);
}

.admin-notification-detail-item .label {
  font-size: 13px;
  font-weight: 700;
  color: #b8860b;
  color: var(--admin-gold);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.admin-notification-detail-item .value {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  color: var(--admin-text);
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-notifications-empty {
  padding: 100px 40px;
  text-align: center;
}

.admin-notifications-empty svg {
  margin: 0 auto 20px;
  color: #6b6b6b;
  color: var(--admin-text-muted);
  opacity: 0.5;
}

.admin-notifications-empty h3 {
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  color: var(--admin-text);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.admin-notifications-empty p {
  font-size: 14px;
  font-weight: 500;
  color: #a0a0a0;
  color: var(--admin-text-secondary);
  letter-spacing: 0.3px;
}

/* ========================================
   ERROR SECTION
   ======================================== */

.error-section {
  background: linear-gradient(135deg, #5f0000, transparent);
  background: linear-gradient(135deg, var(--admin-red-dark), transparent);
  border: 1px solid rgba(139, 0, 0, 0.3);
  border: 1px solid var(--admin-border-light);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
}

.error-section svg {
  margin: 0 auto 20px;
  color: #b71c1c;
  color: var(--admin-error);
}

.error-section h2 {
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #b71c1c;
  color: var(--admin-error);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.error-section p {
  font-size: 14px;
  font-weight: 500;
  color: #a0a0a0;
  color: var(--admin-text-secondary);
  margin-bottom: 8px;
}

.error-message {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #6b6b6b;
  color: var(--admin-text-muted);
  background: #0d0d0d;
  background: var(--admin-black-lighter);
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  border: 1px solid rgba(139, 0, 0, 0.2);
  border: 1px solid var(--admin-border);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .admin-sidebar {
    display: none;
  }

  .admin-menu-button-mobile {
    display: flex;
  }

  .admin-sidebar-toggle {
    display: none;
  }

  .admin-content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .admin-navbar {
    padding: 12px 16px;
  }

  .admin-navbar-content {
    gap: 10px;
  }

  .admin-logo-text {
    display: none;
  }

  .admin-user-details {
    display: none;
  }

  .admin-user-info {
    padding: 8px;
  }

  .admin-content {
    padding: 24px;
  }

  .admin-notification-dropdown-content {
    width: calc(100vw - 40px);
    right: 0;
  }

  .admin-notification-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-notification-actions {
    width: 100%;
  }

  .admin-btn-primary,
  .admin-btn-secondary {
    flex: 1 1;
  }
}

@media (max-width: 480px) {
  .admin-navbar {
    padding: 10px 14px;
  }

  .admin-content {
    padding: 20px;
  }

  .admin-notifications-header {
    padding: 20px;
  }

  .admin-notification-card {
    padding: 20px;
  }

  .admin-notification-details {
    grid-template-columns: 1fr;
  }
}

/* ✅ CLIENTESGESTION.CSS - ARCHIVO COMPLETO */

/* ============================================
   HEREDA VARIABLES DE ADMINPANEL
   ============================================ */

/* 
   NOTA: Este CSS usa las variables definidas en AdminPanel.css
   Las variables --admin-* se convierten automáticamente según el tema
   NO definir nuevas variables aquí, usar las del AdminPanel
*/

.clientes-gestion-remasterizado {
  /* Usa las variables del AdminPanel para consistencia de tema */
  --clientes-primary: var(--admin-accent);
  --clientes-secondary: #764ba2;
  --clientes-success: var(--admin-success);
  --clientes-warning: var(--admin-warning);
  --clientes-danger: var(--admin-danger);
  --clientes-info: var(--admin-info);
  
  /* Backgrounds heredados */
  --clientes-bg-main: var(--admin-bg-primary);
  --clientes-bg-white: var(--admin-bg-secondary);
  --clientes-bg-gradient: linear-gradient(135deg, var(--admin-accent) 0%, #764ba2 100%);
  
  /* Textos heredados */
  --clientes-text-primary: var(--admin-text-primary);
  --clientes-text-secondary: var(--admin-text-secondary);
  --clientes-text-muted: #adb5bd;
  --clientes-text-white: var(--admin-text-light);
  
  /* Bordes y sombras heredados */
  --clientes-border: var(--admin-border);
  --clientes-border-light: var(--admin-bg-primary);
  --clientes-shadow: var(--admin-shadow);
  --clientes-shadow-lg: rgba(0, 0, 0, 0.15);
  
  /* Transiciones heredadas */
  --clientes-transition: var(--admin-transition);
  --clientes-transition-fast: var(--admin-transition-fast);
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */

.clientes-gestion-remasterizado {
  padding: 25px;
  background: var(--clientes-bg-main);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  position: relative;
}

/* ============================================
   SISTEMA DE NOTIFICACIONES PROPIAS
   ============================================ */

.notifications-container {
  position: fixed;
  top: 80px;
  right: 25px;
  z-index: 10000;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.notification {
  background: var(--clientes-bg-white);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 30px var(--clientes-shadow-lg);
  border-left: 5px solid;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
             fadeOut 0.4s ease-in 2.6s;
  animation-fill-mode: both;
  pointer-events: auto;
  transform: translateX(0);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.notification-success {
  border-left-color: var(--clientes-success);
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, var(--clientes-bg-white) 50%);
}

.notification-error {
  border-left-color: var(--clientes-danger);
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, var(--clientes-bg-white) 50%);
}

.notification-warning {
  border-left-color: var(--clientes-warning);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, var(--clientes-bg-white) 50%);
}

.notification-info {
  border-left-color: var(--clientes-info);
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, var(--clientes-bg-white) 50%);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1;
}

.notification-icon {
  font-size: 18px;
  font-weight: bold;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.notification-message {
  color: var(--clientes-text-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.notification-close {
  background: rgba(108, 117, 125, 0.1);
  border: none;
  color: var(--clientes-text-secondary);
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 4px 8px;
  margin-left: 12px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--clientes-transition-fast);
}

.notification-close:hover {
  background: rgba(108, 117, 125, 0.2);
  transform: scale(1.1);
}

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

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(120%) scale(0.9);
  }
}

/* ============================================
   HEADER SECTION
   ============================================ */

.header-section {
  background: var(--clientes-bg-gradient);
  color: var(--clientes-text-white);
  padding: 35px 40px;
  border-radius: 16px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"><defs><pattern id=\"grain\" width=\"100\" height=\"100\" patternUnits=\"userSpaceOnUse\"><circle cx=\"25\" cy=\"25\" r=\"1\" fill=\"rgba%28255,255,255,0.05%29\"/><circle cx=\"75\" cy=\"75\" r=\"1\" fill=\"rgba%28255,255,255,0.05%29\"/></pattern></defs><rect width=\"100\" height=\"100\" fill=\"url%28%23grain%29\"/></svg>");
  opacity: 0.3;
}

.title-section {
  position: relative;
  z-index: 1;
}

.title-section h1 {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

.title-section p {
  margin: 0;
  font-size: 16px;
  opacity: 0.95;
  font-weight: 400;
}

.stats-quick {
  display: flex;
  gap: 25px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 20px 25px;
  border-radius: 12px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--clientes-transition);
}

.stat-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.stat-item.warning {
  background: rgba(255, 193, 7, 0.25);
  border-color: rgba(255, 193, 7, 0.3);
}

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 12px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ============================================
   FORMULARIO DE NUEVA ASIGNACIÓN
   ============================================ */

.nueva-asignacion-section {
  background: var(--clientes-bg-white);
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px var(--clientes-shadow);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.nueva-asignacion-section h2 {
  margin: 0 0 25px 0;
  color: var(--clientes-text-primary);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.asignacion-form-horizontal {
  display: grid;
  grid-template-columns: 2fr 2.5fr 2fr 1.2fr;
  grid-gap: 25px;
  gap: 25px;
  align-items: end;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--clientes-text-primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.correo-input,
.cliente-input,
.plataforma-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--clientes-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--clientes-transition);
  background: var(--clientes-bg-white);
  color: var(--clientes-text-primary);
}

.correo-input:focus,
.cliente-input:focus,
.plataforma-input:focus {
  outline: none;
  border-color: var(--clientes-primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
  transform: translateY(-1px);
}

.correo-input {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.btn-crear-asignacion {
  background: var(--clientes-bg-gradient);
  color: var(--clientes-text-white);
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--clientes-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-crear-asignacion:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-crear-asignacion:active:not(:disabled) {
  transform: translateY(0);
}

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

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ============================================
   SISTEMA DE SUGERENCIAS
   ============================================ */

.input-with-suggestions {
  position: relative;
}

.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--clientes-bg-white);
  border: 1px solid var(--clientes-border);
  border-radius: 12px;
  box-shadow: 0 8px 30px var(--clientes-shadow-lg);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 4px;
  animation: fadeInDown 0.2s ease-out;
}

.suggestion-item {
  padding: 15px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--clientes-border-light);
  transition: var(--clientes-transition-fast);
  position: relative;
}

.suggestion-item:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  transform: translateX(3px);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.suggestion-name {
  font-weight: 600;
  color: var(--clientes-text-primary);
  font-size: 14px;
}

.suggestion-id {
  font-size: 11px;
  color: var(--clientes-text-muted);
  background: var(--clientes-light);
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestion-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--clientes-text-secondary);
}

.suggestion-email,
.suggestion-phone {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.plataforma-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
}

.plataforma-icon {
  font-size: 20px;
}

.plataforma-name {
  font-weight: 600;
  color: var(--clientes-text-primary);
  font-size: 14px;
}

.selected-cliente,
.selected-plataforma {
  margin-top: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
  color: #155724;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   CONTROLES DE CORREOS ASIGNADOS
   ============================================ */

.controles-correos-section {
  background: var(--clientes-bg-white);
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px var(--clientes-shadow);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.controles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.controles-header h2 {
  margin: 0;
  color: var(--clientes-text-primary);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-toggle-correos {
  background: var(--clientes-bg-gradient);
  color: var(--clientes-text-white);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--clientes-transition);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.btn-toggle-correos:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-toggle-correos:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  flex: 1 1;
  padding: 14px 50px 14px 20px;
  border: 2px solid var(--clientes-border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--clientes-transition);
  background: var(--clientes-bg-white);
  color: var(--clientes-text-primary);
}

.search-input:focus {
  outline: none;
  border-color: var(--clientes-primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.search-icon {
  position: absolute;
  right: 40px;
  font-size: 18px;
  color: var(--clientes-text-secondary);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 12px;
  background: rgba(108, 117, 125, 0.1);
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--clientes-text-secondary);
  padding: 4px 8px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--clientes-transition-fast);
}

.search-clear:hover {
  background: rgba(220, 53, 69, 0.1);
  color: var(--clientes-danger);
  transform: scale(1.1);
}

/* ============================================
   TABLA DE ASIGNACIONES
   ============================================ */

.asignaciones-table-container {
  margin-top: 25px;
  background: var(--clientes-bg-white);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--clientes-shadow);
  overflow: hidden;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 650px;
}

.asignaciones-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--clientes-bg-white);
}

/* ENCABEZADOS DE TABLA */
.asignaciones-table thead {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
}

.asignaciones-table th {
  padding: 18px 24px;
  text-align: left;
  font-weight: 700;
  color: var(--clientes-text-primary);
  border-bottom: 2px solid var(--clientes-border);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.th-correo { width: 32%; }
.th-cliente { width: 28%; }
.th-plataforma { width: 20%; }
.th-fecha { width: 12%; }
.th-acciones { width: 8%; text-align: center; }

/* FILAS DE TABLA */
.asignaciones-table tbody tr {
  border-bottom: 1px solid var(--clientes-border-light);
  transition: var(--clientes-transition);
  background: var(--clientes-bg-white);
}

.asignaciones-table tbody tr:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
  transform: scale(1.002);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.asignaciones-table tbody tr:nth-child(even) {
  background: rgba(248, 249, 250, 0.5);
}

.asignaciones-table tbody tr:nth-child(even):hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

/* FILAS ESPECIALES */
.row-huerfana {
  background: linear-gradient(135deg, #fff3cd 0%, #fef7e0 100%) !important;
  color: #856404;
  border-left: 4px solid var(--clientes-warning);
}

.row-huerfana:hover {
  background: linear-gradient(135deg, #ffeeba 0%, #fff3cd 100%) !important;
  transform: scale(1.005);
}

.row-inactivo {
  opacity: 0.7;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%) !important;
  border-left: 4px solid var(--clientes-danger);
}

/* CELDAS DE TABLA */
.asignaciones-table td {
  padding: 18px 24px;
  vertical-align: middle;
  border-bottom: 1px solid var(--clientes-border-light);
}

/* CELDA DE CORREO */
.correo-cell {
  display: flex;
  align-items: center;
  gap: 15px;
}

.correo-text {
  flex: 1 1;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  color: var(--clientes-text-primary);
  word-break: break-all;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid var(--clientes-border);
}

.btn-copy-table {
  background: linear-gradient(135deg, var(--clientes-info) 0%, #138496 100%);
  color: var(--clientes-text-white);
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: var(--clientes-transition);
  box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-copy-table:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
}

.btn-copy-table:active {
  transform: translateY(0);
}

.edit-correo-input-table {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--clientes-primary);
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: var(--clientes-bg-white);
  color: var(--clientes-text-primary);
  font-weight: 500;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.edit-correo-input-table:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

/* CELDA DE CLIENTE */
.cliente-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
}

.cliente-nombre {
  font-weight: 700;
  color: var(--clientes-text-primary);
  font-size: 15px;
  line-height: 1.3;
}

.cliente-email {
  font-size: 12px;
  color: var(--clientes-text-secondary);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid var(--clientes-border);
}

.cliente-id {
  font-size: 11px;
  color: var(--clientes-text-muted);
  font-weight: 700;
  background: linear-gradient(135deg, var(--clientes-primary) 0%, var(--clientes-secondary) 100%);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  width: -webkit-fit-content;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

/* CELDA DE PLATAFORMA */
.plataforma-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 140px;
}

.plataforma-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.plataforma-nombre {
  font-weight: 700;
  color: var(--clientes-text-primary);
  font-size: 14px;
}

/* CELDA DE FECHA */
.fecha-cell {
  font-size: 12px;
  color: var(--clientes-text-secondary);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 6px 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--clientes-border);
  min-width: 80px;
}

/* CELDA DE ACCIONES */
.acciones-cell {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.btn-table-edit,
.btn-table-delete,
.btn-table-save,
.btn-table-cancel {
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  transition: var(--clientes-transition);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
}

.btn-table-edit {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.btn-table-edit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-table-delete {
  background: linear-gradient(135deg, var(--clientes-danger) 0%, #c82333 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-table-delete:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-table-save {
  background: linear-gradient(135deg, var(--clientes-success) 0%, #1e7e34 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.btn-table-save:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-table-cancel {
  background: linear-gradient(135deg, var(--clientes-warning) 0%, #e0a800 100%);
  color: #212529;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.btn-table-cancel:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-table-edit:disabled,
.btn-table-delete:disabled,
.btn-table-save:disabled,
.btn-table-cancel:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ============================================
   MENSAJES DE ESTADO
   ============================================ */

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 30px;
  background: var(--clientes-bg-white);
  border-radius: 16px;
  margin: 20px 0;
}

.loading-container .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--clientes-border);
  border-top: 4px solid var(--clientes-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.loading-container span {
  color: var(--clientes-text-secondary);
  font-size: 16px;
  font-weight: 500;
}

.no-correos-message,
.no-resultados-message {
  background: var(--clientes-bg-white);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--clientes-shadow);
  margin: 25px 0;
  border: 2px dashed var(--clientes-border);
}

.no-correos-content,
.no-resultados-content {
  padding: 60px 40px;
  text-align: center;
}

.no-correos-icon,
.no-resultados-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.3;
  display: block;
}

.no-correos-content h3,
.no-resultados-content h3 {
  margin: 0 0 15px 0;
  font-size: 24px;
  color: var(--clientes-text-primary);
  font-weight: 700;
}

.no-correos-content p,
.no-resultados-content p {
  margin: 0 0 20px 0;
  color: var(--clientes-text-secondary);
  font-size: 16px;
  line-height: 1.5;
}

.clear-search-btn {
  background: var(--clientes-bg-gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--clientes-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.clear-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ============================================
   FOOTER CON ACCIONES
   ============================================ */

.footer-actions {
  background: var(--clientes-bg-white);
  padding: 25px 30px;
  border-radius: 16px;
  margin-top: 30px;
  box-shadow: 0 4px 20px var(--clientes-shadow);
  border: 1px solid rgba(102, 126, 234, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.btn-refresh {
  background: linear-gradient(135deg, var(--clientes-text-secondary) 0%, #495057 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--clientes-transition);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(108, 117, 125, 0.2);
}

.btn-refresh:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-refresh:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-refresh .spinning {
  animation: spin 1s linear infinite;
}

.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.footer-info,
.footer-search-info,
.footer-warning {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-info {
  background: rgba(23, 162, 184, 0.1);
  color: var(--clientes-info);
  border: 1px solid rgba(23, 162, 184, 0.2);
}

.footer-search-info {
  background: rgba(102, 126, 234, 0.1);
  color: var(--clientes-primary);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.footer-warning {
  background: rgba(255, 193, 7, 0.1);
  color: #856404;
  border: 1px solid rgba(255, 193, 7, 0.2);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 1024px) {
  .clientes-gestion-remasterizado {
    padding: 20px;
  }
  
  .header-section {
    padding: 25px 30px;
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .stats-quick {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .asignacion-form-horizontal {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .form-field.action-field {
    grid-column: 1 / -1;
  }
  
  .asignaciones-table th,
  .asignaciones-table td {
    padding: 12px 16px;
  }
  
  .notifications-container {
    right: 15px;
    max-width: 350px;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .clientes-gestion-remasterizado {
    padding: 15px;
  }
  
  .header-section {
    padding: 20px;
  }
  
  .title-section h1 {
    font-size: 24px;
  }
  
  .stats-quick {
    gap: 15px;
  }
  
  .stat-item {
    padding: 15px 20px;
    min-width: 80px;
  }
  
  .stat-number {
    font-size: 24px;
  }
  
  .nueva-asignacion-section,
  .controles-correos-section {
    padding: 20px;
  }
  
  .asignacion-form-horizontal {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .asignaciones-table {
    font-size: 12px;
  }
  
  .asignaciones-table th,
  .asignaciones-table td {
    padding: 10px 12px;
  }
  
  .correo-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .correo-text {
    font-size: 11px;
    padding: 6px 8px;
  }
  
  .cliente-cell {
    gap: 4px;
    min-width: auto;
  }
  
  .cliente-nombre {
    font-size: 13px;
  }
  
  .cliente-email {
    font-size: 11px;
  }
  
  .plataforma-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: auto;
  }
  
  .plataforma-icon {
    font-size: 18px;
  }
  
  .plataforma-nombre {
    font-size: 12px;
  }
  
  .fecha-cell {
    font-size: 10px;
    padding: 4px 8px;
    min-width: auto;
  }
  
  .acciones-cell {
    flex-direction: column;
    gap: 4px;
  }
  
  .btn-table-edit,
  .btn-table-delete,
  .btn-table-save,
  .btn-table-cancel {
    padding: 8px 10px;
    font-size: 14px;
    min-width: 36px;
    height: 36px;
  }
  
  .footer-actions {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-stats {
    justify-content: center;
  }
  
  .notifications-container {
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .notification {
    padding: 12px 16px;
  }
  
  .notification-message {
    font-size: 13px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .clientes-gestion-remasterizado {
    padding: 10px;
  }
  
  .header-section {
    padding: 15px;
  }
  
  .title-section h1 {
    font-size: 20px;
  }
  
  .title-section p {
    font-size: 14px;
  }
  
  .stats-quick {
    gap: 10px;
  }
  
  .stat-item {
    padding: 12px 15px;
    min-width: 70px;
  }
  
  .stat-number {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  .nueva-asignacion-section,
  .controles-correos-section {
    padding: 15px;
  }
  
  .nueva-asignacion-section h2,
  .controles-header h2 {
    font-size: 18px;
  }
  
  .table-wrapper {
    max-height: 400px;
  }
  
  .no-correos-content,
  .no-resultados-content {
    padding: 40px 20px;
  }
  
  .no-correos-icon,
  .no-resultados-icon {
    font-size: 48px;
  }
  
  .no-correos-content h3,
  .no-resultados-content h3 {
    font-size: 20px;
  }
  
  .no-correos-content p,
  .no-resultados-content p {
    font-size: 14px;
  }
}

/* ============================================
   UTILIDADES Y HELPERS
   ============================================ */

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

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

/* Efectos de hover mejorados */
.hover-lift {
  transition: var(--clientes-transition);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--clientes-shadow-lg);
}

/* Estados de carga */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
  :root {
    --clientes-border: #000000;
    --clientes-text-secondary: #000000;
    --clientes-shadow: rgba(0, 0, 0, 0.5);
  }
}

/* Reducir movimiento para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ✅ EDITOR.CSS - ESTILOS PARA EDITOR DE USUARIOS */

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */

.editor-usuarios-panel {
  background: var(--admin-bg-secondary);
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--admin-shadow);
  overflow: hidden;
  min-height: 600px;
}

/* ============================================
   SISTEMA DE NOTIFICACIONES
   ============================================ */

.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
}

.notification {
  background: var(--admin-bg-secondary);
  border-radius: 8px;
  box-shadow: 0 4px 20px var(--admin-shadow);
  padding: 12px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideInRight 0.3s ease-out;
}

.notification-success {
  border-left: 4px solid var(--admin-success);
}

.notification-error {
  border-left: 4px solid var(--admin-danger);
}

.notification-warning {
  border-left: 4px solid var(--admin-warning);
}

.notification-info {
  border-left: 4px solid var(--admin-info);
}

.notification-message {
  color: var(--admin-text-primary);
  font-size: 14px;
  font-weight: 500;
}

.notification button {
  background: none;
  border: none;
  color: var(--admin-text-secondary);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  margin-left: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--admin-transition-fast);
}

.notification button:hover {
  background: rgba(0, 0, 0, 0.1);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   HEADER DEL EDITOR
   ============================================ */

.editor-header {
  padding: 25px 30px;
  background: linear-gradient(135deg, var(--admin-accent) 0%, #764ba2 100%);
  color: white;
}

.editor-header h1 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.editor-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 16px;
}

/* ============================================
   SECCIÓN DE BÚSQUEDA
   ============================================ */

.editor-search-section {
  padding: 30px;
  border-bottom: 1px solid var(--admin-border);
}

.search-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1 1;
  padding: 15px 20px;
  border: 2px solid var(--admin-border);
  border-radius: 10px;
  font-size: 16px;
  background: var(--admin-bg-primary);
  color: var(--admin-text-primary);
  transition: var(--admin-transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-results-count {
  color: var(--admin-text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.search-actions button {
  background: var(--admin-danger);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--admin-transition-fast);
}

.search-actions button:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* ============================================
   LISTA DE RESULTADOS DE BÚSQUEDA
   ============================================ */

.users-results-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: var(--admin-bg-primary);
}

.no-results {
  padding: 40px 20px;
  text-align: center;
  color: var(--admin-text-secondary);
}

.no-results p {
  margin: 0;
  font-size: 16px;
}

.user-result-item {
  padding: 15px 20px;
  border-bottom: 1px solid var(--admin-border);
  cursor: pointer;
  transition: var(--admin-transition-fast);
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-result-item:hover {
  background: var(--admin-bg-secondary);
  transform: translateX(5px);
}

.user-result-item:last-child {
  border-bottom: none;
}

.user-banned {
  background: rgba(220, 53, 69, 0.05);
  border-left: 4px solid var(--admin-danger);
}

.user-result-avatar {
  width: 50px;
  height: 50px;
  background: var(--admin-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.user-banned .user-result-avatar {
  background: var(--admin-danger);
}

.user-result-info {
  flex: 1 1;
}

.user-result-name {
  font-weight: 600;
  color: var(--admin-text-primary);
  font-size: 16px;
  margin-bottom: 5px;
}

.user-result-details {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.user-result-details span {
  font-size: 12px;
  color: var(--admin-text-secondary);
  background: var(--admin-bg-secondary);
  padding: 2px 8px;
  border-radius: 12px;
}

.user-result-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-cliente {
  background: var(--admin-success);
  color: white;
}

.status-admin {
  background: var(--admin-accent);
  color: white;
}

.status-baneado {
  background: var(--admin-danger);
  color: white;
}

.banned-icon {
  font-size: 20px;
}

/* ============================================
   SECCIÓN DE EDICIÓN DE USUARIO
   ============================================ */

.editor-user-section {
  padding: 30px;
}

.editor-user-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--admin-bg-primary);
  border-radius: 12px;
  border: 1px solid var(--admin-border);
}

.user-header-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.user-avatar-large {
  width: 80px;
  height: 80px;
  background: var(--admin-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.user-header-details h2 {
  margin: 0 0 8px 0;
  color: var(--admin-text-primary);
  font-size: 24px;
  font-weight: 700;
}

.user-header-details p {
  margin: 0 0 12px 0;
  color: var(--admin-text-secondary);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  background: var(--admin-bg-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

.user-header-status {
  display: flex;
  gap: 10px;
  align-items: center;
}

.activity-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.activity-badge.active {
  background: var(--admin-success);
  color: white;
}

.activity-badge.inactive {
  background: var(--admin-danger);
  color: white;
}

.user-header-actions {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.btn-ban,
.btn-unban,
.btn-close {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-ban {
  background: var(--admin-danger);
  color: white;
}

.btn-ban:hover:not(:disabled) {
  background: #c82333;
  transform: translateY(-1px);
}

.btn-unban {
  background: var(--admin-success);
  color: white;
}

.btn-unban:hover:not(:disabled) {
  background: #218838;
  transform: translateY(-1px);
}

.btn-close {
  background: var(--admin-text-secondary);
  color: white;
}

.btn-close:hover {
  background: #495057;
  transform: translateY(-1px);
}

.btn-ban:disabled,
.btn-unban:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   FORMULARIO DE DATOS BÁSICOS
   ============================================ */

.editor-basic-data {
  background: var(--admin-bg-secondary);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid var(--admin-border);
}

.editor-basic-data h3 {
  margin: 0 0 20px 0;
  color: var(--admin-text-primary);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--admin-text-primary);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--admin-bg-primary);
  color: var(--admin-text-primary);
  transition: var(--admin-transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-save-changes {
  background: var(--admin-accent);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-width: 300px;
}

.btn-save-changes:hover:not(:disabled) {
  background: #5a6fd8;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-save-changes:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   GESTIÓN DE PLATAFORMAS Y CORREOS
   ============================================ */

.editor-platforms-section {
  background: var(--admin-bg-secondary);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--admin-border);
}

.editor-platforms-section h3 {
  margin: 0 0 25px 0;
  color: var(--admin-text-primary);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-editor {
  background: var(--admin-bg-primary);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--admin-border);
  transition: var(--admin-transition-fast);
}

.platform-editor:hover {
  box-shadow: 0 2px 10px var(--admin-shadow);
}

.platform-header {
  margin-bottom: 15px;
}

.platform-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-icon {
  font-size: 24px;
}

.platform-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--admin-text-primary);
}

.platform-count {
  background: var(--admin-accent);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.platform-emails-list {
  margin-bottom: 20px;
  max-height: 200px;
  overflow-y: auto;
  background: var(--admin-bg-secondary);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid var(--admin-border);
}

.email-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--admin-bg-primary);
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid var(--admin-border);
  transition: var(--admin-transition-fast);
}

.email-item:hover {
  background: var(--admin-bg-secondary);
  transform: translateX(3px);
}

.email-item:last-child {
  margin-bottom: 0;
}

.email-text {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  color: var(--admin-text-primary);
  flex: 1 1;
}

.btn-delete-email {
  background: var(--admin-danger);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--admin-transition-fast);
  opacity: 0.7;
}

.btn-delete-email:hover:not(:disabled) {
  opacity: 1;
  transform: scale(1.05);
}

.btn-delete-email:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.platform-add-emails {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-add-emails textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--admin-bg-secondary);
  color: var(--admin-text-primary);
  resize: vertical;
  min-height: 80px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  transition: var(--admin-transition-fast);
}

.platform-add-emails textarea:focus {
  outline: none;
  border-color: var(--admin-accent);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-add-emails {
  background: var(--admin-success);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  align-self: flex-start;
}

.btn-add-emails:hover:not(:disabled) {
  background: #218838;
  transform: translateY(-1px);
}

.btn-add-emails:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   MODAL PERSONALIZADO
   ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background: var(--admin-bg-secondary);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  animation: slideInScale 0.3s ease-out;
}

.modal-header {
  padding: 20px 25px;
  background: linear-gradient(135deg, var(--admin-accent) 0%, #764ba2 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--admin-transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 25px;
}

.modal-body p {
  margin: 0;
  color: var(--admin-text-primary);
  font-size: 16px;
  line-height: 1.5;
}

.modal-footer {
  padding: 20px 25px;
  background: var(--admin-bg-primary);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--admin-border);
}

.btn-modal-cancel,
.btn-modal-confirm {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition-fast);
}

.btn-modal-cancel {
  background: var(--admin-bg-secondary);
  color: var(--admin-text-secondary);
  border: 1px solid var(--admin-border);
}

.btn-modal-cancel:hover {
  background: var(--admin-text-secondary);
  color: white;
}

.btn-modal-confirm {
  background: var(--admin-danger);
  color: white;
}

.btn-modal-confirm:hover {
  background: #c82333;
  transform: translateY(-1px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================
   CHECKBOXES PERSONALIZADOS
   ============================================ */

.checkbox-container {
  display: block;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 14px;
  -webkit-user-select: none;
          user-select: none;
  color: var(--admin-text-primary);
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: var(--admin-bg-primary);
  border: 2px solid var(--admin-border);
  border-radius: 4px;
  transition: var(--admin-transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--admin-accent);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--admin-accent);
  border-color: var(--admin-accent);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 5px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ============================================
   ACCIONES EN LOTE
   ============================================ */

.batch-actions {
  background: linear-gradient(135deg, var(--admin-accent) 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideInDown 0.3s ease-out;
}

.batch-info {
  font-weight: 600;
  font-size: 14px;
}

.batch-buttons {
  display: flex;
  gap: 12px;
}

.btn-batch-ban,
.btn-batch-unban {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition-fast);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-batch-ban:hover:not(:disabled) {
  background: var(--admin-danger);
  border-color: var(--admin-danger);
  transform: translateY(-1px);
}

.btn-batch-unban:hover:not(:disabled) {
  background: var(--admin-success);
  border-color: var(--admin-success);
  transform: translateY(-1px);
}

.btn-batch-ban:disabled,
.btn-batch-unban:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

/* ============================================
   LISTA DE RESULTADOS MEJORADA
   ============================================ */

.results-header {
  padding: 15px 20px;
  background: var(--admin-bg-secondary);
  border-bottom: 1px solid var(--admin-border);
  font-weight: 600;
}

.user-result-content {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1 1;
  cursor: pointer;
}

.user-result-item {
  padding: 15px 20px;
  border-bottom: 1px solid var(--admin-border);
  transition: var(--admin-transition-fast);
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-result-item:hover {
  background: var(--admin-bg-secondary);
}

/* ============================================
   ESTADÍSTICAS DEL USUARIO
   ============================================ */

.user-stats {
  display: flex;
  gap: 15px;
  margin-top: 8px;
}

.stat-item {
  background: var(--admin-bg-primary);
  color: var(--admin-text-primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--admin-border);
}

/* ============================================
   TABLA DE CORREOS INLINE
   ============================================ */

.editor-emails-table-section {
  background: var(--admin-bg-secondary);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--admin-border);
}

.emails-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.emails-table-header h3 {
  margin: 0;
  color: var(--admin-text-primary);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.emails-batch-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideInRight 0.3s ease-out;
}

.emails-batch-actions .batch-info {
  background: var(--admin-accent);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.btn-delete-selected {
  background: var(--admin-danger);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition-fast);
}

.btn-delete-selected:hover:not(:disabled) {
  background: #c82333;
  transform: translateY(-1px);
}

.btn-delete-selected:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.emails-table-container {
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--admin-bg-primary);
}

.emails-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.emails-table thead {
  background: var(--admin-bg-secondary);
}

.emails-table th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--admin-text-primary);
  border-bottom: 2px solid var(--admin-border);
}

.th-checkbox {
  width: 50px;
  text-align: center;
}

.th-correo {
  width: 35%;
}

.th-plataforma {
  width: 25%;
}

.th-fecha {
  width: 20%;
}

.th-acciones {
  width: 20%;
  text-align: center;
}

.emails-table tbody tr {
  transition: var(--admin-transition-fast);
}

.emails-table tbody tr:hover {
  background: var(--admin-bg-secondary);
}

.emails-table td {
  padding: 12px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

.td-checkbox {
  text-align: center;
}

.email-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.email-text {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  color: var(--admin-text-primary);
  background: var(--admin-bg-secondary);
  padding: 4px 8px;
  border-radius: 4px;
  flex: 1 1;
}

.edit-email-input {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid var(--admin-accent);
  border-radius: 6px;
  font-size: 13px;
  background: var(--admin-bg-secondary);
  color: var(--admin-text-primary);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  transition: var(--admin-transition-fast);
}

.edit-email-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.plataforma-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plataforma-icon {
  font-size: 18px;
}

.plataforma-nombre {
  font-weight: 500;
  color: var(--admin-text-primary);
}

.fecha-cell {
  color: var(--admin-text-secondary);
  font-size: 13px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.acciones-cell {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.btn-table-save,
.btn-table-cancel,
.btn-table-edit,
.btn-table-delete {
  background: none;
  border: none;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--admin-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-table-save {
  background: var(--admin-success);
  color: white;
}

.btn-table-save:hover:not(:disabled) {
  background: #218838;
  transform: scale(1.1);
}

.btn-table-cancel {
  background: var(--admin-text-secondary);
  color: white;
}

.btn-table-cancel:hover {
  background: #495057;
  transform: scale(1.1);
}

.btn-table-edit {
  background: var(--admin-accent);
  color: white;
}

.btn-table-edit:hover:not(:disabled) {
  background: #5a6fd8;
  transform: scale(1.1);
}

.btn-table-delete {
  background: var(--admin-danger);
  color: white;
}

.btn-table-delete:hover:not(:disabled) {
  background: #c82333;
  transform: scale(1.1);
}

.btn-table-save:disabled,
.btn-table-edit:disabled,
.btn-table-delete:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.no-emails-message {
  padding: 40px 20px;
  text-align: center;
  background: var(--admin-bg-primary);
  border-radius: 10px;
  border: 1px solid var(--admin-border);
}

.no-emails-content {
  max-width: 300px;
  margin: 0 auto;
}

.no-emails-icon {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
  opacity: 0.6;
}

.no-emails-content h3 {
  margin: 0 0 8px 0;
  color: var(--admin-text-primary);
  font-size: 18px;
  font-weight: 600;
}

.no-emails-content p {
  margin: 0;
  color: var(--admin-text-secondary);
  font-size: 14px;
}

/* ============================================
   ESTADO VACÍO
   ============================================ */

.editor-empty-state {
  padding: 60px 30px;
  text-align: center;
}

.empty-state-content {
  max-width: 500px;
  margin: 0 auto;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
  display: block;
}

.empty-state-content h3 {
  margin: 0 0 12px 0;
  color: var(--admin-text-primary);
  font-size: 24px;
  font-weight: 600;
}

.empty-state-content > p {
  margin: 0 0 25px 0;
  color: var(--admin-text-secondary);
  font-size: 16px;
}

.empty-state-tips {
  background: var(--admin-bg-primary);
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  border: 1px solid var(--admin-border);
}

.empty-state-tips p {
  margin: 0 0 12px 0;
  color: var(--admin-text-primary);
  font-weight: 600;
}

.empty-state-tips ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.empty-state-tips li {
  color: var(--admin-text-secondary);
  font-size: 14px;
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}

.empty-state-tips li:last-child {
  margin-bottom: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .user-header-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .editor-user-header {
    flex-direction: column;
    gap: 20px;
  }
  
  .user-header-actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .editor-search-section,
  .editor-user-section {
    padding: 20px;
  }
  
  .editor-header {
    padding: 20px;
  }
  
  .editor-header h1 {
    font-size: 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .search-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-actions {
    justify-content: space-between;
  }
  
  .user-result-details {
    flex-direction: column;
    gap: 5px;
  }
  
  .user-header-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .notifications-container {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .editor-header {
    padding: 15px 20px;
  }
  
  .editor-search-section,
  .editor-user-section {
    padding: 15px;
  }
  
  .editor-basic-data,
  .editor-platforms-section {
    padding: 20px;
  }
  
  .user-result-item {
    padding: 12px 15px;
  }
  
  .platform-editor {
    padding: 15px;
  }
  
  .empty-state-icon {
    font-size: 48px;
  }
  
  .empty-state-content h3 {
    font-size: 20px;
  }
}
/* ========================================
   ROLES - GESTIÓN OPTIMIZADA
   ======================================== */

.roles-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 0 4px;
}

/* ========================================
   HEADER LIMPIO
   ======================================== */

.roles-header {
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-black-card));
  border: 1px solid var(--admin-border-light);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 0 30px var(--admin-glow-red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.roles-header-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1;
}

.roles-header-content svg {
  color: var(--admin-gold);
  filter: drop-shadow(0 0 10px var(--admin-glow-gold));
  flex-shrink: 0;
}

.roles-header h1 {
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 900;
  color: var(--admin-text);
  margin: 0 0 4px 0;
  letter-spacing: 0.5px;
  text-shadow: 0 0 20px var(--admin-glow-red);
}

.roles-header p {
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text-secondary);
  margin: 0;
  letter-spacing: 0.3px;
}

.roles-header-actions {
  display: flex;
  gap: 10px;
}

.roles-btn-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--admin-border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--admin-text);
  position: relative;
}

.roles-btn-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--admin-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--admin-glow-red);
}

.roles-badge-notif {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--admin-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--admin-red);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* ========================================
   ESTADÍSTICAS COMPACTAS
   ======================================== */

.roles-stats-compactas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.roles-stat-item {
  background: var(--admin-black-card);
  border: 1px solid var(--admin-border-light);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1;
  min-width: 150px;
  transition: all 0.3s ease;
}

.roles-stat-item:hover {
  border-color: var(--admin-border);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.roles-stat-item svg {
  color: var(--admin-text-secondary);
  flex-shrink: 0;
}

.roles-stat-item span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--admin-text);
  letter-spacing: 0.3px;
}

/* ========================================
   BUSCADOR SIMPLE
   ======================================== */

.roles-search-box-simple {
  background: var(--admin-black-card);
  border: 1px solid var(--admin-border-light);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.roles-search-box-simple:focus-within {
  border-color: var(--admin-red);
  box-shadow: 0 0 20px var(--admin-glow-red);
}

.roles-search-box-simple svg {
  color: var(--admin-text-secondary);
  flex-shrink: 0;
}

.roles-search-box-simple input {
  background: transparent;
  border: none;
  color: var(--admin-text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  flex: 1 1;
  outline: none;
  letter-spacing: 0.3px;
}

.roles-search-box-simple input::placeholder {
  color: var(--admin-text-secondary);
  opacity: 0.6;
}

.roles-btn-clear {
  background: transparent;
  border: none;
  color: var(--admin-text-secondary);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.roles-btn-clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--admin-red);
}

/* ========================================
   SECCIONES POR RANGOS
   ======================================== */

.roles-rangos-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roles-rango-seccion {
  background: var(--admin-black-card);
  border: 1px solid var(--admin-border-light);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.roles-rango-seccion:hover {
  border-color: var(--admin-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.roles-rango-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-left: 4px solid;
  transition: all 0.3s ease;
}

.roles-rango-info {
  flex: 1 1;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}

.roles-rango-info h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 800;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.5px;
}

.roles-rango-count {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--admin-text-secondary);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.3px;
}

.roles-rango-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.roles-select-masivo {
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-red));
  border: 1px solid var(--admin-red);
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.roles-select-masivo:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--admin-red), var(--admin-red-light));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.5);
}

.roles-select-masivo:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.roles-btn-toggle {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--admin-border-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--admin-text-secondary);
  transition: all 0.3s ease;
}

.roles-btn-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--admin-text);
  border-color: var(--admin-border);
}

/* ========================================
   LISTA DE CLIENTES (EXPANDIBLE)
   ======================================== */

.roles-rango-clientes {
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--admin-border-light);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 3000px;
  }
}

.roles-cliente-item {
  background: var(--admin-black-card);
  border: 1px solid var(--admin-border-light);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

.roles-cliente-item:hover {
  border-color: var(--admin-border);
  transform: translateX(4px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.roles-cliente-info-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1;
  min-width: 0;
}

.roles-avatar-mini {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  font-family: 'Orbitron', monospace;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.roles-datos-mini {
  flex: 1 1;
  min-width: 0;
}

.roles-nombre-mini {
  font-size: 15px;
  font-weight: 800;
  color: var(--admin-text);
  margin-bottom: 4px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.roles-email-mini {
  font-size: 13px;
  color: var(--admin-text-secondary);
  margin-bottom: 4px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roles-meta-mini {
  font-size: 12px;
  color: var(--admin-text-secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.roles-admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.4);
}

.roles-rol-mini {
  font-weight: 800;
  letter-spacing: 0.3px;
}

.roles-select-mini {
  background: var(--admin-black-card);
  border: 1px solid var(--admin-border-light);
  color: var(--admin-text);
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
  letter-spacing: 0.3px;
}

.roles-select-mini:hover:not(:disabled) {
  border-color: var(--admin-red);
  box-shadow: 0 0 15px var(--admin-glow-red);
}

.roles-select-mini:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   MODALES
   ======================================== */

.roles-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.roles-modal {
  background: var(--admin-black-card);
  border: 1px solid var(--admin-border-light);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

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

.roles-modal-grande {
  max-width: 800px;
}

.roles-modal-header {
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-black-card));
  padding: 24px 28px;
  border-bottom: 1px solid var(--admin-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.roles-modal-header h2 {
  margin: 0;
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  font-weight: 900;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}

.roles-modal-header svg {
  color: var(--admin-gold);
}

.roles-modal-close {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--admin-border-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--admin-text);
  transition: all 0.3s ease;
}

.roles-modal-close:hover {
  background: var(--admin-red);
  border-color: var(--admin-red);
  transform: rotate(90deg);
}

.roles-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1 1;
}

.roles-modal-body::-webkit-scrollbar {
  width: 8px;
}

.roles-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.roles-modal-body::-webkit-scrollbar-thumb {
  background: var(--admin-red);
  border-radius: 4px;
}

/* ========================================
   FILTROS EN MODAL
   ======================================== */

.roles-filter-group {
  margin-bottom: 28px;
}

.roles-filter-group h3 {
  margin: 0 0 14px 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.roles-filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.roles-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--admin-border-light);
  color: var(--admin-text);
  padding: 10px 18px;
  border-radius: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.roles-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.roles-chip.active {
  background: var(--admin-red);
  border-color: var(--admin-red);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.roles-btn-reset-filtros {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--admin-border-light);
  color: var(--admin-text);
  padding: 14px;
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 10px;
}

.roles-btn-reset-filtros:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--admin-border);
}

/* ========================================
   GESTIÓN DE ROLES EN MODAL
   ======================================== */

.roles-grid-modal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 14px;
  gap: 14px;
  margin-bottom: 28px;
}

.roles-card-modal {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--admin-border-light);
  border-radius: 12px;
  padding: 16px;
  border-left: 4px solid;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.roles-card-modal:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.roles-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1;
}

.roles-card-emoji {
  font-size: 28px;
  line-height: 1;
}

.roles-card-header h4 {
  margin: 0 0 4px 0;
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.roles-card-header p {
  margin: 0;
  font-size: 12px;
  color: var(--admin-text-secondary);
  font-weight: 600;
}

.roles-btn-delete {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--admin-border-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--admin-text-secondary);
  transition: all 0.3s ease;
}

.roles-btn-delete:hover:not(:disabled) {
  background: var(--admin-red);
  border-color: var(--admin-red);
  color: white;
  transform: scale(1.1);
}

.roles-btn-delete:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ========================================
   CREAR ROL
   ======================================== */

.roles-crear-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--admin-border-light);
  border-radius: 12px;
  padding: 24px;
}

.roles-crear-section h3 {
  margin: 0 0 20px 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--admin-text);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.roles-form-group {
  margin-bottom: 18px;
}

.roles-form-group label {
  display: block;
  margin-bottom: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--admin-text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.roles-input {
  width: 100%;
  background: var(--admin-black-card);
  border: 1px solid var(--admin-border-light);
  color: var(--admin-text);
  padding: 12px 16px;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.roles-input:focus {
  outline: none;
  border-color: var(--admin-red);
  box-shadow: 0 0 15px var(--admin-glow-red);
}

.roles-color-input {
  display: flex;
  align-items: center;
  gap: 12px;
}

.roles-color-input input[type="color"] {
  width: 60px;
  height: 44px;
  border: 1px solid var(--admin-border-light);
  border-radius: 10px;
  cursor: pointer;
  background: transparent;
}

.roles-color-preview {
  flex: 1 1;
  padding: 12px 16px;
  border-radius: 10px;
  color: white;
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.roles-btn-crear {
  width: 100%;
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-red));
  border: 1px solid var(--admin-red);
  color: white;
  padding: 14px;
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.roles-btn-crear:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--admin-red), var(--admin-red-light));
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(220, 53, 69, 0.5);
}

.roles-btn-crear:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ========================================
   ESTADO VACÍO
   ======================================== */

.roles-empty-state {
  background: var(--admin-black-card);
  border: 1px dashed var(--admin-border-light);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
}

.roles-empty-state svg {
  color: var(--admin-text-secondary);
  opacity: 0.4;
  margin-bottom: 16px;
}

.roles-empty-state h3 {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 800;
  color: var(--admin-text);
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.roles-empty-state p {
  font-size: 14px;
  color: var(--admin-text-secondary);
  margin: 0;
  font-weight: 600;
}

/* ========================================
   LOADING
   ======================================== */

.roles-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 20px;
}

.roles-loading p {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--admin-text-secondary);
  letter-spacing: 0.5px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .roles-header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .roles-header-content {
    flex-direction: column;
  }

  .roles-stats-compactas {
    flex-direction: column;
  }

  .roles-rango-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .roles-rango-actions {
    flex-direction: column;
  }

  .roles-select-masivo {
    width: 100%;
  }

  .roles-cliente-item {
    flex-direction: column;
    align-items: stretch;
  }

  .roles-select-mini {
    width: 100%;
  }

  .roles-modal {
    max-width: 100%;
    max-height: 95vh;
  }

  .roles-grid-modal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .roles-header h1 {
    font-size: 20px;
  }

  .roles-modal-header {
    padding: 18px;
  }

  .roles-modal-body {
    padding: 18px;
  }

  .roles-filter-chips {
    flex-direction: column;
  }

  .roles-chip {
    width: 100%;
    text-align: center;
  }
}


/* ========================================
   SELECT - DROPDOWN OSCURO
   ======================================== */

.roles-select-masivo {
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-red));
  border: 1px solid var(--admin-red);
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.roles-select-masivo:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--admin-red), var(--admin-red-light));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.5);
}

.roles-select-masivo:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ✅ FORZAR FONDO OSCURO EN LAS OPCIONES */
.roles-select-masivo option {
  background: #1a1a1a;
  color: white;
  padding: 10px;
}

.roles-select-mini {
  background: var(--admin-black-card);
  border: 1px solid var(--admin-border-light);
  color: var(--admin-text);
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
  letter-spacing: 0.3px;
}

.roles-select-mini:hover:not(:disabled) {
  border-color: var(--admin-red);
  box-shadow: 0 0 15px var(--admin-glow-red);
}

.roles-select-mini:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ✅ FORZAR FONDO OSCURO EN LAS OPCIONES */
.roles-select-mini option {
  background: #1a1a1a;
  color: white;
  padding: 10px;
}

/* Para todos los selects de roles */
.roles-select {
  background: var(--admin-black-card);
  border: 1px solid var(--admin-border-light);
  color: var(--admin-text);
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.roles-select:hover:not(:disabled) {
  border-color: var(--admin-red);
  box-shadow: 0 0 15px var(--admin-glow-red);
}

/* ✅ FORZAR FONDO OSCURO EN LAS OPCIONES */
.roles-select option {
  background: #1a1a1a;
  color: white;
  padding: 10px;
}

.roles-select-tipo {
  min-width: 180px;
}

/* ========================================
   FORZAR ESTILOS OSCUROS EN SELECTS
   ======================================== */

select.roles-select-masivo,
select.roles-select-mini,
select.roles-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%2712%27 viewBox=%270 0 12 12%27%3E%3Cpath fill=%27white%27 d=%27M6 9L1 4h10z%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Fondo oscuro para TODOS los option */
select option {
  background-color: #1a1a1a !important;
  color: white !important;
}

/* Firefox específico */
@-moz-document url-prefix() {
  select option {
    background-color: #1a1a1a;
    color: white;
  }
}

/* ========================================
   TRAGAMONEDAS - GESTIÓN DE TIROS
   ======================================== */

.tragamonedas-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  padding: 0 8px;
}

/* ========================================
   HEADER
   ======================================== */

.tragamonedas-header {
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-black-card));
  border: 1px solid var(--admin-border-light);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 0 30px var(--admin-glow-red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tragamonedas-header-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1;
}

.tragamonedas-header-content svg {
  color: var(--admin-gold);
  filter: drop-shadow(0 0 10px var(--admin-glow-gold));
  flex-shrink: 0;
}

.tragamonedas-header h1 {
  font-family: 'Orbitron', monospace;
  font-size: 26px;
  font-weight: 900;
  color: var(--admin-text);
  margin-bottom: 6px;
  letter-spacing: 1px;
  text-shadow: 0 0 20px var(--admin-glow-red);
}

.tragamonedas-header p {
  font-size: 14px;
  font-weight: 500;
  color: var(--admin-text-secondary);
  letter-spacing: 0.3px;
}

.tragamonedas-btn-refresh {
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-red));
  border: 1px solid var(--admin-red);
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 20px var(--admin-glow-red);
  white-space: nowrap;
}

.tragamonedas-btn-refresh:hover {
  background: linear-gradient(135deg, var(--admin-red), var(--admin-red-light));
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--admin-glow-red);
}

/* ========================================
   ESTADÍSTICAS
   ======================================== */

.tragamonedas-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.tragamonedas-stat-card {
  background: var(--admin-black-card);
  border: 1px solid var(--admin-border-light);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tragamonedas-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--admin-border);
}

.tragamonedas-stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tragamonedas-stat-icon svg {
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.tragamonedas-stat-info {
  flex: 1 1;
}

.tragamonedas-stat-info h3 {
  font-family: 'Orbitron', monospace;
  font-size: 32px;
  font-weight: 900;
  color: var(--admin-text);
  margin: 0 0 4px 0;
  line-height: 1;
}

.tragamonedas-stat-info p {
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text-secondary);
  margin: 0;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ========================================
   BUSCADOR
   ======================================== */

.tragamonedas-search-box {
  background: var(--admin-black-card);
  border: 1px solid var(--admin-border-light);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tragamonedas-search-box:focus-within {
  border-color: var(--admin-red);
  box-shadow: 0 0 20px var(--admin-glow-red);
}

.tragamonedas-search-box svg {
  color: var(--admin-text-secondary);
  flex-shrink: 0;
}

.tragamonedas-search-box input {
  background: transparent;
  border: none;
  color: var(--admin-text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  flex: 1 1;
  outline: none;
  letter-spacing: 0.3px;
}

.tragamonedas-search-box input::placeholder {
  color: var(--admin-text-secondary);
  opacity: 0.6;
}

/* ========================================
   SECCIONES POR RANGOS
   ======================================== */

.tragamonedas-rangos-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tragamonedas-rango-seccion {
  background: var(--admin-black-card);
  border: 1px solid var(--admin-border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tragamonedas-rango-seccion:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Header de la sección */
.tragamonedas-rango-header {
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border-left: 6px solid;
  -webkit-user-select: none;
          user-select: none;
}

.tragamonedas-rango-header:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.tragamonedas-rango-header:active {
  transform: scale(0.995);
}

.tragamonedas-rango-info {
  flex: 1 1;
}

.tragamonedas-rango-info h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 800;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tragamonedas-rango-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tragamonedas-rango-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--admin-text);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.3px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.tragamonedas-rango-badge svg {
  opacity: 0.8;
}

.tragamonedas-rango-toggle {
  color: var(--admin-text-secondary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.tragamonedas-rango-header:hover .tragamonedas-rango-toggle {
  background: rgba(255, 255, 255, 0.1);
  color: var(--admin-text);
}

/* Lista de clientes expandible */
.tragamonedas-rango-clientes {
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--admin-border-light);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  to {
    opacity: 1;
    max-height: 2000px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* ========================================
   TARJETAS DE CLIENTE
   ======================================== */

.tragamonedas-cliente-card {
  background: var(--admin-black-card);
  border: 1px solid var(--admin-border-light);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.tragamonedas-cliente-card:hover {
  transform: translateX(4px);
  border-color: var(--admin-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.tragamonedas-cliente-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1;
  min-width: 0;
}

.tragamonedas-cliente-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  font-family: 'Orbitron', monospace;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.tragamonedas-cliente-datos {
  flex: 1 1;
  min-width: 0;
}

.tragamonedas-cliente-datos h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--admin-text);
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.3px;
}

.tragamonedas-cliente-datos p {
  font-size: 13px;
  color: var(--admin-text-secondary);
  margin: 0 0 10px 0;
  font-weight: 600;
}

.tragamonedas-cliente-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tragamonedas-cliente-stats span {
  font-size: 12px;
  font-weight: 700;
  color: var(--admin-text-secondary);
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.3px;
}

.tragamonedas-rol-badge {
  background: linear-gradient(135deg, var(--admin-red-dark), var(--admin-red));
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   CONTROLES DE TIROS
   ======================================== */

.tragamonedas-cliente-controles {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.tragamonedas-tiros-display {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--admin-border-light);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 90px;
}

.tragamonedas-tiros-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--admin-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tragamonedas-tiros-valor {
  font-size: 28px;
  font-weight: 900;
  color: var(--admin-gold);
  font-family: 'Orbitron', monospace;
  line-height: 1;
  text-shadow: 0 0 15px var(--admin-glow-gold);
}

/* ========================================
   BOTONES DE ACCIÓN
   ======================================== */

.tragamonedas-acciones {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tragamonedas-btn-accion {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.tragamonedas-btn-accion:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.tragamonedas-btn-agregar {
  background: linear-gradient(135deg, #28a745, #20c997);
  border-color: #28a745;
  color: white;
  box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.tragamonedas-btn-agregar:hover:not(:disabled) {
  background: linear-gradient(135deg, #20c997, #28a745);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(40, 167, 69, 0.5);
}

.tragamonedas-btn-remover {
  background: linear-gradient(135deg, #dc3545, #c82333);
  border-color: #dc3545;
  color: white;
  box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.tragamonedas-btn-remover:hover:not(:disabled) {
  background: linear-gradient(135deg, #c82333, #dc3545);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(220, 53, 69, 0.5);
}

.tragamonedas-btn-reset {
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-color: #007bff;
  color: white;
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.tragamonedas-btn-reset:hover:not(:disabled) {
  background: linear-gradient(135deg, #0056b3, #007bff);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.5);
}

/* ========================================
   ESTADOS VACÍOS Y CARGA
   ======================================== */

.tragamonedas-empty-state {
  background: var(--admin-black-card);
  border: 1px dashed var(--admin-border-light);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
}

.tragamonedas-empty-state svg {
  color: var(--admin-text-secondary);
  opacity: 0.4;
  margin-bottom: 16px;
}

.tragamonedas-empty-state h3 {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--admin-text-secondary);
  margin: 0;
  letter-spacing: 0.5px;
}

.tragamonedas-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 20px;
}

.tragamonedas-loading p {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--admin-text-secondary);
  letter-spacing: 0.5px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1200px) {
  .tragamonedas-cliente-card {
    flex-direction: column;
    align-items: stretch;
  }

  .tragamonedas-cliente-controles {
    flex-direction: column;
    width: 100%;
  }

  .tragamonedas-tiros-display {
    width: 100%;
  }

  .tragamonedas-acciones {
    width: 100%;
    justify-content: space-between;
  }

  .tragamonedas-btn-accion {
    flex: 1 1;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .tragamonedas-header {
    flex-direction: column;
    text-align: center;
  }

  .tragamonedas-header-content {
    flex-direction: column;
  }

  .tragamonedas-stats-grid {
    grid-template-columns: 1fr;
  }

  .tragamonedas-rango-header {
    padding: 20px 16px;
  }

  .tragamonedas-rango-info h3 {
    font-size: 16px;
  }

  .tragamonedas-rango-clientes {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .tragamonedas-acciones {
    flex-direction: column;
  }

  .tragamonedas-btn-accion {
    width: 100%;
  }

  .tragamonedas-rango-stats {
    flex-direction: column;
  }
}

/* ========================================
   PANTALLA DE CARGA - App.css
   ======================================== */

.app-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in;
}

.app-loading-content {
  text-align: center;
  color: white;
}

.app-loading-brand {
  margin-bottom: 40px;
}

.app-loading-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: bounceIn 0.6s ease-out;
}

.app-loading-logo-fallback {
  font-size: 80px;
  margin-bottom: 20px;
  animation: pulse 1.5s ease-in-out infinite;
}

.app-loading-text {
  margin-top: 10px;
}

.app-loading-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.5s ease-out;
}

.app-loading-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
  font-weight: 300;
  animation: slideDown 0.6s ease-out;
}

.app-loading-progress {
  margin-top: 20px;
}

.app-loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.app-spinner-ring {
  position: absolute;
  width: 64px;
  height: 64px;
  top: 8px;
  left: 8px;
  border: 4px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.app-spinner-ring:nth-child(2) {
  border-top-color: rgba(255, 255, 255, 0.5);
  animation-delay: -0.5s;
}

.app-loading-message {
  font-size: 16px;
  margin: 15px 0 10px 0;
  opacity: 0.95;
  font-weight: 500;
  min-height: 24px;
  animation: fadeInText 0.4s ease-in;
}

.app-loading-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.app-dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite;
}

.app-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.app-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* ========================================
   PANTALLA DE USUARIO BANEADO
   ======================================== */

.banned-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1e1e2e 0%, #2d1b2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  animation: fadeIn 0.4s ease-in;
}

.banned-container {
  max-width: 600px;
  width: 100%;
}

.banned-content {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.banned-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: shake 0.5s ease-in-out;
}

.banned-header h1 {
  color: #ff6b6b;
  font-size: 32px;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.banned-header p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 30px 0;
  font-size: 16px;
}

.banned-info {
  text-align: left;
  margin: 30px 0;
}

.banned-user-details {
  background: rgba(255, 107, 107, 0.1);
  border-left: 4px solid #ff6b6b;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.banned-user-details p {
  color: rgba(255, 255, 255, 0.9);
  margin: 8px 0;
  font-size: 14px;
}

.status-banned {
  color: #ff6b6b;
  font-weight: 700;
  background: rgba(255, 107, 107, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.banned-message {
  margin-bottom: 25px;
}

.banned-message h3 {
  color: white;
  font-size: 18px;
  margin: 0 0 15px 0;
}

.banned-message ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.banned-message li {
  color: rgba(255, 255, 255, 0.8);
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.6;
}

.banned-contact h3 {
  color: white;
  font-size: 18px;
  margin: 0 0 10px 0;
}

.banned-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 15px 0;
  font-size: 14px;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-link {
  display: block;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.banned-actions {
  margin: 30px 0 20px 0;
}

.btn-logout-banned {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  border: none;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-logout-banned:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.banned-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.banned-footer p {
  color: rgba(255, 255, 255, 0.5);
  margin: 5px 0;
  font-size: 13px;
}

.banned-help-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px) rotate(-5deg);
  }
  75% {
    transform: translateX(10px) rotate(5deg);
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .app-loading-title {
    font-size: 24px;
  }
  
  .app-loading-subtitle {
    font-size: 14px;
  }
  
  .banned-content {
    padding: 30px 20px;
  }
  
  .banned-icon {
    font-size: 60px;
  }
  
  .banned-header h1 {
    font-size: 26px;
  }
  
  .contact-options {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .app-loading-logo {
    width: 90px;
    height: 90px;
  }
  
  .app-loading-title {
    font-size: 20px;
  }
  
  .banned-header h1 {
    font-size: 22px;
  }
  
  .banned-content {
    padding: 25px 15px;
  }
}
