/* Paleta de colores Natura / Soy Sole */
:root {
    --fondo: #F9F5F0;
    --blanco: #FFFFFF;
    --texto-principal: #4A3B32;
    --texto-secundario: #7A6B62;
    --acento: #5e1614;
    --verde-sutil: #6B7F5E;
    --sombra: 0 10px 30px rgba(74, 59, 50, 0.08);
}

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

body {
    background-color: var(--fondo);
    color: var(--texto-principal);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

/* --- HERO SECTION (Carátula) --- */
.hero-section {
    text-align: center;
    padding: 80px 20px 60px;
    background-color: #FDFBF7;
    border-bottom: 1px solid rgba(201, 113, 78, 0.1);
    background-image: 
        linear-gradient(rgba(202, 202, 202, 0.5), rgba(202, 202, 202, 0.5)), 
        url('https://static.vecteezy.com/system/resources/previews/020/480/046/non_2x/tropical-leaves-wallpaper-background-natural-jungle-monstera-and-palm-leaves-foliage-pattern-design-in-minimalist-pale-green-color-style-design-for-fabric-print-cover-banner-decoration-vector.jpg');
    background-size: cover;
    background-position:center; 
    background-repeat: no-repeat;
}

.hero-section .script-font {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: var(--acento);
    margin-bottom: -30px;
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    margin-bottom: 5px;
}

.hero-section .subtitulo {
    font-size: 1.1rem;
    letter-spacing: 3px;
    color: var(--texto-secundario);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-section .valores {
    font-size: 0.9rem;
    color: var(--verde-sutil);
    letter-spacing: 1px;
}

/* --- CATÁLOGO GRID --- */
.catalogo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.catalogo-titulo {
    font-family: 'Playfair Display', serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--texto-principal);
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* --- TARJETA DE PRODUCTO --- */
.card {
    background-color: var(--blanco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(74, 59, 50, 0.12);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #F0EAE3;
}

.card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-categoria {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--acento);
    margin-bottom: 8px;
    font-weight: 600;
}

.card-nombre {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--texto-principal);
}

.card-precio {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--texto-principal);
    margin-top: auto; /* Empuja el precio hacia abajo */
}

/* --- ESTILOS DE PRECIOS Y DESCUENTOS --- */

/* Contenedor de precios en la tarjeta */
.card-precios {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.precio-actual {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--texto-principal);
}

.precio-anterior {
    font-size: 1rem;
    color: #A0A0A0;
    text-decoration: line-through; /* Tacha el precio */
}

/* Etiqueta de descuento (Badge) */
.badge-descuento {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--acento); /* Color terracota */
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Estilos para el precio dentro del Modal */
.modal-precios {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-info .precio-actual {
    font-size: 1.8rem;
    color: var(--acento);
}

.modal-info .precio-anterior {
    font-size: 1.2rem;
}

/* --- MODAL (Ventana emergente) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 59, 50, 0.6);
    backdrop-filter: blur(5px);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background-color: var(--blanco);
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--blanco);
    color: var(--texto-principal);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
    z-index: 10;
}

.close-btn:hover {
    background-color: var(--acento);
    color: white;
}

.modal-body {
    display: flex;
    flex-direction: row;
    overflow-y: auto;
}

.modal-img {
    width: 50%;
    object-fit: cover;
}

.modal-info {
    padding: 40px;
    width: 50%;
    display: flex;
    flex-direction: column;
}

.modal-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.modal-info .precio {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--acento);
    margin-bottom: 20px;
}

.modal-info .descripcion {
    font-size: 1rem;
    color: var(--texto-secundario);
    margin-bottom: 20px;
}

.modal-info .beneficios {
    background-color: var(--fondo);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--texto-principal);
    border-left: 4px solid var(--verde-sutil);
}
/* 4. Estilos del footer */
.footer {
    text-align: center;
    padding: 40px;
    background-color: var(--texto-principal);
    color: var(--fondo);
    font-size: 0.9rem;
}
.footer a {
    color: var(--fondo);
    text-decoration: none;
    margin: 0 10px;
}

/* --- BOTÓN DE COMPRA WHATSAPP --- */
.btn-comprar {
    display: inline-block;
    background-color: var(--verde-sutil); /* Color verde para asociarlo a WhatsApp/Natural */
    color: white;
    text-align: center;
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: auto; /* Empuja el botón al fondo del modal */
    border: none;
    cursor: pointer;
}

.btn-comprar:hover {
    background-color: #55684A; /* Un verde más oscuro al pasar el mouse */
    transform: scale(1.02);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 3rem; }
    .hero-section .script-font { font-size: 2.5rem; }
    .modal-body { flex-direction: column; }
    .modal-img { width: 100%; height: 250px; }
    .modal-info { width: 100%; padding: 25px; }
}