﻿/* ========== VARIABLES DE COLOR (Basadas en la AmazonÃ­a peruana) ========== */
:root {
    --color-deep-green: #1A4331;
    --color-jungle-green: #2D5A3F;
    --color-leaf-green: #4C7D54;
    --color-lime: #7BA05B;
    --color-sunset-gold: #D49B3B;
    --color-warm-orange: #E07B39;
    --color-dark-wood: #3E2E24;
    --color-earth: #6B4F3C;
    --color-cream: #FDF7F0;
    --color-white: #FFFFFF;
    --color-text: #2C2416;
    --color-text-light: #5C5348;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --shadow-card: 0 15px 35px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    --border-radius: 1.2rem;
}

/* ========== RESET ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== UTILIDADES ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-accent {
    color: var(--color-sunset-gold);
    font-weight: 700;
}

/* ========== BOTONES ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 3rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-sunset-gold), var(--color-warm-orange));
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(224,123,57,0.4);
}
.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(224,123,57,0.6);
}

.btn--outline {
    border-color: var(--color-warm-orange);
    color: var(--color-warm-orange);
    background: transparent;
}
.btn--outline:hover {
    background-color: var(--color-warm-orange);
    color: white;
}

.btn--outline-light {
    border-color: white;
    color: white;
}
.btn--outline-light:hover {
    background-color: white;
    color: var(--color-deep-green);
}

.btn--lg {
    padding: 1rem 2.4rem;
    font-size: 1.1rem;
}

/* ========== HEADER STICKY ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #1A4331;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s, padding 0.3s;
    padding: 0.6rem 0;
}
.header--scrolled {
    background: rgba(26, 67, 49, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 0.5rem 0;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Logo */
.header__logo img {
    display: block;
}

/* NavegaciÃ³n */
.nav__list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}
.nav__link {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-sunset-gold);
    transition: width 0.3s;
}
.nav__link:hover,
.nav__link--active,
.nav__link.active {
    color: white;
}
.nav__link:hover::after,
.nav__link--active::after,
.nav__link.active::after {
    width: 100%;
}

/* BotÃ³n de compra en header */
.btn--header {
    background: var(--color-warm-orange);
    color: white;
    padding: 0.4rem 1.5rem;
    font-size: 0.95rem;
}
.btn--header:hover {
    background: var(--color-sunset-gold);
}

/* Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}
.hamburger__line {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 5px;
    transition: all 0.3s;
}
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========== HERO (solo index.html) ========== */
.hero {
    height: 100vh;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}
.hero__bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26,67,49,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}
.hero__content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 0 1rem;
    animation: fadeInUp 1s ease-out;
}
.hero__badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.25);
    /* SeparaciÃ³n extra para escritorio, evitando que quede pegado al header */
    margin-top: 2rem;
}
.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}
.hero__title-accent {
    color: var(--color-sunset-gold);
    display: block;
}
.hero__subtitle {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.2rem;
    opacity: 0.9;
}
.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.hero__stats {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero__stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-sunset-gold);
}
.hero__stat-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ========== SECCIONES GENERALES ========== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header__tag {
    display: inline-block;
    background: rgba(212,155,59,0.15);
    color: var(--color-warm-orange);
    font-weight: 700;
    padding: 0.4rem 1.5rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.section-header__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-deep-green);
    margin-bottom: 1rem;
}
.section-header__desc {
    max-width: 650px;
    margin: 0 auto;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

/* ========== TARJETAS DE ANIMALES ========== */
.animals {
    padding: 5rem 0;
    background-color: #f0f2e9;
}
.carousel {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}
.carousel__track {
    display: flex;
    transition: transform 0.4s ease;
}
.carousel__slide {
    min-width: 100%;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
}
.animal-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 380px;
    transition: transform 0.3s;
}
.animal-card:hover {
    transform: translateY(-6px);
}
.animal-card--featured {
    border: 2px solid var(--color-sunset-gold);
}
.animal-card__image-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}
.animal-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.animal-card:hover .animal-card__img {
    transform: scale(1.05);
}
.animal-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-sunset-gold);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
}
.animal-card__body {
    padding: 1.5rem;
}
.animal-card__name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-deep-green);
    margin-bottom: 0.2rem;
}
.animal-card__scientific {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}
.animal-card__fact {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.animal-card__tag {
    background: #e0f2e9;
    color: var(--color-jungle-green);
    padding: 0.2rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--color-deep-green);
    transition: 0.3s;
    z-index: 10;
}
.carousel__btn:hover {
    background: var(--color-sunset-gold);
    color: white;
}
.carousel__btn--prev { left: 10px; }
.carousel__btn--next { right: 10px; }
.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}
.carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.carousel__dot--active {
    background: var(--color-warm-orange);
}

