:root {
    --color-primary: #28a745;
    --color-secondary: #20c997;
    --color-accent: #17a2b8; /* A complementary accent for vibrancy */
    --color-background: #f8f9fa;
    --color-text-dark: #222d35;
    --color-text-light: #ffffff;
    --color-footer-bg: #222d35;

    --color-section-1: #ffffff;
    --color-section-2: #f1fdf3;
    --color-section-3: #e6f8ea;
    --color-section-4: #d9f1dc;

    --font-family-heading: 'Montserrat', sans-serif;
    --font-family-body: 'Lato', sans-serif;

    --border-radius-soft: 12px;
    --border-radius-oval: 50px; /* For oval buttons */

    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12);

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;

    --transition-speed: 0.3s;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--color-text-dark);
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    line-height: 1.2;
}

h1 { font-size: 2.8em; font-weight: 700; }
h2 { font-size: 2.2em; font-weight: 600; }
h3 { font-size: 1.8em; font-weight: 600; }
h4 { font-size: 1.4em; font-weight: 500; }
h5 { font-size: 1.2em; font-weight: 500; }
h6 { font-size: 1em; font-weight: 500; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

ul, ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

/* Layout & Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section:nth-of-type(odd) {
    background-color: var(--color-section-1);
}

.section:nth-of-type(even) {
    background-color: var(--color-section-2);
}

/* Header */
.header {
    background-color: var(--color-background);
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.header-content {
    display: flex;
    justify-content: center; /* Centered logo */
    align-items: center;
    position: relative; /* For absolutely positioned nav */
}

.header-logo {
    font-family: var(--font-family-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-md);
    position: absolute; /* Position navigation relative to header-content */
    right: 0; /* Align to the right */
}

.nav-menu li a {
    color: var(--color-text-dark);
    font-weight: 500;
    padding: 0.5em 0;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.nav-menu li a:hover {
    color: var(--color-primary);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed) ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-family-heading);
    font-weight: 600;
    font-size: 1em;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-oval);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    background-image: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: var(--color-text-light);
    background-size: 200% 100%;
    background-position: 0% 0%;
}

.btn-primary:hover {
    background-position: 100% 0%;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

.btn-secondary:hover {
    background-color: darken(var(--color-accent), 10%);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background-color: var(--color-section-1);
    border-radius: var(--border-radius-soft);
    box-shadow: var(--shadow-soft);
    padding: var(--spacing-md);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius-soft);
    font-family: var(--font-family-body);
    font-size: 1em;
    color: var(--color-text-dark);
    background-color: var(--color-section-1);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #888;
    opacity: 0.8;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--color-primary), 0.25);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    font-size: 0.9em;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1em;
    font-weight: 600;
}

.footer-nav-list,
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li,
.footer-contact-list li {
    margin-bottom: 8px;
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-icons a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5em;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.social-icons a:hover {
    color: var(--color-secondary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
}

/* Alpine.js specific styles (x-cloak, x-transition) */
[x-cloak] {
    display: none !important;
}

/* Example for x-transition: fade in/out */
.fade-enter-active, .fade-leave-active {
    transition: opacity var(--transition-speed) ease;
}
.fade-enter, .fade-leave-to {
    opacity: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }

    .header-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-menu {
        position: static;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
        width: 100%;
        margin-top: var(--spacing-sm);
    }

    .nav-menu li a {
        padding: 0.5em 0;
    }

    .section {
        padding: var(--spacing-lg) 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Utility classes for background sections, if not using Tailwind's bg-colors directly */
.bg-section-1 { background-color: var(--color-section-1); }
.bg-section-2 { background-color: var(--color-section-2); }
.bg-section-3 { background-color: var(--color-section-3); }
.bg-section-4 { background-color: var(--color-section-4); }

/* Additional creative touches for 'salud y naturaleza' theme */
.hero-section {
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('https://via.placeholder.com/1920x600/f1fdf3/28a745?text=Naturaleza+y+Salud'); /* Placeholder, replace with actual image */
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: var(--spacing-xl) 0;
    color: var(--color-text-dark);
}

.hero-section h1 {
    font-size: 3.5em;
    color: var(--color-primary);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.hero-section p {
    font-size: 1.25em;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Subtle leaf pattern or organic texture in some sections */
.section.with-organic-pattern {
    background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path fill="%23e6f8ea" d="M117.8,-21.8C127.3,10.6,102.7,56.7,66.9,79.5C31.1,102.4,-16.9,102,-56.9,81.1C-96.9,60.2,-128.9,18.8,-119.5,-12.3C-110.1,-43.4,-59.4,-63.3,-15.7,-60.9C28.1,-58.5,70.9,-33.8,117.8,-21.8Z" transform="translate(100 100)" /></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
}

/* Enhancing card elements specific to 'soft cards' style */
.card-soft {
    border: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    background-color: var(--color-section-1);
    border-radius: var(--border-radius-soft);
    padding: var(--spacing-md);
    transition: all var(--transition-speed) ease;
}

.card-soft:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Input focus with a subtle glow, inspired by 'enfoque sutil' */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    box-shadow: 0 0 0 4px rgba(var(--color-primary), 0.2); /* Softer glow */
    border-color: var(--color-primary);
}


/* 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;
    }
}