/* VARIABLES GLOBALES */
:root {
    --sticky-header-height: 150px;
    --color-montserrat: #111;
    --azul-bootstrap:  #0d6efd;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
}

h1, h2, .card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--color-montserrat)
}

h3, h4, .card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--color-montserrat)
}

.hover-primary:hover {
    transition: 0.3s;
    color: var(--azul-bootstrap);
}

.sub-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: var(--color-montserrat)
}




/* ESTILOS DEL SIDEBAR Y HEADER DEL PANEL DE ADMIN */
#sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    z-index: 1;
}
/* Versión colapsada en pantallas grandes */
#sidebar.collapsed {
    width: 80px;
}
/* Ocultar texto cuando está colapsado en pantallas grandes */
#sidebar.collapsed .sidebar-text {
    display: none;
}
#sidebar.collapsed .sidebar-link {
    justify-content: center;
}
#sidebar.collapsed .sidebar-link i {
    margin-right: 0;
}
#sidebar a {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px;
}
#sidebar a i {
    margin-right: 10px;
    font-size: 1.2rem;
}
/* Botón de cerrar en móviles */
.close-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
}
/* Ajuste de contenido */
.content {
    margin-left: 250px;
    transition: margin-left 0.3s;
    width: calc(100% - 250px);
}
.collapsed + .content {
    margin-left: 80px;
    width: calc(100% - 80px);
}
#top-header {
    height: 80px;
    display: flex;
    align-items: center;
}
main {
    overflow-y: auto;
}
/* Responsividad */
@media (max-width: 768px) {
    /* Forzar la versión completa en móviles */
    #sidebar {
        width: 250px !important;
        transform: translateX(-100%);
    }

    #sidebar.show {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
        width: 100%;
    }

    /* Mostrar botón de cerrar en móviles */
    #sidebar.show .close-menu {
        display: block;
    }
}




/* ESTILOS DEL HERO */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: relative;
    z-index: 1;
}




/* ESTILOS DEL HEADER PRINCIPAL */
.top-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}




/* ESTILOS DE LA TARJETA DEL PRODUCTO */
.product-card:hover {
    transform: scale(1.05);
    transition: 0.3s;
}



/* ESTILOS DE LA IMAGEN DEL DETALLE DE PRODUCTO */
#imagen-principal {
    width: 450px;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
}
.imagen-miniatura {
    width: 60px;
    height: 60px;
    cursor: pointer;
    object-fit: cover;
}



/* ESTILOS PARA LOS SWITCH */
.form-switch .form-check-input {
    width: 2.5rem;
    height: 1.2rem;
    transform: scale(1.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.form-switch .form-check-input:checked {
    background-color: var(--azul-bootstrap);
    border-color: var(--azul-bootstrap)
}



/* ESTILOS PARA EL CARD DE CAMBIO DE CONTRASEÑA AL USAR sticky-top */
#idCardPassword {
    scroll-margin-top: var(--sticky-header-height);
}