/* ========== EDUCACIÃ“N ========== */
.education {
    padding: 5rem 0;
    position: relative;
}
.education__grid {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.education__content {
    flex: 1 1 500px;
}
.education__text {
    margin-bottom: 1.2rem;
    color: var(--color-text-light);
}
.education__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
@media (max-width: 992px) {
    .education__features {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .education__features {
        grid-template-columns: 1fr;
    }
}
.education__feature {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1.2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    align-items: flex-start;
}
.education__feature-icon {
    font-size: 2rem;
}
.education__feature h4 {
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--color-deep-green);
}
.education__image-wrapper {
    flex: 1 1 380px;
    position: relative;
}
.education__img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}
.education__image-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: white;
    padding: 0.3rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ========== VISITA ========== */
.visit {
    padding: 5rem 0;
    background: #f7f5f0;
}
.visit__grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.visit__info {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.visit__card {
    background: white;
    padding: 1.8rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.visit__card-icon {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}
.visit__list {
    list-style: none;
    margin: 0.8rem 0;
}
.visit__list li {
    margin: 0.3rem 0;
}
.visit__map-wrapper {
    flex: 1 1 450px;
}
.visit__map {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.visit__map iframe {
    display: block;
}

/* ========== CTA BANNER ========== */
.cta-banner {
    background: linear-gradient(135deg, var(--color-deep-green) 0%, #0f2a1e 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}
.cta-banner__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.cta-banner__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ========== FOOTER ========== */
.footer {
    margin-top: auto !important; width: 100%;
    background: var(--color-dark-wood);
    color: #e0d7c6;
    padding: 4rem 0 1.5rem;
}
.footer__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.footer__brand { flex: 2 1 250px; }
.footer__links,
.footer__contact,
.footer__newsletter { flex: 1 1 180px; }

.footer h4 {
    color: var(--color-sunset-gold);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}
.footer ul {
    list-style: none;
}
.footer ul li {
    margin-bottom: 0.5rem;
}
.footer a {
    color: #c0b19c;
    text-decoration: none;
    transition: 0.3s;
}
.footer a:hover { color: var(--color-sunset-gold); }
.footer__social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.footer__social-link {
    font-size: 1.3rem;
    color: #c0b19c;
}
.footer__form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}
.footer__form input {
    padding: 0.6rem;
    border-radius: 2rem;
    border: none;
    flex: 1;
}
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ========== ANIMACIONES ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==============================================================================================
   RESPONSIVE - MEJORAS PARA MÃ“VILES Y TABLETS (MENÃš COMPACTO Y HERO COMPLETO)
   ============================================================================================== */

/* Pantallas medianas (tablets y mÃ³viles grandes) */
@media (max-width: 768px) {
    /* MenÃº hamburguesa lateral compacto */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        background: rgba(26, 67, 49, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: right 0.4s;
        padding: 5rem 1.5rem 1.5rem;
        box-shadow: -5px 0 25px rgba(0,0,0,0.3);
        z-index: 999;
    }
    .nav--visible {
        right: 0;
    }
    .nav__list {
        flex-direction: column;
        gap: 1.8rem;
        align-items: center;
        width: 100%;
    }
    .nav__link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .hamburger {
        display: flex;
    }
    .btn--header {
        display: none;
    }

    /* Logo mÃ¡s pequeÃ±o */
    .header__logo img {
        height: 40px !important;
    }

    /* HERO: permitir que crezca si el contenido lo necesita */
    .hero {
        height: auto;
        min-height: 100vh;
    }
    .hero__bg-img {
        height: 100%;
    }

    /* Espacio superior EXTRA para que el badge no quede detrÃ¡s del header */
    .hero__content {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    /* Eliminamos el margin-top del badge en mÃ³viles, ya que el padding superior lo separa */
    .hero__badge {
        margin-top: 0;
    }

    .hero__title {
        font-size: clamp(2.2rem, 8vw, 3.5rem) !important;
    }
    .hero__actions {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    .hero__stats {
        gap: 1.5rem;
    }
    .hero__stat-number {
        font-size: 1.8rem;
    }
}

/* Pantallas pequeÃ±as (mÃ³viles) */
@media (max-width: 480px) {
    .nav {
        max-width: 260px;
        padding: 1rem;
    }
    .nav__list {
        gap: 1.5rem;
    }
    .nav__link {
        font-size: 1rem;
    }

    .hero__title {
        font-size: clamp(2rem, 10vw, 2.8rem) !important;
        line-height: 1.2;
    }
    .hero__subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        margin-bottom: 1.2rem;
    }
    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
    .hero__stats {
        flex-direction: column;
        gap: 0.8rem;
    }
    .hero__stat-number {
        font-size: 1.6rem;
    }
    .hero__stat-label {
        font-size: 0.8rem;
    }

    /* Mantener el padding superior para el badge en mÃ³viles pequeÃ±os */
    .hero__content {
        padding-top: 1.5rem;
        padding-bottom: 2.5rem;
    }

    /* Footer newsletter apilado */
    .footer__form {
        flex-direction: column;
    }
    .footer__form input {
        width: 100%;
    }

    /* Botones del carrusel mÃ¡s compactos */
    .carousel__btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ========== CARRUSEL TÃCTIL (solo mÃ³viles/tablets) ========== */
/* Oculta los botones del carrusel en dispositivos tÃ¡ctiles */
@media (hover: none) and (pointer: coarse) {
    .carousel__btn {
        display: none !important;
    }
}

/* Alternativa: ocultar en pantallas menores a 769px (misma media query que usas para el menÃº) */
@media (max-width: 768px) {
    .carousel__btn {
        display: none !important;
    }
}

/* Texto "Desliza >>" */
.swipe-hint {
    display: none;                /* oculto en escritorio */
    font-size: 0.95rem;
    color: var(--color-warm-orange);
    margin-top: 0.3rem;
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

/* Mostrar solo en dispositivos tÃ¡ctiles (o en pantallas pequeÃ±as) */
@media (hover: none) and (pointer: coarse) {
    .swipe-hint {
        display: block;
    }
}
@media (max-width: 768px) {
    .swipe-hint {
        display: block;
    }
}

/* AnimaciÃ³n sutil para el texto */
@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Cursores personalizados solo para PC */

    /* Forzamos que absolutamente todos los elementos usen tu imagen base como cursor */
        *, *::before, *::after, html, body,
    *:hover, *:active, *:focus, *:visited, *:focus-within {
        cursor: url('../img/cursor.png') 16 16, none !important;
    }

    /* Ahora definimos los estados interactivos con la versiÃ³n Â«alumbradaÂ» */
        a, a:link, a:visited, a:hover, a:active, a:focus,
    button, button:hover, button:active, button:focus,
    .btn, .btn:hover, .btn:active, .btn:focus,
    [role="button"], [role="button"]:hover, [role="button"]:active,
    input[type="submit"], input[type="submit"]:hover, input[type="submit"]:active,
    input[type="button"], input[type="button"]:hover, input[type="button"]:active,
    select, select:hover,
    label, label:hover,
    summary, summary:hover,
    .animal-card, .animal-card:hover, .animal-card:active,
    .carousel__dot, .carousel__dot:hover, .carousel__dot:active,
    .hamburger, .hamburger:hover, .hamburger:active,
    .dropdownToggle, .dropdownToggle:hover, .dropdownToggle:active,
    .form-submit, .form-submit:hover, .form-submit:active {
        cursor: url('../img/cursor-hover.png') 16 16, none !important;
    }
}

/* ========== ALINEACIÃ“N PERFECTA DE ICONOS DEL FOOTER ========== */
.footer__contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__contact-list li {
    display: flex;           /* activa flexbox */
    align-items: flex-start; /* icono arriba, texto puede crecer hacia abajo */
    gap: 0.6rem;             /* espacio entre icono y texto */
    margin-bottom: 0.5rem;   /* separaciÃ³n entre filas */
}

.footer__contact-list li i {
    width: 1.5rem;           /* ancho fijo para todos los iconos */
    text-align: center;      /* centrar el icono dentro de su espacio */
    flex-shrink: 0;          /* evita que el icono se reduzca */
    margin-top: 0.1rem;      /* pequeÃ±o ajuste vertical para que quede alineado con la primera lÃ­nea */
    color: #e0d7c6;          /* hereda el color del footer, o pon el que uses */
}

.footer__contact-list li span {
    flex: 1;                 /* el texto toma el espacio restante */
    line-height: 1.4;
}

@media (max-width: 768px) {
    /* --- Ajustes para compactar el formulario de suscripciÃ³n --- */
    .footer__form {
        display: flex;
        flex-direction: row;      /* input y botÃ³n en la misma lÃ­nea */
        gap: 0.5rem;
        align-items: center;
    }

    .footer__form input {
        flex: 1;                  /* toma el espacio restante */
        min-width: 0;             /* evita desbordamientos */
        padding: 0.6rem 0.9rem !important;   /* importante para forzar */
        font-size: 0.9rem !important;
    }

    .footer__form .btn {
        white-space: nowrap;      /* evita que el texto se rompa */
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem !important;
        flex-shrink: 0;           /* no se encoge */
    }
}

/* ========== AJUSTE FINAL PARA PC EN PLANIFICA TU VISITA ========== */
@media (min-width: 769px) {
    .visit-summary .visit__grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .visit-summary .visit__info {
        display: flex !important;
        flex-direction: row !important;   /* Tarjetas lado a lado */
        justify-content: center !important;
        gap: 2rem !important;
        width: 100% !important;
        max-width: 900px !important;
    }

    .visit-summary .visit__info .visit__card {
        flex: 1 1 300px !important;
        max-width: 400px !important;
    }

    .visit-summary .visit__grid > div:last-child {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 2rem !important;
    }
}

/* ========== SECCIÃ“N LEGAL DEL FOOTER (CENTRADA EN PC) ========== */
.footer__legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: #c0b19c;
}

.footer__legal .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* centrado horizontal */
    align-items: center;
    gap: 1.5rem;
    text-align: center;       /* texto centrado si hay salto de lÃ­nea */
}

.footer__legal-info span {
    display: block;
    margin-bottom: 0.3rem;
}

.footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 0.8rem;
}

.footer__legal-links a {
    color: #c0b19c;
    text-decoration: none;
    transition: color 0.3s;
}

.footer__legal-links a:hover {
    color: var(--color-sunset-gold);
}

@media (max-width: 600px) {
    .footer__legal .container {
        flex-direction: column;
    }

}

/* ========== DROPDOWN MENÃš ========== */
.nav__item--dropdown {
    position: relative;
}

.nav__link--dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-deep-green);
    min-width: 220px;
    border-radius: 1rem;
    padding: 0.8rem 0;
    list-style: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

/* Mostrar dropdown en hover (solo en pantallas grandes) */
@media (min-width: 769px) {
    .nav__item--dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Estilo de los enlaces del dropdown */
.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--color-sunset-gold);
    color: var(--color-deep-green);
}
/* ========== DROPDOWN EN MÃ“VIL: TEXTO BLANCO Y SIMPLE ========== */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0.5rem 0 0 1.2rem !important;
        display: none !important;
    }
    .dropdown-menu.active {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    .dropdown-menu li {
        margin: 0;
        list-style: none;
    }
    .dropdown-menu a {
        display: block;
        color: #ffffff !important;           /* Blanco puro */
        background: transparent !important;
        padding: 0.4rem 0 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;       /* Un poco mÃ¡s grande que antes */
        font-weight: 400 !important;
        text-decoration: none;
        border-left: 2px solid rgba(255,255,255,0.3);
        margin: 0.3rem 0;
        transition: all 0.2s;
        opacity: 0.9;                         /* Ligeramente transparente, pero visible */
    }
    .dropdown-menu a:hover {
        color: #ffffff !important;
        border-left-color: var(--color-sunset-gold);
        opacity: 1;
    }
    .nav__link--dropdown.active .fa-chevron-down {
        transform: rotate(180deg);
    }
 }



