/* Estilos generales */
:root {
    /* Colores de la marca */
    --gold: #8a703f;
    --cream: #f7efea;
    --teal: #1e4d59;
    --light-gold: #c5b188;
    --dark-cream: #e8d9d0;
    --white: #ffffff;
    --black: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Mono', serif;
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Mono', serif;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--teal);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 60px;
    background-color: var(--gold);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Enlaces y botones */
a {
    text-decoration: none;
    color: var(--teal);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold);
}

button {
    display: inline-block;
    background-color: var(--gold);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 3px;
    font-family: 'Roboto Mono', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    display: inline-block;
    background-color: var(--gold);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-family: 'Roboto Mono', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover, .btn:hover {
    background-color: var(--teal);
    color: var(--white);
}

/* Header y navegación */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    top: 0;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    height: 18vh;
    position: sticky;
    z-index: 9999;
    padding-right: 1vw;
}

.header-custom {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 18vh;
    background-color: var(--teal);
    color: white;
    z-index: 9999;
    transition: transform 0.3s ease;
}

.logo {
    height: 10vh;
    position: relative;
    left: 8vw;
    align-self: center ;
}

.logo img {
    height: 100%;
    width: auto;
}

nav {
    display: flex;
    align-items: center;
    justify-self: right;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 25px;
}

nav ul li a {
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--teal);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 60vw
}

.footer-logo img {
    height: 100px;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--light-gold);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .logo {
        width: auto;
        left: 5vw;
        height: 10vh;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero {
        padding: 60px 0;
        height: auto;
        min-height: 82vh;
    }
    
    .category-card {
        flex: 0 0 calc(50% - 20px);
        min-width: 200px;
    }
    
    .footer-content {
        gap: 30vw;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    .logo {
        left: 5vw;
        height: 12vw;
        width: auto;
    }
    
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1.1rem; }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .category-card {
        flex: 0 0 100%;
        min-width: 150px;
    }
    
    .category-card img {
        height: 250px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        gap: 20vw;
        flex-direction: column;
    }
    
    .social-links {
        margin-top: 20px;
    }
}

/* Estilo de header personalizado */
.header-custom {
    background-color: var(--teal); /* Azul del logo */
    color: white;
    height: 18vh;
    width: 100%;
}

.header-custom nav ul li a {
    color: white;
}

.header-custom nav ul li a:hover {
    color: var(--gold);
}

.header-custom nav ul li a.active::after {
    background-color: var(--gold);
}

/* Ícono de carrito */
.carrito-icono {
    position: relative;
}

.carrito-icono i {
    font-size: 1.4rem;
}

.hero img,
.category-card img {
    width: 100%;
    height: auto;
    object-fit: cover;  /* Mantiene la proporción de la imagen sin distorsión */
}

#contador-carrito {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--gold);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Oculta el menú hamburguesa en escritorio */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    align-self: center;
    justify-self: right;
    font-size: 3rem;
    cursor: pointer;
    z-index: 1002;
    color: var(--teal, #008080);
    transition: all 0.3s ease;
}

.menu-toggle.fixed {
    position: fixed;
    right: 20px;
    top: 0;
    bottom: 0;
    margin: auto;
}

.menu-toggle i {
    color: #fff;
    transition: color 0.3s ease;
}
.menu-toggle:hover i {
    color: #a0a0a0; /* Blanco más oscuro al hacer hover */
}


/* Menú lateral para móviles */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        align-self: center;
        z-index: 1002;
    }
    
    .header-custom {
        position: relative;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 70vw;
        height: 100vh;
        background: var(--teal);
        box-shadow: -2px 0 10px rgba(0,0,0,0.08);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 18vh 30px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1001;
    }
    
    nav.open {
        right: 0;
    }
    
    nav ul.options {
        flex-direction: column;
        gap: 24px;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    nav ul.options li {
        width: 100%;
    }
    
    nav ul.options li a {
        font-size: 1.2rem;
        width: 100%;
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
    }

        body.menu-open::before {
        content: "";
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.25);
        z-index: 1000;
        pointer-events: auto;
    }
}