/* global.css - Estilos que aplican a todo el sitio */

/* ------------------------------------------------*/
/* 1. RESET Y BASE DE PÁGINA                     */
/* ------------------------------------------------*/
/* -- Reset: Elimina márgenes y paddings por defecto -- */
* {
margin: 0;
padding: 0;
box-sizing: border-box; 
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* -- Body: Estilos base de tipografía y fondo -- */
body {
    font-family:  'Montserrat', sans-serif;
    background: #fdfdfd; 
    color: #202020; 
    overflow-x: hidden;
    height: 100%;  
    margin: 0 !important;  
    padding: 0 !important;  
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 900; 
}

p {
    font-family: 'Montserrat', sans-serif; 
    line-height: 1.6; 
    text-align: justify;
}

.hero h1 {
    font-weight: 1000; 
}

/* ------------------------------------------------*/
/* 2. SIDEBAR                                      */
/* ------------------------------------------------*/
/* -- ACTIVACION -- */
#menu-toggle:checked ~ #content {
    transform: translateX(250px);
    width: calc(100% - 250px); 
    backface-visibility: hidden; 
}

#menu-toggle:checked ~ #content {
    transform: translateX(250px);
}


/* -- ESTILOS -- */
/* -- .sidebar: Contenedor principal y posición -- */
.sidebar {
    position: fixed; 
    top: 0;
    left: -250px; 
    width: 250px;
    height: 100%;
    background: #ebd288; 
    color: #333; 
    transition: 0.3s; 
    padding-top: 10px; 
    z-index: 1000; 
}

/* -- .sidebar ul: Lista sin estilos por defecto -- */
.sidebar ul {
    list-style: none; 
}

/* -- .sidebar ul li: Espacio en cada ítem de la lista -- */
.sidebar ul li {
    padding: 10px 0; 
}

/* -- .sidebar ul li a: Estilo del botón del menú -- */
.sidebar ul li a {
    color: #ffffff; 
    text-decoration: none;
    display: block; 
    padding: 5px 20px; 
    transition: all 0.3s ease-in-out;
    font-weight: bold; 
}

/* -- .sidebar ul li a:hover: Efecto de hover del ítem -- */
.sidebar ul li a:hover {
    background: #c8b46c; 
    transform: scale(1.05); 
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); 
    font-weight: bold;
}

#content {
    transition: transform 0.3s ease, width 0.3s ease; 
    box-sizing: border-box; 
    width: 100%; 
    will-change: transform;
    backface-visibility: hidden; 
}

body {
    overflow-x: hidden; 
}

/* -- .sidebar-logo: Contenedor del logo/título -- */
.sidebar-logo {
    background: #ebd288; 
    width: 200px; 
    height: 120px; 
    margin: 10px auto 20px auto; 
    display: flex; 
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    border-radius: 5px; 
}

/* -- Estilo del texto del logo (si usaste H3) -- */
.sidebar-logo h3 {
    display: none;
}

/* -- Estilo para la imagen del logo -- */
.sidebar-logo .logo-img {
    width: 120%; 
    height: 120%; 
    object-fit: contain; 
    display: block; 
    margin: 0 auto; 
}



/* ------------------------------------------------*/
/* 3. CONTENIDO PRINCIPAL                          */
/* ------------------------------------------------*/
/* -- .content: Contenedor para el resto del contenido -- */
#content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, width 0.3s ease; 
    box-sizing: border-box; 
    width: 100%; 
    will-change: transform;
    backface-visibility: hidden; 
}

#content > *:not(footer) {
    flex: 0 0 auto;
}



/* ------------------------------------------------*/
/* 4. TOPBAR                                       */
/* ------------------------------------------------*/

.main-header {
    position: absolute; 
    width: 100%;
    z-index: 999; 
    top: 0;
}

.topbar-nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: #EFCEEA; 
    padding: 10px 20px;
    border-bottom: 1px solid #FADE8D; 
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px; 
    min-width: 150px;
}

.topbar-left {
    flex-shrink: 0; 
    width: 100px; 
    display: flex;
    justify-content: flex-start; 
    align-items: center;
}

.topbar-right {
    flex-shrink: 0; 
    width: 100px; 
    display: flex;
    gap: 15px;
    justify-content: flex-end; 
    align-items: center;
}

.topbar-center {
    flex-grow: 1; 
    display: flex; 
    justify-content: center; 
}

.logo-link {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333; 
    text-decoration: none;
    white-space: nowrap;
}

.nav-link {
    color: #333; 
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

.nav-link:hover {
    color: #333;
    background-color: #FADE8D;
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}


.icon-link {
    font-size: 1.3rem;
    text-decoration: none;
    color: #333;
    padding: 5px 8px;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

.icon-link:hover {
    background: #FADE8D; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.center-group {
    display: flex;
    gap: 30px; 
    align-items: center;
}


#menu-toggle:checked ~ #sidebar {
    left: 0; 
}

/* ------------------------------------------------*/
/* 5. FOOTER (Pie de Página)                       */
/* ------------------------------------------------*/
/* -- footer: Estilo general del pie de página -- */
footer {
    background: #EFCEEA; 
    color: #58655F;
    text-align: center !important;
    padding: 20px 15px;
    margin: 0; 
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}


footer p {
    text-align: center !important;
    margin: 5px auto !important;
}


.footer-contenedor {
    width: 100%; 
    max-width: 900px;
    margin: 0 auto; 
    text-align: center !important;
}

body {
    margin-bottom: 0 !important; 
}

body {
    margin: 0 !important;
    padding: 0 !important;
}

#content {
    margin: 0;
    padding: 0;
}


/* ------------------------------------------------*/
/* 7. BOTONES GENÉRICOS (Globales)                */
/* ------------------------------------------------*/
/* -- .btn: Botón principal -- */
.btn {
    padding: 10px 15px;
    background: #EFCEEA;
    color: #333; 
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;  
}

/* -- .btn:hover: Efecto de hover del botón principal -- */
.btn:hover {
    background: #FADE8D;
    color: #333;
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
}

/* -- .btn-sec: Botón secundario  -- */
.btn-sec {
    background: #fff; 
    color: #EFCEEA; 
    border: 2px solid #EFCEEA; 
}

/* -- .btn-sec:hover: Efecto de hover del botón secundario -- */
.btn-sec:hover {
    background: #EFCEEA; 
    color: #fff; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}



/* ------------------------------------------------*/
/* 8. ICONOS DE TOPBAR (Estilos de Cuadrado/Hover) */
/* ------------------------------------------------*/

/* -- .menu-btn (Botón del menú): Fondo y animación -- */
.menu-btn {
    font-size: 1.5rem;
    background: #EFCEEA ; 
    color: #333 !important;
    border: none;
    cursor: pointer;
    padding: 5px 8px; 
    border-radius: 5px; 
    transition: all 0.2s ease-in-out; 
}

/* -- .menu-btn:hover: Hover del botón del menú -- */
.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    background: #FADE8D; 
    color: #333; 
}

/* -- .icon (Carrito y Perfil): Fondo y animación -- */
.icon {
    font-size: 1.3rem;
    background: rgba(235, 232, 232, 0.163);
    border: none;
    cursor: pointer;
    padding: 5px 8px; 
    border-radius: 5px; 
    transition: all 0.2s ease-in-out; 
    display: inline-block; 
}

/* -- .icon:hover: Hover de los iconos de la derecha -- */
.icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); 
    background: #EFCEEA; 
    color: #333; 
}