/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #A45D5D; /* Un tono rosa viejo/terracota */
    --secondary-color: #F4EAE0; /* Crema suave */
    --text-color: #312525;
    --accent-color: #778A35; /* Verde olivo */
    --white: #ffffff;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header y Navegación --- */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-icons .bx {
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 90vh;
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin: 20px 0 30px;
    max-width: 600px;
}

.btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #8a4c4c;
}

/* --- Products Section --- */
.products {
    padding: 80px 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.4rem;
    padding: 15px 20px 5px;
}

.product-card .description {
    padding: 0 20px;
    font-size: 0.9rem;
    color: #666;
    flex-grow: 1; /* Empuja el footer hacia abajo */
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: 15px;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.btn-add-cart {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background-color 0.3s ease;
}

.btn-add-cart:hover {
    background-color: #5e6f2a;
}

/* --- About Us Section --- */
.about {
    background-color: var(--secondary-color);
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

/* --- Footer --- */
.footer {
    background-color: var(--text-color);
    color: #ccc;
    padding: 40px 20px;
    text-align: center;
}

.footer-content h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-content a {
    color: var(--secondary-color);
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    margin: 0 10px;
    font-size: 1.8rem;
    color: var(--white);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* --- Notification Toast --- */
#toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    z-index: 1000;
}

#toast.show {
    opacity: 1;
    visibility: visible;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simplificado para el ejemplo, se podría implementar un menú hamburguesa */
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .about-content {
        flex-direction: column;
    }
}