/* =====================================================
   OrientaVoca - Estilos Completos
   U.E. Micaela Bastidas - Cochabamba, Bolivia
   ===================================================== */

/* === VARIABLES & RESET === */
:root {
    --primary: #1E3A5F;
    --primary-light: #2A5082;
    --primary-dark: #0F2744;
    --secondary: #E8913A;
    --secondary-light: #F0A85C;
    --accent: #27AE60;
    --accent-light: #2ECC71;
    --danger: #E74C3C;
    --warning: #F39C12;
    --info: #3498DB;
    --success: #27AE60;
    --dark: #1A1A2E;
    --gray-900: #212529;
    --gray-700: #495057;
    --gray-500: #6C757D;
    --gray-300: #DEE2E6;
    --gray-100: #F8F9FA;
    --white: #FFFFFF;
    --bg: #F0F2F5;
    --card-bg: #FFFFFF;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Nunito', 'Segoe UI', sans-serif;
    --sidebar-w: 260px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; }

/* === TIPOGRAFÍA === */
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--dark); line-height: 1.3; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 0.5rem; }

/* === UTILIDADES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-white { color: var(--white); }
.fw-bold { font-weight: 700; }
.fw-600 { font-weight: 600; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* === BOTONES === */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 0.9rem; font-weight: 600;
    border: none; cursor: pointer; transition: var(--transition);
    text-align: center; justify-content: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

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

.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--secondary-light); color: var(--white); }

.btn-success { background: var(--accent); color: var(--white); }
.btn-success:hover { background: var(--accent-light); color: var(--white); }

.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #C0392B; color: var(--white); }

.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-ghost { background: transparent; color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); }

.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 50%; }

/* === FORMULARIOS === */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block; margin-bottom: 6px;
    font-weight: 600; font-size: 0.88rem; color: var(--gray-700);
}
.form-control {
    width: 100%; padding: 11px 16px;
    border: 2px solid var(--gray-300); border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 0.95rem;
    transition: var(--transition); background: var(--white);
}
.form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.1);
}
.form-control::placeholder { color: var(--gray-500); }

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23495057'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.form-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.form-check input[type="checkbox"],
.form-check input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

.form-error { color: var(--danger); font-size: 0.82rem; margin-top: 4px; }

/* === CARDS === */
.card {
    background: var(--card-bg); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-header {
    padding: 18px 22px; border-bottom: 1px solid var(--gray-300);
    font-weight: 700; display: flex; align-items: center; justify-content: space-between;
}
.card-body { padding: 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--gray-300); background: var(--gray-100); }

