:root {
    --primario: #f5f5dc;    /* Marrón arcilla */
    --secundario: #f1ddcf;  /* Terracota */
    --texto: #5d5c58;
}

/* --- EFECTO STICKY DEL NAV --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--secundario);
    color: var(--texto);
    line-height: 1.8;

    /* Cargamos los tres recortes */
    background-image: 
        url('img/muñeco.png'), 
        url('img/cactus.png'), 
        url('img/pajarito.png');
        
    /* Importante: un valor por cada imagen */
    background-repeat: no-repeat, no-repeat, no-repeat;

    /* Posiciones: podés jugar con estos porcentajes para moverlos */
    background-position: 
        center top 15%,       /* muñeco: arriba a la izquierda */
        right 5% bottom 10%,  /* Cactus: abajo a la derecha */
        left 10% bottom 20%;  /* Pajarito: abajo a la izquierda */
        
    /* "Un poco grande": ajustá los píxeles según te guste */
    background-size: 180px, 200px, 150px;

    /* Esto hace que los dibujos floten mientras el contenido se mueve */
    background-attachment: fixed;
}

/* --- CENTRADO GLOBAL DE H2 --- */
h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-style: italic;
    text-align: center; /* Centra el texto */
    margin-bottom: 40px;
    width: 100%; /* Asegura que el alineado sea sobre el total de la pantalla */
}

