* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Variables para tamaños base normales */
    --font-size-base: 16px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

html {
    font-size: clamp(15px, 1.5vw, 18px); /* Escala fluida entre 15px y 18px según ancho */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #3b237b;
    color: #333;
    min-height: 100vh;
    padding: 0;
    font-size: var(--font-size-base);
    line-height: 1.5;
}

/* HEADER - Tamaños normales para desktop */
.full-width-header {
    background: #ff1f28;
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-title {
    font-size: 2.5rem; /* Normal para desktop */
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.card-subtitle {
    font-size: 1.5rem; /* Normal para desktop */
    opacity: 0.9;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

/* CONTENEDOR PRINCIPAL */
.main-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: var(--spacing-md);
}

.main-card {
    width: 100%;
    max-width: 1400px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* LAYOUT - Desktop First */
.card-content {
    display: flex;
    padding: 0;
    min-height: 600px;
}

.video-section {
    flex: 0.6;
    padding: var(--spacing-md);
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.form-section {
    flex: 0.8;
    padding: var(--spacing-md);
    background-color: #f8f9fa;
}

/* VIDEO CONTAINER */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 65%;
    margin-bottom: var(--spacing-sm);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* MENSAJES Y ESTADOS - Tamaños normales desktop */
.message {
    padding: var(--spacing-sm);
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    display: none;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem; /* Normal desktop */
}

.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 5px solid #ffc107;
}

.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 5px solid #17a2b8;
}

.status {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem; /* Normal desktop */
    border-left: 5px solid #6c757d;
}

.rules {
    background-color: #e9ecef;
    padding: var(--spacing-sm);
    border-radius: 8px;
    margin-top: var(--spacing-sm);
    font-size: 0.9rem; /* Normal desktop */
}

.rules h3 {
    margin-top: 0;
    color: #495057;
    font-size: 1rem; /* Normal desktop */
}

.rules ul {
    padding-left: var(--spacing-lg);
    margin-bottom: 0;
}

/* PROGRESS BAR */
.progress-container {
    margin-top: var(--spacing-sm);
    background-color: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1a2a6c, #b21f1f);
    width: 0%;
    transition: width 0.3s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8rem; /* Normal desktop */
    color: #6c757d;
}

/* FORMULARIO - Tamaños normales desktop */
.registro-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.registro-header h2 {
    color: #1a2a6c;
    margin-bottom: var(--spacing-xs);
    font-size: 1.8rem; /* Normal desktop */
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: bold;
    color: #2c3e50;
    font-size: 1rem; /* Normal desktop */
}

.form-control {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem; /* Normal desktop */
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem; /* Normal desktop */
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem; /* Normal desktop */
    margin-top: var(--spacing-sm);
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: var(--spacing-md);
}

.alert-error {
    background: #ffeaea;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.registro-links {
    text-align: center;
    /*margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    /*border-top: 1px solid #e9ecef;*/
    font-size: 0.9rem; /* Normal desktop */
    color: #6c757d;
}

.terminos-condiciones{
    text-align: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid #e9ecef;
    font-size: 0.9rem; /* Normal desktop */
    color: #6c757d;
}

/* SECCIÓN DE ÉXITO - Tamaño normal desktop */
.success-section {
    width: 100%;
    max-width: 600px;
    margin: auto;
    /*margin: 0 auto;*/
    background-color: #f8fff8;
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: justify;
    font-size: 1rem; /* Normal desktop */
    line-height: 1.6;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.success-section strong {
    color: #2e7d32;
}

.success-section a {
    color: #1976d2;
    font-weight: bold;
    text-decoration: none;
}

.success-section a:hover {
    text-decoration: underline;
}

/* Estilos para el toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
}

.toast {
    background-color: #ff6b6b;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid #ff4757;
}

.toast.warning {
    background-color: #ffa502;
    border-left-color: #ff7f00;
}

.toast.success {
    background-color: #2ed573;
    border-left-color: #1dd1a1;
}

.toast.info {
    background-color: #3498db;
    border-left-color: #2980b9;
}

.toast-message {
    flex: 1;
    margin-right: 10px;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-container {
    position: relative;
    cursor: pointer;
}

.btn-container .btn:disabled {
    pointer-events: none; /* Permite que el click pase al contenedor */
}

/* Estilos para campos con error */
.input-error {
    border-color: #e74c3c !important;
    background-color: #ffeaea !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1) !important;
}

.input-error:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

/* Labels para campos con error */
.label-error {
    color: #e74c3c !important;
    font-weight: 600 !important;
}

/* Mensajes de error */
.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    font-weight: 500;
}

/* Botón deshabilitado */
.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #95a5a6 !important;
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Transiciones suaves */
.form-control {
    transition: all 0.3s ease;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.share-section {
  text-align: center;
  margin-top: 1.5rem;
}

.share-text {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #333;
  font-weight: 500;
}

.btn-share {
  background-color: #25d366; /* Verde WhatsApp */
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  padding: 0.9rem 1.6rem;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.btn-share:hover {
  background-color: #1ebc5a;
  transform: translateY(-2px);
}

/* Estilos para CAPTCHA con checkbox */
.captcha-group {
    margin: 1.5rem 0;
}

.captcha-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: bold;
    color: #2c3e50;
    font-size: 1rem;
}

.g-recaptcha {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
}

.captcha-info {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.85rem;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.captcha-info i {
    color: #4285f4;
}

/* Estilos para el iframe de reCAPTCHA */
.g-recaptcha iframe {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.fade-out {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========================================================================== */
/* MEDIA QUERIES - SOLO PARA MÓVILES (los textos se agrandan aquí) */
/* ========================================================================== */

@media (max-width: 1024px) {
    .card-content {
        flex-direction: column;
    }
    
    .video-section {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .video-container {
        padding-bottom: 56.25%;
    }
}

/* TABLET - Pequeños ajustes */
@media (max-width: 768px) {
    .full-width-header {
        padding: var(--spacing-sm);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .main-container {
        padding: var(--spacing-sm);
    }
    
    .video-section, .form-section {
        padding: var(--spacing-sm);
    }
}

/* MÓVIL - TEXTOS SE AGRANDAN SOLO AQUÍ */
@media (max-width: 767px) {
    body {
        font-size: 1rem; /* ~16px base */
        line-height: 1.6;
    }

    .card-title {
        font-size: 1.8rem;
    }

    .card-subtitle {
        font-size: 1.1rem;
    }

    .registro-header h2 {
        font-size: 1.4rem;
    }

    label,
    .form-control,
    .btn-block,
    .message,
    .status,
    .rules,
    .registro-links,
    .success-section {
        font-size: 1rem;
    }

    .btn-block {
        padding: 1rem;
    }

    .form-control {
        padding: 0.9rem;
    }
}

/* MÓVILES MUY PEQUEÑOS - Textos aún más grandes */
@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    .card-title {
        font-size: 1.6rem;
    }

    .card-subtitle {
        font-size: 1rem;
    }

    .btn-block,
    .form-control {
        font-size: 1rem;
        padding: 0.9rem;
    }

    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: left top;
    }
    
    .captcha-info {
        font-size: 0.8rem;
        text-align: center;
    }
}

/* MÓVILES EXTRA PEQUEÑOS */
@media (max-width: 360px) {
    body {
        font-size: 18px; /* Mantener legible pero ajustado */
    }
    
    .card-title {
        font-size: 2rem;
    }
    
    .card-subtitle {
        font-size: 1.3rem;
    }
    
    .main-container {
        padding: 0.8rem;
    }
    
    .video-section, .form-section {
        padding: 1.2rem;
    }
}

body {
    -webkit-text-size-adjust: 100%; /* Evita el autoescalado raro en Safari */
    text-rendering: optimizeLegibility;
}

/*===========================================================================*/

.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.login-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
}

.logo-container {
    margin-bottom: 15px;
}

.logo {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    backdrop-filter: blur(10px);
}

.logo i {
    font-size: 28px;
    color: #3498db;
}

.login-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.subtitle {
    margin: 8px 0 0;
    opacity: 0.8;
    font-size: 14px;
}

.form-container {
    padding: 40px 35px;
}

.form-group {
    margin-bottom: 25px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.alert-error {
    background: #fee;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error i {
    font-size: 16px;
}

.login-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #2573a7);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ecf0f1;
}

.login-footer p {
    margin: 0;
    color: #7f8c8d;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Efectos de carga */
.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .form-container {
        padding: 30px 25px;
    }
    
    .login-header {
        padding: 30px 25px 25px;
    }
}

/*==============================================*/

:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --border: #dcdfe6;
}

.admin-container {
    min-height: 100vh;
    background: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.admin-header {
    background: linear-gradient(135deg, var(--secondary), #34495e);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo i {
    font-size: 24px;
    color: var(--primary);
}

.header-titles h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.subtitle {
    margin: 4px 0 0;
    opacity: 0.8;
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.user-welcome i {
    font-size: 18px;
    color: var(--primary);
}

.btn-logout {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

/* Contenido Principal */
.admin-content {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-card.primary {
    border-left-color: var(--primary);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    color: var(--gray);
    font-size: 14px;
    margin-top: 5px;
}

/* Controles */
.controls-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.controls-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.search-container {
    flex: 1;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.sort-container {
    flex-shrink: 0;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

.sort-select {
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.btn-sort {
    background: var(--light);
    border: 2px solid var(--border);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark);
}

.btn-sort:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Tabla */
.table-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.table-responsive {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.user-row:hover {
    background: #f8f9fa;
}

/* Columnas específicas */
.user-name {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-details {
    flex: 1;
}

.user-fullname {
    font-weight: 600;
    color: var(--dark);
}

.user-invitado {
    font-size: 12px;
    color: var(--gray);
    margin-top: 2px;
}

.user-email {
    cursor: pointer;
    color: var(--primary);
}

.user-whatsapp {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #25D366;
}

.invitation-code code {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--dark);
}

.referral-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.referral-high {
    background: #d4edda;
    color: #155724;
}

.referral-medium {
    background: #fff3cd;
    color: #856404;
}

.referral-low {
    background: #f8f9fa;
    color: var(--gray);
}

.registration-date {
    font-size: 13px;
}

.date {
    font-weight: 500;
    color: var(--dark);
}

.time {
    color: var(--gray);
    font-size: 12px;
}

.actions {
    text-align: center;
}

.btn-action {
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-action.view {
    background: var(--primary);
    color: white;
}

.btn-action.view:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Estados de la tabla */
.table-states {
    padding: 60px 20px;
    text-align: center;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--gray);
}

.loading-spinner i {
    font-size: 32px;
    color: var(--primary);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--gray);
}

.empty-state i {
    font-size: 48px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0;
    color: var(--dark);
}

/* Responsive */
@media (max-width: 768px) {
    .admin-content {
        padding: 20px 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .controls-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .users-table {
        font-size: 14px;
    }
    
    .users-table th,
    .users-table td {
        padding: 10px 8px;
    }
}

/*============================================*/

/* Estilos específicos para la vista de detalle */
.btn-back {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.btn-back:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.user-info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.user-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.user-avatar.large {
    width: 80px;
    height: 80px;
    font-size: 24px;
    font-weight: 600;
}

.user-avatar.small {
    width: 35px;
    height: 35px;
    font-size: 12px;
}

.user-main-info h2 {
    margin: 0 0 15px;
    color: var(--dark);
    font-size: 28px;
}

.user-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 14px;
}

.contact-item i {
    width: 16px;
    color: var(--primary);
}

.user-stats {
    display: flex;
    gap: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    margin-top: 5px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 0;
    margin-bottom: 20px;
}

.table-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: 20px;
}

.table-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .user-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .user-stats {
        justify-content: center;
    }
    
    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
}