/* Overlay para men mvil y bloqueo de scroll */
body.no-scroll { overflow: hidden !important; touch-action: none; }
.nav-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); z-index: 998; opacity: 0; visibility: hidden; transition: opacity 0.4s; backdrop-filter: blur(2px); }
.nav-overlay.active { opacity: 1; visibility: visible; }


/* ========== WHATSAPP FLOATING BUTTON ========== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}
.whatsapp-float i {
    color: white;
    font-size: 1.8rem;
}
.whatsapp-float .whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #ffffff;
    color: #1e3b2f;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-weight: 600;
    font-family: \'Montserrat\', sans-serif;
    
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
}
.whatsapp-float .whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #ffffff;
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}
@keyframes whatsappPulse {
    0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7); }
    100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
}



/* ========== SCROLL REVEAL ANIMATIONS ========== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-reveal--left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-reveal--left.visible {
    opacity: 1;
    transform: translateX(0);
}
.scroll-reveal--right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-reveal--right.visible {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 15px; }
    .whatsapp-float i { font-size: 1.5rem; }
    .whatsapp-float .whatsapp-tooltip { display: none; }
    }

/* Override grid for 2 columns on mobile for education section */
@media (max-width: 768px) {
    .education__features {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    .education__feature {
        flex-direction: column;
        padding: 1.2rem 0.8rem !important;
        gap: 0.5rem;
        text-align: center;
        align-items: center;
        justify-content: flex-start;
    }
    .education__feature-icon {
        font-size: 2rem !important;
        margin-bottom: 0.2rem;
    }
    .education__feature h4 {
        font-size: 0.95rem !important;
        margin-bottom: 0.3rem;
        line-height: 1.2;
        min-height: 2.4em; /* Keeps titles aligned across cards */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .education__feature p {
        font-size: 0.8rem !important;
        line-height: 1.4;
        margin: 0;
    }
}


/* ========== CUSTOM LANGUAGE SELECTOR ========== */
.lang-dropdown {
    position: relative;
    margin-right: 15px;
    margin-left: auto;
    z-index: 9999;
}
.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.lang-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}
.lang-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: white;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.lang-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1.2rem;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.lang-menu li a:hover {
    background: #f4f9f4;
    color: var(--color-sunset-gold);
}
.lang-menu img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
    .lang-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.85rem;
    }
    .lang-dropdown {
        margin-right: 10px;
    }
}


