/* ==========================================
   ESTILOS DEL MENÚ Y ANIMACIÓN DE HOJAS
=========================================== */
.nav-selva {
    background-color: #f6f5ef; /* Tono crema del menú */
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-selva ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #1b3d2b; /* Verde oscuro */
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 10px;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link .arrow {
    font-size: 10px;
    transform: scaleX(1.5);
}

/* Efecto Hover: Animación de hoja cayendo */
.nav-link::after {
    content: '🍃'; /* Símbolo de hoja */
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    opacity: 0;
    pointer-events: none;
    font-size: 18px;
    z-index: 10;
}

.nav-link:hover::after {
    animation: fallAndFade 1s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover {
    color: #4a7c59; /* Verde más claro al pasar el mouse */
}

@keyframes fallAndFade {
    0% { transform: translateX(-50%) translateY(0) rotate(0deg) scale(0.5); opacity: 0; }
    20% { transform: translateX(-50%) translateY(5px) rotate(-10deg) scale(1.2); opacity: 1; }
    100% { transform: translateX(-50%) translateY(35px) rotate(45deg) scale(1); opacity: 0; }
}

/* ==========================================
   ESTILOS DEL BANNER DE COOKIES
=========================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #3b5e3b; /* Verde bosque del pantallazo */
    color: #ffffff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Estado oculto para la animación de entrada/salida */
.cookie-banner.hidden {
    transform: translateY(110%);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 75%;
}

/* Animación sutil de latido/flote para el icono de la galleta principal */
.cookie-icon {
    font-size: 35px;
    animation: floatCookie 3s ease-in-out infinite;
}

@keyframes floatCookie {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(10deg); }
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-btn {
    background-color: #cca47e; /* Tono tierra/madera del botón */
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    font-weight: 800;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cookie-btn:hover {
    background-color: #b58d67;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.cookie-btn .btn-icon {
    font-size: 16px;
    transition: transform 0.4s ease;
}

.cookie-btn:hover .btn-icon {
    transform: rotate(180deg); /* Gira la galletita al hacer hover */
}

/* Diseño Responsivo para Móviles */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    .cookie-content {
        flex-direction: column;
        max-width: 100%;
    }
    .nav-selva ul {
        flex-direction: column;
        gap: 15px;
    }
}
/* ==========================================
   ESTILOS PREMIUM - BANNER DE COOKIES
=========================================== */
.cookie-premium-wrapper {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 95%;
    max-width: 1000px;
    background: rgba(11, 34, 25, 0.75); /* Dark Luxury Green */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(193, 154, 107, 0.3);
    border-top: 3px solid #C19A6B; /* Acento oro mate */
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 999999;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
    opacity: 0;
}

.cookie-premium-wrapper.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-premium-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    gap: 25px;
}

/* Insignia Animada */
.cookie-badge {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(193, 154, 107, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 0 15px rgba(193, 154, 107, 0.2);
}

.cookie-emoji {
    font-size: 32px;
    animation: cookieFloat 3s ease-in-out infinite;
    z-index: 2;
}

.cookie-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #C19A6B;
    animation: cookiePulse 2s linear infinite;
    z-index: 1;
}

@keyframes cookieFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(15deg); }
}

@keyframes cookiePulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Contenido de Texto */
.cookie-content {
    flex-grow: 1;
    font-family: 'Montserrat', sans-serif;
}

.cookie-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #C19A6B;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cookie-content p {
    margin: 0;
    font-size: 13.5px;
    color: #e2e8f0;
    line-height: 1.5;
}

/* Firma de Soluciones Integrales RA */
.developer-credit {
    margin-top: 8px;
    font-size: 11px;
    color: #8fa397;
    letter-spacing: 0.5px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    padding-top: 8px;
    display: inline-block;
}

.developer-credit strong {
    color: #C19A6B;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(193, 154, 107, 0.4);
    transition: color 0.3s;
}

.developer-credit strong:hover {
    color: #ffffff;
}

/* Botón Interactivo Premium */
.btn-premium-cookie {
    background: linear-gradient(135deg, #C19A6B, #9b774d);
    color: #0b2219;
    border: none;
    padding: 12px 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 13px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(193, 154, 107, 0.4);
}

.btn-premium-cookie:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(193, 154, 107, 0.6);
    background: linear-gradient(135deg, #dcb895, #C19A6B);
}

.btn-premium-cookie .btn-icon {
    font-size: 16px;
    transition: transform 0.5s ease;
}

.btn-premium-cookie:hover .btn-icon {
    transform: rotate(180deg);
}

/* Diseño Móvil */
@media (max-width: 768px) {
    .cookie-premium-wrapper { width: 90%; bottom: 15px; border-radius: 15px; }
    .cookie-premium-inner { flex-direction: column; text-align: center; gap: 15px; padding: 25px 20px; }
    .cookie-badge { margin: 0 auto; }
    .cookie-actions, .btn-premium-cookie { width: 100%; justify-content: center; }
}

/* ==========================================
   ESTILOS OPTIMIZADOS PARA ANIMACIÓN DE HOJAS
=========================================== */
#leaf-container {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none !important;
    z-index: 1;
    overflow: hidden;
}

.jungle-leaf {
    pointer-events: none;
    user-select: none;
    backface-visibility: hidden;
}