/* ============================================================
   Nannys y Peques - Sistema de Reclutamiento
   Estilos Globales - Paleta Pastel Rosa, Azul, Amarillo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   VARIABLES DE DISEÑO
   ============================================================ */
:root {
    /* Colores principales */
    --pink-50: #fff0f5;
    --pink-100: #ffe0ec;
    --pink-200: #ffb3cc;
    --pink-300: #ff85ac;
    --pink-400: #ff5c8d;
    --pink-500: #e63470;

    --blue-50: #f0f8ff;
    --blue-100: #d9eeff;
    --blue-200: #a8d8ea;
    --blue-300: #74c2e0;
    --blue-400: #3da8d4;
    --blue-500: #2185b0;

    --yellow-50: #fffdf0;
    --yellow-100: #fff9c4;
    --yellow-200: #ffeaa7;
    --yellow-300: #fdcb6e;
    --yellow-400: #f9a825;

    --green-light: #d4edda;
    --green-mid: #28a745;
    --red-light: #f8d7da;
    --red-mid: #dc3545;
    --teal-light: #d1ecf1;
    --teal-mid: #17a2b8;

    /* Neutros */
    --bg: #fff9fb;
    --surface: #ffffff;
    --border: #ffe0ec;
    --text-h: #3d1a2a;
    --text-body: #5a3549;
    --text-muted: #9b7088;

    /* Sombras */
    --shadow-sm: 0 2px 10px rgba(230, 52, 112, 0.08);
    --shadow-md: 0 4px 24px rgba(230, 52, 112, 0.12);
    --shadow-lg: 0 8px 40px rgba(230, 52, 112, 0.16);
    --shadow-xl: 0 16px 60px rgba(230, 52, 112, 0.20);

    /* Radios */
    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-full: 9999px;

    /* Transiciones */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg);
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
h1,
h2,
h3,
h4,
h5 {
    color: var(--text-h);
    font-weight: 800;
    line-height: 1.2;
}

.text-pink {
    color: var(--pink-400);
}

.text-blue {
    color: var(--blue-400);
}

.text-yellow {
    color: var(--yellow-400);
}

.text-muted {
    color: var(--text-muted);
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 2rem;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

.w-full {
    width: 100%;
}

.hidden {
    display: none !important;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border: none;
    border-radius: var(--r-full);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink-300), var(--pink-500));
    color: #fff;
    box-shadow: 0 4px 16px rgba(230, 52, 112, 0.35);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(230, 52, 112, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--blue-200), var(--blue-400));
    color: #fff;
    box-shadow: 0 4px 16px rgba(61, 168, 212, 0.30);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(61, 168, 212, 0.40);
}

.btn-success {
    background: linear-gradient(135deg, #5dca7c, #28a745);
    color: #fff;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.30);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(40, 167, 69, 0.40);
}

.btn-danger {
    background: linear-gradient(135deg, #f77, var(--red-mid));
    color: #fff;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.30);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(220, 53, 69, 0.40);
}

.btn-yellow {
    background: linear-gradient(135deg, var(--yellow-200), var(--yellow-300));
    color: var(--text-h);
    box-shadow: 0 4px 16px rgba(253, 203, 110, 0.35);
}

.btn-yellow:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(253, 203, 110, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--pink-400);
    border: 2px solid var(--pink-300);
}

.btn-outline:hover:not(:disabled) {
    background: var(--pink-50);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-icon {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: var(--r-full);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.card-pink {
    border-top: 4px solid var(--pink-300);
}

.card-blue {
    border-top: 4px solid var(--blue-300);
}

.card-yellow {
    border-top: 4px solid var(--yellow-300);
}

/* ============================================================
   FORMULARIOS
   ============================================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-h);
}

.form-label .req {
    color: var(--pink-400);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--text-body);
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--pink-300);
    box-shadow: 0 0 0 4px rgba(255, 133, 172, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

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='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ff85ac' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Radio y Checkbox personalizados */
.radio-group,
.check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.radio-pill,
.check-pill {
    position: relative;
}

.radio-pill input,
.check-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-pill label,
.check-pill label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    user-select: none;
}

.radio-pill input:checked+label,
.check-pill input:checked+label {
    background: var(--pink-100);
    border-color: var(--pink-300);
    color: var(--pink-500);
}

.radio-pill label:hover,
.check-pill label:hover {
    border-color: var(--pink-200);
    color: var(--text-body);
}

/* ============================================================
   BADGES / CHIPS DE ESTADO
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-pendiente {
    background: var(--yellow-100);
    color: #a07000;
}

.badge-aceptado {
    background: var(--green-light);
    color: #155724;
}

.badge-rechazado {
    background: var(--red-light);
    color: #721c24;
}

.badge-whatsapp {
    background: var(--teal-light);
    color: #0c5460;
}

/* ============================================================
   NAV / HEADER
   ============================================================ */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 249, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    font-size: 1.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink-400), var(--blue-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-emoji {
    font-size: 1.4rem;
    margin-right: 0.3rem;
    -webkit-text-fill-color: initial;
    background: none;
}

/* ============================================================
   PANTALLA DE LOGIN
   ============================================================ */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--pink-50) 0%, var(--blue-50) 50%, var(--yellow-50) 100%);
    position: relative;
    overflow: hidden;
}

.login-screen::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle, rgba(255, 179, 204, 0.25), transparent 70%);
    pointer-events: none;
}

.login-screen::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -15%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(168, 216, 234, 0.20), transparent 70%);
    pointer-events: none;
}

