/* =========================================================
   NUEVA PALETA DE COLORES ETNOVOX (Monocromática / Grises)
========================================================= */
:root {
    --bg-base: #0A0A0A;
    /* Fondo ultra oscuro (para dar profundidad) */
    --bg-card: #1A1A1A;
    /* Color 1 (Visual): El gris casi negro superior */
    --border-color: #6B6B6B;
    /* Color 2 (Visual): Gris medio oscuro */
    --primary: #A6A6A6;
    /* Color 3 (Visual): Gris medio (usado para acentos y botones) */
    --text-muted: #CCCCCC;
    /* Color 4 (Visual): Gris claro */
    --text-main: #F2F2F2;
    /* Color 5 (Visual): Blanco humo / Gris muy claro */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Fuente Inter para una lectura súper limpia */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Asignamos Montserrat solo a los títulos para crear alto contraste */
h1,
h2,
.auth-title,
.plan-title {
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.5;
}

/* --- Header y Navegación --- */
header {
    padding: 24px 40px;
    background: rgba(10, 10, 10, 0.85);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo en el Header --- */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
    margin-top: -40px;
    margin-bottom: -40px;
    margin-left: -15px;
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    margin-left: 32px;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav .divider {
    color: var(--border-color);
    margin-left: 32px;
    font-weight: 300;
    font-size: 18px;
}

/* --- Hero (Estilo Spotify Collage) --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    /* Eliminamos el justify-content para que no se pegue a las orillas */
    padding: 100px 12%;
    /* El 12% empuja todo el bloque de texto hacia el centro */
    min-height: 60vh;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-base) 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    /* Lo hacemos un poco más ancho para que el texto fluya mejor */
    z-index: 2;
    margin-left: 4%;
    /* Este margen extra le da el toque final para centrarlo en tu zona roja */
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Botones del Hero */
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background-color: var(--text-main);
    color: var(--bg-base);
    padding: 14px 32px;
    border-radius: 500px;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-hero-primary:hover {
    transform: scale(1.04);
    background-color: #FFFFFF;
}

.btn-hero-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
    padding: 14px 32px;
    border-radius: 500px;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.btn-hero-outline:hover {
    transform: scale(1.04);
    border-color: var(--text-main);
}

/* Texto legal pequeño */
.hero-legal {
    font-size: 11px !important;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0 !important;
}

.hero-legal a {
    color: var(--text-main);
    text-decoration: underline;
}

/* Collage de Imágenes Derecha */
.hero-collage {
    position: absolute;
    right: -5%;
    /* Desplaza el grid hacia afuera de la pantalla */
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    /* Rotación exacta del diseño */
    display: grid;
    grid-template-columns: repeat(3, 180px);
    /* Crea 3 columnas */
    gap: 16px;
    z-index: 1;
    pointer-events: none;
}

.hero-collage img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    /* Asegura que la imagen no se deforme */
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    /* Da profundidad a las imágenes */
}

/* Ajuste para pantallas más pequeñas (Laptops pequeñas / Tablets) */
@media (max-width: 1024px) {
    .hero-collage {
        opacity: 0.4;
        /* Oscurece las imágenes para que el texto sea legible */
        right: -20%;
    }
}

/* --- Tabla de Diferencias --- */
.comparison {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.comparison h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th {
    text-align: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.compare-table th:first-child {
    text-align: left;
}

.compare-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.check {
    color: var(--text-main);
    font-weight: bold;
    font-size: 18px;
}

.dash {
    color: var(--border-color);
}

/* --- Tarjetas de Planes --- */
.plans-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.plans-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
}

.plan-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card.freemium {
    border-top: 6px solid var(--border-color);
}

.plan-card.pro {
    border-top: 6px solid var(--text-main);
}

/* Estilo base para las etiquetas (badges) */
.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 16px;
}

/* Color específico para la etiqueta del plan Freemium */
.plan-card.freemium .badge {
    background-color: var(--border-color);
    /* Gris medio */
    color: var(--text-main);
    /* Letra clara */
}

/* Color específico para la etiqueta del plan Pro (Alto contraste) */
.plan-card.pro .badge {
    background-color: var(--text-main);
    /* Fondo casi blanco */
    color: var(--bg-base);
    /* Letra ultra oscura para que se lea perfecto */
}

.plan-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.plan-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    font-size: 14px;
}

.plan-features li::before {
    content: '✓';
    color: var(--text-main);
    margin-right: 12px;
    font-weight: bold;
}

.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 500px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: var(--border-color);
    color: var(--bg-base);
    transform: scale(1.02);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-base);
    border: none;
}

.btn-primary:hover {
    background-color: var(--text-main);
    color: var(--bg-base);
    transform: scale(1.02);
}

.terms {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
}

/* --- Vistas de Autenticación (Registro / Iniciar Sesión) --- */

