:root {
    /* Colores */
    --primary-color: #20B2AA;
    --secondary-color: #FCB151;
    --background-color: #F4FCF9;
    --footer-bg-color: #1A4B4B;
    --button-color: #FCB111; /* Ligeramente ajustado para un mejor contraste */
    --text-color-dark: #333333;
    --text-color-light: #fefefe;
    --accent-color: #E06C75; /* Un color de acento vibrante, pero usado con moderación */

    /* Paleta de fondos de sección */
    --section-bg-1: #DBEDF3;
    --section-bg-2: #FCF7E9;
    --section-bg-3: #81D3D3;
    --section-bg-4: #FFFFFF;
    --section-bg-5: #FCB151; /* El color del botón puede ser un fondo de sección fuerte */

    /* Tipografía */
    --font-primary: 'Nunito', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    --base-font-size: 18px;
    --line-height-base: 1.7;
    --heading-line-height: 1.2;

    /* Espaciado */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;

    /* Bordes y sombras */
    --border-radius-base: 12px;
    --shadow-subtle: 0px 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0px 8px 25px rgba(0, 0, 0, 0.15);
    --clay-shadow-light: 4px 4px 10px rgba(0, 0, 0, 0.1), -4px -4px 10px rgba(255, 255, 255, 0.7);
    --clay-shadow-hover: 2px 2px 5px rgba(0, 0, 0, 0.08), -2px -2px 5px rgba(255, 255, 255, 0.5);

    /* Transiciones */
    --transition-speed: 0.3s;
    --transition-ease: ease-in-out;
}

/* Base global styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--base-font-size);
    line-height: var(--line-height-base);
    color: var(--text-color-dark);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-ease),
                text-shadow var(--transition-speed) var(--transition-ease);
}

a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px rgba(var(--primary-color), 0.3);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--text-color-dark);
    line-height: var(--heading-line-height);
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.5em; font-weight: 800; }
h2 { font-size: 2.8em; font-weight: 700; }
h3 { font-size: 2.2em; font-weight: 600; }
h4 { font-size: 1.8em; font-weight: 600; }
h5 { font-size: 1.4em; font-weight: 500; }
h6 { font-size: 1.1em; font-weight: 500; }

p {
    margin-bottom: 1em;
}

ul, ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

/* Utility classes for spacing and sections */
.section {
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-lg);
}

.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); }


/* Buttons - Claymorphism inspired */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius-base);
    font-family: var(--font-secondary);
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all var(--transition-speed) var(--transition-ease);
    box-shadow: var(--clay-shadow-light); /* Claymorphism base shadow */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--button-color) 0%, darken(var(--button-color), 10%) 100%);
    color: var(--text-color-light); /* Asegura texto legible */
}

.btn:hover {
    transform: translateY(-3px); /* Efecto de levantamiento */
    box-shadow: var(--clay-shadow-hover), 0px 10px 20px rgba(0, 0, 0, 0.1); /* Sombra más pronunciada al levantar */
    background: linear-gradient(135deg, darken(var(--button-color), 5%) 0%, darken(var(--button-color), 15%) 100%);
}

.btn:active {
    transform: translateY(1px); /* Efecto de "presionado" */
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2), inset -2px -2px 5px rgba(255, 255, 255, 0.5);
}

/* Card styles - Claymorphism inspired */
.card {
    background-color: var(--section-bg-4); /* Blanco suave para las tarjetas */
    border-radius: var(--border-radius-base);
    padding: var(--spacing-lg);
    box-shadow: var(--clay-shadow-light);
    transition: all var(--transition-speed) var(--transition-ease);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--clay-shadow-hover), 0px 12px 25px rgba(0, 0, 0, 0.1);
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-base);
    font-family: var(--font-primary);
    font-size: 1em;
    color: var(--text-color-dark);
    background-color: var(--section-bg-4);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05); /* Sombra interior sutil */
    transition: all var(--transition-speed) var(--transition-ease);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(var(--primary-color), 0.2);
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Image styles */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-base); /* Suaves bordes para imágenes */
    box-shadow: var(--shadow-subtle);
}

/* Footer specific styles */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--text-color-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.footer a {
    color: var(--section-bg-3); /* Un color de enlace que resalte en el footer */
}

.footer a:hover {
    color: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.6em; }
    .section {
        padding: var(--spacing-lg) 0;
    }
    .btn {
        padding: 12px 24px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.6em; }
    h3 { font-size: 1.3em; }
    body {
        font-size: 16px;
    }
    .section {
        padding: var(--spacing-md) 0;
    }
}

/* Global transitions for elements */
* {
    box-sizing: border-box;
}

::selection {
    background: var(--primary-color);
    color: var(--text-color-light);
}
::-moz-selection {
    background: var(--primary-color);
    color: var(--text-color-light);
}


/* 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;
    }
}