/* cuenta.css - Estilo consistente con index.css - VERSIÓN CORREGIDA */

:root {
    --primary: #0f3460;
    --secondary: #533483;
    --accent: #ffd700;
    --accent-light: #ffed4a;
    --dark: #1a1a2e;
    --darker: #16213e;
    --light: #ffffff;
    --gray-light: rgba(255, 255, 255, 0.7);
    --gray: rgba(255, 255, 255, 0.5);
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent !important;
    tap-highlight-color: transparent !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--light);
    overflow-x: hidden;
    background: var(--dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

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

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

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

/* === BACKGROUND === */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, var(--darker) 100%);
    z-index: -10;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.05) 2px, transparent 0),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 400px 400px, 300px 300px;
    animation: particlesMove 40s linear infinite alternate;
    opacity: 0.3;
    z-index: -9;
}

/* === NAVBAR (Consistente con index) === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 52, 96, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo {
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    -webkit-touch-callout: none !important;
    user-select: none !important;
    outline: none !important;
    all: unset;
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    cursor: pointer !important;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.4, 1) !important;
}

.logo-img {
    height: 45px;
    width: auto;
    transition: filter 0.2s ease;
    pointer-events: none;
}

.logo h2 {
    color: var(--light);
    font-weight: 800;
    font-size: 1.3rem;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--light);
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.4, 1), 
                color 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
    -webkit-touch-callout: none;
    user-select: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    width: 100%;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 24px;
    height: 18px;
    justify-content: space-between;
    -webkit-touch-callout: none;
    user-select: none;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--light);
    transition: var(--transition);
    border-radius: 2px;
}

/* === CONTENEDOR PRINCIPAL === */
.account-container {
    min-height: 100vh;
    padding: 100px 0 50px;
    position: relative;
    z-index: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === FORMULARIOS DE AUTENTICACIÓN === */
.auth-forms-container {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.auth-header h1 i {
    margin-right: 0.5rem;
}

.auth-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--light);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border-radius: calc(var(--border-radius) - 4px);
    transition: var(--transition);
    -webkit-touch-callout: none;
    user-select: none;
}

.auth-tab.active {
    background: var(--accent);
    color: var(--dark);
    box-shadow: var(--shadow);
}

.auth-form {
    display: none;
    animation: slideInUp 0.5s ease;
}

.auth-form.active {
    display: block;
}

.form-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.form-header h2 i {
    margin-right: 0.5rem;
}

.form-header p {
    opacity: 0.8;
}

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

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--light);
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 0.2rem;
    font-size: 1rem;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--accent);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox input {
    width: auto;
    margin: 0;
}