/* ========== GTRANSLATE WRAPPER FIXES ========== */

@media (max-width: 768px) {
    .language-wrapper {
        margin-left: 0 !important;
        margin-right: 10px !important;
    }
    .lang-text {
        font-size: 0.85rem !important;
    }
}


/* HIDE GOOGLE TRANSLATE BANNER */
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }
#goog-gt-tt { display: none !important; }
.goog-tooltip { display: none !important; }
.goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }


/* HIDE GLOBE OVERSIZING */
.gtranslate_wrapper svg,
.gtranslate_wrapper img.gt_globe {
    width: 14px !important;
    height: 14px !important;
    margin-top: 0 !important;
}
.gtranslate_wrapper > a {
    display: flex !important;
    align-items: center !important;
}

/* PUSH GLOBE FURTHER RIGHT */
.language-wrapper {
    margin-left: auto !important; padding-left: 40px;
}
@media (max-width: 768px) {
    .language-wrapper {
        margin-left: auto !important; padding-left: 40px;
        margin-right: 15px !important;
    }
}


/* DEFINITIVE GOOGLE TRANSLATE BANNER HIDE */
iframe.goog-te-banner-frame { display: none !important; }
.goog-te-banner-frame { display: none !important; visibility: hidden !important; }
body { top: 0px !important; position: static !important; }
html { top: 0px !important; height: 100%; }
body { margin: 0; padding: 0; }
.VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf-ti6hGc { display: none !important; }
div#goog-gt-tt { display: none !important; }
div.skiptranslate > iframe { display: none !important; }





