/* =========================================
   VARIABLES
========================================= */
:root {
    --verde-oscuro: #036635;
    --verde-claro: #B8EA60;
    --verde-medio: #90BF3E;
    --verde-limon: #39A935;
    --negro: #000000;
    --blanco: #ffffff;
    --gris-linea: #dedede;
    --hero-contenido-ancho: 1200px;
    --hero-contenido-left: 55px;
    --hero-contenido-top: 200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", Arial, sans-serif;
    background: var(--blanco);
    color: var(--negro);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / 50%);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.preloader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

html.no-js .preloader {
    display: none;
}

.preloader-gif {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .preloader {
        transition: none;
    }
}

/* Recaptcha v3: el distintivo queda encima del selector de idioma. */
.grecaptcha-badge {
    bottom: 76px !important;
    z-index: 10000;
}

.recaptcha-notice {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.recaptcha-notice a {
    color: #036635;
    text-decoration: none;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

/* Language Switcher */
.language-switcher-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fff;
    padding: 6px;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 8px;
    border-radius: 14px;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.language-option img {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    object-fit: cover;
}

.language-option.active-language {
    background: #06733a;
    color: #fff;
}

@media (max-width: 768px) {
    .language-switcher-container {
        bottom: 10px;
        right: 10px;
    }

    .language-switcher {
        padding: 4px;
        border-radius: 16px;
    }

    .language-option {
        gap: 6px;
        padding: 4px 10px 4px 6px;
        font-size: 16px;
    }

    .language-option img {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }
}