.forgot-password {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password:hover {
    text-decoration: underline;
}

.form-actions {
    margin-top: 2rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.btn-submit:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.demo-credentials {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.demo-credentials h4 {
    color: var(--info);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.credential-item {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.credential-item strong {
    color: var(--accent);
}

.demo-btn {
    width: 100%;
    padding: 0.7rem;
    background: transparent;
    border: 1px solid var(--info);
    color: var(--info);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.demo-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.form-footer a:hover {
    text-decoration: underline;
}

/* === DASHBOARD === */
.dashboard-container {
    animation: fadeIn 0.5s ease;
}

.dashboard-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    border: 2px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.user-info h1 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.user-info h1 span {
    color: var(--accent);
}

.user-info p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.free {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.premium {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.user-email {
    font-size: 0.85rem;
    opacity: 0.8;
}

.logout-btn {
    padding: 0.7rem 1.2rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

/* ===== BARRA LATERAL FIJA MEJORADA ===== */
.dashboard-content {
    display: flex;
    gap: 1.5rem;
    min-height: 600px;
    position: relative;
}

/* Sidebar para escritorio - MEJORADO Y MÁS COMPACTO */
.dashboard-sidebar {
    flex: 0 0 220px; /* Ancho fijo más estrecho */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    animation: slideInLeft 0.3s ease;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /* Espacio más compacto */
}

.sidebar-link {
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--light);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    transform: translateX(5px);
}

.sidebar-link.active {
    background: rgba(255, 215, 0, 0.12);
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

.sidebar-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.sidebar-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gestor-notification {
    margin-top: 1.5rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(83, 52, 131, 0.2));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--border-radius);
    text-align: center;
}

.gestor-badge {
    background: var(--accent);
    color: var(--dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.gestor-notification p {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Contenido principal */
.dashboard-main {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 600px;
    overflow: hidden;
}

.dashboard-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.dashboard-section.active {
    display: block;
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* ===== ESTADÍSTICAS OPTIMIZADAS - CUADROS MÁS COMPACTOS ===== */
.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card-compact {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 100px;
}

.stat-card-compact:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
}

.stat-icon-compact {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
}

.stat-content-compact h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value-compact {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.stat-subtext-compact {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 1.5rem;
}

.quick-actions h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.action-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.action-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
}

.action-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.action-content p {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.empty-state p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    color: var(--dark);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* Upgrade Options */
.upgrade-options {
    margin-top: 1.5rem;
}

.upgrade-options h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.upgrade-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.upgrade-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition);
}

.upgrade-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.upgrade-icon {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0 auto 0.8rem;
}

.upgrade-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upgrade-card p {
    opacity: 0.8;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.btn-upgrade {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-upgrade:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

/* Billing */
.payment-methods {
    margin-top: 1.5rem;
}

.payment-methods h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-methods-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0.8rem;
}

.payment-method:last-child {
    border-bottom: none;
}

.payment-method.empty {
    background: rgba(255, 255, 255, 0.02);
}

.payment-icon {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
    flex-shrink: 0;
}

.payment-content {
    flex: 1;
}

.payment-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.payment-content p {
    font-size: 0.8rem;
    opacity: 0.7;
}

.btn-add-payment {
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-add-payment:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.settings-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-card.danger {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.settings-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-header i {
    font-size: 1.3rem;
    color: var(--accent);
}

.settings-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.settings-card.danger .settings-header i {
    color: var(--danger);
}

.settings-card form {
    margin-bottom: 1.2rem;
}

.btn-save {
    width: 100%;
    padding: 0.7rem;
    background: var(--accent);
    color: var(--dark);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-save:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.notifications-settings {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.btn-danger {
    padding: 0.7rem;
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-2px);
}

.danger-note {
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: center;
    margin-top: 0.8rem;
}

/* === FOOTER === */
footer {
    background: transparent;
    color: var(--light);
    padding: 0.3rem 0 0.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.footer-mobile {
    display: block;
    width: 100%;
    padding: 0.3rem 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.1rem 0;
}

.footer-logo {
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    -webkit-touch-callout: none !important;
    user-select: none !important;
    outline: none !important;
    all: unset;
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    cursor: pointer !important;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.4, 1) !important;
    margin-bottom: 0.1rem;
}

.footer-logo .logo-img {
    height: 32px;
    width: auto;
    transition: filter 0.2s ease;
    pointer-events: none;
}

.footer-logo h3 {
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-tagline {
    opacity: 0.8;
    line-height: 1.3;
    font-size: 0.8rem;
    max-width: 300px;
    margin: 0.1rem 0;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--light);
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.4, 1),
                background 0.2s ease,
                color 0.2s ease;
    -webkit-touch-callout: none;
    user-select: none;
    outline: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.2rem;
}

/* === SOCIAL NOTIFICATION === */
.social-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: var(--light);
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--accent);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s ease;
    max-width: 90%;
    width: 350px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-notification.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.notification-content i {
    color: var(--accent);
    font-size: 1.2rem;
}

.notification-content p {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    /* Navbar mobile */
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease;
        z-index: 1000;
        padding: 80px 20px 20px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Account container */
    .account-container {
        padding: 90px 0 40px;
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Dashboard mobile */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .user-welcome {
        flex-direction: row;
        width: 100%;
        gap: 1rem;
    }
    
    .user-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .user-info h1 {
        font-size: 1.3rem;
    }
    
    .user-info p {
        font-size: 0.85rem;
    }
    
    .logout-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    /* ===== BARRA LATERAL EN MÓVIL ===== */
    .dashboard-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-sidebar {
        flex: none;
        position: static;
        width: 100%;
        margin-bottom: 0;
        padding: 1rem;
        top: auto;
        max-height: none;
    }
    
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar-link {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar-link:hover {
        transform: translateY(-2px);
    }
    
    .sidebar-link.active {
        border-left: none;
        border-color: var(--accent);
    }
    
    .sidebar-text {
        display: inline;
    }
    
    .gestor-notification {
        margin-top: 1rem;
        padding: 0.7rem;
    }
    
    .dashboard-main {
        padding: 1.2rem;
    }
    
    /* Estadísticas en móvil */
    .stats-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .stat-card-compact {
        padding: 1rem;
        min-height: 90px;
    }
    
    .stat-icon-compact {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .stat-value-compact {
        font-size: 1.3rem;
    }
    
    .stat-content-compact h3 {
        font-size: 0.8rem;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .action-card {
        padding: 1rem;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .upgrade-cards {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 480px) {
    .stats-grid-compact {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-tab {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .demo-credentials {
        padding: 0.8rem;
    }
    
    .credential-item {
        font-size: 0.8rem;
    }
    
    .sidebar-nav {
        gap: 0.3rem;
    }
    
    .sidebar-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .sidebar-link i {
        font-size: 0.9rem;
    }
}

/* Pantallas muy grandes */
@media (min-width: 1200px) {
    .dashboard-sidebar {
        flex: 0 0 240px;
    }
    
    .dashboard-main {
        padding: 1.8rem;
    }
}