/* HIDE LANG MENU WHEN HAMBURGER IS OPEN */
body.no-scroll .lang-dropdown {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.lang-dropdown {
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
}





/* BULLETPROOF MOBILE VISIBILITY FOR LANG MENU */
@media (max-width: 1024px) {
    .header__container .lang-dropdown {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        flex-shrink: 0 !important;
        z-index: 9999 !important;
    }
    body.no-scroll .header__container .lang-dropdown {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}




/* SCROLLBAR FOR LONG LANG MENU */
.lang-menu {
    max-height: 60vh !important;
    overflow-y: auto !important;
}
.lang-menu::-webkit-scrollbar {
    width: 6px;
}
.lang-menu::-webkit-scrollbar-track {
    background: transparent;
    margin: 5px 0;
}
.lang-menu::-webkit-scrollbar-thumb {
    background: rgba(26, 67, 49, 0.3);
    border-radius: 10px;
}

/* Deshabilitar redimensionamiento de cajas de texto globalmente */
textarea {
    resize: none;
}

/* Custom File Upload Component */
.custom-file-upload {
    position: relative;
    width: 100%;
    margin-top: 0.5rem;
}
.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 2px dashed #b5c0a3;
    border-radius: 1.5rem;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.file-label:hover {
    border-color: #FF9800;
    background-color: #fff9f0;
}
.file-label i {
    font-size: 2rem;
    color: #1A4331;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}
.file-label:hover i {
    color: #FF9800;
}
.file-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #5c5348;
}


@media (min-width: 769px) {
    .header__logo {
        margin-left: 2rem;
    }
}


@media (min-width: 992px) {.header__container { justify-content: flex-start; }
    
@media (min-width: 769px) {
    .header__logo {
        margin-left: 2rem;
    }
}
    .nav {
        margin-left: 6rem;
        margin-right: 0;
    }
    .lang-dropdown {
        margin-right: auto; /* Pushes the remaining empty space to the right */
        margin-left: 3rem; /* Gap between nav and lang dropdown */
    }
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}


.lang-menu li a.active-lang {
    background-color: rgba(26, 67, 49, 0.1);
    font-weight: bold;
    color: var(--primary-color, #1a4331);
    border-left: 3px solid var(--primary-color, #1a4331);
}

/* ========== HEADER ACTIONS & THEME TOGGLE ========== */
.header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    margin-right: 15px;
    z-index: 9999;
}

@media (min-width: 992px) {
    .header__actions {
        margin-left: auto;
        margin-right: 2rem;
    }
}

/* Reset lang-dropdown margins since header__actions handles it */
.header__actions .lang-dropdown {
    margin: 0 !important;
}

.theme-toggle {
    position: relative;
    width: 60px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.theme-toggle__thumb {
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

.theme-toggle.dark .theme-toggle__thumb {
    transform: translate(26px, -50%);
    background: #1a4331; /* Dark theme thumb color */
}

.theme-toggle__icon {
    font-size: 14px;
    z-index: 2;
    transition: color 0.3s ease;
}

.theme-toggle__icon--sun {
    color: #1a4331; /* Active color when light mode */
}
.theme-toggle.dark .theme-toggle__icon--sun {
    color: white;
}

.theme-toggle__icon--moon {
    color: white;
}
.theme-toggle.dark .theme-toggle__icon--moon {
    color: white; /* Active color when dark mode */
}

@media (max-width: 768px) {
    .header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    margin-right: 15px;
    z-index: 9999;
}
    .theme-toggle {
        width: 60px;
        height: 32px;
        padding: 0 4px;
    }
    .theme-toggle__thumb {
        width: 20px;
        height: 20px;
        left: 3px;
    }
    .theme-toggle.dark .theme-toggle__thumb {
        transform: translate(22px, -50%);
    }
    .theme-toggle__icon {
        font-size: 12px;
    }
}


/* ========== DARK MODE OVERRIDES ========== */
body.dark-theme {
    background-color: #0A192F !important;
    color: #ffffff !important;
}

body.dark-theme h1, 
body.dark-theme h2, 
body.dark-theme h3, 
body.dark-theme h4, 
body.dark-theme h5, 
body.dark-theme h6,
body.dark-theme p,
body.dark-theme span,
body.dark-theme a,
body.dark-theme li,
body.dark-theme .review-name,
body.dark-theme .file-text {
    color: #ffffff !important;
}

/* Let the gold accent keep its color */
body.dark-theme .hero__title-accent,
body.dark-theme .section__title-accent,
body.dark-theme .color-gold {
    color: #ffffff !important;
}

body.dark-theme .header {
    background-color: #061020 !important;
}

body.dark-theme .lang-menu {
    background-color: #061020 !important;
    color: white !important;
}

body.dark-theme .lang-menu li a:hover {
    background: #0A192F !important;
}

body.dark-theme .lang-menu li a.active-lang {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-left: 3px solid white !important;
}

/* Cards & Boxes */
body.dark-theme .animal-card,
body.dark-theme .feature-item,
body.dark-theme .contacto-form,
body.dark-theme .contact-item,
body.dark-theme .review-card,
body.dark-theme .horario-card,
body.dark-theme .precios-info,
body.dark-theme .horarios-info,
body.dark-theme .promo-popup,
body.dark-theme .thanks-card,
body.dark-theme .featured-card,
body.dark-theme .visit__card,
body.dark-theme .edu-summary__content,
body.dark-theme .education__feature,
body.dark-theme .faq-item,
body.dark-theme .map__sidebar,
body.dark-theme .contact-card,
body.dark-theme .about-mission,
body.dark-theme .about-vision {
    background-color: #061020 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

/* FAQ Answer needs dark background when open */
body.dark-theme .faq-answer {
    color: #cccccc !important;
}

/* Forms and inputs in dark mode */
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
    background-color: #0A192F !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.dark-theme .form__label {
    color: #ffffff !important;
}

body.dark-theme .custom-file-upload .file-label {
    background-color: #061020 !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Background overlays and sections that had light colors */
body.dark-theme .section--light,
body.dark-theme .section--alt,
body.dark-theme .bg-light,
body.dark-theme .bg-alt,
body.dark-theme #inicio-about,
body.dark-theme #contacto,
body.dark-theme .contacto,
body.dark-theme .contacto-section,
body.dark-theme #animales,
body.dark-theme .edu-summary,
body.dark-theme .featured-animals,
body.dark-theme .faq-section,
body.dark-theme .reviews-section,
body.dark-theme .section--alt,
body.dark-theme .bg-light,
body.dark-theme .bg-alt {
    background-color: #0A192F !important;
}
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
}
body.dark-theme .header {
    background-color: #1e1e1e;
}
body.dark-theme .lang-menu {
    background-color: #1e1e1e;
    color: white;
}
body.dark-theme .lang-menu li a {
    color: white;
}
body.dark-theme .lang-menu li a:hover {
    background: #333;
}













/* Dark Theme fix for Horarios */
body.dark-theme #horarios {
    background-color: #0A192F !important;
}
body.dark-theme #horarios::before {
    opacity: 0.1 !important;
}


/* Dark Theme fix for .animals */
body.dark-theme .animals {
    background-color: #0A192F !important;
}


/* Dark Theme fix for .section-header__tag */
body.dark-theme .section-header__tag {
    color: #3b82f6 !important; /* Azul oscuro/medio visible */
}


/* Dark Theme fix for .animal-card__tag */
body.dark-theme .animal-card__tag {
    color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.15) !important;
}


/* Dark Theme fixes for Educacion */
body.dark-theme .edu-hero,
body.dark-theme .edu-summary,
body.dark-theme .gallery-section {
    background-color: #0A192F !important;
}
body.dark-theme .education__text {
    color: #e2e8f0 !important;
}


/* Dark Theme fixes for Visitanos */
body.dark-theme .visit,
body.dark-theme .gm-reviews-section {
    background-color: #0A192F !important;
}
body.dark-theme .pricing-row,
body.dark-theme .modal-collage {
    background-color: #061020 !important;
}
body.dark-theme .pricing-row:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}
body.dark-theme .pricing-row.highlight-row {
    background-color: rgba(255, 152, 0, 0.1) !important;
}
body.dark-theme .pricing-row.highlight-row:hover {
    background-color: rgba(255, 152, 0, 0.2) !important;
}
body.dark-theme .visit__map-title,
body.dark-theme .visit__map-address,
body.dark-theme .section-header__desc {
    color: #e2e8f0 !important;
}
body.dark-theme .gm-write-btn {
    background-color: #061020 !important;
}


