/* ============================================
   BRANCHELLA - Estilos principales
   ============================================ */

:root {
    --primary-color: #4f46e5;
    --secondary-color: #06b6d4;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
}

* {
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #f6f2ef 0%, #ebe5e0 100%);
    min-height: 100vh;
    margin: 0;
}

/* === NAVBAR === */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 2rem;
    min-height: 70px;
}

/* === NAVBAR BRAND CON LOGO === */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 !important;
    margin: 0;
    text-decoration: none;
}

.navbar-logo {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #fff;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-logo {
        height: 38px;
    }
}

/* === PERFIL === */
.profile-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 6px 10px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark-color) !important;
    cursor: pointer;
}

.profile-link:hover {
    background: rgba(79, 70, 229, 0.08);
}

.profile-info {
    display: flex;
    flex-direction: column;
    text-align: right;
    line-height: 1.2;
}

.profile-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-color);
}

.profile-role {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 400;
}

.profile-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.2);
    flex-shrink: 0;
    background: linear-gradient(135deg, #f5d0c5 0%, #f3c2b0 100%);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
}

/* === DROPDOWN === */
.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 10px;
    min-width: 220px;
    margin-top: 10px !important;
    animation: dropFade 0.2s ease-out;
}

.dropdown-header {
    padding: 12px 15px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(6, 182, 212, 0.05));
    border-radius: 10px;
    margin-bottom: 8px;
}

.dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--dark-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item i {
    font-size: 1.05rem;
    color: #64748b;
    width: 20px;
}

.dropdown-item:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary-color);
    transform: translateX(3px);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

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

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

/* === HERO === */
.hero-section {
    padding: 80px 0;
    text-align: center;
    color: white;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* === CARDS === */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.icon-citas {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.icon-inventario {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.icon-ventas {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.feature-card h3 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: #64748b;
    margin-bottom: 25px;
}

/* === MODALES === */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 20px 30px;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 30px;
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(79, 70, 229, 0.3);
    color: white;
}

/* === FOOTER === */
footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}

/* === FOOTER SIEMPRE ABAJO === */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hero-section {
    flex: 1;
    /* Empuja el footer hacia abajo */
}

footer {
    margin-top: auto;
    /* Se pega al final */
}


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

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

.animate-fade {
    animation: fadeInUp 0.6s ease-out;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    /* === LOGO EN NAVBAR === */
    .navbar-logo {
        height: 48px;
        width: 48px;
        object-fit: cover;
        /* Evita deformación */
        border-radius: 50%;
        /* Circular */
        border: 2px solid #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        flex-shrink: 0;
        /* No se encoge */
        background: #fff;
        /* Fondo si tiene transparencia */
    }

    .brand-text {
        font-family: 'Poppins', sans-serif;
        font-size: 1.6rem;
        font-weight: 700;
        /* Bold */
        color: #ffffff;
        /* Blanco */
        letter-spacing: 0.5px;
        /* Espaciado sutil entre letras */
        line-height: 1;
        white-space: nowrap;
        text-shadow:
            0 2px 4px rgba(0, 0, 0, 0.3),
            /* Sombra principal */
            0 4px 8px rgba(0, 0, 0, 0.2),
            /* Sombra difuminada */
            1px 1px 2px rgba(0, 0, 0, 0.4);
        /* Sombra de definición */
        transition: all 0.3s ease;
    }

    /* Si quieres que el logo sea redondo */
    .navbar-logo.rounded {
        border-radius: 50%;
    }

    /* Hover effect */
    .navbar-brand:hover .navbar-logo {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    }

    /* Responsive */
    @media (max-width: 768px) {
        .navbar-logo {
            height: 32px;
        }

        .brand-text {
            font-family: 'Poppins', sans-serif;
            font-size: 1.6rem;
            font-weight: 700;
            /* Bold */
            color: #ffffff;
            /* Blanco */
            letter-spacing: 0.5px;
            /* Espaciado sutil entre letras */
            line-height: 1;
            white-space: nowrap;
            text-shadow:
                0 2px 4px rgba(0, 0, 0, 0.3),
                /* Sombra principal */
                0 4px 8px rgba(0, 0, 0, 0.2),
                /* Sombra difuminada */
                1px 1px 2px rgba(0, 0, 0, 0.4);
            /* Sombra de definición */
            transition: all 0.3s ease;
        }
    }

    .profile-link {
        padding: 4px !important;
    }

    .profile-avatar {
        width: 38px;
        height: 38px;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 50px 0;
    }
}