/* General Styles */
:root {
    --primary-color: #6A8E71; /* A calm green */
    --secondary-color: #A9BCA4; /* Lighter green */
    --accent-color: #D4A373; /* Earthy orange/brown */
    --text-color: #333;
    --light-text-color: #f4f4f4;
    --background-color: #F8F8F8;
    --white: #ffffff;
    --border-color: #ddd;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

h2 { font-size: 2.5em; }
h3 { font-size: 2em; }
h4 { font-size: 1.5em; }

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5em;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.8em 1.5em;
    border-radius: 5px;
    margin-top: 1em;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #c48b61; /* Darker accent */
}

.btn-small {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.5em 1em;
    border-radius: 3px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.btn-small:hover {
    background-color: var(--primary-color);
}

/* Header */
.main-header {
    background-color: var(--white);
    padding: 1em 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin: 0;
    font-size: 1.8em;
}

.logo a {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 1.5em;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    background: url('https://via.placeholder.com/1500x700?text=Fondo+de+té+elegante') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 8em 1.5em;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4); /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3.5em;
    margin-bottom: 0.5em;
    color: var(--white);
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 2em;
    line-height: 1.4;
}

/* About Section */
.about-section {
    display: flex;
    align-items: center;
    gap: 3em;
    padding: 4em 0;
    background-color: var(--white);
    margin-top: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Products Section */
.products-section {
    padding: 4em 0;
    text-align: center;
}

.products-section h3 {
    margin-bottom: 0.5em;
}

.section-description {
    font-size: 1.1em;
    margin-bottom: 3em;
    color: #666;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
    margin-bottom: 3em;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5em;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.product-card img {
    max-width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1em;
}

.product-card h4 {
    margin-top: 0;
    color: var(--text-color);
}

.product-card p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 1.5em;
    min-height: 3em; /* Ensure consistent card height */
}

.product-card .price {
    display: block;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1em;
}

.view-all {
    margin-top: 3em;
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 4em 0;
    margin-top: 3em;
}

.contact-section h3 {
    color: var(--white);
    margin-bottom: 0.5em;
}

.contact-section p {
    font-size: 1.1em;
    margin-bottom: 2em;
}

.contact-section .btn {
    background-color: var(--accent-color);
    color: var(--white);
}

.contact-section .btn:hover {
    background-color: #c48b61;
}

/* Footer */
.main-footer {
    background-color: var(--text-color);
    color: var(--light-text-color);
    padding: 2em 0;
    text-align: center;
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.main-footer .social-links a {
    color: var(--light-text-color);
    margin-left: 1em;
    transition: color 0.3s ease;
}

.main-footer .social-links a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }

    .main-nav ul {
        margin-top: 1em;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav ul li {
        margin: 0.5em 1em;
    }

    .hero-content h2 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .about-section {
        flex-direction: column;
        gap: 2em;
    }

    .about-image img {
        max-width: 80%;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .main-footer .container {
        flex-direction: column;
        gap: 1em;
    }

    .main-footer .social-links {
        margin-top: 1em;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0.8em 0;
    }

    .logo {
        font-size: 1.5em;
    }

    .main-nav ul li {
        margin: 0.3em 0.8em;
    }

    .hero-section {
        padding: 6em 1em;
    }

    .hero-content h2 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 0.9em;
    }

    h3 {
        font-size: 1.5em;
    }

    .product-card {
        padding: 1em;
    }
}