:root {
    --bg-main: #0B0F19;
    --bg-card: rgba(21, 30, 46, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --accent-primary: #6366F1;
    --accent-primary-hover: #4F46E5;
    --success: #10B981;
    --danger: #F43F5E;
    --warning: #F59E0B;
    --accent-credits: #8B5CF6;
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body { font-family: var(--font-sans); background-color: var(--bg-main); color: var(--text-primary); min-height: 100vh; background-image: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 25%), radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.05) 0%, transparent 25%); }

.app-container { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: #0b0f19; border-right: 1px solid var(--border-color); padding: 2rem 1.5rem; display: flex; flex-direction: column; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: 3rem; }
.logo i { color: var(--success); }
.nav-menu { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-radius: 0.5rem; color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: all 0.2s; }
.nav-item:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.03); }
.nav-item.active { color: var(--accent-primary); background: rgba(99, 102, 241, 0.1); }
.security-badge { margin-top: auto; display: flex; align-items: center; gap: 1rem; padding: 1rem; background: rgba(16, 185, 129, 0.05); border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 0.75rem; }
.security-badge i { color: var(--success); font-size: 1.5rem; }
.badge-title { display: block; font-size: 0.875rem; font-weight: 600; color: var(--success); }
.badge-desc { display: block; font-size: 0.75rem; color: var(--text-secondary); }

.main-content { flex: 1; padding: 2.5rem; max-width: 1200px; margin: 0 auto; }
.top-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.top-header h1 { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; }
.subtitle { color: var(--text-secondary); }
.user-profile img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--border-color); }
.dashboard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
.right-column { display: flex; flex-direction: column; gap: 2rem; }

