/* ==========================================================================
   VARIABLES - Paleta Natural para Jabones Artesanales
   ========================================================================== */
:root {
    --primario: #4a5d4d;    /* Verde musgo para títulos y elegancia */
    --acento: #d4a373;      /* Tono arena/arcilla para botones */
    --fondo-claro: #fefae0; /* Crema muy suave para fondos de sección */
    --blanco: #ffffff;
    --texto: #2d2d2d;       /* Gris casi negro para lectura */
    --gris-suave: #f1f1f1;
    --sombra: 0 4px 15px rgba(0,0,0,0.05);
}

/* ==========================================================================
   RESET & TIPOGRAFÍA
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif; /* Tipografía limpia para textos */
    margin: 0;
    padding: 0;
    background-color: var(--blanco);
    color: var(--texto);
    line-height: 1.6;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif; /* Tipografía elegante para títulos */
    font-weight: 700;
}

.contenedor {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ==========================================================================
   HEADER & NAVEGACIÓN
   ========================================================================== */
header {
    background-color: var(--blanco);
    padding: 20px 0;
    border-bottom: 1px solid var(--gris-suave);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--primario);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--texto);
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--acento);
}

/* ==========================================================================
   SECCIONES DECORATIVAS (Para GIFs e Imágenes de fondo)
   ========================================================================== */
.seccion-decorativa {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax suave */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Capa para legibilidad sobre el GIF/Imagen */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6); /* Ajusta la opacidad según necesites */
    z-index: 1;
}

.contenido-superior {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   CATÁLOGO & PRODUCTOS
   ========================================================================== */
.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.card-producto {
    background: var(--blanco);
    transition: transform 0.4s ease, shadow 0.4s ease;
    text-align: center;
    padding-bottom: 20px;
}

.card-producto:hover {
    transform: translateY(-10px);
}

.img-contenedor {
    background-color: var(--gris-suave);
    margin-bottom: 15px;
    overflow: hidden;
}

.card-producto img {
    width: 100%;
    height: 350px;
    object-fit: cover; /* Mantiene la proporción de la foto del jabón */
    transition: transform 0.5s;
}

.card-producto:hover img {
    transform: scale(1.05);
}

.card-producto h3 {
    margin: 15px 0 5px 0;
    font-size: 1.2rem;
}

.precio {
    color: var(--acento);
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 15px;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primario {
    background-color: var(--primario);
    color: white;
}

.btn-primario:hover {
    background-color: var(--texto);
}

.btn-outline {
    border: 1px solid var(--primario);
    color: var(--primario);
}

.btn-outline:hover {
    background-color: var(--primario);
    color: white;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--gris-suave);
    padding: 60px 0 30px 0;
    margin-top: 80px;
    text-align: center;
}

.footer-info p {
    font-size: 0.9rem;
    color: #777;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .seccion-decorativa {
        padding: 60px 0;
    }
}