/* --- NAVEGACIÓN --- */
header {
    padding: 5px 5%; /* Menos espacio vertical */
    position: relative;
    top: 0;
    z-index: 1000;
    background-color: rgba(245, 245, 220, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Solo si quieres logo a la izquierda y menú a la derecha */
nav {
    flex-direction: row; 
    justify-content: space-between;
}

.logo img {
    /* MÁXIMA ANCHURA PERMITIDA */
    width: auto !important; /* Mantiene la proporción original */
    max-width: 90% !important; /* Evita que el logo toque los bordes de la pantalla en móviles */
    
    /* MÁXIMA ALTURA PERMITIDA */
    height: 250px !important; /* Notable para que destaque */
    
    /* Centrado y espacio */
    display: block !important;
    margin: 0 auto 15px !important; /* 15px de espacio abajo para separar del texto */
    
    /* Reset */
    border-radius: 0 !important;
    object-fit: contain !important; /* Asegura que NADA del logo se corte */
}

.logo h1 {
    font-family: 'Cormorant Garamond', serif; /* Mantona la coherencia con los h2 */
    font-size: 2.2rem;       /* <--- Un tamaño mucho más imponente y vistoso */
    font-weight: 600;
    color: #4a4945;          /* Un tono sutilmente más oscuro para que resalte */
    letter-spacing: 2px;     /* Más espacio entre letras para darle un toque fino */
    text-align: center;
    margin-top: 5px;         /* Ajustá este margen si querés acercarlo o alejarlo del logo */
    margin-bottom: 15px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px; 
    border-top: 1px solid #ccc; 
    padding-top: 8px; 
    margin-top: 5px;
    justify-content: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: 0.3s;
}

/* --- ESTILOS GENERALES DE LA TIENDA --- */
.tienda-container {
    width: 100%;
    max-width: 1200px;    /* Ancho máximo para que no se desparrame en PC */
    margin: 0 auto;       /* Centra todo el bloque */
    padding: 100px 20px 60px; /* 100px arriba para que el H2 no choque con el Nav */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* EL TÍTULO (H2) DE LA TIENDA */
.tienda-container h2 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--texto);       
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1; 
}

/* EL PÁRRAFO (P) DE LA TIENDA */
.tienda-container p {
    font-family: 'Cormorant Garamont', serif;
    color: var(--texto);
    font-style: italic;
    font-size: 1.2rem;
    max-width: 600px;     /* Bloque centrado elegante */
    line-height: 1.6;
    margin: 0 auto 40px;
}

/* GRILLA VIEJA (Por si se usa en otra sección) */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

/* --- LA NUEVA GRILLA DE CATÁLOGO (EDITADA: Más chica) --- */
.catalogo-grid {
    display: grid;
    /* Bajamos de 350px a 260px para que las tarjetas sean más compactas y entren más por fila */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px; /* Reducido levemente para acompañar el nuevo tamaño */
    width: 100%;
}

/* --- LA TARJETA DE PRODUCTO (Card) --- */
.producto-card {
    background-color: rgba(245, 245, 220, 0.95);
    border-radius: 20px; 
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(223, 219, 219, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0eee9;
    position: relative;
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 90, 43, 0.15);
}

/* --- CONTENEDOR DE IMAGEN (EDITADO: Más baja) --- */
.producto-imagen {
    width: 100%;
    height: 260px; /* Bajamos de 400px a 260px para que mantenga proporción con el ancho */
    overflow: hidden;
    position: relative;
    display: flex;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: scale 0.5s ease;
    cursor: zoom-in; 
}

.producto-card:hover .producto-imagen img {
    scale: 1.05; 
}

/* --- TEXTO Y DESCRIPCIÓN --- */
.producto-info {
    padding: 20px; /* Un poco menos de padding para tarjetas más compactas */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Clava el .producto-meta abajo de todo */
    height: 100%;
}

.producto-info h3 {
    font-size: 1.25rem; /* Un pelín más chico para que armonice */
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.producto-info p {
    color: var(--texto);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* CONTENEDOR DE PRECIO Y BOTÓN */
.producto-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0eee9;
    padding-top: 15px;
    margin-top: auto; /* Empuje final de seguridad */
    width: 100%;
}

.precio {
    font-size: 1.2rem;
    font-weight: 700;
    color: #8b5a2b;
}

/* Botón de Consulta rápido */
.btn-consulta {
    background-color: #b05d48; /* Color terracota */
    color: #fff;
    padding: 8px 16px; /* Ajustado al tamaño de la nueva tarjeta */
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-consulta:hover {
    background-color: #8b5a2b;
}

/* Protecciones para el icono de WhatsApp dentro del botón */
.btn-consulta i {
    font-size: 0.95rem !important;
    margin-right: 5px;
    vertical-align: middle;
    transition: none !important;
}

.btn-consulta i:hover {
    transform: none !important;
}

/* --- AJUSTES DE REDES (Footer) --- */
footer {
    background-color: var(--primario);
    color: var(--texto);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-image: url('img/cactusgrande.png');
    background-repeat: no-repeat;
    background-position: right 20px bottom 20px;
    background-size: 100px;
    position: relative;
}

.whatsapp, .instagram {
    display: inline-block;
    margin: 20px;
    vertical-align: top;
}

.whatsapp i, .instagram i {
    font-size: 40px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.whatsapp a { color:#25d366; text-decoration: none;}
.instagram a { color: #e1306c; text-decoration: none;}

footer i:hover {
    transform: scale(1.2);
}

/* --- ESTILOS ESPECÍFICOS PARA BAGUETTEBOX (Lightbox) --- */
#baguetteBox-overlay {
    background-color: rgba(0,0,0,0.85); 
}

#baguetteBox-overlay .full-image figcaption {
    background-color: rgba(139, 90, 43, 0.8) !important; 
    color: #fff !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 1.2rem !important;
    padding: 15px !important;
    border-radius: 5px;
}

/* --- PAGINACIÓN --- */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    font-family: 'Montserrat', sans-serif;
    width: 100% !important; 
    clear: both; 
}

.num-pag, .btn-pag {
    text-decoration: none;
    color: #555;
    border: 1px solid #ccc;
    padding: 8px 14px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: white;
}

.num-pag.activa {
    background-color: #d2b48c; 
    color: white;
    border-color: #d2b48c;
}

.num-pag:hover, .btn-pag:hover {
    background-color: #f5f5dc; 
    border-color: #b5a48c;
}

/* Responsivo para celulares */
@media (max-width: 600px) {
    .num-pag {
        display: none; 
    }
    .num-pag.activa {
        display: inline-block; 
    }
}