/* Dark Theme fixes for gm-reviews text */
body.dark-theme .gm-review-name,
body.dark-theme .gm-review-text {
    color: #ffffff !important;
}
body.dark-theme .gm-review-meta,
body.dark-theme .gm-review-date {
    color: #bbbbbb !important;
}
body.dark-theme .gm-review-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}


/* Dark Theme fixes for gm-score summary */
body.dark-theme .gm-score-number,
body.dark-theme .gm-bar-label {
    color: #ffffff !important;
}
body.dark-theme .gm-score-total {
    color: #bbbbbb !important;
}


/* Dark Theme fixes for Sobre Nosotros */
body.dark-theme .page-about {
    background-color: #0A192F !important;
}
body.dark-theme .valor-item,
body.dark-theme .manifiesto-box {
    background-color: #061020 !important;
}
body.dark-theme .about-content h2,
body.dark-theme .about-content strong,
body.dark-theme .valor-item h4,
body.dark-theme .manifiesto-box h3 {
    color: #ffffff !important;
}
body.dark-theme .about-content p,
body.dark-theme .manifiesto-box p {
    color: #e2e8f0 !important;
}


/* Dark Theme fixes for Involucrate subpages */
body.dark-theme .info-box {
    background-color: #061020 !important;
}
body.dark-theme .info-box h3,
body.dark-theme .detail-item strong {
    color: #ffffff !important;
}
body.dark-theme .detail-item p {
    color: #e2e8f0 !important;
}
body.dark-theme .detail-item {
    background-color: rgba(255,255,255,0.05) !important;
}
body.dark-theme .detail-item:hover {
    background-color: rgba(255,255,255,0.1) !important;
}
body.dark-theme .form-group input,
body.dark-theme .form-group select,
body.dark-theme .form-group textarea,
body.dark-theme .form-group input[type="file"],
body.dark-theme .file-label {
    background-color: #0A192F !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}
body.dark-theme .form-group input:focus,
body.dark-theme .form-group select:focus,
body.dark-theme .form-group textarea:focus {
    background-color: #061020 !important;
    border-color: #FF9800 !important;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2) !important;
}


/* Dark Theme fixes for simple-list */
body.dark-theme .simple-list li {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}


/* Dark Theme fixes for Apadrinamiento and Donacion texts */
body.dark-theme .benefit-item {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}
body.dark-theme .benefit-item span,
body.dark-theme .benefit-item h4,
body.dark-theme .benefit-item p,
body.dark-theme .detail-item span,
body.dark-theme .detail-item strong,
body.dark-theme .detail-item p {
    color: #e2e8f0 !important;
}
body.dark-theme .content-section h2 {
    color: #ffffff !important;
}
body.dark-theme .coming-soon-message {
    background-color: #061020 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    border-color: #FF9800 !important;
}
body.dark-theme .coming-soon-message h3,
body.dark-theme .coming-soon-message p,
body.dark-theme .coming-soon-message span {
    color: #ffffff !important;
}
body.dark-theme .coming-soon-message div[style*="background"] {
    background-color: rgba(255, 152, 0, 0.2) !important;
}


/* Dark Theme fixes for CTA banners */
body.dark-theme .cta-banner,
body.dark-theme .join-cta {
    background: #112240 !important;
}


/* Dark Theme fixes for Donacion distribution items */
body.dark-theme .distribution-item {
    background-color: rgba(255, 255, 255, 0.05) !important;
}
body.dark-theme .distribution-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}
body.dark-theme .distribution-item strong {
    color: #ffffff !important;
}
body.dark-theme .distribution-item p {
    color: #e2e8f0 !important;
}


