:root {
    /* Colores */
    --color-primary: #4CAF50;
    --color-secondary: #8BC34A;
    --color-background: #F5F5DC;
    --color-footer-bg: #388E3C;
    --color-button: #66BB6A;
    --color-text-dark: #333;
    --color-text-light: #fff;
    --color-accent-light: #A5D6A7; /* Un tono más claro para gradientes */

    /* Fuentes */
    --font-family-heading: 'Montserrat', sans-serif;
    --font-family-body: 'Open Sans', sans-serif;

    /* Espaciado */
    --spacing-unit: 1rem;
    --padding-section: 6rem 0; /* Mayor padding para secciones */

    /* Bordes y sombras */
    --border-radius-base: 1rem; /* Bordes más redondeados */
    --shadow-clay-subtle: 0 4px 10px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.05); /* Sombra para claymorphism */
    --shadow-clay-hover: 0 6px 15px rgba(0, 0, 0, 0.15), 0 10px 25px rgba(0, 0, 0, 0.08); /* Sombra al hover */
    --transition-speed: 0.3s ease-in-out;
}

/* Base global styles */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base para rem */
}

body {
    font-family: var(--font-family-body);
    color: var(--color-text-dark);
    line-height: 1.7; /* Mayor line-height para legibilidad */
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: var(--spacing-unit);
    letter-spacing: -0.02em; /* Ligeramente más apretado para headings */
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    font-weight: 600;
}

h3 {
    font-size: 2.2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.8rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--border-radius-base);
    font-family: var(--font-family-heading);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text-light);
    background: linear-gradient(135deg, var(--color-button) 0%, var(--color-accent-light) 100%);
    box-shadow: var(--shadow-clay-subtle);
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-clay-hover);
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-button) 100%);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: transparent;
    padding: 1.5rem 0;
    transition: background-color var(--transition-speed);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9); /* Ligera transparencia al hacer scroll */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    flex-grow: 1;
    text-align: center;
}

.logo a {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-family: var(--font-family-body);
    font-weight: 500;
    color: var(--color-text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-base);
    transition: all var(--transition-speed);
}

.nav-link:hover {
    color: var(--color-secondary);
    background-color: rgba(var(--color-primary), 0.05);
    text-decoration: none;
}

/* Sections */
.section {
    padding: var(--padding-section);
    position: relative;
    overflow: hidden; /* Para contener animaciones */
}

/* Alternating section backgrounds */
.section-bg-1 {
    background-color: #E8F5E9;
}
.section-bg-2 {
    background-color: #DCEDC8;
}
.section-bg-3 {
    background-color: #F1F8E9;
}
.section-bg-4 {
    background-color: #C8E6C9;
}
.section-bg-5 {
    background-color: #B9F6CA;
}
.section-bg-6 {
    background-color: #A5D6A7;
}

/* Cards ( Claymorphism style ) */
.card {
    background-color: #fff;
    border-radius: var(--border-radius-base);
    padding: 2rem;
    box-shadow: var(--shadow-clay-subtle);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-clay-hover);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-base);
    font-family: var(--font-family-body);
    font-size: 1rem;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(var(--color-primary), 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: 4rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer a {
    color: var(--color-accent-light);
    text-decoration: underline;
}

.footer a:hover {
    color: var(--color-text-light);
}

/* Image style (complementary to the overall aesthetic) */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-base); /* Suavizar imágenes */
    box-shadow: var(--shadow-clay-subtle); /* Sombra sutil para imágenes */
}

/* Utility classes (considering Tailwind base) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0; /* Ocultar inicialmente */
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.4rem;
    }
    h3 {
        font-size: 1.9rem;
    }
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.6rem;
    }
    .header-container {
        flex-direction: column;
        padding: 1rem 2rem;
    }
    .logo {
        margin-bottom: 1rem;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .nav-link {
        padding: 0.4rem 0.8rem;
    }
    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    .container {
        padding: 0 1.5rem;
    }
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    h3 {
        font-size: 1.3rem;
    }
    .logo a {
        font-size: 1.5rem;
    }
    .nav {
        flex-direction: column;
        align-items: center;
    }
    .nav-link {
        width: 100%;
        text-align: center;
    }
    .btn {
        width: 100%;
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    .container {
        padding: 0 1rem;
    }
    .card {
        padding: 1.5rem;
    }
    .footer {
        padding: 2rem 0;
    }
}


/* 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;
    }
}