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

/* ===================== VARIABLES ===================== */
:root {
    --wood-dark: #5D4E37;
    --wood-medium: #8B7355;
    --wood-light: #D2B48C;
    --cream: #e6dacc;
    --white: #FFFFFF;
    --text-dark: #3E2723;
    --accent: #A0826D;
    --radius: 8px;
    --section-padding: 60px;
    --card-padding: 30px;
}

/* ===================== BASE ===================== */
body {
    font-family: 'Quicksand', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
}

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

/* ===================== BOTONES ===================== */
.btn {
    font-family: 'Quicksand', 'Segoe UI', sans-serif;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn {
    font-family: 'Quicksand', 'Segoe UI', sans-serif;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 16px;
    background-color: var(--white);
    border: 2px solid var(--wood-light);
    color: var(--wood-medium);
    font-size: 0.9rem;
}

.lang-btn:hover {
    background-color: var(--wood-light);
    color: var(--wood-dark);
}

.lang-btn.active {
    background-color: var(--wood-dark);
    border-color: var(--wood-dark);
    color: var(--white);
}

.btn-submit {
    font-family: 'Quicksand', 'Segoe UI', sans-serif;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    padding: 15px;
    background-color: var(--wood-light);
    color: var(--wood-dark);
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-submit:hover {
    background-color: var(--accent);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===================== HEADER ===================== */
header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo {
    text-align: center;
}

.logo img {
    height: 15vh;
    width: auto;
    margin-top: 2rem;
}

.language-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ===================== HERO ===================== */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--wood-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: var(--wood-medium);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* ===================== PRODUCTS ===================== */
.products {
    padding: var(--section-padding) 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--wood-dark);
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--cream);
    padding: var(--card-padding);
    border-radius: var(--radius);
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.product-icon svg {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: block;
}

.product-card h3 {
    color: var(--wood-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.product-card p {
    color: var(--wood-medium);
    font-size: 0.95rem;
}

/* ===================== WHY ===================== */
.why {
    padding: var(--section-padding) 0;
}

.why-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.why-content p {
    font-size: 1.1rem;
    color: var(--wood-medium);
    margin-bottom: 20px;
    line-height: 1.8;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.benefit {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--wood-medium);
}

.benefit h4 {
    color: var(--wood-dark);
    margin-bottom: 10px;
}

/* ===================== NEWSLETTER ===================== */
.newsletter {
    padding: 80px 0;
    background-color: var(--wood-dark);
    color: var(--white);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    font-size: 1.99rem;
    margin-bottom: 20px;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

/* ===================== MENSAJES ===================== */
.success-message {
    display: none;
    padding: 15px;
    background-color: #4CAF50;
    color: white;
    border-radius: 4px;
    margin-top: 15px;
}

.error-message {
    display: none;
    padding: 15px;
    background-color: #f44336;
    color: white;
    border-radius: 4px;
    margin-top: 15px;
}

/* ===================== FOOTER ===================== */
footer {
    background-color: var(--white);
    padding: 30px 0;
    text-align: center;
    color: var(--wood-medium);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Footer link */
.footer-link {
    color: var(--wood-medium);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.footer-link:hover {
    color: var(--wood-dark);
}

/* ===================== MOTITAS BACKGROUND ===================== */
.bg-motitas {
    position: relative;
    background-color: var(--white);
    z-index: 0;
    overflow: hidden;
}

.bg-motitas::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        radial-gradient(circle, #8B7355 2px, transparent 4px),
        radial-gradient(circle, #A0826D 1.5px, transparent 3px),
        radial-gradient(circle, #5D4E37 2.5px, transparent 5px);
    background-size: 40px 40px, 60px 60px, 80px 80px;
    background-repeat: repeat;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

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

    .lang-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}