.auth-body {
    background-color: var(--bg-base);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-logo {
    font-size: 32px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -1.5px;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

/* Formulario e Inputs */
.auth-form {
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.input-group label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.input-group input {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
    padding: 14px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.input-group input:hover {
    border-color: var(--text-main);
}

.input-group input:focus {
    outline: none;
    border-color: var(--text-main);
    background-color: var(--bg-base);
    border-width: 2px;
    padding: 13px;
}

/* Botón Principal EtnoVox */
.btn-auth-primary {
    background-color: var(--primary);
    color: var(--bg-base);
    border: none;
    padding: 14px;
    font-size: 16px;
    border-radius: 500px;
    margin-top: 8px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-auth-primary:hover {
    background-color: var(--text-main);
    transform: scale(1.04);
}

/* Divisor "o" */
.auth-divider {
    width: 100%;
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
    z-index: 1;
}

.auth-divider span {
    background-color: var(--bg-base);
    padding: 0 16px;
    position: relative;
    z-index: 2;
    color: var(--text-muted);
    font-weight: bold;
    font-size: 14px;
}

/* --- Botones Sociales (Google, Apple, etc.) --- */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.btn-social {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    padding-left: 56px;
    /* Espacio reservado para el ícono */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 500px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    height: 48px;
    text-align: center;
}

.btn-social:hover {
    border-color: var(--text-main);
    background-color: var(--bg-card);
    transform: scale(1.02);
}

/* Imagen del ícono dentro del botón social */
.social-icon-img {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.btn-social:hover .social-icon-img {
    transform: translateY(-50%) scale(1.05);
}

/* Texto del botón social */
.btn-social span {
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Estilo específico para Google */
.btn-social.google {
    border-color: var(--border-color);
}

.btn-social.google:hover {
    border-color: #4285F4;
    background-color: rgba(66, 133, 244, 0.05);
}

/* --- Ajustes responsivos para móviles --- */
@media (max-width: 480px) {
    .btn-social {
        padding: 10px 16px;
        padding-left: 48px;
        font-size: 13px;
        height: 44px;
    }

    .social-icon-img {
        left: 16px;
        width: 18px;
        height: 18px;
    }
}

/* Pie de página de registro */
.auth-footer {
    margin-top: 40px;
    text-align: center;
    width: 100%;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-muted);
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 8px;
}

.auth-footer a {
    color: var(--text-main);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: var(--primary);
}

.auth-terms {
    margin-top: 32px;
    text-align: center;
}

.auth-terms p {
    font-size: 11px;
    color: var(--text-muted);
}

.auth-terms a {
    color: var(--text-muted);
    text-decoration: underline;
}

/* --- Vista de Descarga --- */

/* Hero de Descarga (Oscuro) */
.download-hero {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-base) 100%);
    padding: 120px 20px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-content {
    max-width: 800px;
}

.download-content h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: var(--text-main);
}

.download-content p {
    font-size: 22px;
    margin-bottom: 40px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Botón principal estilo Store */
.btn-store-main {
    background-color: var(--bg-base);
    color: var(--text-main);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 32px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    margin-bottom: 24px;
}

.btn-store-main:hover {
    transform: scale(1.05);
    border-color: var(--text-main);
}

.btn-store-main .store-icon {
    font-size: 32px;
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-text .small-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.store-text .large-text {
    font-size: 20px;
    font-weight: bold;
}

.link-alt {
    display: block;
    color: var(--text-muted);
    text-decoration: underline;
    font-size: 15px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.link-alt:hover {
    color: var(--text-main);
}

/* Sección inferior dispositivos adaptada a la nueva paleta */
.download-devices {
    background-color: var(--text-main);
    color: var(--bg-base);
    text-align: center;
    padding: 80px 20px;
}

.download-devices h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.download-devices p {
    font-size: 18px;
    margin-bottom: 40px;
    font-weight: 500;
}

/* Insignias de las tiendas */
.store-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-badge {
    background-color: var(--bg-base);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    padding: 8px 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    transition: transform 0.2s ease;
}

.store-badge:hover {
    transform: scale(1.05);
    background-color: var(--bg-card);
}

.store-badge .store-icon {
    font-size: 28px;
}

/* --- Ajustes específicos para Autenticación --- */
.auth-body {
    position: relative;
    /* Necesario para ubicar el botón de volver */
}

/* Botón de regresar */
.btn-back {
    position: absolute;
    top: 32px;
    left: 40px;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-back:hover {
    color: var(--text-main);
    transform: translateX(-5px);
    /* Efecto de deslizar a la izquierda */
}

.btn-back span {
    font-size: 20px;
    line-height: 1;
}

/* Ajustes del logotipo en Auth */
.auth-logo-img {
    height: 120px;
    /* Aumentamos el tamaño significativamente */
    width: auto;
    /* Ajustamos los márgenes para "absorber" el espacio transparente del PNG */
    margin-top: 30px;
    margin-bottom: -20px;
    filter: brightness(0) invert(1);
    /* Aplica color blanco */
    display: block;
}

/* Botón primario mejorado con tipografía */
.btn-auth-primary {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .btn-back {
        top: 20px;
        left: 20px;
    }
}

/* =========================================================
   ADICIONES PARA LA FUNCIONALIDAD DE REGISTRO
   (Mantiene la paleta de colores EtnoVox)
========================================================= */

/* --- Contenedor para el input de contraseña con el botón de toggle --- */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 44px;
    /* Espacio para el botón de mostrar/ocultar */
}

/* --- Botón para mostrar/ocultar contraseña --- */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.toggle-password:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.toggle-password:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* --- Mensajes de error mejorados (debajo de inputs) --- */
.error-message {
    color: #f87171;
    /* Un rojo suave pero visible sobre fondo oscuro */
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.error-message i {
    font-size: 14px;
}

/* --- Requisitos de la contraseña (estilo EtnoVox) --- */
.password-requirements {
    margin-top: 8px;
    padding: 12px 16px;
    background-color: var(--bg-card);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 13px;
}

.password-requirements small {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.password-requirements li:last-child {
    margin-bottom: 0;
}

.password-requirements li i {
    font-size: 12px;
    width: 16px;
    color: var(--border-color);
    /* Color por defecto (gris) */
    transition: color 0.2s ease;
}

.password-requirements li.valid {
    color: var(--text-main);
}

.password-requirements li.valid i {
    color: #4ade80;
    /* Un verde suave para indicar validación */
}

/* --- Estado de carga para el botón de registro --- */
.btn-auth-primary.loading {
    pointer-events: none;
    position: relative;
    color: transparent !important;
    /* Oculta el texto */
}

.btn-auth-primary.loading::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    top: 50%;
    left: 50%;
    margin-top: -11px;
    margin-left: -11px;
    border: 3px solid transparent;
    border-top-color: var(--bg-base);
    /* Usa el color de fondo para contraste */
    border-radius: 50%;
    animation: button-loading-spinner 0.8s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

/* --- Ajuste extra para el botón social (Google) --- */
.btn-social.google {
    border-color: var(--border-color);
}

.btn-social.google:hover {
    border-color: var(--text-main);
    background-color: var(--bg-card);
}

/* =========================================================
   ADICIONES PARA LA FUNCIONALIDAD DE LOGIN
========================================================= */

/* --- Acciones del formulario de login (Remember me + Forgot password) --- */
.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0 24px 0;
    flex-wrap: wrap;
    gap: 12px;
}

/* --- Checkbox "Recordar sesión" --- */
.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remember-me input[type="checkbox"]:checked {
    background-color: var(--text-main);
    border-color: var(--text-main);
}

.remember-me input[type="checkbox"]:hover {
    border-color: var(--text-main);
}

.remember-me label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.remember-me label:hover {
    color: var(--text-main);
}

/* --- Enlace "¿Olvidaste tu contraseña?" --- */
.forgot-password {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.forgot-password:hover {
    color: var(--text-main);
    text-decoration: underline;
}

/* --- Toast/Notificación de error de autenticación --- */
.auth-toast-error {
    background-color: #7f1d1d;
    /* Rojo oscuro */
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 14px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
    font-weight: 500;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

.auth-toast-error i {
    font-size: 18px;
    color: #ef4444;
    flex-shrink: 0;
}

.auth-toast-error .toast-close {
    background: none;
    border: none;
    color: #fca5a5;
    font-size: 22px;
    cursor: pointer;
    margin-left: auto;
    padding: 0 4px;
    transition: color 0.2s ease;
    line-height: 1;
}

.auth-toast-error .toast-close:hover {
    color: #ffffff;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Ajuste del botón de Google para que se vea igual que en registro --- */
.btn-social.google {
    border-color: var(--border-color);
}

.btn-social.google .social-icon-img {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.btn-social.google:hover .social-icon-img {
    transform: translateY(-50%) scale(1.05);
}

.btn-social.google:hover {
    border-color: #4285F4;
    background-color: rgba(66, 133, 244, 0.05);
}

/* --- Responsive para el login --- */
@media (max-width: 480px) {
    .login-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .forgot-password {
        font-size: 13px;
    }

    .remember-me label {
        font-size: 13px;
    }

    .auth-toast-error {
        padding: 12px 16px;
        font-size: 13px;
        gap: 10px;
    }
}

/* --- Menú Desplegable de Perfil --- */
.profile-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 32px;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    padding: 0;
}

.profile-toggle:hover {
    color: var(--primary);
}

.profile-icon {
    background-color: var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Estilos para las iniciales */
.profile-initials {
    font-weight: 700;
    font-size: 12px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}

/* Tamaños adicionales para las iniciales */
.profile-initials.w-8 {
    width: 32px;
    height: 32px;
    font-size: 11px;
}

.profile-initials.w-10 {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.profile-initials.w-12 {
    width: 48px;
    height: 48px;
    font-size: 16px;
}

.profile-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--bg-base);
    width: 100%;
    height: 100%;
}

/* Si el ícono de persona se queda como fallback */
.profile-icon i {
    font-size: 20px;
    color: var(--text-muted);
}

.profile-caret {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 8px 0;
}

.dropdown-menu.show {
    display: block;
}

/* Estilo unificado para enlaces y botones del dropdown */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    margin: 0 !important;
    /* Importante para sobrescribir el margen del nav */
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.dropdown-item i {
    font-size: 18px;
    width: 24px;
    color: var(--text-muted);
}

.dropdown-item:hover i {
    color: var(--text-main);
}

/* Separador */
.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 4px 0;
}

/* Estilo específico para el formulario de logout */
.dropdown-form {
    margin: 0;
    padding: 0;
}

/* Estilo para el botón de cerrar sesión (rojo suave al hacer hover) */
.dropdown-item#logout-btn,
.dropdown-item[type="submit"] {
    color: #f87171;
}

.dropdown-item#logout-btn:hover,
.dropdown-item[type="submit"]:hover {
    background-color: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
}

.dropdown-item#logout-btn i,
.dropdown-item[type="submit"] i {
    color: #f87171;
}

.dropdown-item#logout-btn:hover i,
.dropdown-item[type="submit"]:hover i {
    color: #fca5a5;
}

/* =========================================================
   RESPONSIVE HEADER Y MENÚ HAMBURGUESA - CORREGIDO
========================================================= */

/* --- Menú Hamburguesa --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
    z-index: 1001;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle:hover {
    color: var(--primary);
}

/* --- Responsive para Tablets y móviles --- */
@media (max-width: 1024px) {
    header {
        padding: 16px 20px;
        position: relative;
        /* Asegura que el posicionamiento absoluto funcione */
    }

    .logo-img {
        height: 70px;
        margin-top: -25px;
        margin-bottom: -25px;
        margin-left: -10px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 12px 16px;
        position: relative;
        /* Importante para el posicionamiento absoluto */
        background: rgba(10, 10, 10, 0.95);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        min-height: 70px;
        /* Altura fija para que no se mueva */
    }

    .logo-img {
        height: 50px;
        margin-top: -10px;
        margin-bottom: -10px;
        margin-left: -5px;
    }

    /* Mostrar botón hamburguesa en móvil - siempre en la misma posición */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 16px;
        top: 12px;
        transform: none;
        z-index: 1001;
        /* El botón siempre está centrado verticalmente */
    }

    /* Ocultar navegación en móvil por defecto */
    .main-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 16px 0 8px 0;
        margin-top: 12px;
        border-top: 1px solid var(--border-color);
        gap: 0;
        background: rgba(10, 10, 10, 0.98);
        border-radius: 0 0 8px 8px;
        /* El menú se muestra debajo del header */
        order: 3;
        /* Asegura que esté después del logo y el botón */
        flex-basis: 100%;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        margin-left: 0;
        font-size: 15px;
        padding: 12px 8px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .main-nav .divider {
        display: none;
    }

    /* Ajustar dropdown en móvil */
    .profile-dropdown {
        margin-left: 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .profile-toggle {
        font-size: 15px;
        padding: 12px 8px;
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .profile-name {
        flex: 1;
    }

    /* Dropdown en móvil */
    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0;
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--border-color);
        background: rgba(20, 20, 20, 0.98);
        box-shadow: none;
        padding: 4px 0;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-item {
        padding: 12px 20px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    /* === HERO - CORREGIDO === */
    .hero {
        padding: 40px 5%;
        min-height: auto;
        background: var(--bg-base) !important;
        position: relative;
        z-index: 1;
    }

    .hero-content {
        max-width: 100%;
        margin-left: 0;
        text-align: center;
        position: relative;
        z-index: 2;
    }

    .hero-content h1 {
        font-size: 28px;
        color: var(--text-main);
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 24px;
        color: var(--text-muted);
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        width: 100%;
        text-align: center;
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-collage {
        right: -28%;
        top: 52%;
        transform: translateY(-50%) rotate(-15deg) scale(.70);
        opacity: .25;
    }

    .hero-collage img {
        height: 140px;
    }

    .hero-legal {
        font-size: 10px !important;
        color: var(--text-muted);
    }

    /* Tabla responsive */
    .comparison {
        padding: 0 16px;
        margin-bottom: 40px;
    }

    .comparison h2,
    .plans-section h2 {
        font-size: 22px;
    }

    .compare-table {
        font-size: 11px;
    }

    .compare-table th,
    .compare-table td {
        padding: 8px 4px;
    }

    .compare-table th:first-child,
    .compare-table td:first-child {
        font-size: 11px;
        min-width: 80px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px 12px;
        min-height: 60px;
        /* Altura fija para móvil pequeño */
    }

    .logo-img {
        height: 40px;
        margin-top: -8px;
        margin-bottom: -8px;
    }

    .menu-toggle {
        font-size: 24px;
        right: 12px;
        top: 8px;
        transform: none;
    }

    .main-nav a {
        font-size: 14px;
        padding: 10px 8px;
    }

    .profile-toggle {
        font-size: 14px;
        padding: 10px 8px;
    }

    .profile-icon {
        width: 28px;
        height: 28px;
    }

    .profile-initials {
        font-size: 10px;
    }

    .hero {
        padding: 30px 4%;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 13px;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        font-size: 12px;
        padding: 10px 16px;
    }

    .compare-table {
        font-size: 10px;
    }

    .compare-table th,
    .compare-table td {
        padding: 6px 3px;
    }

    .check {
        font-size: 14px;
    }
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 40px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.footer-logo {
    width: 85px;
    height: 85px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.footer-tagline {
    color: var(--text-muted);
    grid-template-columns: repeat(3, 1fr);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h4 {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    font-family: 'Montserrat', sans-serif;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-column a:hover {
    color: var(--text-main);
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .site-footer {
        padding: 40px 24px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        width: 75px;
        height: 75px;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-social {
        gap: 12px;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .footer-logo {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 30px 16px 16px;
        margin-top: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-column h4 {
        margin-bottom: 8px;
    }

    .footer-copy {
        font-size: 12px;
    }

    .footer-logo {
        width: 60px;
        height: 60px;
    }
}

/* =========================================================
   VISTA ADMINISTRAR CUENTA (Agregado para Laravel)
========================================================= */

.account-wrapper {
    max-width: 750px;
    margin: 40px auto;
    padding: 0 20px;
}

.account-search {
    width: 100%;
    padding: 14px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-size: 16px;
    margin-bottom: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%239BA8AB" viewBox="0 0 24 24" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
    background-repeat: no-repeat;
    background-position: 16px center;
    padding-left: 48px;
}

.account-search::placeholder {
    color: var(--text-muted);
}

.account-section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    margin-top: 32px;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
}

.account-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.account-row:last-child {
    border-bottom: none;
}

.account-row:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.account-row-left {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
}

.account-row-icon {
    font-size: 20px;
    color: var(--text-muted);
    width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-row-arrow {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.account-row:hover .account-row-arrow {
    transform: translateX(3px);
}

/* Responsive para la vista de cuenta */
@media (max-width: 768px) {
    .account-wrapper {
        margin: 20px auto;
        padding: 0 16px;
    }

    .account-section-title {
        font-size: 20px;
        margin-top: 24px;
    }

    .account-row {
        padding: 14px 16px;
    }

    .account-row-left {
        font-size: 14px;
        gap: 12px;
    }

    .account-search {
        font-size: 14px;
        padding: 12px 16px;
        padding-left: 44px;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .account-wrapper {
        margin: 12px auto;
        padding: 0 12px;
    }

    .account-section-title {
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 12px;
    }

    .account-row {
        padding: 12px 14px;
    }

    .account-row-left {
        font-size: 13px;
        gap: 10px;
    }

    .account-row-icon {
        font-size: 17px;
        width: 20px;
    }

    .account-search {
        font-size: 13px;
        padding: 10px 14px;
        padding-left: 40px;
        margin-bottom: 20px;
    }
}

/* =========================================================
   VISTAS DE CONFIGURACIÓN Y SUSCRIPCIÓN (Agregado para Laravel)
========================================================== */

/* Contenedor principal de configuración */
.settings-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Botón de volver circular */
.btn-circle-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--text-main);
    text-decoration: none;
    font-size: 20px;
    margin-bottom: 24px;
    transition: background-color 0.2s ease;
    border: none;
}

.btn-circle-back:hover {
    background-color: var(--border-color);
    color: var(--text-main);
}

/* Título de configuración */
.settings-title {
    font-size: 32px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 32px;
    color: var(--text-main);
}

/* Input hint (texto de ayuda en inputs) */
.settings-form .input-hint {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

/* Select personalizado */
.custom-select {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px;
    border-radius: 4px;
    width: 100%;
    appearance: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.custom-select:hover {
    border-color: var(--text-main);
}

.custom-select:focus {
    outline: none;
    border-color: var(--text-main);
    border-width: 2px;
    padding: 13px;
}

/* Grupo de fecha de nacimiento (día/mes/año) */
.dob-group {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    gap: 12px;
    margin-top: 8px;
}

.dob-group input,
.dob-group select {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
    padding: 14px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.dob-group input:hover,
.dob-group select:hover {
    border-color: var(--text-main);
}

.dob-group input:focus,
.dob-group select:focus {
    outline: none;
    border-color: var(--text-main);
    border-width: 2px;
    padding: 13px;
}

.dob-group select {
    appearance: none;
    cursor: pointer;
}

/* Acciones del formulario (botones) */
.settings-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
}

/* Botón de texto (Cancelar) */
.btn-text {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-text:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 32px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--text-main);
    border-color: var(--text-main);
}

.checkbox-group input[type="checkbox"]:hover {
    border-color: var(--text-main);
}

.checkbox-group label {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
    cursor: pointer;
    font-weight: 500;
}

/* Input readonly (contraseña) */
.input-group input[readonly] {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.input-group input[readonly]:hover {
    border-color: var(--border-color);
}

/* Responsive para settings */
@media (max-width: 768px) {
    .settings-wrapper {
        margin: 20px auto;
        padding: 0 16px;
    }

    .settings-title {
        font-size: 26px;
        margin-bottom: 24px;
    }

    .dob-group {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
    }

    .settings-actions {
        flex-direction: column-reverse;
        gap: 16px;
        margin-top: 32px;
    }

    .settings-actions .btn-text {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .settings-actions .btn-auth-primary {
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .settings-wrapper {
        margin: 12px auto;
        padding: 0 12px;
    }

    .settings-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .btn-circle-back {
        width: 36px;
        height: 36px;
        font-size: 17px;
        margin-bottom: 16px;
    }

    .dob-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .custom-select,
    .dob-group input,
    .dob-group select {
        padding: 12px;
        font-size: 14px;
    }

    .settings-actions .btn-auth-primary {
        font-size: 14px;
        padding: 12px;
    }

    .checkbox-group label {
        font-size: 13px;
    }
}

/* ==========================================
   VISTAS DE CONFIGURACIÓN Y SUSCRIPCIÓN
========================================== */
.settings-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.btn-circle-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-card);
    color: var(--text-main);
    text-decoration: none;
    font-size: 20px;
    margin-bottom: 24px;
    transition: background-color 0.2s ease;
}

.btn-circle-back:hover {
    background-color: var(--border-color);
}

.settings-title {
    font-size: 32px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 32px;
}

/* Tarjeta Administrar Suscripción */
.subscription-card {
    border-radius: 8px;
    overflow: hidden;
}

.sub-card-header {
    background-color: var(--text-muted);
    /* Gris claro */
    color: var(--bg-base);
    /* Texto oscuro */
    padding: 24px;
}

.sub-card-body {
    background-color: var(--bg-card);
    padding: 24px;
}

/* ==========================================
   ESTILOS FALTANTES PARA CAMBIAR CONTRASEÑA
========================================== */

/* Checklist con círculos (validación de contraseña) */
.checklist {
    list-style: none;
    margin-bottom: 24px;
    padding-left: 0;
}

.checklist li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

/* El círculo vacío por defecto */
.checklist li::before {
    content: '○';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-muted);
    transition: color 0.3s ease, content 0.3s ease;
}

/* El círculo lleno y de color verde cuando es válido */
.checklist li.valid {
    color: var(--text-main);
}

.checklist li.valid::before {
    content: '●';
    /* Cambia a círculo relleno */
    color: #1ED760;
    /* Color Verde de éxito */
}

/* ==========================================
   VISTA CHECKOUT (FONDO BLANCO) - CLASES FALTANTES
========================================== */

.checkout-body {
    background-color: #FFFFFF;
    color: #000000;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    border-bottom: 1px solid #E5E5E5;
}

.checkout-logo {
    height: 100px;
    margin-top: -30px;
    margin-bottom: -30px;
    filter: brightness(0);
}

.checkout-avatar {
    background-color: var(--text-muted);
    color: white;
}

.checkout-container {
    max-width: 600px;
    margin: 40px auto 100px;
    padding: 0 20px;
}

.checkout-title {
    font-size: 32px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 24px;
}

.checkout-subtitle {
    font-size: 24px;
    font-family: 'Montserrat', sans-serif;
    margin: 32px 0 16px;
}

.checkout-plan-card {
    background-color: #F8F8F8;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #E5E5E5;
}

.plan-header-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.plan-info,
.plan-price-right {
    display: flex;
    flex-direction: column;
}

.plan-info strong {
    font-size: 18px;
}

.plan-price-right strong {
    font-size: 18px;
    text-align: right;
}

.plan-price-right span {
    text-align: right;
    color: #555;
}

.plan-timeline {
    border-left: 2px solid #000;
    padding-left: 16px;
    margin-bottom: 16px;
    position: relative;
}

.plan-timeline::before,
.plan-timeline::after {
    content: '';
    position: absolute;
    left: -5px;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
}

.plan-timeline::before {
    top: 0;
}

.plan-timeline::after {
    bottom: 0;
    background: #FFF;
    border: 2px solid #000;
    left: -6px;
}

.timeline-item {
    font-size: 14px;
    margin-bottom: 16px;
}

.plan-benefits-small {
    font-size: 13px;
    color: #555;
    padding-left: 16px;
}

.payment-option {
    display: block;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.payment-option.active {
    border-color: #000000;
    border-width: 2px;
    padding: 15px;
}

.payment-option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
}

.card-form-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #EEEEEE;
}

.checkout-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.checkout-input-group label {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.checkout-input-group input {
    padding: 12px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-size: 16px;
}

.checkout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.summary-box {
    background-color: #F8F8F8;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin-bottom: 16px;
}

.summary-row.total {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 0;
}

.summary-box hr {
    border: none;
    border-top: 1px solid #DDDDDD;
    margin: 16px 0;
}

.checkout-legal {
    font-size: 12px;
    color: #555555;
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn-checkout-primary {
    background-color: var(--border-color);
    color: #FFFFFF;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 500px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-checkout-primary:hover {
    background-color: #000000;
}

/* ==========================================
   MODULO ADMINISTRADOR - CLASES FALTANTES
========================================== */

.admin-auth-body {
    background: radial-gradient(circle at top right, #2A2A2A 0%, var(--bg-base) 50%);
}

.admin-auth-container {
    max-width: 460px;
    background-color: rgba(26, 26, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px 24px 24px;
}

.admin-auth-helper {
    text-align: center;
    color: var(--text-muted);
    margin-top: -14px;
    margin-bottom: 28px;
}

.admin-credentials-box {
    margin-top: 24px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 12px;
    width: 100%;
}

.admin-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.admin-nav {
    gap: 12px;
    flex-wrap: wrap;
}

.admin-nav a {
    margin-left: 0;
}

.admin-pill {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-main);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
}

.admin-pill-light {
    color: var(--text-muted);
    font-weight: 600;
}

.admin-logout-btn {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
}

.admin-logout-btn:hover {
    border-color: var(--text-main);
}

.admin-wrapper {
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

.admin-intro h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.admin-intro p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.admin-stat-card p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.admin-stat-card strong {
    font-size: 28px;
    font-family: 'Montserrat', sans-serif;
}

.admin-stat-highlight {
    background: linear-gradient(145deg, #2D2D2D, #1A1A1A);
    border-color: #8A8A8A;
}

.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.admin-filters {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) minmax(160px, 220px);
    gap: 14px;
    margin-bottom: 16px;
}

.admin-pagination {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-pagination-summary {
    color: var(--text-muted);
    font-size: 13px;
}

.admin-pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-page-btn {
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-main);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 13px;
    cursor: pointer;
}

.admin-page-btn:hover:not(:disabled) {
    border-color: var(--text-main);
}

.admin-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.admin-page-btn.is-active {
    background-color: var(--text-main);
    color: var(--bg-base);
    border-color: var(--text-main);
}

.admin-empty-state {
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
}

.admin-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: auto;
    background-color: var(--bg-card);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

.admin-table th {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.admin-table-btn {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    border-radius: 999px;
    padding: 7px 12px;
    cursor: pointer;
    font-weight: 600;
}

.admin-table-btn:hover {
    border-color: var(--text-main);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.status-active {
    background-color: rgba(46, 204, 113, 0.2);
    color: #9AF7C1;
}

.status-trial {
    background-color: rgba(52, 152, 219, 0.2);
    color: #8FD6FF;
}

.status-cancelled {
    background-color: rgba(231, 76, 60, 0.2);
    color: #FFAAA1;
}

.status-past_due {
    background-color: rgba(241, 196, 15, 0.2);
    color: #FFE08A;
}

.admin-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.admin-client-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-card);
    padding: 16px;
}

.admin-client-card h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.admin-client-card p {
    color: var(--text-muted);
    margin-bottom: 6px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .admin-filters {
        grid-template-columns: 1fr;
    }

    .admin-header {
        padding: 16px 20px;
    }

    .admin-intro h1 {
        font-size: 30px;
    }
}

/* Animación del formulario */

.card-form-details,
#checkout-summary {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        max-height .45s ease,
        opacity .30s ease,
        transform .30s ease,
        margin-top .30s ease;
    margin-top: 0;
}

.card-form-details.show,
#checkout-summary.show {
    max-height: 700px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 18px;
}

/* ============================================
   ESTILOS MEJORADOS - ADMIN USUARIOS
   ============================================ */

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.users-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.users-title {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    margin: 0;
}

.users-total {
    color: var(--text-muted);
    font-size: 14px;
    background: var(--bg-card);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--primary);
    color: var(--bg-base);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-action:hover {
    transform: translateY(-1px);
    background: var(--text-main);
    color: var(--bg-base);
}

.btn-primary-action i {
    font-size: 18px;
}

/* ============================================
   FILTROS
   ============================================ */

.filters-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr 220px 200px auto;
    gap: 12px;
    align-items: start;
}

.filter-group {
    position: relative;
}

.filter-input-wrapper,
.filter-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.filter-input {
    width: 100%;
    padding: 10px 38px 10px 40px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-input:focus {
    outline: none;
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.filter-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.filter-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.filter-clear:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.filter-select {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.filter-select option {
    background: var(--bg-card);
    color: var(--text-main);
}

.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 44px;
}

.btn-clear-filters:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.btn-clear-filters i {
    font-size: 16px;
}

/* Filtros activos */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.active-filters:empty {
    display: none;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 14px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-main);
}

.active-filter-label {
    color: var(--text-muted);
    font-weight: 400;
}

.active-filter-value {
    font-weight: 500;
}

.active-filter-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.active-filter-remove:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.active-filter-remove i {
    font-size: 14px;
}

/* ============================================
   TABLA
   ============================================ */

.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.table-wrapper {
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.users-table thead {
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
}

.users-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.users-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 14px;
    vertical-align: middle;
}

.users-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.users-table tbody tr:last-child td {
    border-bottom: none;
}

/* Columnas */
.col-user {
    min-width: 180px;
}

.col-email {
    min-width: 200px;
}

.col-role {
    min-width: 100px;
}

.col-plan {
    min-width: 120px;
}

.col-status {
    min-width: 110px;
}

.col-usage {
    min-width: 130px;
}

.col-actions {
    min-width: 80px;
    text-align: center;
}

/* Celdas */
.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.user-name {
    font-weight: 600;
    color: var(--text-main);
}

.user-email {
    color: var(--text-muted);
    font-size: 13px;
}

/* Badges */
.badge-role {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.badge-plan {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pro {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge-freemium {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.15);
}

.badge-suspended {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.15);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
}

.status-active {
    color: #34d399;
}

.status-blocked {
    color: #f87171;
}

.status-badge i {
    font-size: 14px;
}

/* Uso de traducciones */
.usage-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.usage-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.usage-item i {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ============================================
   ACCIONES - Dropdown
   ============================================ */

.actions-dropdown {
    position: relative;
    display: inline-block;
}

.btn-actions-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-actions-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.btn-actions-toggle i {
    font-size: 18px;
}

.actions-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    min-width: 180px;
    padding: 6px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.actions-menu.show {
    display: block;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.action-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.action-item i {
    font-size: 16px;
    width: 20px;
    color: var(--text-muted);
}

.action-item:hover i {
    color: var(--text-main);
}

.action-warning i {
    color: #f59e0b;
}

.action-warning:hover i {
    color: #fbbf24;
}

.action-danger i {
    color: #f87171;
}

.action-danger:hover i {
    color: #fca5a5;
}

.action-success i {
    color: #34d399;
}

.action-success:hover i {
    color: #6ee7b7;
}

.action-destroy i {
    color: #ef4444;
}

.action-destroy:hover i {
    color: #f87171;
}

.action-form {
    margin: 0;
    padding: 0;
    display: block;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px !important;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.empty-state .empty-hint {
    font-size: 14px;
    opacity: 0.7;
}

/* ============================================
   PAGINACIÓN
   ============================================ */

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-base);
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.pagination-info i {
    font-size: 16px;
    opacity: 0.6;
}

.pagination-info strong {
    color: var(--text-main);
    font-weight: 600;
}

.pagination-controls {
    display: flex;
    align-items: center;
}

.pagination-controls nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-controls .pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-controls .page-item {
    display: inline-block;
}

.pagination-controls .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-controls .page-link:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.pagination-controls .active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-base);
}

.pagination-controls .active .page-link:hover {
    background: var(--text-main);
    border-color: var(--text-main);
}

.pagination-controls .disabled .page-link {
    opacity: 0.35;
    pointer-events: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }

    .btn-clear-filters {
        grid-column: span 2;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .users-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .users-header-left {
        flex-wrap: wrap;
    }

    .users-title {
        font-size: 22px;
    }

    .btn-primary-action {
        width: 100%;
        justify-content: center;
    }

    .filters-container {
        padding: 16px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .btn-clear-filters {
        grid-column: span 1;
        justify-content: center;
    }

    .pagination-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pagination-info {
        justify-content: center;
    }

    .actions-menu {
        right: -10px;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .users-title {
        font-size: 20px;
    }

    .users-total {
        font-size: 12px;
        padding: 2px 12px;
    }

    .filter-input,
    .filter-select {
        font-size: 13px;
        padding: 8px 34px 8px 36px;
    }

    .btn-clear-filters {
        font-size: 13px;
        padding: 8px 16px;
        height: 40px;
    }

    .pagination-controls .page-link {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 8px;
    }

    .users-table td,
    .users-table th {
        padding: 10px 12px;
        font-size: 13px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}

/* ============================================
       ESTILOS - CREAR USUARIO
       ============================================ */

.create-user-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.create-user-header {
    margin-bottom: 32px;
}

.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.btn-back-link:hover {
    color: var(--text-main);
    transform: translateX(-2px);
}

.btn-back-link i {
    font-size: 18px;
}

.create-user-title {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.create-user-title i {
    color: var(--primary);
    font-size: 28px;
}

.create-user-hint {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
       FORMULARIO
       ============================================ */

.create-user-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 32px;
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.form-label i {
    color: var(--text-muted);
    font-size: 16px;
}

.form-input {
    padding: 12px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.2s ease;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-input.is-invalid {
    border-color: #f87171;
}

.form-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

/* Password input wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 48px;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.toggle-password-btn:hover {
    color: var(--text-main);
}

.toggle-password-btn i {
    font-size: 18px;
}

/* Select */
.form-select {
    padding: 12px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 15px;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.form-select:focus {
    outline: none;
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-main);
}

.form-select.is-invalid {
    border-color: #f87171;
}

/* ============================================
       VALIDACIÓN DE CONTRASEÑA
       ============================================ */

.password-requirements {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 4px;
}

.requirements-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.requirements-title i {
    font-size: 14px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.requirement-item i {
    font-size: 14px;
    transition: all 0.3s ease;
}

.requirement-item.valid {
    color: var(--text-main);
}

.requirement-item.valid i {
    color: #34d399;
}

.requirement-item.valid i.bi-circle::before {
    content: "\F26A";
}

/* ============================================
       ERRORES
       ============================================ */

.form-error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f87171;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

.form-error i {
    font-size: 14px;
}

/* ============================================
       ACCIONES DEL FORMULARIO
       ============================================ */

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-cancel:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: var(--bg-base);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: var(--text-main);
    transform: translateY(-1px);
}

.btn-submit i {
    font-size: 18px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.loading {
    pointer-events: none;
}

.btn-submit.loading span {
    visibility: hidden;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg-base);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-submit {
    position: relative;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
       RESPONSIVE
       ============================================ */

@media (max-width: 768px) {
    .create-user-wrapper {
        padding: 16px;
    }

    .create-user-title {
        font-size: 24px;
    }

    .create-user-title i {
        font-size: 24px;
    }

    .create-user-form {
        padding: 20px 18px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .create-user-title {
        font-size: 20px;
        flex-wrap: wrap;
    }

    .create-user-title i {
        font-size: 20px;
    }

    .create-user-hint {
        font-size: 13px;
    }

    .create-user-form {
        padding: 16px 14px;
    }

    .form-input,
    .form-select {
        font-size: 14px;
        padding: 10px 14px;
    }

    .form-label {
        font-size: 13px;
    }

    .requirements-title {
        font-size: 12px;
    }

    .requirement-item {
        font-size: 12px;
    }
}

/* ============================================
       ESTILOS - DETALLES DE USUARIO
       ============================================ */

.user-detail-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
       BACK LINK
       ============================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 24px;
}

.back-link:hover {
    color: var(--text-main);
    transform: translateX(-2px);
}

.back-link i {
    font-size: 18px;
}

/* ============================================
       PROFILE HEADER
       ============================================ */
.user-profile-header {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.user-profile-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
}

.user-profile-name {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-profile-name h1 {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    margin: 0;
}

.user-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 4px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

.meta-item i {
    font-size: 14px;
}

.user-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-form {
    display: inline-block;
    margin: 0;
}

/* ============================================
       BOTONES DE ACCIÓN
       ============================================ */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action:hover {
    transform: translateY(-1px);
}

.btn-action i {
    font-size: 15px;
}

.btn-edit {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-base);
}

.btn-edit:hover {
    background: var(--text-main);
    border-color: var(--text-main);
    color: var(--bg-base);
}

.btn-warning {
    border-color: #f59e0b;
    color: #f59e0b;
}

.btn-warning:hover {
    background: rgba(245, 158, 11, 0.1);
}

.btn-success {
    border-color: #34d399;
    color: #34d399;
}

.btn-success:hover {
    background: rgba(52, 211, 153, 0.1);
}

.btn-danger {
    border-color: #f87171;
    color: #f87171;
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.1);
}

.btn-destroy {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-destroy:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ============================================
       GRID DE INFORMACIÓN
       ============================================ */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-base);
}

.card-header i {
    font-size: 18px;
    color: var(--primary);
}

.card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    flex: 1;
}

.card-body {
    padding: 16px 20px;
}

/* ============================================
       INFO ROWS
       ============================================ */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
    text-align: right;
}

/* ============================================
       BADGES
       ============================================ */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge-suspended {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.15);
}

.badge-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.badge-freemium {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.15);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.badge-role {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.badge-plan {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pro {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

/* ============================================
       USO DE TRADUCCIONES
       ============================================ */
.usage-section {
    margin-bottom: 16px;
}

.usage-section:last-child {
    margin-bottom: 0;
}

.usage-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.usage-icon i {
    font-size: 16px;
    color: var(--text-muted);
}

.usage-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.usage-unlimited {
    font-size: 12px;
    color: #34d399;
    font-weight: 600;
    margin-left: auto;
}

.usage-unlimited i {
    font-size: 14px;
}

.usage-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usage-bar-track {
    flex: 1;
    height: 6px;
    background: var(--bg-base);
    border-radius: 3px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.usage-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 50px;
    text-align: right;
}

/* ============================================
       RESUMEN DE PAGOS
       ============================================ */
.payment-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 16px;
    color: var(--text-main);
    font-weight: 600;
}

.payment-action {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-link:hover {
    color: var(--text-main);
}

.btn-link-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: auto;
}

.btn-link-sm:hover {
    color: var(--text-main);
}

/* ============================================
       TRANSACCIONES
       ============================================ */
.transactions-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.transactions-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-base);
}

.transactions-card .card-header i {
    font-size: 18px;
    color: var(--primary);
}

.transactions-card .card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.table-responsive {
    overflow-x: auto;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.transactions-table thead {
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
}

.transactions-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.transactions-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.transactions-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.transactions-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
       EMPTY STATE
       ============================================ */
.empty-state-card {
    text-align: center;
    padding: 24px 0;
    color: var(--text-muted);
}

.empty-state-card i {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-state-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 4px;
}

.empty-state-card .empty-hint {
    font-size: 13px;
    opacity: 0.7;
}

/* ============================================
       RESPONSIVE
       ============================================ */

@media (max-width: 1024px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .user-detail-wrapper {
        padding: 16px;
    }

    .user-profile-header {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .user-profile-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .user-profile-name {
        justify-content: center;
    }

    .user-profile-name h1 {
        font-size: 22px;
    }

    .user-profile-meta {
        justify-content: center;
    }

    .user-profile-actions {
        justify-content: center;
        border-top: 1px solid var(--border-color);
        padding-top: 16px;
    }

    .user-avatar-large {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .payment-summary {
        grid-template-columns: 1fr 1fr;
    }

    .transactions-table {
        font-size: 13px;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 10px 12px;
    }

    .btn-action {
        font-size: 12px;
        padding: 6px 14px;
    }

    .btn-action i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .user-profile-name h1 {
        font-size: 18px;
    }

    .user-profile-meta {
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }

    .meta-item {
        font-size: 13px;
    }

    .user-profile-actions {
        flex-direction: column;
        width: 100%;
    }

    .user-profile-actions .btn-action,
    .user-profile-actions .inline-form {
        width: 100%;
    }

    .user-profile-actions .btn-action {
        justify-content: center;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 6px 0;
    }

    .info-value {
        text-align: left;
        width: 100%;
    }

    .payment-summary {
        grid-template-columns: 1fr;
    }

    .payment-stat {
        text-align: center;
    }

    .transactions-table {
        font-size: 12px;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 8px 10px;
    }

    .badge-status {
        font-size: 11px;
        padding: 2px 10px;
    }

    .btn-action {
        font-size: 13px;
        padding: 10px 16px;
    }

    .transactions-card .card-header {
        flex-wrap: wrap;
    }

    .btn-link-sm {
        margin-left: 0;
    }
}

/* ============================================
       ESTILOS - EDITAR USUARIO
       ============================================ */

.edit-user-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
       HEADER
       ============================================ */
.edit-user-header {
    margin-bottom: 32px;
}

.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.btn-back-link:hover {
    color: var(--text-main);
    transform: translateX(-2px);
}

.btn-back-link i {
    font-size: 18px;
}

.edit-user-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edit-user-title {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.edit-user-title i {
    color: var(--primary);
    font-size: 28px;
}

.edit-user-hint {
    color: var(--text-muted);
    font-size: 14px;
}

.edit-user-hint strong {
    color: var(--text-main);
}

/* ============================================
       FORMULARIO
       ============================================ */
.edit-user-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 32px;
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.form-label i {
    color: var(--text-muted);
    font-size: 16px;
}

.label-hint {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 13px;
}

.form-input {
    padding: 12px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.2s ease;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-input.is-invalid {
    border-color: #f87171;
}

.form-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

/* Password input wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-input {
    padding-right: 48px;
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.toggle-password-btn:hover {
    color: var(--text-main);
}

.toggle-password-btn i {
    font-size: 18px;
}

/* Select */
.form-select {
    padding: 12px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 15px;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.form-select:focus {
    outline: none;
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-main);
}

.form-select.is-invalid {
    border-color: #f87171;
}

/* ============================================
       VALIDACIÓN DE CONTRASEÑA
       ============================================ */
.password-requirements {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 4px;
}

.password-requirements.show {
    display: block !important;
}

.requirements-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.requirements-title i {
    font-size: 14px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.requirement-item i {
    font-size: 14px;
    transition: all 0.3s ease;
}

.requirement-item.valid {
    color: var(--text-main);
}

.requirement-item.valid i {
    color: #34d399;
}

.requirement-item.valid i.bi-circle::before {
    content: "\F26A";
}

/* ============================================
       ERRORES
       ============================================ */
.form-error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f87171;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

.form-error i {
    font-size: 14px;
}

/* ============================================
       INFO BOX
       ============================================ */
.info-box {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.info-box-header i {
    font-size: 16px;
    color: var(--primary);
}

.info-box-body {
    padding: 12px 16px;
}

.info-box-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-box-row:last-child {
    border-bottom: none;
}

.info-box-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.info-box-value {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
}

/* ============================================
       BADGES
       ============================================ */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge-suspended {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.15);
}

.badge-freemium {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.15);
}

/* ============================================
       ACCIONES DEL FORMULARIO
       ============================================ */
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-cancel:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: var(--bg-base);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: var(--text-main);
    transform: translateY(-1px);
}

.btn-submit i {
    font-size: 18px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.loading {
    pointer-events: none;
    position: relative;
}

.btn-submit.loading span {
    visibility: hidden;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg-base);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
       RESPONSIVE
       ============================================ */

@media (max-width: 768px) {
    .edit-user-wrapper {
        padding: 16px;
    }

    .edit-user-title {
        font-size: 24px;
    }

    .edit-user-title i {
        font-size: 24px;
    }

    .edit-user-form {
        padding: 20px 18px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .info-box-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 8px 0;
    }

    .info-box-value {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .edit-user-title {
        font-size: 20px;
        flex-wrap: wrap;
    }

    .edit-user-title i {
        font-size: 20px;
    }

    .edit-user-hint {
        font-size: 13px;
    }

    .edit-user-form {
        padding: 16px 14px;
    }

    .form-input,
    .form-select {
        font-size: 14px;
        padding: 10px 14px;
    }

    .form-label {
        font-size: 13px;
        flex-wrap: wrap;
    }

    .label-hint {
        font-size: 12px;
    }

    .requirements-title {
        font-size: 12px;
    }

    .requirement-item {
        font-size: 12px;
    }

    .btn-submit,
    .btn-cancel {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* ============================================
       ESTILOS - GESTIÓN DE PLANES
       ============================================ */

.plans-admin-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
       HEADER
       ============================================ */
.plans-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.plans-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.plans-title {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    margin: 0;
}

.plans-total {
    color: var(--text-muted);
    font-size: 14px;
    background: var(--bg-card);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* ============================================
       GRID DE PLANES
       ============================================ */
.plans-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.plan-card-admin {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card-admin:hover {
    transform: translateY(-4px);
    border-color: var(--text-muted);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Plan destacado (Pro) */
.plan-pro {
    border-color: rgba(52, 211, 153, 0.3);
    background: linear-gradient(145deg, #1A2A22, var(--bg-card));
}

.plan-pro:hover {
    border-color: #34d399;
    box-shadow: 0 8px 32px rgba(52, 211, 153, 0.1);
}

/* Plan Freemium */
.plan-freemium {
    border-color: rgba(96, 165, 250, 0.2);
}

/* ============================================
       BADGES
       ============================================ */
.plan-badge {
    margin-bottom: 16px;
}

.badge-free {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.badge-pro {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-custom {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* ============================================
       CONTENIDO DEL PLAN
       ============================================ */
.plan-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.plan-name {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    margin: 0 0 4px 0;
    /* ✅ NUEVO: Manejar texto largo */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    /* Máximo 2 líneas */
    -webkit-box-orient: vertical;
    word-break: break-word;
    line-height: 1.2;
    max-height: 3.6em;
    /* 2 líneas * 1.2 line-height */
    min-height: 2.4em;
    /* Altura mínima para consistencia */
    position: relative;
    cursor: help;
}

/* Tooltip personalizado */
.plan-name:hover::after {
    content: attr(data-fullname);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.plan-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.plan-price-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.plan-price-free {
    font-size: 22px;
    font-weight: 700;
    color: #60a5fa;
}

.plan-price-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
}

.plan-price-period {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
       FEATURES
       ============================================ */
.plan-features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.feature-item i {
    font-size: 16px;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
}

.feature-unlimited {
    color: #34d399;
    font-weight: 600;
}

/* ============================================
       ESTADO
       ============================================ */
.plan-status {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.status-cancelled {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.15);
}

.status-default {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.status-chip i {
    font-size: 12px;
}

/* ============================================
       ACCIONES
       ============================================ */
.plan-actions {
    margin-top: 4px;
}

.btn-edit-plan {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.btn-edit-plan:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.btn-edit-plan i {
    font-size: 15px;
}

/* ============================================
       EMPTY STATE
       ============================================ */
.empty-state-plans {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.empty-state-plans i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state-plans p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.empty-state-plans .empty-hint {
    font-size: 14px;
    opacity: 0.7;
}

/* ============================================
       RESPONSIVE
       ============================================ */

@media (max-width: 1024px) {
    .plans-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .plans-admin-wrapper {
        padding: 16px;
    }

    .plans-title {
        font-size: 24px;
    }

    .plans-grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .plan-card-admin {
        padding: 20px 18px;
    }

    .plan-name {
        font-size: 20px;
    }

    .plan-price-amount {
        font-size: 24px;
    }

    .plan-price-free {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .plans-title {
        font-size: 20px;
    }

    .plans-total {
        font-size: 12px;
        padding: 2px 12px;
    }

    .plan-card-admin {
        padding: 16px 14px;
    }

    .plan-name {
        font-size: 18px;
    }

    .plan-price-amount {
        font-size: 20px;
    }

    .plan-price-free {
        font-size: 18px;
    }

    .feature-item {
        font-size: 13px;
    }

    .btn-edit-plan {
        font-size: 12px;
        padding: 6px 16px;
    }
}

/* ============================================
       ESTILOS - EDITAR PLAN
       ============================================ */

.edit-plan-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* ============================================
       HEADER
       ============================================ */
.edit-plan-header {
    margin-bottom: 32px;
}

.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.btn-back-link:hover {
    color: var(--text-main);
    transform: translateX(-2px);
}

.btn-back-link i {
    font-size: 18px;
}

.edit-plan-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edit-plan-title {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.edit-plan-title i {
    color: var(--primary);
    font-size: 28px;
}

.edit-plan-hint {
    color: var(--text-muted);
    font-size: 14px;
}

.edit-plan-hint strong {
    color: var(--text-main);
}

/* ============================================
       FORMULARIO
       ============================================ */
.edit-plan-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 32px;
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
       PLAN STATUS BANNER
       ============================================ */
.plan-status-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-base);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.status-cancelled {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.15);
}

.status-default {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.status-free {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.15);
}

/* ============================================
       FORM GROUP
       ============================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-half {
    flex: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.form-label i {
    color: var(--text-muted);
    font-size: 16px;
}

.label-hint {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 13px;
}

.form-input {
    padding: 12px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.2s ease;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-input.is-invalid {
    border-color: #f87171;
}

.form-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.form-textarea {
    padding: 12px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.2s ease;
    width: 100%;
    resize: vertical;
    min-height: 80px;
    font-family: 'Inter', sans-serif;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-textarea.is-invalid {
    border-color: #f87171;
}

.input-hint {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.input-hint.text-muted {
    opacity: 0.7;
}

/* ============================================
       CHECKBOX
       ============================================ */
.form-group-checkbox {
    padding-top: 4px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-base);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

.checkbox-hint {
    font-weight: 400;
    font-size: 13px;
    color: var(--text-muted);
}

.checkbox-label i {
    font-size: 16px;
    color: var(--text-muted);
}

/* ============================================
       ERRORES
       ============================================ */
.form-error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f87171;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

.form-error i {
    font-size: 14px;
}

/* ============================================
       INFO BOX
       ============================================ */
.info-box {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 20px;
    overflow: hidden;
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.info-box-header i {
    font-size: 16px;
    color: var(--primary);
}

.info-box-body {
    padding: 12px 16px;
}

.info-box-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-box-row:last-child {
    border-bottom: none;
}

.info-box-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.info-box-value {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
}

.info-box-value code {
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
}

/* ============================================
       ACCIONES
       ============================================ */
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-cancel:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: var(--bg-base);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: var(--text-main);
    transform: translateY(-1px);
}

.btn-submit i {
    font-size: 18px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.loading {
    pointer-events: none;
    position: relative;
}

.btn-submit.loading span {
    visibility: hidden;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg-base);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
       RESPONSIVE
       ============================================ */

@media (max-width: 768px) {
    .edit-plan-wrapper {
        padding: 16px;
    }

    .edit-plan-title {
        font-size: 24px;
    }

    .edit-plan-title i {
        font-size: 24px;
    }

    .edit-plan-form {
        padding: 20px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .plan-status-banner {
        flex-direction: column;
        gap: 8px;
    }

    .info-box-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 8px 0;
    }

    .info-box-value {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .edit-plan-title {
        font-size: 20px;
        flex-wrap: wrap;
    }

    .edit-plan-title i {
        font-size: 20px;
    }

    .edit-plan-hint {
        font-size: 13px;
    }

    .edit-plan-form {
        padding: 16px 14px;
    }

    .form-input,
    .form-textarea {
        font-size: 14px;
        padding: 10px 14px;
    }

    .form-label {
        font-size: 13px;
    }

    .checkbox-label {
        font-size: 13px;
    }

    .checkbox-hint {
        font-size: 12px;
    }

    .btn-submit,
    .btn-cancel {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* ============================================
       ESTILOS - CREAR PLAN (Reutiliza los de edit)
       ============================================ */
.text-danger {
    color: #f87171;
}

.edit-plan-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.edit-plan-header {
    margin-bottom: 32px;
}

.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.btn-back-link:hover {
    color: var(--text-main);
    transform: translateX(-2px);
}

.btn-back-link i {
    font-size: 18px;
}

.edit-plan-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edit-plan-title {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.edit-plan-title i {
    color: var(--primary);
    font-size: 28px;
}

.edit-plan-hint {
    color: var(--text-muted);
    font-size: 14px;
}

.edit-plan-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px 32px;
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group-half {
    flex: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.form-label i {
    color: var(--text-muted);
    font-size: 16px;
}

.form-input {
    padding: 12px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.2s ease;
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-input.is-invalid {
    border-color: #f87171;
}

.form-textarea {
    padding: 12px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 15px;
    transition: all 0.2s ease;
    width: 100%;
    resize: vertical;
    min-height: 80px;
    font-family: 'Inter', sans-serif;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--text-main);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.input-hint {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.form-error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f87171;
    font-size: 13px;
    margin-top: 4px;
    font-weight: 500;
}

.form-error i {
    font-size: 14px;
}

.form-group-checkbox {
    padding-top: 4px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-base);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

.checkbox-hint {
    font-weight: 400;
    font-size: 13px;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-cancel:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: var(--bg-base);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: var(--text-main);
    transform: translateY(-1px);
}

.btn-submit i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .edit-plan-wrapper {
        padding: 16px;
    }

    .edit-plan-title {
        font-size: 24px;
    }

    .edit-plan-form {
        padding: 20px 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .edit-plan-title {
        font-size: 20px;
    }

    .edit-plan-form {
        padding: 16px 14px;
    }

    .form-input,
    .form-textarea {
        font-size: 14px;
        padding: 10px 14px;
    }

    .form-label {
        font-size: 13px;
    }
}

/* ============================================
   BOTÓN ELIMINAR PLAN
   ============================================ */
.btn-delete-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #f87171;
    background: transparent;
    border: 1px solid rgba(248, 113, 113, 0.3);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    margin-top: 4px;
}

.btn-delete-plan:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: #f87171;
    transform: translateY(-1px);
}

.btn-delete-plan i {
    font-size: 15px;
}

/* ============================================
           NOTIFICACIONES (ALERTS)
           ============================================ */
.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    animation: slideDown 0.4s ease-out;
    border: 1px solid transparent;
}

.alert-dismissible {
    padding-right: 52px;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.alert-content i {
    font-size: 20px;
}

.alert-success {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.25);
}

.alert-success i {
    color: #34d399;
}

.alert-error {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.25);
}

.alert-error i {
    color: #f87171;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.25);
}

.alert-warning i {
    color: #fbbf24;
}

.alert-info {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.25);
}

.alert-info i {
    color: #60a5fa;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.7;
    font-size: 20px;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.alert-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.alert {
    position: relative;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
       ESTILOS - ADMINISTRAR SUSCRIPCIÓN
       ============================================ */

.subscription-card-admin {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.plan-badge {
    margin-bottom: 16px;
}

.badge-free {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.badge-pro {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.plan-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.plan-name {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.plan-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.plan-price-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.plan-price-free {
    font-size: 22px;
    font-weight: 700;
    color: #60a5fa;
}

.plan-price-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
}

.plan-price-period {
    font-size: 14px;
    color: var(--text-muted);
}

.plan-features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.feature-item i {
    font-size: 16px;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
}

.feature-unlimited {
    color: #34d399;
    font-weight: 600;
}

.plan-status {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.status-trial {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.15);
}

.status-info {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.plan-actions {
    margin-top: 4px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.btn-delete-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #f87171;
    background: transparent;
    border: 1px solid rgba(248, 113, 113, 0.3);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
}

.btn-delete-plan:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: #f87171;
    transform: translateY(-1px);
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 22px;
    cursor: pointer;
    margin-left: auto;
    padding: 0 4px;
    line-height: 1;
}

.toast-close:hover {
    color: #ffffff;
}

.auth-toast-error {
    padding: 14px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
    font-weight: 500;
    font-size: 14px;
    position: relative;
}

.auth-toast-error i {
    font-size: 18px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .plan-name {
        font-size: 20px;
    }

    .plan-price-amount {
        font-size: 24px;
    }

    .subscription-card-admin {
        padding: 20px 18px;
    }
}

@media (max-width: 480px) {
    .plan-name {
        font-size: 18px;
    }

    .plan-price-amount {
        font-size: 20px;
    }

    .subscription-card-admin {
        padding: 16px 14px;
    }

    .feature-item {
        font-size: 13px;
    }

    .btn-delete-plan {
        font-size: 13px;
        padding: 10px 16px;
    }

    .btn-outline {
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* ============================================
        TABLA DE SUSCRIPCIONES - ESTILOS MEJORADOS
        ============================================ */

.subscriptions-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.subscriptions-table thead {
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-color);
}

.subscriptions-table th {
    padding: 12px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.subscriptions-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
    vertical-align: middle;
}

.subscriptions-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Columnas */
.col-user {
    min-width: 180px;
    width: 25%;
}

.col-plan {
    min-width: 100px;
    width: 12%;
}

.col-status {
    min-width: 100px;
    width: 12%;
}

.col-dates {
    min-width: 220px;
    width: 28%;
}

.col-amount {
    min-width: 80px;
    width: 10%;
    text-align: left;
}

.col-actions {
    min-width: 60px;
    width: 8%;
    text-align: center;
}

/* Celda de usuario */
.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    text-transform: uppercase;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    color: var(--text-main);
    display: block;
}

.user-email {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
}

/* Plan */
.plan-badge-sus {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.plan-price {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Estado */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-active {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.status-pending {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.status-past_due {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-cancelled {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

/* Fechas con etiquetas */
.dates-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.date-label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 45px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.7;
}

.date-value {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-main);
}

.date-value i {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
}

.date-cancelled .date-value {
    color: #f87171;
}

.date-cancelled .date-value i {
    color: #f87171;
}

.badge-expired {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 700;
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    margin-left: 4px;
}

/* Monto */
.amount {
    font-weight: 700;
    color: var(--text-main);
    font-size: 14px;
}

/* ============================================
        DROPDOWN DE ACCIONES
        ============================================ */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

.btn-actions-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-actions-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.btn-actions-toggle i {
    font-size: 18px;
}

.actions-menu {
    display: none;
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    min-width: 180px;
    padding: 6px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.actions-menu.show {
    display: block;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.action-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.action-item i {
    font-size: 16px;
    width: 20px;
    color: var(--text-muted);
}

.action-item:hover i {
    color: var(--text-main);
}

.action-warning i {
    color: #f59e0b;
}

.action-warning:hover i {
    color: #fbbf24;
}

.action-form {
    margin: 0;
    padding: 0;
    display: block;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px !important;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.empty-state .empty-hint {
    font-size: 14px;
    opacity: 0.7;
}

/* ============================================
        RESPONSIVE
        ============================================ */

@media (max-width: 1024px) {
    .subscriptions-table {
        min-width: 600px;
    }

    .col-dates {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .subscriptions-table {
        min-width: 500px;
    }

    .col-user {
        min-width: 140px;
    }

    .col-dates {
        min-width: 160px;
    }

    .date-item {
        font-size: 11px;
    }

    .date-label {
        min-width: 35px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .subscriptions-table {
        min-width: 400px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .user-name {
        font-size: 13px;
    }

    .user-email {
        font-size: 11px;
    }

    .status-badge {
        font-size: 11px;
        padding: 2px 10px;
    }

    .col-actions {
        min-width: 50px;
    }

    .date-label {
        min-width: 30px;
        font-size: 9px;
    }

    .date-value {
        font-size: 11px;
    }
}

/* =========================================================
   PÁGINAS LEGALES
========================================================= */

.legal-page {
    padding: 60px 20px;
    background: var(--bg-base);
    min-height: 70vh;
}

.legal-container {
    max-width: 1000px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 40px;
}

.legal-header i {
    font-size: 52px;
    color: var(--primary);
    margin-bottom: 15px;
}

.legal-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.legal-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.legal-card h2 {
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 22px;
    font-family: 'Montserrat', sans-serif;
}

.legal-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: justify;
}

.legal-card ul {
    padding-left: 22px;
}

.legal-card li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 10px;
}

@media(max-width:768px) {
    .legal-page {
        padding: 40px 18px;
    }

    .legal-header h1 {
        font-size: 30px;
    }

    .legal-header i {
        font-size: 42px;
    }

    .legal-card {
        padding: 22px;
    }

    .legal-card h2 {
        font-size: 20px;
    }

}

/* ===========================
        MATRIZ FODA
===========================*/

.foda-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.foda-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, .02);
}

.foda-item h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.foda-item ul {
    padding-left: 20px;
}

.foda-item li {
    margin-bottom: 10px;
    line-height: 1.7;
}

@media(max-width:768px) {
    .foda-grid {
        grid-template-columns: 1fr;
    }
}

/* Agregar a tu style.css o en la vista */
.transactions-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-export-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #dc3545;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-export-pdf:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-export-pdf i {
    font-size: 18px;
}

/*==================================
            FAQ
===================================*/

.faq {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-card);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 22px 25px;
    border: none;
    background: none;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    text-align: left;
}

.faq-question i {
    transition: .3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.faq-answer p {
    padding: 0 25px 25px;
    color: var(--text-muted);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 250px;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

@media(max-width:768px) {
    .faq-question {
        font-size: 17px;
        padding: 18px;
    }
}