:root {
    /* Colores */
    --color-primary: #2e8b57; /* Verde bosque */
    --color-secondary: #b0c99a; /* Verde salvia claro */
    --color-background: #ece9e1; /* Blanco hueso / Crema suave */
    --color-footer-bg: #274f2b; /* Verde oscuro para el footer */
    --color-button: #8a6e4d; /* Marrón tierra / Caramelo */
    --color-text-dark: #333;
    --color-text-light: #f9f9f9;
    --color-accent: #a0c087; /* Un tono ligeramente más vibrante para acentos */

    /* Colores de fondo de sección */
    --section-bg-1: #f5f2ed;
    --section-bg-2: #e0e8d7;
    --section-bg-3: #e8f0e4;
    --section-bg-4: #f0e7d6;
    --section-bg-5: #dce8c5;

    /* Fuentes */
    --font-family-heading: 'Roboto', sans-serif;
    --font-family-body: 'Open Sans', sans-serif;

    /* Espaciado */
    --spacing-unit: 1rem; /* 16px */
    --padding-sm: calc(var(--spacing-unit) * 1);
    --padding-md: calc(var(--spacing-unit) * 1.5);
    --padding-lg: calc(var(--spacing-unit) * 2);

    /* Bordes y sombras */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --shadow-subtle: 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-button: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Transiciones */
    --transition-speed: 0.3s;
    --transition-ease: ease-in-out;
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evita scroll horizontal */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-primary);
    margin-top: 2em;
    margin-bottom: 1em;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-primary);
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary);
}

p {
    margin-bottom: 1em;
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease);
}

a:hover {
    color: var(--color-accent);
}

/* Utility classes for layout (assuming Tailwind is present, these are for custom overrides/components) */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--padding-md);
    padding-right: var(--padding-md);
}

.section {
    padding: var(--padding-lg) 0;
    margin-bottom: var(--padding-lg);
    position: relative;
}

/* Backgrounds for sections */
.section-bg-1 { background-color: var(--section-bg-1); }
.section-bg-2 { background-color: var(--section-bg-2); }
.section-bg-3 { background-color: var(--section-bg-3); }
.section-bg-4 { background-color: var(--section-bg-4); }
.section-bg-5 { background-color: var(--section-bg-5); }

/* Header */
.header {
    background-color: var(--color-footer-bg); /* Verde oscuro, casi negro */
    padding: var(--padding-sm) var(--padding-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .logo {
    height: 50px; /* Ajusta el tamaño del logo */
    display: block;
    /* Estilo del logo abstracto/orgánico, si fuera un SVG o un div */
    background: url('https://via.placeholder.com/150x50?text=Logo+Orgánico') no-repeat center center / contain;
    width: 150px; /* Ancho para el placeholder */
}

.header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--padding-md);
}

.header nav ul li a {
    color: var(--color-secondary); /* Elementos de navegación en color secundario */
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius-sm);
    transition: background-color var(--transition-speed) var(--transition-ease), color var(--transition-speed) var(--transition-ease);
}

.header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
}

.header .cart-icon {
    color: var(--color-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-speed) var(--transition-ease);
}

.header .cart-icon:hover {
    color: var(--color-accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: var(--border-radius-md); /* Ligeramente redondeados */
    font-family: var(--font-family-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-ease);
    box-shadow: var(--shadow-button); /* Sombra sutil */
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-button);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-button) 0%, darken(var(--color-button), 10%) 100%); /* Gradiente suave */
    transform: translateY(-2px); /* Ligerísimo levantamiento */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--color-secondary) 0%, darken(var(--color-secondary), 5%) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Card styles */
.card {
    background-color: #fff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-subtle);
    padding: var(--padding-lg);
    margin-bottom: var(--padding-lg);
    transition: transform var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--padding-lg) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Textura granulada suave de fondo */
    background-image: url('data:image/svg+xml,%3Csvg width="100%25" height="100%25" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"%3E%3C/feTurbulence%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"%3E%3C/rect%3E%3C/svg%3E');
    background-size: cover;
    background-repeat: no-repeat;
}

.footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0 var(--padding-md);
    max-width: 1200px;
    margin: 0 auto;
}

.footer .footer-section {
    flex: 1;
    min-width: 200px;
    margin: var(--padding-md);
    text-align: left;
}

.footer .footer-section h4 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: 1em;
    font-weight: 600;
}

.footer .footer-section p,
.footer .footer-section ul {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-section ul li {
    margin-bottom: 0.5em;
}

.footer .footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-speed) var(--transition-ease);
}

.footer .footer-section ul li a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer .social-icons {
    margin-top: 1.5em;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.footer .social-icons a {
    color: var(--color-secondary);
    font-size: 1.8rem;
    transition: transform var(--transition-speed) var(--transition-ease), color var(--transition-speed) var(--transition-ease);
    animation: float 3s ease-in-out infinite; /* Animación de flotación */
}

.footer .social-icons a:hover {
    color: var(--color-accent);
    transform: translateY(-5px) scale(1.1);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.footer .footer-bottom {
    margin-top: var(--padding-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--padding-md);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-secondary);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: border-color var(--transition-speed) var(--transition-ease), box-shadow var(--transition-speed) var(--transition-ease);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary), 0.2);
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .header nav ul {
        margin-top: var(--padding-sm);
        flex-wrap: wrap;
        justify-content: center;
    }

    .header .cart-icon {
        margin-top: var(--padding-sm);
    }

    .footer .footer-section {
        min-width: 100%;
        text-align: center;
    }

    .footer .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

/* Helper for visual debugging */
/*
.debug * {
    outline: 1px solid rgba(255, 0, 0, 0.3) !important;
}
*/


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}