/* RESET */

*{
box-sizing:border-box;
margin:0;
padding:0;
}

html{
scroll-behavior:smooth;
}

body{
font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
background:#FFFAF0;
color:#333;
line-height:1.5;
}

/* TITULOS */

h1{
text-align:center;
margin:40px 0;
}

h2{
font-weight:600;
}

/* CONTENEDOR */

.container{
max-width:1200px;
margin:auto;
padding:20px;
}

/* NAVBAR */

/* .navbar{
max-width:1200px;
margin:auto;
display:flex;
align-items:center;
justify-content:space-between;
padding:15px 20px;
} */

/* .logo{
font-size:20px;
font-weight:700;
} */

/* .logo a{
text-decoration:none;
color:#000;
} */

/* BOTON HAMBURGUESA */

.menu-toggle{
display:none;
font-size:26px;
cursor:pointer;
}

/* HERO */

/* .hero{
padding:80px 20px;
text-align:center;
background:#fafafa;
} */

/* .hero h1{
font-size:42px;
margin-bottom:10px;
}

.hero p{
color:#666;
} */

/* SECCIONES */

.seccion{
padding:60px 20px;
}

.seccion h2{
text-align:center;
margin-bottom:40px;
font-size:28px;
}

/* GRID PRODUCTOS */

.grid{

display:grid;
grid-template-columns:repeat(auto-fill,250px);
justify-content:center;
gap:25px;
max-width:1400px;
margin:auto;
padding:20px;
}

TARJETA

.card{
background:white;
border-radius:10px;
overflow:hidden;
box-shadow:0 5px 15px rgba(0,0,0,.06);
transition:transform .25s, box-shadow .25s;
}

.card:hover{
transform:translateY(-6px);
box-shadow:0 12px 25px rgba(0,0,0,.12);
}

.card img{
width:100%;
aspect-ratio:1/1;
object-fit:cover;
transition:transform .4s;
}

.card:hover img{
transform:scale(1.05);
}

.card p{
padding:15px;
text-align:center;
font-size:14px;
}

BOTONES

.boton{
display:inline-block;
padding:12px 22px;
background:#222;
color:white;
text-decoration:none;
border-radius:6px;
font-size:14px;
transition:.25s;
}

.boton:hover{
background:black;
transform:translateY(-1px);
}

img{
max-width:100%;
height:auto;
display:block;
}


GALERIA HOME

.grid-galeria{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:15px;
max-width:1200px;
margin:auto;
}

.grid-galeria img{
width:100%;
border-radius:8px;
transition:transform .3s, box-shadow .3s;
}

.grid-galeria img:hover{
transform:scale(1.05);
box-shadow:0 10px 20px rgba(0,0,0,0.15);
}

/* FILTRO CATEGORIAS */

.filtros{
display:flex;
justify-content:center;
align-items:center;
flex-wrap:wrap;
gap:8px;
width:100%;
margin:20px 0;
}

.filtros button{
padding:10px 16px;
border:none;
background:#612507;
color:white;
cursor:pointer;
border-radius:4px;
transition:.2s;
}

.filtros button:hover{
background:#444;
transform:translateY(-1px);
}

/* GALERIA PINTEREST */

/* .galeria{
column-count:3;
column-gap:15px;
max-width:1200px;
margin:auto;
padding:20px;
}

.galeria a{
display:block;
margin-bottom:15px;
break-inside:avoid;
}

.galeria img{
width:100%;
border-radius:8px;
transition:transform .3s, box-shadow .3s;
}

.galeria img:hover{
transform:scale(1.03);
box-shadow:0 10px 25px rgba(0,0,0,.15);
} */



.producto{
background:white;
border-radius:8px;
overflow:hidden;
box-shadow:0 5px 15px rgba(0,0,0,0.08);
transition:transform .25s, box-shadow .25s;
}

.producto:hover{
transform:translateY(-5px);
box-shadow:0 12px 25px rgba(0,0,0,0.15);
}

.producto img{
width:100%;
height:250px;
object-fit:cover;
display:block;
transition:transform .4s;
}

.producto:hover img{
transform:scale(1.05);
}

.producto p{
padding:12px;
text-align:center;
font-size:14px;
}

/* BUSCADOR */

.buscador{
display:flex;
justify-content:center;
align-items:center;
flex-wrap:wrap;
gap:8px;
width:100%;
margin:20px 0;
color:#612507;
}

.buscador input{
width:300px;
max-width:80%;
padding:12px 15px;
border-radius:6px;
border:1px solid #612507;
font-size:16px;
color:#612507;
}





/* HEADER */

header{
position:sticky;
top:0;
z-index:1000;

background-image:
linear-gradient(rgba(101,67,33,0.6), rgba(152,87,46,0.1)),
url("img/ui/madera-header.png");

background-size:cover;
background-position:center;
background-repeat:no-repeat;





border-bottom:1px solid rgba(255,255,255,0.1);
box-shadow:0 3px 10px rgba(0,0,0,0.25);
}