/* Dark Theme fixes for Involucrate Dropdown Menu */
body.dark-theme .dropdown-menu {
    background: #112240 !important;
}

/* Highlight active subpage in dropdown */
.dropdown-menu a.dropdown-link--active {
    background-color: var(--color-deep-green) !important;
    font-weight: bold !important;
    color: white !important;
    border-left: 3px solid var(--color-sunset-gold) !important;
}
body.dark-theme .dropdown-menu a.dropdown-link--active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-left: 3px solid var(--color-sunset-gold) !important;
}



/* Dark Theme fixes for Footer */
body.dark-theme .footer {
    background-color: #112240 !important;
}


/* Dark Theme fixes for toggle thumb */
.theme-toggle.dark .theme-toggle__thumb {
    background: #112240 !important;
}


/* Prevent footer newsletter form from stretching too wide when wrapping */
.footer__form {
    max-width: 450px;
}


/* Ocultar el boton de modo oscuro cuando el menu hamburguesa esta abierto */
body.no-scroll .theme-toggle {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}


/* Prevent footer columns from wrapping on desktop */
@media (min-width: 992px) {
    .footer__grid {
        flex-wrap: nowrap !important;
    }
}


/* Fix active dropdown link text color on mobile */
@media (max-width: 768px) {
    .dropdown-menu a.dropdown-link--active {
        color: #ffffff !important;
    }
}


