/* FUENTES ELEGANTES */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* --- PALETA ELAHECOM (PINK VIBES) --- */
    --brand-primary: #e68a98;      /* Rosa Principal (Suave pero fuerte) */
    --brand-primary-dark: #cc7080; /* Para Hover */
    --brand-gold:    #d4af37;      /* Dorado elegante */
    
    /* Fondos */
    --bg-body:       #fff0f5;      /* Fondo Rosa Pálido (Lavender Blush) */
    --bg-white:      #ffffff;
    
    /* Texto */
    --text-main:     #5e4044;      /* Marrón rojizo (en vez de negro puro) */
    --text-light:    #94787b;      /* Gris rosado */
    
    /* Estructura */
    --sidebar-w:     260px;
    --input-h:       45px;
    --radius:        12px;         /* Bordes curvos amigables */
    --shadow:        0 4px 15px rgba(230, 138, 152, 0.15); /* Sombra rosada sutil */
    
    /* Fuentes */
    --font-head:     'Playfair Display', serif;
    --font-body:     'Inter', sans-serif;
}

body {
    background-color: var(--bg-body);
    font-family: var(--font-body);
    color: var(--text-main);
    margin: 0;
    /* Patrón de puntos sutil */
    background-image: radial-gradient(#eecdd1 1px, transparent 1px);
    background-size: 25px 25px;
}

/* --- SIDEBAR (Blanca y Limpia) --- */
.sidebar {
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--bg-white);
    position: fixed;
    top: 0; left: 0;
    border-right: 1px solid #ffeef2; /* Borde rosa muy sutil */
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.brand-box {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* ELIMINADO EL FONDO OSCURO */
    background: var(--bg-white); 
    border-bottom: 2px dashed #ffeef2;
}

.brand-title {
    font-family: var(--font-head);
    color: var(--brand-primary); /* Rosa en lugar de blanco */
    font-size: 1.8rem;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.05);
}

.nav-menu {
    padding: 20px 10px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.3s;
    margin-bottom: 5px;
}

.nav-link i { width: 30px; font-size: 1.1em; color: var(--brand-gold); }

.nav-link:hover {
    background-color: #fff0f5;
    color: var(--brand-primary);
}

.nav-link.active {
    background-color: #fff0f5;
    color: var(--brand-primary);
    font-weight: 600;
    border: 1px solid #ffeef2;
}

/* --- LAYOUT --- */
.main-content {
    margin-left: var(--sidebar-w);
    padding: 40px;
}

/* --- TARJETAS --- */
.card-panel {
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid #ffeef2;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
}

/* --- ELEMENTOS DE FORMULARIO --- */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--brand-primary); /* Labels Rosas */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, select, textarea {
    width: 100%;
    height: var(--input-h);
    padding: 0 15px;
    border: 1px solid #eecdd1; /* Borde rosita suave */
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #fff;
    color: var(--text-main);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(230, 138, 152, 0.2);
}

/* --- BOTONES --- */
.btn-primary {
    background-color: var(--brand-primary);
    color: white;
    border: none;
    padding: 0 25px;
    height: var(--input-h);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    font-family: var(--font-head);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 138, 152, 0.4);
}

/* --- SELECT2 (PINK VERSION) --- */
.select2-container .select2-selection--single {
    height: var(--input-h) !important;
    border: 1px solid #eecdd1 !important;
    border-radius: var(--radius) !important;
    display: flex !important;
    align-items: center !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: var(--input-h) !important;
}