.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease;
}

.login-logo {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.login-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 0.3rem;
}

.login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ============================================================
   ALERTAS / MENSAJES
   ============================================================ */
.alert {
    padding: 0.85rem 1.2rem;
    border-radius: var(--r-md);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease;
}

.alert-error {
    background: var(--red-light);
    color: #721c24;
    border-left: 4px solid var(--red-mid);
}

.alert-success {
    background: var(--green-light);
    color: #155724;
    border-left: 4px solid var(--green-mid);
}

.alert-info {
    background: var(--blue-100);
    color: #0c5460;
    border-left: 4px solid var(--blue-400);
}

.alert-warning {
    background: var(--yellow-100);
    color: #856404;
    border-left: 4px solid var(--yellow-400);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(61, 26, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--surface);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 1;
}

.modal-body {
    padding: 1.5rem 2rem;
}

.modal-footer {
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-close {
    background: var(--pink-50);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--r-full);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}

.btn-close:hover {
    background: var(--pink-100);
    color: var(--pink-400);
}

/* ============================================================
   SPINNER / LOADING
   ============================================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--pink-100);
    border-top: 4px solid var(--pink-400);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ============================================================
   TARJETA CANDIDATA
   ============================================================ */
.candidata-card {
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.2rem 1.4rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.candidata-card:hover {
    border-color: var(--pink-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.candidata-card.estado-aceptado {
    border-left: 5px solid var(--green-mid);
}

.candidata-card.estado-rechazado {
    border-left: 5px solid var(--red-mid);
}

.candidata-card.estado-whatsapp {
    border-left: 5px solid var(--teal-mid);
}

.candidata-card.estado-pendiente {
    border-left: 5px solid var(--yellow-300);
}

.candidata-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-h);
}

.candidata-meta {
    font-size: 0.83rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ============================================================
   DETALLE DE CANDIDATA (Modal)
   ============================================================ */
.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pink-400);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.detail-item {
    background: var(--pink-50);
    border-radius: var(--r-md);
    padding: 0.7rem 1rem;
}

.detail-item-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.detail-item-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-h);
}

/* ============================================================
   KPI CARDS (Admin)
   ============================================================ */
.kpi-card {
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.kpi-card.pink::before {
    background: linear-gradient(90deg, var(--pink-200), var(--pink-400));
}

.kpi-card.blue::before {
    background: linear-gradient(90deg, var(--blue-200), var(--blue-400));
}

.kpi-card.yellow::before {
    background: linear-gradient(90deg, var(--yellow-200), var(--yellow-300));
}

.kpi-card.green::before {
    background: linear-gradient(90deg, #5dca7c, #28a745);
}

.kpi-card.red::before {
    background: linear-gradient(90deg, #f77, var(--red-mid));
}

.kpi-card.teal::before {
    background: linear-gradient(90deg, #7de8f5, var(--teal-mid));
}

.kpi-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-h);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.kpi-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* ============================================================
   TABLA
   ============================================================ */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

thead tr {
    background: linear-gradient(135deg, var(--pink-50), var(--blue-50));
}

thead th {
    padding: 0.9rem 1.2rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--pink-50);
    transition: background var(--transition);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--pink-50);
}

tbody td {
    padding: 0.85rem 1.2rem;
    font-size: 0.9rem;
    color: var(--text-body);
}

/* ============================================================
   FILTROS Y TABS
   ============================================================ */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.5rem;
    background: var(--pink-50);
    border-radius: var(--r-xl);
}

.filter-tab {
    padding: 0.5rem 1.2rem;
    border: none;
    background: transparent;
    border-radius: var(--r-full);
    font-family: 'Nunito', sans-serif;
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-tab.active {
    background: var(--surface);
    color: var(--pink-400);
    box-shadow: var(--shadow-sm);
}

.filter-tab:hover:not(.active) {
    color: var(--text-body);
}

/* ============================================================
   BARRA DE PROGRESO (Formulario)
   ============================================================ */
.progress-bar-wrapper {
    background: var(--pink-100);
    border-radius: var(--r-full);
    height: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pink-300), var(--blue-300));
    border-radius: var(--r-full);
    transition: width 0.4s ease;
}

/* ============================================================
   SECCIÓN DE FORMULARIO
   ============================================================ */
.form-section {
    margin-bottom: 2.5rem;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--pink-100);
}

.form-section-emoji {
    font-size: 1.6rem;
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--text-h);
    font-weight: 800;
}

/* ============================================================
   PANTALLA DE ÉXITO
   ============================================================ */
.success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    animation: slideUp 0.5s ease;
}

.success-emoji {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: bounce 0.6s ease;
}

.success-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--pink-400), var(--blue-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   PANEL LATERAL (Reclutadora)
   ============================================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 70px);
}

.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 0.3rem 0.8rem;
    margin-bottom: 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--r-md);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-body);
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.sidebar-item:hover {
    background: var(--pink-50);
    color: var(--pink-400);
}

.sidebar-item.active {
    background: var(--pink-100);
    color: var(--pink-500);
}

.sidebar-badge {
    margin-left: auto;
    background: var(--pink-200);
    color: var(--pink-500);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.2rem 0.55rem;
    border-radius: var(--r-full);
}

.main-content {
    padding: 2rem;
    overflow-y: auto;
}

/* ============================================================
   ESTADO VACÍO
   ============================================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1rem;
    }

    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        max-height: 100vh;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {

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

    .btn-lg {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
}