header.scrolled{
box-shadow:0 4px 12px rgba(0,0,0,0.15);
}

header.scrolled .logo img{
transform:scale(.9);
}

/* .navbar{
display:flex;
align-items:center;
justify-content:space-between;
max-width:1200px;
margin:auto;
padding:12px 20px;
} */

.logo{
position:absolute;
top:5px;
left:20px;
z-index:1000;
height:180px;
}

.logo img{
height:80px;
transition:transform .3s;
}

.logo img:hover{
transform:translateY(-4px) scale(1.05);
filter:brightness(1.15);
}

.menu{
display:flex;
justify-content:center;
gap:20px;
padding:00px;
flex-wrap:wrap;

}

/* .menu img{
height:45px;
transition:0.25s;
}

.menu img:hover{
transform:scale(1.08);
filter:brightness(1.15);
} */

.menu a{

text-decoration:none;
background: linear-gradient(#3f5233, #2f3d26);
color: #F3E8D4;
border: 2px solid #D8C2A0;
padding: 5px 10px;
border-radius: 6px;
font-family: 'Libre Baskerville', serif;
font-weight: bold;
box-shadow: 0 4px 8px rgba(0,0,0,0.4);
transition: all 0.2s ease;
margin-top:10px;
margin-bottom:10px;
}

.menu a:hover {
    background: linear-gradient(#4a5f3a, #37462C);
    transform: translateY(-1px);
}

.contacto{
background:#8b5a2b;
color:white;
padding:8px 14px;
border-radius:6px;
}

.menu-toggle{
display:none;
font-size:26px;
cursor:pointer;
}

/* RESPONSIVE */

@media(max-width:800px){

.menu{
display:none;
position:absolute;
top:60px;
left:0;
width:100%;
background:white;
flex-direction:column;
padding:20px;
border-bottom:1px solid #eee;
}

.menu.active{
display:flex;
}

.menu-toggle{
display:block;
}

.hero h1{
font-size:30px;
}

.galeria{
column-count:2;
}

}

@media(max-width:500px){

.galeria{
column-count:1;
}

}

@media (max-width:768px){

.menu{
display:none;
flex-direction:column;
position:absolute;
top:70px;
right:10px;
background:white;
padding:20px;
border-radius:8px;
box-shadow:0 4px 10px rgba(0,0,0,0.15);
}

.menu.active{
display:flex;
}

.menu-toggle{
display:block;
}
}

/* CONTENEDOR */
.footer{
display:flex;
color:#210b0b;
text-align:center;
justify-content:center;

background-image:
linear-gradient(rgba(152,87,46,0.4), rgba(101,67,33,0.9)),
url("img/ui/madera-header.png");

background-size:cover;
background-position:center;
background-repeat:no-repeat;

}

.social-madera{
display:flex;
justify-content:center;
gap:30px;
padding-top:10px;	
text-align:center;
background-color:#654321;


}

/* BOTÓN BASE */
.madera-btn{
	border-radius: 50%;
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:22px;
    color:#3b2a1a;

   
    /* relieve tipo madera */
   /*  box-shadow:
        inset 2px 2px 5px rgba(255,255,255,0.25),
        inset -4px -4px 8px rgba(0,0,0,0.6),
        0 4px 8px rgba(0,0,0,0.5); */

    transition:all 0.25s ease;
}

/* ICONO (grabado) */
.madera-btn i{
    color:#D8C2A0;
	border-radius: 50%;
    /* efecto "tallado" */
    /* text-shadow:
        1px 1px 0 rgba(255,255,255,0.2),
        -1px -1px 0 rgba(0,0,0,0.6); */
}

/* HOVER → se "levanta" */
.madera-btn:hover{
    transform:translateY(-4px) scale(1.05);

    box-shadow:
        inset 2px 2px 6px rgba(255,255,255,0.3),
        inset -5px -5px 10px rgba(0,0,0,0.7),
        0 8px 16px rgba(0,0,0,0.6);
		
	background:#37462C;	
	
}

/* CLICK → se hunde */
.madera-btn:active{
    transform:translateY(2px);

    box-shadow:
        inset 4px 4px 8px rgba(0,0,0,0.7),
        inset -2px -2px 4px rgba(255,255,255,0.2);
}


.whatsapp-btn{
position:absolute;
top:10px;
right:20px;
z-index:1000;
}

.whatsapp-btn img{
width:60px;
transition:0.2s;
}

.whatsapp-btn img:hover{
transform:scale(1.1);
}



.form-contacto{
display:flex;
flex-direction:column;
gap:12px;
max-width:420px;
margin:auto;
}

.form-contacto input,
.form-contacto textarea{
padding:12px;
border-radius:6px;
border:none;
font-size:16px;
}

.form-contacto textarea{
resize:vertical;
}