:root {
    --color-fondo: #F7F5F0;       
    --color-principal: #2C4A3E;   
    --color-acento: #E5A93B;      
    --color-texto: #2F2F2F;       
    --color-blanco: #FFFFFF;
    --color-rojo-alerta: #D9534F;
}

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

/* Ocultar cursor nativo en pantallas grandes para usar la brújula */
@media (min-width: 769px) {
    body, a, button, iframe { cursor: none !important; }
}

html {
    scroll-behavior: smooth; 
    font-family: 'Ubuntu', sans-serif; 
    color: var(--color-texto);
    background-color: var(--color-fondo);
}

.container-bloque { max-width: 950px; margin: 0 auto; }

/* SEO TÉCNICO INVISIBLE PARA ACCESIBILIDAD */
.seo-invisible { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* BRÚJULA REDONDA CLÁSICA */
#cursor-brujula {
    width: 32px;
    height: 32px;
    border: 2px solid var(--color-principal);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    background-color: rgba(255,255,255,0.4);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: block;
}
#cursor-brujula .aguja {
    width: 4px;
    height: 20px;
    background: linear-gradient(var(--color-rojo-alerta) 50%, #444 50%);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    border-radius: 2px;
    transition: transform 0.1s ease-out;
}
@media (max-width: 768px) { #cursor-brujula { display: none !important; } body { cursor: auto !important; } }

/* REDES SOCIALES FLOTANTES CON ICONOS ORIGINALES */
.redes-flotantes-izquierda {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2500;
}
.icono-social {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.4rem;
    color: var(--color-blanco) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.25s, filter 0.25s;
}
.icono-social:hover { transform: scale(1.15) rotate(5deg); filter: brightness(1.1); }
.icono-social.whatsapp { background-color: #25D366; }
.icono-social.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.icono-social.youtube { background-color: #FF0000; }
.icono-social.facebook { background-color: #1877F2; }

/* BARRA DE NAVEGACIÓN Y LOGO ENCABEZADO (+70% EN TOTAL) */
header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(5px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 12px 20px; }
.logo-container { display: flex; align-items: center; }
.nav-logo {
    height: 82px; /* Rediseñado con tamaño expandido para máxima visibilidad */
    width: auto;
    display: block;
}
.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--color-texto); font-weight: 500; font-size: 1rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--color-principal); }

/* SLIDESHOW HERO IMPONENTE (Más alto y textos abajo) */
.hero-fullscreen {
    height: 115vh; /* Altura generosa para el Rayo Negro */
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000;
}
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}
.slide-bg.active { opacity: 1; z-index: 2; }
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0, 0, 0, 0.3) 60%, rgba(44, 74, 62, 0.85));
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Coloca el contenido en el tercio inferior */
    text-align: center;
    padding: 0 20px 100px 20px; 
    z-index: 3;
}
.hero-content { max-width: 850px; }
.hero-content h2 { font-size: 4.2rem; font-weight: 700; color: var(--color-blanco); margin-bottom: 20px; letter-spacing: -1.5px; text-shadow: 2px 4px 12px rgba(0,0,0,0.6); line-height: 1.1; }
.hero-content p { font-size: 1.45rem; color: var(--color-blanco); margin: 0 auto 35px auto; text-shadow: 1px 2px 8px rgba(0,0,0,0.5); line-height: 1.5; }
.btn-scroll-abajo { display: inline-block; background-color: var(--color-acento); color: var(--color-blanco); text-decoration: none; padding: 14px 35px; font-size: 1.1rem; font-weight: 700; border-radius: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: all 0.3s; }
.btn-scroll-abajo:hover { transform: translateY(-3px); background-color: #d1952e; }

/* SECCIONES COMUNES */
.section-padding { padding: 100px 20px 90px 20px; }
.proposito-section { text-align: center; }
.proposito-section h2, .videos-section h2, .quienes-section h2 { font-size: 2.8rem; font-weight: 700; color: var(--color-principal); margin-bottom: 25px; }
.texto-destacado { font-size: 1.35rem; line-height: 1.6; color: var(--color-principal); font-weight: 500; margin-bottom: 20px; }
p { font-size: 1.15rem; line-height: 1.7; color: var(--color-texto); max-width: 800px; margin: 0 auto 15px auto; }

/* PARALLAX INTERMEDIO ANA DESIERTO */
.imagen-intermedia-ana { height: 55vh; width: 100%; background: url('../img/fondo-ana-desierto-bg.jpeg') no-repeat center center/cover; background-attachment: fixed; }

/* VÍDEOS DE YOUTUBE */
.videos-section { background-color: var(--color-blanco); text-align: center; }
.paises-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 35px 0; }
.btn-pais { background-color: var(--color-fondo); border: 2px solid #E0DCD3; padding: 12px 24px; font-size: 1.05rem; border-radius: 25px; display: flex; align-items: center; gap: 8px; transition: all 0.25s; }
.btn-pais.actual { background-color: var(--color-principal); color: var(--color-blanco); border-color: var(--color-principal); }
.badge-actual { background-color: var(--color-acento); color: var(--color-blanco); font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; }
.video-container-box { max-width: 850px; margin: 0 auto; background-color: var(--color-fondo); border-radius: 16px; aspect-ratio: 16/9; overflow: hidden; border: 1px solid #E0DCD3; box-shadow: 0 8px 30px rgba(0,0,0,0.05); }
.video-container-box iframe { width: 100%; height: 100%; }
.placeholder-content { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #777; }

/* QUIÉNES SOMOS */
.quienes-section { text-align: center; }
.sub-quienes { margin-bottom: 50px; color: #666; }
.grid-familia { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; }
.tarjeta-familiar { background-color: var(--color-blanco); border-radius: 16px; padding: 24px; border: 1px solid rgba(0,0,0,0.04); transition: transform 0.3s; }
.tarjeta-familiar:hover { transform: translateY(-5px); }
.foto-wrapper { width: 140px; height: 140px; margin: 0 auto 20px auto; border-radius: 50%; overflow: hidden; border: 4px solid var(--color-fondo); }
.foto-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta-familiar h3 { font-size: 1.4rem; color: var(--color-principal); margin-bottom: 10px; }

/* SECCIÓN MARCAS ALIADAS AL 100% DE ANCHO */
.titulo-marcas-separador { background-color: var(--color-blanco); padding: 50px 20px 20px 20px; text-align: center; border-top: 1px solid #E0DCD3; }
.titulo-marcas-separador h3 { font-size: 1.8rem; color: var(--color-principal); font-weight: 700; }
.marcas-completas-section { display: flex; width: 100%; background-color: #000; overflow: hidden; }
.marca-columna { width: 50%; display: flex; justify-content: center; align-items: center; }
.marca-columna img { width: 100%; height: auto; display: block; object-fit: cover; filter: grayscale(15%) opacity(0.9); transition: all 0.3s ease; }
.marca-columna img:hover { filter: grayscale(0%) opacity(1); }

/* SECCIÓN DE ESTRELLAS ENTERA CON MENSAJE SEGURO */
.fondo-cierre-noche {
    min-height: 100vh; /* Se asegura de que se vea entera en pantalla */
    width: 100%;
    background: url('../img/nomadawana-noche-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}
.noche-overlay {
    position: absolute;
    top:0; left:0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex; justify-content: center; align-items: center;
    z-index: 1;
}
.noche-card-mensaje {
    position: relative;
    z-index: 2;
    background-color: rgba(44, 74, 62, 0.85);
    backdrop-filter: blur(10px);
    padding: 45px;
    border-radius: 20px;
    max-width: 750px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}
.frase-cierre { color: var(--color-acento); font-size: 2rem; font-style: italic; font-weight: 700; margin-bottom: 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.texto-impacto { color: var(--color-blanco); font-size: 1.2rem; line-height: 1.7; margin-bottom: 30px; text-align: center; }
.btn-donar-cierre { display: inline-block; background-color: var(--color-acento); color: var(--color-blanco); padding: 14px 35px; font-size: 1.1rem; font-weight: 700; border-radius: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: all 0.3s; text-shadow: none; }
.btn-donar-cierre:hover { transform: scale(1.05); background-color: #d1952e; }

/* BLOQUE FLOTANTE INTEGRADO DERECHO (ESCUDO = ANCHO DE PAYPAL) */
.bloque-flotante-derecho {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; 
    width: 220px; /* Ancho idéntico simétrico */
}
.escudo-flotante {
    width: 100%; /* Cubre el mismo ancho visual que el botón inferior */
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}
.bloque-flotante-derecho:hover .escudo-flotante { transform: scale(1.03) rotate(3deg); }
.paypal-float-widget { background-color: var(--color-blanco); border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.15); width: 100%; overflow: hidden; border: 1px solid rgba(44, 74, 62, 0.1); }
.widget-header { background-color: var(--color-principal); color: var(--color-blanco); padding: 8px 12px; font-size: 0.85rem; text-align: center; font-weight: 700; }
.widget-body { padding: 12px; display: flex; justify-content: center; }

/* FOOTER */
footer { background-color: var(--color-principal); color: var(--color-blanco); text-align: center; padding: 40px 20px; position: relative; z-index: 5; }
footer p { color: rgba(255,255,255,0.7); font-size: 1rem; margin: 0; }

/* ADAPTABILIDAD RESPONSIVA COMPLETA */
@media (max-width: 768px) {
    .hero-fullscreen { height: 100vh; }
    .hero-content h2 { font-size: 2.3rem; }
    .hero-content p { font-size: 1.1rem; }
    .nav-links, .redes-flotantes-izquierda { display: none !important; }
    .imagen-intermedia-ana { background-attachment: scroll; height: 35vh; }
    .marcas-completas-section { flex-direction: column; }
    .marca-columna { width: 100%; }
    .noche-card-mensaje { padding: 25px; margin: 10px; }
    .frase-cierre { font-size: 1.5rem; }
    .texto-impacto { font-size: 1rem; }
    .bloque-flotante-derecho { bottom: 15px; right: 15px; width: 165px; }
}