/* === ALERTAS FLASH === */
.alert {
    padding: 14px 20px; border-radius: var(--radius-sm);
    margin-bottom: 1.2rem; display: flex; align-items: center; gap: 10px;
    font-size: 0.9rem; animation: slideDown 0.3s ease;
    position: relative;
}
.alert-success { background: #D4EDDA; color: #155724; border-left: 4px solid var(--success); }
.alert-error { background: #F8D7DA; color: #721C24; border-left: 4px solid var(--danger); }
.alert-warning { background: #FFF3CD; color: #856404; border-left: 4px solid var(--warning); }
.alert-info { background: #D1ECF1; color: #0C5460; border-left: 4px solid var(--info); }
.alert .close-alert {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    cursor: pointer; opacity: 0.6; font-size: 1.2rem; background: none; border: none;
}
.alert .close-alert:hover { opacity: 1; }

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

/* === LAYOUT PRINCIPAL (con sidebar) === */
.app-layout { display: flex; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-w); background: var(--primary-dark);
    color: var(--white); position: fixed; top: 0; left: 0;
    height: 100vh; z-index: 1000; overflow-y: auto;
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.sidebar-header {
    padding: 20px; text-align: center;
    background: rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-header .logo { font-size: 1.5rem; font-weight: 800; color: var(--secondary); }
.sidebar-header .subtitle { font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

.sidebar-nav { flex: 1; padding: 12px 0; }
.sidebar-nav .nav-section {
    padding: 8px 20px 4px; font-size: 0.68rem;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(255,255,255,0.35); font-weight: 700;
}
.sidebar-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 20px; color: rgba(255,255,255,0.75);
    font-size: 0.88rem; font-weight: 500;
    transition: var(--transition); border-left: 3px solid transparent;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.sidebar-nav a.active {
    background: rgba(255,255,255,0.1); color: var(--secondary);
    border-left-color: var(--secondary); font-weight: 700;
}
.sidebar-nav a i { width: 20px; text-align: center; font-size: 1rem; }

.sidebar-footer {
    padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 10px;
    background: rgba(0,0,0,0.1);
}
.sidebar-footer .user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--secondary); display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: 0.85rem;
    flex-shrink: 0; overflow: hidden;
}
.sidebar-footer .user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-footer .user-info { flex: 1; min-width: 0; }
.sidebar-footer .user-name { font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-footer .user-role { font-size: 0.7rem; color: rgba(255,255,255,0.5); }

/* MAIN CONTENT */
.main-content {
    margin-left: var(--sidebar-w); flex: 1;
    display: flex; flex-direction: column;
}

/* TOPBAR */
.topbar {
    background: var(--white); padding: 14px 28px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06); position: sticky;
    top: 0; z-index: 100;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-left h1 { font-size: 1.3rem; color: var(--dark); }

.hamburger {
    display: none; background: none; border: none;
    font-size: 1.4rem; cursor: pointer; color: var(--gray-700);
    padding: 6px;
}

.topbar-right { display: flex; align-items: center; gap: 14px; }

.notif-btn {
    position: relative; background: none; border: none;
    font-size: 1.2rem; color: var(--gray-700); cursor: pointer;
    padding: 6px;
}
.notif-btn .badge {
    position: absolute; top: -2px; right: -4px;
    background: var(--danger); color: var(--white);
    font-size: 0.65rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.page-content { padding: 28px; flex: 1; }

/* === GRIDS === */
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === STATS CARDS === */
.stat-card {
    background: var(--white); border-radius: var(--radius);
    padding: 20px; display: flex; align-items: center; gap: 16px;
    box-shadow: var(--shadow); transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card .stat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--white); flex-shrink: 0;
}
.stat-card .stat-info h3 { font-size: 1.6rem; margin-bottom: 2px; }
.stat-card .stat-info p { font-size: 0.82rem; color: var(--gray-500); margin: 0; }

/* === BARRA PROGRESO === */
.progress-bar {
    width: 100%; height: 10px; background: var(--gray-300);
    border-radius: 20px; overflow: hidden;
}
.progress-bar .progress-fill {
    height: 100%; border-radius: 20px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.6s ease;
}

/* === TABLA === */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-300); }
table th { background: var(--gray-100); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-700); }
table tr:hover { background: rgba(30,58,95,0.02); }

/* === BADGES === */
.badge-pill {
    display: inline-flex; align-items: center; padding: 4px 12px;
    border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.badge-alta { background: #FEE2E2; color: #991B1B; }
.badge-media { background: #FEF3C7; color: #92400E; }
.badge-baja { background: #D1FAE5; color: #065F46; }
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-primary { background: #DBEAFE; color: #1E40AF; }

/* === TEST VOCACIONAL === */
.test-card {
    border: 2px solid var(--gray-300); border-radius: var(--radius);
    padding: 24px; transition: var(--transition); background: var(--white);
}
.test-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.test-card .test-icon { font-size: 2.5rem; margin-bottom: 12px; }
.test-card h3 { margin-bottom: 8px; }
.test-card .test-meta { display: flex; gap: 16px; margin-top: 12px; font-size: 0.82rem; color: var(--gray-500); }

/* Preguntas del test */
.question-card {
    background: var(--white); border-radius: var(--radius);
    padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}
.question-card .q-number { color: var(--primary); font-weight: 700; font-size: 0.82rem; margin-bottom: 6px; }
.question-card .q-text { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.likert-scale { display: flex; gap: 10px; flex-wrap: wrap; }
.likert-option {
    flex: 1; min-width: 80px; text-align: center;
    padding: 10px 8px; border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: var(--transition); font-size: 0.8rem;
}
.likert-option:hover { border-color: var(--primary); background: rgba(30,58,95,0.03); }
.likert-option.selected { border-color: var(--primary); background: var(--primary); color: var(--white); }

/* Progreso del test */
.test-progress {
    position: sticky; top: 60px; z-index: 50;
    background: var(--white); padding: 14px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex; align-items: center; gap: 16px;
}
.test-progress .progress-bar { flex: 1; }
.test-progress .progress-text { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }

/* === CARRERAS === */
.carrera-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: var(--transition); display: flex; flex-direction: column;
}
.carrera-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.carrera-card .carrera-header {
    padding: 20px; color: var(--white);
    position: relative; min-height: 100px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.carrera-card .carrera-header i { font-size: 2rem; margin-bottom: 8px; }
.carrera-card .carrera-header h3 { font-size: 1.05rem; color: var(--white); }
.carrera-card .carrera-body { padding: 16px 20px; flex: 1; }
.carrera-card .carrera-body p { font-size: 0.85rem; color: var(--gray-700); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carrera-card .carrera-footer {
    padding: 12px 20px; display: flex; justify-content: space-between;
    align-items: center; border-top: 1px solid var(--gray-300);
}

.carrera-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }

/* === PROYECTO DE VIDA === */
.plan-card {
    background: var(--white); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow); border-left: 4px solid var(--accent);
    transition: var(--transition);
}
.plan-card:hover { box-shadow: var(--shadow-lg); }
.plan-card .plan-title { font-size: 1.1rem; margin-bottom: 8px; }
.plan-card .plan-meta { font-size: 0.8rem; color: var(--gray-500); display: flex; gap: 16px; }

.foda-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.foda-item { border-radius: var(--radius-sm); padding: 16px; }
.foda-item h4 { margin-bottom: 8px; font-size: 0.95rem; }
.foda-f { background: #D1FAE5; border: 1px solid #6EE7B7; }
.foda-o { background: #DBEAFE; border: 1px solid #93C5FD; }
.foda-d { background: #FEF3C7; border: 1px solid #FCD34D; }
.foda-a { background: #FEE2E2; border: 1px solid #FCA5A5; }

/* === RESULTADOS TEST === */
.result-chart {
    display: flex; align-items: flex-end; gap: 12px;
    height: 200px; padding: 20px 0;
}
.result-bar {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 6px;
}
.result-bar .bar {
    width: 100%; border-radius: 6px 6px 0 0;
    transition: height 0.8s ease; min-height: 4px;
}
.result-bar .bar-label { font-size: 0.72rem; font-weight: 700; color: var(--gray-700); }
.result-bar .bar-value { font-size: 0.82rem; font-weight: 700; }

/* === COMPARTIR === */
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: var(--radius-sm);
    color: var(--white); font-size: 0.85rem; font-weight: 600;
    transition: var(--transition);
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--white); }
.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.telegram { background: #0088CC; }
.share-btn.copy-link { background: var(--gray-700); }

/* === MODAL === */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    display: none; align-items: center; justify-content: center;
    z-index: 9999; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--white); border-radius: var(--radius);
    width: 100%; max-width: 520px; max-height: 90vh;
    overflow-y: auto; animation: modalIn 0.3s ease;
}
.modal-header { padding: 18px 22px; border-bottom: 1px solid var(--gray-300); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--gray-300); display: flex; justify-content: flex-end; gap: 10px; }

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* === LANDING PAGE === */
.landing-hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white); position: relative; overflow: hidden;
}
.landing-hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.landing-hero .container { position: relative; z-index: 1; }

.landing-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.hero-content {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
}
.hero-text h1 { font-size: 2.8rem; margin-bottom: 20px; color: var(--white); line-height: 1.15; }
.hero-text h1 span { color: var(--secondary); }
.hero-text p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { padding: 14px 32px; font-size: 1rem; }
.hero-actions .btn-white { background: var(--white); color: var(--primary); }
.hero-actions .btn-white:hover { background: var(--gray-100); color: var(--primary); }

.hero-visual {
    display: flex; align-items: center; justify-content: center;
}
.hero-card {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg);
    padding: 36px; width: 100%; max-width: 380px;
}
.hero-card .stat-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-card .stat-row:last-child { border: none; }
.hero-card .stat-row .stat-num { font-size: 2rem; font-weight: 800; color: var(--secondary); }
.hero-card .stat-row .stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

.landing-section { padding: 80px 0; }
.landing-section h2 { text-align: center; margin-bottom: 12px; font-size: 2rem; }
.landing-section .section-desc { text-align: center; color: var(--gray-500); max-width: 600px; margin: 0 auto 48px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
    background: var(--white); border-radius: var(--radius);
    padding: 32px; text-align: center; box-shadow: var(--shadow);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card .feature-icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 1.6rem; color: var(--white);
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--gray-500); }

.landing-footer {
    background: var(--dark); color: rgba(255,255,255,0.7);
    padding: 40px 0; text-align: center; font-size: 0.85rem;
}
.landing-footer a { color: var(--secondary); }

/* === PANTALLAS AUTH === */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 20px;
}
.auth-card {
    background: var(--white); border-radius: var(--radius-lg);
    width: 100%; max-width: 440px; padding: 40px;
    box-shadow: var(--shadow-lg);
}
.auth-card .auth-logo { text-align: center; margin-bottom: 28px; }
.auth-card .auth-logo h2 { color: var(--primary); font-size: 1.6rem; }
.auth-card .auth-logo p { color: var(--gray-500); font-size: 0.88rem; }
.auth-card .auth-footer { text-align: center; margin-top: 20px; font-size: 0.88rem; }

/* === EMPTY STATE === */
.empty-state {
    text-align: center; padding: 48px 20px;
    color: var(--gray-500);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { color: var(--gray-700); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; margin-bottom: 20px; }

/* === LOADING === */
.loading-spinner {
    display: inline-block; width: 24px; height: 24px;
    border: 3px solid var(--gray-300); border-top-color: var(--primary);
    border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === TABS === */
.tabs { display: flex; border-bottom: 2px solid var(--gray-300); margin-bottom: 24px; overflow-x: auto; }
.tab-btn {
    padding: 12px 20px; font-weight: 600; font-size: 0.88rem;
    color: var(--gray-500); border: none; background: none;
    cursor: pointer; border-bottom: 2px solid transparent;
    margin-bottom: -2px; white-space: nowrap;
    transition: var(--transition);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* === TOOLTIP === */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
    background: var(--dark); color: var(--white);
    padding: 6px 12px; border-radius: 6px;
    font-size: 0.75rem; white-space: nowrap;
    margin-bottom: 6px; z-index: 100;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --sidebar-w: 0px; }

    .sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    .sidebar.open { transform: translateX(0); }

    .sidebar-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.5);
        z-index: 999; display: none;
    }
    .sidebar-overlay.active { display: block; }

    .main-content { margin-left: 0; }
    .hamburger { display: block; }

    .topbar-left h1 { font-size: 1.1rem; }
    .page-content { padding: 16px; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .foda-grid { grid-template-columns: 1fr; }

    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 32px; }
    .hero-text h1 { font-size: 2rem; }
    .hero-actions { justify-content: center; }
    .hero-visual { order: -1; }

    .likert-scale { flex-direction: column; }
    .likert-option { min-width: auto; }

    .stat-card { padding: 16px; }
    .stat-card .stat-icon { width: 42px; height: 42px; font-size: 1rem; }
    .stat-card .stat-info h3 { font-size: 1.3rem; }

    table { font-size: 0.85rem; }
    table th, table td { padding: 8px 10px; }
}

@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; }
    .hero-text h1 { font-size: 1.6rem; }
    .share-buttons { flex-direction: column; }
    .share-btn { justify-content: center; }
}

/* === PRINT === */
@media print {
    .sidebar, .topbar, .hamburger, .btn, .share-buttons { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .page-content { padding: 0 !important; }
    body { background: white; }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* === AREAS ICONOS === */
.area-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.2rem;
}

/* Favorito */
.fav-btn {
    background: none; border: none; cursor: pointer;
    font-size: 1.3rem; color: var(--gray-300); transition: var(--transition);
}
.fav-btn:hover, .fav-btn.active { color: var(--danger); }

/* Search bar */
.search-bar {
    display: flex; gap: 10px; margin-bottom: 24px;
}
.search-bar .form-control { flex: 1; }
