:root {
    --almendra: #FEF4D8;
    --bordeaux: #6B3F3A;
    --jade: #99AE96;
    --amatista: #BCA3B4;
    --color-cedro: #A0522D; 
    --color-cedro-hover: #8B4513;
    --fuente-titulos: 'Bree Serif', serif; 
    --fuente-textos: 'Montserrat', sans-serif; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-textos);
    background-color: var(--almendra);
    color: var(--bordeaux);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--fuente-titulos);
    font-weight: normal; 
}

a {
    text-decoration: none;
    color: inherit;
}

/* HEADER */
header {
    background-color: #fff; 
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(107, 63, 58, 0.1); 
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
    cursor: pointer;
    transform: scale(1.25); 
    transform-origin: left center; 
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    font-family: var(--fuente-textos);
    font-weight: 600;
    color: var(--bordeaux);
    transition: color 0.3s;
}

nav a:hover {
    color: var(--jade);
}

#inicio {
    background-color: var(--amatista);
    text-align: center;
    padding: 6rem 1rem;
}

.boton-madera {
    width: 100%;
    max-width: 300px;
    margin-top: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0px 10px 10px rgba(107, 63, 58, 0.4));
    transition: transform 0.3s ease;
    cursor: pointer;
}

.boton-madera:hover {
    transform: scale(1.05); 
}

#catalogo, #nosotros {
    padding: 4rem 5%;
    text-align: center;
}

.cartel-seccion {
    width: 100%;
    max-width: 800px; 
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
    filter: drop-shadow(0px 15px 15px rgba(107, 63, 58, 0.4));
}

.grilla-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tarjeta-producto {
    background-color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(107, 63, 58, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-bottom: 4px solid var(--amatista); 
}

.tarjeta-producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(107, 63, 58, 0.15);
}

.tarjeta-producto h3 {
    color: var(--bordeaux);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.tarjeta-producto p {
    font-size: 0.95rem;
}

/* GALERÍA INTERACTIVA */
.foto-principal {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    background-color: var(--almendra);
    transition: opacity 0.3s ease-in-out;
    cursor: zoom-in;
}

.miniaturas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 1rem;
}

.miniaturas img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    background-color: var(--almendra);
    transition: border 0.3s;
}

.miniaturas img:hover {
    border: 2px solid var(--jade);
}

/* BOTONES DE WHATSAPP */
.grupo-whatsapp {
    display: flex;
    flex-direction: column;
    gap: 8px; 
    margin-top: 1rem;
}

.boton-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
    background-color: var(--color-cedro);
    color: #fff;
    padding: 0.65rem; 
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem; 
    box-shadow: 0 3px 6px rgba(107, 63, 58, 0.15);
    transition: background-color 0.3s, transform 0.2s;
}

.boton-whatsapp i {
    font-size: 1.2rem; 
}

.boton-whatsapp:hover {
    background-color: var(--color-cedro-hover); 
    transform: translateY(-2px);
}

/* TARJETA PRÓXIMAMENTE */
.tarjeta-proximamente {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tarjeta-proximamente .foto-principal {
    object-fit: contain; 
    background-color: #fff;
    padding: 1rem;
}

.sello-proximamente {
    margin-top: 1.5rem;
    background-color: var(--color-cedro);
    color: #fff;
    text-align: center;
    padding: 0.8rem;
    border-radius: 5px;
    font-family: var(--fuente-titulos);
    font-size: 1.4rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(107, 63, 58, 0.3);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.tarjeta-proximamente:hover .sello-proximamente {
    transform: rotate(0deg) scale(1.02);
}

/* SECCIÓN DE COLORES: TABLÓN DE EUCALIPTO + EFECTO CNC */
#colores {
    background-image: url('imagenes/fondo_madera.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    padding: 5rem 5%;
    text-align: center;
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.3), inset 0 -10px 20px rgba(0,0,0,0.3);
}

#colores h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #3b1d19;
    text-shadow: 
        1px 1px 0px rgba(255, 255, 255, 0.4), 
        -1px -1px 2px rgba(0, 0, 0, 0.8);      
}

#colores p {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #3b1d19;
    text-shadow: 
        1px 1px 0px rgba(255, 255, 255, 0.3), 
        -1px -1px 1px rgba(0, 0, 0, 0.7);
}

.grilla-colores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(254, 244, 216, 0.85); 
    padding: 1.5rem 1.2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(107, 63, 58, 0.2);
    transition: transform 0.3s, background-color 0.3s;
}

.color-item:hover {
    transform: translateY(-8px);
    background-color: rgba(254, 244, 216, 1);
}

.circulo-color {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 3px solid #fff;
}

.color-item p {
    font-weight: 700;
    color: var(--bordeaux);
    margin-bottom: 0;
    text-shadow: none; 
}

/* FOOTER Y MODAL */
footer {
    background-color: var(--bordeaux);
    color: var(--almendra);
    text-align: center;
    padding: 3rem 1rem;
}

footer h2 {
    color: var(--almendra);
    margin-bottom: 1rem;
}

.redes-sociales {
    margin: 1.5rem 0;
}

.redes-sociales a {
    margin: 0 1rem;
    color: var(--almendra);
    font-weight: 600;
    transition: color 0.3s;
}

.redes-sociales a:hover {
    color: var(--jade);
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1000; 
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(107, 63, 58, 0.9); 
    backdrop-filter: blur(5px); 
}

.modal-contenido {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh; 
    border-radius: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.5);
    animation: zoomModal 0.3s ease; 
}

@keyframes zoomModal {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.cerrar {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--almendra);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.cerrar:hover {
    color: var(--jade);
}

/* =========================================================
   DISEÑO RESPONSIVO (ADAPTACIÓN PARA CELULARES Y TABLETS)
   ========================================================= */
@media (max-width: 768px) {
    /* Cabecera en columna para que el logo y el menú entren bien en celulares */
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }

    .logo-img {
        transform: scale(1.1);
        transform-origin: center;
        margin: 0 auto;
    }

    /* Menú de navegación más compacto y ordenado en pantallas chicas */
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    #inicio {
        padding: 4rem 1rem;
    }

    /* Ajuste de títulos principales en celulares */
    #colores h2 {
        font-size: 2.1rem;
    }

    /* Grilla de productos a una sola columna centrada */
    .grilla-productos {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    /* Círculos de colores adaptados a pantallas chicas */
    .grilla-colores {
        gap: 1.5rem;
    }
}