:root {
    --fondo-blanco: #faf9f6;
    --color-beige-arena: #e3dacc;
    --color-caqui-suave: #d1c7bd;
    --color-verde-salvia: #6b7f67;
    --color-gris-antracita: #3a3a3a;
}

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');


:root {
    --font-heading: 'Josefin Sans', sans-serif;
    --font-body: 'Nunito', sans-serif;

    --text-color: #222;
    --text-light: #555;

    --h1-size: 3rem;
    --h2-size: 2.2rem;
    --h3-size: 1.6rem;
    --body-size: 1rem;
    --small-size: 0.9rem;
}

body {
    font-family: var(--font-body);
    font-size: var(--body-size);
    color: var(--text-color);
    line-height: 1.6;
    letter-spacing: 0.2px;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin: 0 0 0.5em 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: var(--text-color);
}

h1 {
    font-size: var(--h1-size);
    font-weight: 700;
}

h2 {
    font-size: var(--h2-size);
    font-weight: 600;
}

h3 {
    font-size: var(--h3-size);
    font-weight: 500;
}


p {
    margin: 0 0 1em 0;
    color: var(--text-light);
}

strong {
    font-weight: 700;
    color: var(--text-color);
}

small {
    font-size: var(--small-size);
    color: var(--text-light);
}


a {
    font-family: var(--font-heading);
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    transition: 0.2s;
}

a:hover {
    opacity: 0.7;
}


button {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
}

input,
textarea {
    font-family: var(--font-body);
}

/* --- SECCIÓN PRESENTACIÓN (HERO) --- */
.hero-section {
    background-image: url('/img/ImagenPresentacion.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 60vh;
    padding: 60px 20px;
}

.hero-content {
    background-color: rgba(250, 249, 246, 0.85);
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--h2-size);
    color: var(--text-color);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--body-size);
    color: var(--text-light);
    line-height: 1.6;
}


.btn-hero {
    background-color: var(--color-verde-salvia);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: var(--body-size);
    font-weight: 700;
    letter-spacing: 2px;
    padding: 14px 45px;
    border: none;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.btn-hero:hover {
    background-color: var(--color-verde-salvia);
    color: #ffffff;
    opacity: 0.85;
}

/*Seccion Galeria*/
.categorias-section {
    background-color: var(--fondo-blanco);
}


.carousel-categorias {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}


.carousel-categorias::-webkit-scrollbar {
    height: 6px;
}

.carousel-categorias::-webkit-scrollbar-thumb {
    background-color: var(--color-caqui-suave);
    border-radius: 10px;
}

.carousel-categorias::-webkit-scrollbar-track {
    background-color: transparent;
}


.categoria-card {
    position: relative;
    flex: 0 0 280px;
    height: 160px;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    scroll-snap-align: start;
}


.categoria-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}


.categoria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
    z-index: 2;
}


.categoria-titulo {
    position: relative;
    z-index: 3;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}


.categoria-card:hover .categoria-bg {
    transform: scale(1.1);
}

.categoria-card:hover .categoria-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}



.categoria-card {
    position: relative;
    flex: 0 0 240px; 
    height: 220px;   
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    scroll-snap-align: start;
}


@media (min-width: 768px) and (max-width: 991px) {
    .categoria-card {
        flex: 0 0 320px;
        height: 300px;   
    }
}


@media (min-width: 992px) {
    .carousel-categorias {
        justify-content: space-between;
        overflow-x: visible;
    }

    .categoria-card {
        flex: 1;
        max-width: 24%;
        height: 380px;  
    }
}

/*FOOTER (PIE DE PÁGINA)*/
.footer-section {
    background-color: var(--fondo-blanco);
    color: var(--text-color);
}


.footer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}


.footer-title i {
    font-size: 1.3rem;
    color: var(--color-verde-salvia);
}


.footer-text {
    font-size: var(--small-size);
    color: var(--text-light);
    line-height: 1.8;
}


.footer-links a {
    font-family: var(--font-body);
    font-size: var(--small-size);
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}


.footer-social-link {
    font-family: var(--font-body);
    font-size: var(--small-size);
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.8;
    display: block;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-social-link:hover {
    color: var(--color-verde-salvia);
}

/*BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20b858;
    color: #ffffff;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}

.footer-text a {
    color: inherit;
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: none;
    color: inherit;
}

/* =========================
   PÁGINA DE PRODUCTOS
   ========================= */


.select-ordenar {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-color);
    border: 1px solid var(--color-caqui-suave);
    background-color: transparent;
    border-radius: 0;
    padding: 8px 35px 8px 15px;
    cursor: pointer;
}

.select-ordenar:focus {
    border-color: var(--color-verde-salvia);
}

/* Tarjeta con marco sutil */
.product-card {
    background-color: #ffffff !important; 
    border: 1px solid #f0f0f0 !important; 
    padding: 15px;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #e3dacc !important; 
}

.product-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    background-color: transparent;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: center; 
    padding: 15px; 
    transition: transform 0.4s ease; 
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

/* Título del producto */
.product-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-color);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

/* Precio del producto */
.product-price {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-light);
}

/* Botón Sólido Elegante */
.btn-ver-mas {
    display: inline-block;
    width: 100%;
    background-color: var(--text-color); 
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    border: none; 
    border-radius: 0;
    padding: 12px 0;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-ver-mas:hover {
    background-color: var(--color-verde-salvia); 
    color: #ffffff;
    transform: translateY(-2px); 
}


button.btnPedido {
    background-color: var(--color-verde-salvia) !important;
    color: #ffffff !important;
    border-radius: 2px !important; 
    margin: 3px;
    border: none !important; 
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
}

button.btnPedido:hover {
    opacity: 0.85; 
}