.card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 1rem; padding: 1.5rem; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.card-header h2 { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.badge { padding: 0.25rem 0.75rem; border-radius: 1rem; font-size: 0.75rem; font-weight: 600; }
.badge.positive { background: rgba(16, 185, 129, 0.1); color: var(--success); }

.summary-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.stat-box { background: rgba(0, 0, 0, 0.2); padding: 1.25rem; border-radius: 0.75rem; border: 1px solid var(--border-color); }
.stat-box.highlight { background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.02) 100%); border-color: rgba(16, 185, 129, 0.3); }
.stat-label { display: block; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.stat-value { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 700; }
.stat-box.highlight .stat-value { color: var(--success); }
.chart-container { height: 300px; width: 100%; }

.text-emerald { color: var(--success); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.section-desc { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 1.5rem; }
.opportunity-card { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-color); border-radius: 0.75rem; margin-bottom: 1rem; transition: transform 0.2s; }
.opportunity-card:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, 0.5); }
.opp-icon { width: 48px; height: 48px; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.opp-icon.electricity { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.opp-icon.internet { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.opp-info { flex: 1; }
.opp-info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.opp-info p { font-size: 0.75rem; color: var(--text-secondary); }
.opp-action { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.potential-save { color: var(--success); font-weight: 600; font-size: 0.875rem; }

.btn { padding: 0.5rem 1rem; border-radius: 0.5rem; border: none; font-weight: 600; cursor: pointer; font-family: var(--font-sans); transition: all 0.2s; }
.btn-primary { background: var(--accent-primary); color: white; }
.btn-primary:hover { background: var(--accent-primary-hover); }
.btn-sm { font-size: 0.75rem; padding: 0.4rem 0.75rem; }
.btn-full { width: 100%; padding: 0.75rem; margin-top: 1rem; }

.sub-count { color: var(--text-secondary); font-size: 0.875rem; }
.subs-list { display: flex; flex-direction: column; gap: 0.75rem; }
.sub-item { display: flex; align-items: center; padding: 1rem; background: rgba(0, 0, 0, 0.2); border-radius: 0.75rem; border: 1px solid var(--border-color); transition: all 0.3s; }
.sub-item.warning { border-color: rgba(244, 63, 94, 0.3); background: linear-gradient(90deg, rgba(244, 63, 94, 0.05) 0%, transparent 100%); }
.sub-item.turned-off { opacity: 0.5; filter: grayscale(1); transform: scale(0.98); }
.sub-logo { width: 40px; height: 40px; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-right: 1rem; color: white; }
.sub-logo.netflix { background: #E50914; }
.sub-logo.spotify { background: #1DB954; }
.sub-logo.gym { background: #F59E0B; }
.sub-logo.amazon { background: #146EB4; }
.sub-details { flex: 1; }
.sub-details h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.sub-date { font-size: 0.75rem; color: var(--text-secondary); }
.text-warning { color: var(--danger); }
.sub-price { font-weight: 600; margin-right: 1.5rem; font-family: var(--font-heading); }
.btn-apagar { background: transparent; border: 1px solid var(--danger); color: var(--danger); padding: 0.4rem 0.75rem; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 0.3rem; }
.btn-apagar:hover, .btn-apagar.alert-mode { background: var(--danger); color: white; }
.btn-apagar.turned-off { background: var(--text-secondary); border-color: var(--text-secondary); color: white; }

/* Modal Styles */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 5000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding-top: 50px;
    padding-bottom: 50px;
}

.modal-content { 
    background: linear-gradient(180deg, #111827 0%, #0B0F19 100%);
    margin: 3% auto; 
    padding: 2.5rem; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 1.5rem; 
    width: 90%; 
    max-width: 700px; 
    position: relative; 
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
    padding-bottom: 5rem;
}

.close-modal { 
    position: absolute;
    right: 20px;
    top: 20px;
    color: #fff; 
    font-size: 30px; 
    font-weight: bold;
    cursor: pointer; 
    z-index: 5001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    transition: all 0.2s;
}

.close-modal:hover { color: white; }

.modal h2 { 
    font-family: var(--font-heading); 
    font-size: 1.75rem;
    margin-bottom: 2rem; 
    text-align: center;
    background: linear-gradient(90deg, #fff, #9CA3AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.comparison-table { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1.5rem; 
    margin-bottom: 2rem; 
}

.col-vodafone, .col-o2 { 
    padding: 1.75rem; 
    border-radius: 1.25rem; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    background: rgba(255, 255, 255, 0.02);
}

.col-o2 { 
    border-color: rgba(16, 185, 129, 0.4); 
    background: rgba(16, 185, 129, 0.05); 
    position: relative;
    overflow: hidden;
}

.col-o2::before {
    content: 'RECOMENDADO';
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--success);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 3rem;
    transform: rotate(45deg);
}

.comparison-table h3 { 
    font-size: 0.9rem; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem; 
    text-align: center; 
}

.comparison-table ul { list-style: none; }

.comparison-table li { 
    margin-bottom: 1rem; 
    font-size: 0.95rem; 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
}

.comparison-table .price { 
    font-size: 1.75rem; 
    font-weight: 800; 
    margin-top: 1.5rem; 
    text-align: center; 
    font-family: var(--font-heading);
}

.annual-savings { 
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), rgba(99, 102, 241, 0.1)); 
    border: 1px solid rgba(16, 185, 129, 0.3); 
    border-radius: 1rem; 
    padding: 1.25rem; 
    text-align: center; 
    margin-bottom: 2rem; 
    display: flex; 
    justify-content: center;
    align-items: center; 
    gap: 0.75rem; 
}

.annual-savings i { font-size: 1.5rem; color: var(--success); }
.annual-savings span { font-size: 1.25rem; font-weight: 700; color: #fff; }

.contract-form { 
    background: rgba(0, 0, 0, 0.2); 
    padding: 1.75rem; 
    border-radius: 1.25rem; 
    border: 1px solid var(--border-color); 
}

.contract-form h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.contract-form p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.25rem; }

.contract-form form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.contract-form input { 
    width: 100%; 
    padding: 0.85rem 1rem; 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 0.75rem; 
    color: white; 
    font-family: var(--font-sans); 
    transition: all 0.2s;
}

.contract-form input:focus { 
    outline: none; 
    border-color: var(--accent-primary); 
    background: rgba(255, 255, 255, 0.05);
}

.contract-form .btn-full {
    grid-column: span 2;
    margin-top: 0.5rem;
}

/* Success View */
.success-view {
    text-align: center;
    padding: 2rem 1rem;
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4));
}

.success-view h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #fff;
}

.success-view p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.success-view .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Alert System Styles */
.alert-system-section {
    margin-bottom: 2rem;
}

.alert-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.alert-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: all 0.2s;
}

.alert-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.alert-info {
    flex: 1;
}

.alert-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.alert-top strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.days-left {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
}

.alert-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Traffic Light (Semáforo) Styles */
.traffic-red {
    border-left: 5px solid #EF4444 !important;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, transparent 100%) !important;
}
.traffic-red .alert-icon { background: rgba(239, 68, 68, 0.2); color: #EF4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
.traffic-red .days-left { background: #EF4444; color: white; }
.traffic-red .traffic-text { color: #EF4444; font-weight: 600; font-size: 0.8rem; margin-top: 0.25rem; }

.traffic-yellow {
    border-left: 5px solid #F59E0B !important;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, transparent 100%) !important;
}
.traffic-yellow .alert-icon { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }
.traffic-yellow .days-left { background: #F59E0B; color: white; }
.traffic-yellow span { color: #F59E0B; font-weight: 500; }

.traffic-green {
    border-left: 5px solid #10B981 !important;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%) !important;
}
.traffic-green .alert-icon { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.traffic-green .days-left { background: #10B981; color: white; }
.traffic-green span { color: #10B981; font-weight: 500; }

.traffic-text {
    margin-bottom: 0.75rem;
}

.btn-xs {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.alert-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-legal {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-legal:hover {
    background: var(--accent-primary);
    color: white;
}

/* Letter Modal Styles */
.letter-modal {
    max-width: 600px;
}

.letter-document {
    background: white;
    color: #333;
    padding: 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    margin-bottom: 2rem;
    font-family: 'Inter', serif;
    position: relative;
    overflow: hidden;
}

.letter-document::before {
    content: 'CERTIFICADO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 5rem;
    color: rgba(0,0,0,0.03);
    font-weight: 900;
    pointer-events: none;
}

.letter-header {
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.letter-body p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #444;
}

.letter-signature {
    margin-top: 3rem;
}

.signature-display {
    margin-top: 1rem;
    height: 80px;
    border-bottom: 1px solid #333;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
    font-size: 0.8rem;
}

.letter-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.7rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.letter-footer i {
    color: var(--success);
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.auto-cancel-toggle {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.toggle-text {
    display: flex;
    flex-direction: column;
}

.toggle-text strong {
    font-size: 0.85rem;
    color: var(--success);
}

.toggle-text span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.toggle-container input {
    width: 20px;
    height: 20px;
    accent-color: var(--success);
}

.legal-badge-success {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 1rem;
}

.clickable-stat {
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.clickable-stat:hover {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-2px);
}

/* Breakdown Modal Styles */
.breakdown-modal {
    max-width: 450px;
}

.breakdown-list {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
}

.item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.item-icon.energy { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.item-icon.fiber { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.item-icon.insurance-icon { background: rgba(99, 102, 241, 0.1); color: #6366F1; }

.item-info {
    flex: 1;
}

.item-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.item-info span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.item-value {
    font-weight: 700;
    color: var(--success);
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem;
    border-top: 2px solid var(--border-color);
    margin-top: 0.5rem;
}

.breakdown-total span {
    font-size: 1rem;
    font-weight: 600;
}

.breakdown-total strong {
    font-size: 1.5rem;
    color: var(--success);
    font-family: var(--font-heading);
}

/* Impact Header (Now scrolls with content) */
.mobile-sticky-header {
    position: relative; /* Changed from sticky to relative */
    z-index: 10;
    background: transparent; /* Uniform background */
    padding: 1.5rem 0; /* Cleaned padding */
    margin: 0 0 2rem 0; 
    border-bottom: 1px solid var(--border-color);
    /* Removed backdrop-filter and box-shadow for clean scroll */
}

/* Flexible Payment Styles */
.flexible-payment-module {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    animation: fadeIn 0.4s ease;
}

.flexible-payment-module h3 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bnpl-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.bnpl-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.bnpl-card:hover { border-color: var(--accent-primary); background: rgba(99, 102, 241, 0.05); }
.bnpl-card.active { border-color: var(--accent-primary); background: rgba(99, 102, 241, 0.1); box-shadow: 0 0 15px rgba(99, 102, 241, 0.2); }

.bnpl-logo { width: 60px; height: 24px; object-fit: contain; filter: grayscale(0.5); transition: 0.2s; }
.bnpl-card:hover .bnpl-logo, .bnpl-card.active .bnpl-logo { filter: grayscale(0); }
.bnpl-logo-text { display: inline-block; width: 60px; font-size: 0.8rem; font-weight: 700; color: var(--text-primary); text-align: center; }

.bnpl-info { flex: 1; }
.bnpl-info strong { display: block; font-size: 0.85rem; color: #fff; }
.bnpl-info span { font-size: 0.75rem; color: var(--text-secondary); }

.net-save-highlight {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border: 1px solid var(--success);
    color: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: pulse 2s infinite;
}

.net-save-highlight i { color: var(--success); font-size: 1.2rem; }

.compact-impact {
    margin-bottom: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.compact-impact .stat-box {
    padding: 0.75rem;
}

.compact-impact .stat-value {
    font-size: 1.25rem;
}

/* Collapsible Alerts */
.other-alerts {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.other-alerts summary {
    list-style: none;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapsible-content {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alert-item.mini {
    padding: 0.75rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Quick Scan Bar */
.quick-scan-bar {
    background: linear-gradient(90deg, var(--accent-primary), #4F46E5);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
}

.quick-scan-bar i:last-child {
    margin-left: auto;
    font-size: 1.25rem;
}

/* Reorganized Categories & Items */
.mini-cats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.mini-cats .ins-cat {
    padding: 1rem;
}

.sub-item.mini {
    padding: 0.75rem;
}

.icon-only {
    padding: 0.5rem !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

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

/* REPORTS SECTION STYLES */
.reports-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

.report-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-family: var(--font-sans);
    outline: none;
}

.annual-counter-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 2rem;
    border-radius: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.annual-counter-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.annual-counter-box .label {
    display: block;
    font-size: 0.875rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.annual-counter-box strong {
    display: block;
    font-size: 3rem;
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.annual-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-credits));
    box-shadow: 0 0 10px var(--accent-primary);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.monthly-total-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.monthly-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.report-status-badge {
    font-size: 0.65rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.monthly-total-box strong {
    display: block;
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.breakdown-list-detailed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.breakdown-row:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.04);
}

.cat-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.cat-info-flex {
    flex: 1;
}

.cat-name-main {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.cat-percentage-bar-mini {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 0.4rem;
    width: 100%;
}

.cat-bar-fill {
    height: 100%;
    border-radius: 2px;
}

.cat-values-right {
    text-align: right;
}

.cat-amount-val {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
}

.cat-percent-val {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
}

/* FILTER CHIPS STYLES */
.filter-chips-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.filter-chips-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.filter-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.filter-chip.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Document Item Transitions */
.contract-card, .factura-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.document-hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute; /* Take out of flow to prevent gaps */
    visibility: hidden;
}

@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem;
        gap: 0; /* Tight margins */
    }

    .card {
        margin-bottom: 1rem;
    }

    .stat-box.highlight {
        border-color: var(--success);
        background: rgba(16, 185, 129, 0.1);
    }
}

/* Insurance Module Styles */
.insurance-section {
    margin-bottom: 2rem;
}

.insurance-categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.ins-cat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.ins-cat:hover, .ins-cat.active {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-3px);
}

.ins-cat i {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.ins-cat:hover i, .ins-cat.active i {
    color: var(--accent-primary);
}

.ins-cat span {
    font-size: 0.85rem;
    font-weight: 600;
}

.ins-upload {
    padding: 2rem;
    margin-bottom: 1rem;
}

.ins-comparison {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

.insurance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ins-col {
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.ins-col.new {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.ins-col h3 {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
}

.ins-feature {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.ins-price {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    font-family: var(--font-heading);
}

.ai-risk-note {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin-bottom: 1.5rem;
}

.ai-risk-note i {
    color: var(--accent-primary);
    font-size: 1.25rem;
    margin-top: 0.2rem;
}

.ai-risk-note p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Upload / OCR Module */
.upload-section {
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, rgba(21, 30, 46, 0.8) 0%, rgba(11, 15, 25, 0.8) 100%);
}

.upload-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.upload-zone p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.upload-zone span {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: underline;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hidden { display: none; }

.analysis-result {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.5s ease-out;
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

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

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.res-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.res-value {
    font-weight: 600;
    color: var(--text-primary);
}

.res-concepts-list {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.concept-item {
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* Progress Bar */
.progress-container {
    margin-top: 1.5rem;
    text-align: center;
}

.progress-container p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-style: italic;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--success));
    transition: width 0.1s ease;
}

/* Savings Alert */
.savings-alert {
    margin-top: 1.5rem;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    animation: bounceIn 0.6s ease;
}

.savings-alert:hover {
    transform: translateY(-2px);
    border-color: var(--success);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-content i {
    font-size: 1.25rem;
    color: var(--success);
}

.alert-content p {
    font-size: 0.95rem;
}

.alert-content p span {
    display: block;
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.25rem;
    text-decoration: underline;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Energy Modal Specifics */
.energy-modal {
    max-width: 600px;
}

.energy-comparison-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.energy-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
}

.comparison-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.comparison-row {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.row-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    text-align: center;
}

.kwh-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.kwh-box {
    text-align: center;
}

.kwh-box span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.kwh-box strong {
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

.kwh-box.new strong {
    color: var(--success);
}

.kwh-arrow {
    font-size: 1rem;
    color: var(--text-secondary);
}

.energy-save-highlight {
    background: rgba(16, 185, 129, 0.1);
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.energy-save-highlight i {
    color: var(--success);
    font-size: 1.25rem;
}

.energy-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Steps for Energy Modal */
.cups-container {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0 2rem;
}

.signature-pad {
    background: #fff;
    border-radius: 0.75rem;
    height: 150px;
    margin: 1rem 0 2rem;
    position: relative;
}

.signature-pad canvas {
    width: 100%;
    height: 100%;
}

.signature-pad p {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.75rem;
    pointer-events: none;
}

.step-input h3, .step-signature h3, .step-payment h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Payment Step Styles */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
}

.payment-option-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option-card:has(input:checked) {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.payment-option-card input[type="radio"] {
    accent-color: var(--accent-primary);
    width: 18px;
    height: 18px;
}

.opt-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.opt-content i {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.opt-content div {
    display: flex;
    flex-direction: column;
}

.opt-content strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.opt-content span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

#ibanInput {
    margin-top: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 0.4rem;
    color: white;
    font-family: monospace;
    width: 100%;
}

#ibanInput:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.security-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.security-info i {
    color: var(--success);
    font-size: 0.9rem;
}

.security-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0 !important;
}

/* Loader for Energy */
.energy-loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(16, 185, 129, 0.1);
    border-top-color: var(--success);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin: 3rem auto 1.5rem;
}

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

/* Onboarding Styles */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.onboarding-overlay.hidden {
    transform: translateY(-100%);
}

.onboarding-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.onboarding-slides {
    position: relative;
    height: 500px;
}

.onboarding-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.onboarding-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.onboarding-image {
    width: 280px;
    height: 280px;
    margin-bottom: 3rem;
    position: relative;
}

.onboarding-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

.onboarding-slide h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.onboarding-slide p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.onboarding-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
}

.onboarding-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-primary);
    width: 24px;
    border-radius: 4px;
}

.btn-skip {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-skip:hover {
    color: white;
}

.btn-next-slide {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-next-slide:hover {
    transform: scale(1.1);
    background: var(--accent-primary-hover);
}

.btn-huge {
    padding: 1.25rem;
    font-size: 1.2rem;
    border-radius: 1rem;
    margin-top: 1rem;
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

/* Smart Card Dinámica Styles */
.smart-discoveries-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.smart-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(21, 30, 46, 0.8) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 1.25rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    animation: slideInLeft 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.smart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-primary);
}

.smart-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.smart-badge {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.smart-title {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.smart-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
}

.smart-analysis {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.smart-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.smart-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.smart-value.recommended {
    color: var(--success);
}

.smart-actions {
    display: flex;
    gap: 0.75rem;
}

/* Category Variations */
.smart-card.alarma { border-color: rgba(244, 63, 94, 0.4); }
.smart-card.alarma::before { background: #F43F5E; }
.smart-card.alarma .smart-badge { background: rgba(244, 63, 94, 0.1); color: #F43F5E; }

.smart-card.club { border-color: rgba(16, 185, 129, 0.4); }
.smart-card.club::before { background: #10B981; }
.smart-card.club .smart-badge { background: rgba(16, 185, 129, 0.1); color: #10B981; }

.smart-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
}
/* Scanner & Interactive Styles */
.scanner-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    background: rgba(0,0,0,0.2);
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}
.scanner-dropzone:hover { border-color: var(--accent-primary); background: rgba(99, 102, 241, 0.05); }
.scanner-dropzone i { font-size: 2.5rem; color: var(--accent-primary); margin-bottom: 1rem; display: block; }

.scanner-progress { margin-bottom: 1.5rem; }
.progress-container { background: rgba(255,255,255,0.05); height: 8px; border-radius: 4px; overflow: hidden; margin-top: 1rem; }
.progress-bar { height: 100%; background: var(--accent-primary); width: 0%; transition: width 0.3s; }

.savings-alert {
    background: linear-gradient(90deg, var(--success), #059669);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.analysis-card { margin-bottom: 1.5rem; }
.analysis-header { display: flex; align-items: center; gap: 0.75rem; color: var(--success); margin-bottom: 1rem; }
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.analysis-item { background: rgba(0,0,0,0.2); padding: 0.75rem; border-radius: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.analysis-item span { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; }

/* Improved Upload UI */
.upload-help-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.4;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.05);
    color: var(--success);
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-top: 1.25rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.file-preview {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    animation: fadeIn 0.3s ease;
}

.preview-thumbnail {
    width: 80px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-thumbnail i {
    font-size: 2.5rem;
    color: var(--accent-primary);
}

.preview-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-info {
    text-align: center;
}

#previewName {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-actions {
    display: flex;
    gap: 0.75rem;
}

.ins-upload {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    background: rgba(255,255,255,0.02);
    margin-top: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.ins-upload:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.ins-upload i { font-size: 2.5rem; color: var(--accent-primary); margin-bottom: 1rem; display: block; }

/* Protocolo de Transparencia Universal Styles */
.transparency-box {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: block !important;
}

.mirror-guarantee {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.mirror-guarantee.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.no-surprises-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

.no-surprises-card h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.no-surprises-card h4 i { color: var(--accent-primary); }

.surprise-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.surprise-item:last-child { border-bottom: none; }

.surprise-item span { color: var(--text-secondary); }
.surprise-item strong { color: var(--text-primary); }

.quality-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.stars { color: #F59E0B; }

.improvement-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
}

.improvement-tag i { color: #F59E0B; }

.hidden { display: none !important; }

/* Section Management */
.app-page {
    display: none;
}

.app-page.active {
    display: block;
}

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

/* Mis Facturas Styles */
.facturas-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.factura-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: all 0.2s;
}

/* Facturas & Contracts Reorganization */
.facturas-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
}

.fact-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 0.85rem;
    transition: all 0.3s;
    position: relative;
}

.fact-tab.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.tab-badge {
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 1rem;
    min-width: 18px;
}

.contract-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.contract-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contract-icon.electricity { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.contract-icon.fiber { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }

.contract-info { flex: 1; }
.contract-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }
.contract-info span { font-size: 0.8rem; color: var(--text-secondary); }

.contract-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.contract-badge.vigente { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.contract-badge.optimizado { background: rgba(99, 102, 241, 0.1); color: var(--accent-primary); }
.contract-badge.sustituido { background: rgba(244, 63, 94, 0.1); color: var(--danger); opacity: 0.7; }

/* Offer Cards in Facturas Section */
.offers-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.offer-card {
    background: rgba(99, 102, 241, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s;
}

.offer-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.offer-header {
    background: rgba(99, 102, 241, 0.08);
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.offer-link-tag {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.offer-save-tag {
    background: var(--success);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.2rem 0.75rem;
    border-radius: 2rem;
}

.offer-body {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offer-main { display: flex; align-items: center; gap: 1rem; }

.offer-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
}

.offer-logo.energy { background: #F59E0B; }
.offer-logo.insurance { background: #6366F1; }

.offer-details h3 { font-size: 1rem; margin-bottom: 0.1rem; }
.offer-details p { font-size: 0.8rem; color: var(--text-secondary); }

.fact-tab-content.hidden { display: none; }

/* Notification System - Dual (Push & Email) */
#notificationContainer {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 90%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.push-notification {
    background: rgba(11, 15, 25, 0.9);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    cursor: pointer;
}

.push-notification.out {
    animation: slideUp 0.4s ease forwards;
}

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

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

.notif-icon {
    width: 45px;
    height: 45px;
    background: var(--accent-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.notif-content { flex: 1; }
.notif-content strong { display: block; font-size: 0.95rem; margin-bottom: 0.25rem; color: white; }
.notif-content p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; margin: 0; }

.notif-email-feedback {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    margin-top: 0.75rem;
    text-transform: uppercase;
}

.notif-email-feedback i { font-size: 0.8rem; }

/* Success Screen Details */
.success-details {
    margin: 1.5rem 0;
    text-align: center;
}

.next-steps-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
    text-align: left;
}

.next-steps-box strong {
    display: block;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.next-steps-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Permanence & Reservation Styles */
.permanence-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.permanence-warning i {
    color: var(--warning);
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.permanence-warning strong {
    display: block;
    font-size: 0.85rem;
    color: var(--warning);
    margin-bottom: 0.2rem;
}

.permanence-warning p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.btn-reserve {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Signature Pad Premium Styles */
.signature-area {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.signature-pad {
    width: 100%;
    height: 180px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    position: relative;
    cursor: crosshair;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.signature-pad canvas {
    width: 100%;
    height: 100%;
    touch-action: none; /* Prevents scrolling while signing */
}

.signature-pad p {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #94a3b8;
    pointer-events: none;
    font-style: italic;
}

.btn-clear-sig {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem;
    transition: all 0.2s;
}

.btn-clear-sig:hover {
    color: var(--danger);
}

.permanence-tag-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

/* DNI Verification Styles */
.dni-verification-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    margin-bottom: 1.25rem;
}

.dni-verification-card i {
    font-size: 2rem;
    color: var(--text-secondary);
}

.dni-info {
    flex: 1;
}

.dni-info strong {
    display: block;
    font-size: 0.9rem;
    color: #fff;
}

.dni-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    text-transform: uppercase;
}

.status-tag.pending {
    background: rgba(244, 63, 94, 0.1);
    color: var(--danger);
}

.status-tag.verified {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.dni-upload-actions {
    margin-top: 0.5rem;
}

/* Alertas Reservadas Styles */
.reservas-container {
    margin-top: 2rem;
}

.empty-reservas-card {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.01);
}

.empty-reservas-card i {
    font-size: 4rem;
    color: var(--text-secondary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-reservas-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.empty-reservas-card p {
    color: var(--text-secondary);
    max-width: 300px;
    margin-bottom: 1.5rem;
}

.reserva-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.reserva-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.reserva-date-box {
    width: 60px;
    height: 60px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #F59E0B;
}

.reserva-date-box .day { font-weight: 800; font-size: 1.2rem; }
.reserva-date-box .month { font-size: 0.65rem; text-transform: uppercase; font-weight: 700; }

.reserva-info { flex: 1; }
.reserva-info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.reserva-info p { font-size: 0.8rem; color: var(--text-secondary); }

.reserva-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.notif-icon {
    width: 45px;
    height: 45px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.fact-info { flex: 1; }
.fact-info strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.fact-info span { font-size: 0.8rem; color: var(--text-secondary); }

.fact-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    text-transform: uppercase;
}
.fact-status.success { background: rgba(16, 185, 129, 0.1); color: var(--success); }

.fact-save {
    font-weight: 700;
    color: var(--success);
    font-size: 0.9rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}
.btn-icon:hover { color: white; }

/* Oportunidades Detailed Styles */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.opp-detailed-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.opp-detailed-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.opp-detailed-header i {
    font-size: 1.75rem;
}

.opp-detailed-header.energy { color: var(--warning); }
.opp-detailed-header.fiber { color: #3B82F6; }
.opp-detailed-header.insurance { color: var(--accent-primary); }

.opp-highlight {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.75rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Configuración Styles */
.config-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (min-width: 1024px) {
    .config-grid { grid-template-columns: 1fr 1fr; }
}

.config-card h3 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.config-user {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.config-user img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.user-info { flex: 1; }
.user-info strong { display: block; font-size: 1.1rem; }
.user-info span { font-size: 0.9rem; color: var(--text-secondary); }

.client-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

/* Sin Letra Pequeña - Premium Protocol */
.trap-scanner-area {
    background: rgba(99, 102, 241, 0.05);
    border: 1px dashed var(--accent-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
    animation: scanMove 2s infinite linear;
}

@keyframes scanMove {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.trap-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.trap-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
    border-left: 3px solid var(--danger);
    font-size: 0.85rem;
}

.trap-item.verified {
    border-left-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.trap-item i { font-size: 1rem; }
.trap-item .trap-text { flex: 1; color: var(--text-secondary); }
.trap-item .fix-text { font-weight: 700; color: var(--success); }

.legal-seal-container {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.legal-seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--success);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    justify-content: center;
    text-align: center;
    background: rgba(16, 185, 129, 0.05);
    transform: rotate(-15deg);
    animation: sealPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.legal-seal i { font-size: 1.5rem; color: var(--success); }
.legal-seal span { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; color: var(--success); line-height: 1; }

@keyframes sealPop {
    from { transform: scale(0) rotate(0deg); opacity: 0; }
    to { transform: scale(1) rotate(-15deg); opacity: 1; }
}

.no-surprises-card {
    background: linear-gradient(180deg, rgba(21, 30, 46, 0.8) 0%, rgba(11, 15, 25, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.no-surprises-card h4 {
    color: var(--accent-primary);
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.05em;
}

.detail-item {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child { border-bottom: none; }

.detail-item label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.detail-item strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.bank-account-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.bank-account-card i { font-size: 2rem; color: var(--text-secondary); }
.bank-info { flex: 1; }
.bank-status { font-size: 0.7rem; font-weight: 700; color: var(--success); background: rgba(16, 185, 129, 0.1); padding: 0.2rem 0.5rem; border-radius: 4px; }

.toggle-list { display: flex; flex-direction: column; gap: 1rem; }
.toggle-item { display: flex; justify-content: space-between; align-items: center; }

/* Custom Switch Toggle */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); transition: .4s; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: var(--accent-primary); }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }

/* Credits Section Styles */
.opp-detailed-header.credits {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-credits);
}

.credit-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.c-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.c-stat span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.c-stat strong {
    font-size: 1rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.opp-highlight.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.opp-highlight.danger {
    background: rgba(244, 63, 94, 0.1);
    color: var(--danger);
    border-color: rgba(244, 63, 94, 0.3);
}

.credit-card-premium {
    transition: all 0.3s ease;
}

.credit-card-premium:hover {
    border-color: var(--accent-credits);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

/* WOW SUCCESS SCREEN STYLES */
.success-wow-container {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.success-icon-animated {
    font-size: 5rem;
    color: var(--success);
    position: relative;
    animation: success-bounce 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon-animated i {
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.4));
}

.animate-pop {
    animation: pop-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    margin-top: 0.5rem;
}

.success-savings-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.2) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 1.5rem 3rem;
    border-radius: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slide-up-fade 0.8s ease-out 0.3s both;
}

.success-savings-card .save-label {
    display: block;
    font-size: 0.875rem;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.success-savings-card strong {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: white;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.success-email-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    animation: slide-up-fade 0.8s ease-out 0.5s both;
}

.success-email-status i {
    color: var(--accent-primary);
}

.success-actions {
    width: 100%;
    margin-top: 1rem;
    animation: slide-up-fade 0.8s ease-out 0.7s both;
}

/* Success Animations */
@keyframes success-bounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pop-in {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-up-fade {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* MORTGAGE SUBROGATION STYLES */
.mortgage-modal {
    max-width: 600px !important;
}

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

.mort-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-credits);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.trust-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.trust-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trust-mini-card.highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(139, 92, 246, 0.3);
}

.trust-mini-card i {
    font-size: 1.25rem;
    color: var(--accent-credits);
}

.trust-mini-card strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.trust-mini-card span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.mortgage-study-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.mortgage-study-box h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-check-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.doc-check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.doc-check-list li i {
    color: var(--success);
}

/* Notary Card */
.notary-card {
    background: white;
    color: #1f2937;
    border-radius: 1rem;
    overflow: hidden;
    width: 100%;
    margin: 1.5rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.notary-header {
    background: #f3f4f6;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.notary-header i {
    font-size: 1.5rem;
    color: #4f46e5;
}

.notary-header div {
    display: flex;
    flex-direction: column;
}

.notary-header strong {
    font-size: 0.9rem;
}

.notary-header span {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
}

.notary-details {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.n-detail label {
    display: block;
    font-size: 0.65rem;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.n-detail strong {
    font-size: 0.85rem;
}

.notary-footer {
    background: #4f46e5;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Bank Loader */
.bank-loader {
    margin: 2rem auto;
    position: relative;
    width: 80px;
    height: 80px;
}

.bank-icon-pulse {
    width: 100%;
    height: 100%;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-credits);
    animation: bank-pulse 2s infinite;
}

@keyframes bank-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.mortgage-comp {
    margin-bottom: 2rem;
}

.mortgage-transparency {
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mortgage-modal .uni-form {
    background: rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

/* MORTGAGE UPLOAD & TASACION STYLES */
.mort-upload-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mort-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mort-doc-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.doc-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.doc-info strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.doc-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.btn-upload-mini {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-upload-mini:hover {
    background: var(--accent-credits);
    color: white;
    border-color: var(--accent-credits);
}

.renta-exemption {
    padding: 0.5rem 0;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Tasacion Box */
.tasacion-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: left;
}

.tasacion-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tasacion-info i {
    font-size: 2rem;
    color: var(--success);
}

.t-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.t-text strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.t-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.t-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

.savings-congrats {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--success);
}

.next-step-hint {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.next-step-hint i {
    font-size: 1.2rem;
    color: var(--accent-credits);
    margin-top: 0.2rem;
}

.notary-coordination-box {
    background: rgba(var(--accent-credits-rgb), 0.05);
    border: 1px solid rgba(var(--accent-credits-rgb), 0.2);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    text-align: left;
}

.notary-coordination-box i {
    font-size: 1.5rem;
    color: var(--accent-credits);
}

.notary-coordination-box p {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.legal-assurance {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.legal-assurance i {
    color: var(--success);
    font-size: 0.9rem;
}

.legal-assurance span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Floating Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 2000;
}

.btn-float-chat {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366; /* WhatsApp Green */
    color: white;
    border: none;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.btn-float-chat:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--bg-main);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    height: 500px;
    background: rgba(15, 23, 42, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    transform-origin: bottom left;
}

.chat-window.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.chat-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid #075E54;
}

.chat-title h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.chat-title span {
    font-size: 0.7rem;
    opacity: 0.8;
}

.btn-close-chat {
    margin-left: auto;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-close-chat:hover { opacity: 1; }

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-size: cover;
}

.message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    position: relative;
}

.message.assistant {
    align-self: flex-start;
    background: #202c33;
    color: #e9edef;
    border-bottom-left-radius: 0.2rem;
}

.message.user {
    align-self: flex-end;
    background: #005c4b;
    color: #e9edef;
    border-bottom-right-radius: 0.2rem;
}

.chat-input-area {
    padding: 1rem;
    background: #202c33;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

#chatInput {
    flex: 1;
    background: #2a3942;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.85rem;
}

#chatInput:focus { outline: none; }

#btnSendChat {
    background: transparent;
    border: none;
    color: #8696a0;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

#btnSendChat:hover { color: #25D366; }

/* Loan Modal Styles */
.loan-modal {
    max-width: 600px !important;
}

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

.loan-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.profile-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.profile-card i {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.profile-card span {
    font-size: 0.85rem;
    font-weight: 500;
}

.profile-card:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.profile-card.active {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.profile-card.active i {
    color: var(--accent-primary);
}

.security-lock-msg {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.security-lock-msg i {
    color: var(--success);
    font-size: 1.25rem;
}

.security-lock-msg span {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.loan-upload-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.loan-doc-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.loan-doc-item.uploaded {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.loan-doc-item.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.doc-info strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.doc-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.doc-status {
    margin-left: auto;
    margin-right: 1rem;
}

.doc-status i {
    color: var(--success);
    font-size: 1.25rem;
}

.btn-upload-mini {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-upload-mini:hover {
    background: var(--accent-primary-hover);
    transform: scale(1.05);
}

.loan-doc-item.uploaded .btn-upload-mini {
    background: var(--success);
}

.renta-exemption {
    padding: 0.5rem 1rem;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
    color: var(--text-secondary);
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: rgba(255,255,255,0.2);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Transparency & Penalty Styles */
.transparency-protocol-box {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.tp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.tp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tp-list li {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tp-list li i {
    color: var(--success);
    font-size: 0.9rem;
}

.penalty-analysis-card {
    background: linear-gradient(135deg, rgba(21, 30, 46, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid var(--accent-primary);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    animation: paSlideDown 0.4s ease-out;
}

.pa-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.pa-header i {
    animation: paPulse 2s infinite;
}

#paContent p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.penalty-highlight {
    color: var(--danger);
    font-weight: 700;
    font-size: 1.1rem;
}

.mandatory-highlight {
    border: 1.5px solid var(--accent-primary) !important;
    background: rgba(99, 102, 241, 0.05) !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}

@keyframes paPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

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

/* =============================================
   PESTAÑAS DE MI ÁREA PERSONAL (DATOS TABS)
   ============================================= */
.datos-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0,0,0,0.2);
    padding: 0.4rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
}
.datos-tabs::-webkit-scrollbar { display: none; }

.datos-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.datos-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }

.datos-tab.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.datos-tab-panel { display: none; }
.datos-tab-panel.active { display: block; animation: fadeIn 0.25s ease; }

.informes-top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.25rem;
}

/* =============================================
   NAVEGACIÓN MÓVIL INFERIOR
   ============================================= */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.95);
    border-top: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: color 0.2s;
    min-width: 56px;
}

.mobile-nav-item i { font-size: 1.2rem; }

.mobile-nav-item.active,
.mobile-nav-item:hover { color: var(--accent-primary); }

@media (max-width: 768px) {
    .sidebar { display: none; }
    .mobile-nav { display: flex; }
    .main-content { padding: 1rem 1rem 5rem; }
    .datos-tabs { gap: 0.25rem; }
    .datos-tab { padding: 0.5rem 0.75rem; font-size: 0.78rem; }
    .datos-tab i { display: none; }
}

/* =============================================
   MENÚ "MÁS" (BOTTOM SHEET MÓVIL)
   ============================================= */
.mas-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0,0,0,0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    animation: fadeIn 0.2s ease;
}

.mas-menu {
    width: 100%;
    background: linear-gradient(180deg, #1a2235 0%, #0B0F19 100%);
    border-top: 1px solid var(--border-color);
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 0.75rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
    animation: slideUp 0.25s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mas-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 0 auto 1rem;
}

.mas-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.mas-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.mas-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}

.mas-item i { font-size: 1.1rem; }

.mas-item:hover,
.mas-item.active {
    background: rgba(99,102,241,0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