/* Stronger override for active dropdown link on mobile */
@media (max-width: 768px) {
    .nav .dropdown-menu a.dropdown-link--active {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}



/* Estilos claros y directos para cuando se selecciona o pasa el dedo por un link en movil */
@media (max-width: 768px) {
    .nav .dropdown-menu a:hover,
    .nav .dropdown-menu a:active,
    .nav .dropdown-menu a:focus {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
        border-left: 3px solid #F39C12 !important;
    }
}





/* Fix nav top padding on small mobiles to prevent Inicio from overlapping with the X button */
@media (max-width: 480px) {
    .nav {
        padding: 5rem 1rem 1rem !important;
    }
}


/* Mobile nav background in dark mode */
@media (max-width: 768px) {
    body.dark-theme .nav {
        background: rgba(17, 34, 64, 0.98) !important;
    }
}

/* Dark Theme fixes for Legal pages (Terminos, Privacidad, Derechos ARCO) */
body.dark-theme .legal-page {
    background-color: #0A192F !important;
}
body.dark-theme .legal-container h1 {
    color: #ffffff !important;
}
body.dark-theme .legal-container h2 {
    color: #e2e8f0 !important;
    border-left-color: #FF9800 !important;
}
body.dark-theme .legal-container p,
body.dark-theme .legal-container li {
    color: #cbd5e1 !important;
}
body.dark-theme .legal-container .last-update {
    color: #94a3b8 !important;
}
body.dark-theme .legal-container a {
    color: #FF9800 !important;
}
body.dark-theme .legal-container strong {
    color: #ffffff !important;
}
