html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.body-index {
    background-image: url('/graf/fondo/fondo_01.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}

/* LOGO PARALLAX FIJO, SIEMPRE CENTRADO */
.body-index::before {
    content: "";
    position: fixed;
    top: 50%;                   /* SIEMPRE centro vertical */
    left: 50%;                  /* centro horizontal */
    transform: translate(-50%, -50%);
    width: 50vw;                /* responsive */
    max-width: 800px;           /* tamaño máximo en PC */
    height: auto;
    aspect-ratio: 1 / 0.35;     /* ajustamos proporción del logo */
    background-image: url('/graf/logo/asociacion-enfermos-de-kennedy-espana.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    opacity: 0.9;
}

/* Para que los bloques oculten el logo */
.body-index main,
.body-index section,
.body-index .container {
    position: relative;
    z-index: 3;
    background: #ffffff;
}

/* Ajuste específico para móvil */
@media (max-width: 768px) {
    .body-index::before {
        width: 70vw;        /* más grande en móvil */
        max-width: 350px;
    }
}





.body-index main {
    background-color: white;
}
.body-index main {
    background-color: #ffffff;
}

.navbar-nav .nav-link {
	position: relative;
	overflow: hidden;
}

.navbar-nav .nav-link::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 0;
	height: 2px;
	background-color: #c4e3bd;
	transform: translateX(-50%);
	transition: width 0.3s ease-out;
}

.navbar-nav .nav-link:hover::after {
	width: 100%;
}

.navbar-nav .nav-link.active::after {
	width: 0 !important;
	display: none !important;
}

.navbar-nav .nav-link.active {
	pointer-events: none;
	color: #02b1a6 !important;
	font-weight: 600;
	text-decoration: none !important;
}


.sombra-texto-carrousel
	{
		text-shadow: 2px 5px 4px rgba(0,0,0,0.8);
	}


.bandera {
    width: 40px;
    cursor: pointer;
    display: inline-block;
    padding-bottom: 3px;
}

.bandera span {
    display: inline-block !important;
    transition: transform 0.2s ease-in-out;
}

.bandera:hover span {
    transform: scale(1.4) !important;
}

.bandera.activa {
    border-bottom: 3px solid #02b1a6;
}



.seccion {
    width: 100%;
    background: #ffffff;       /* bloque blanco */
    padding: 60px 0;           /* espacio interior */
}

.seccion .contenido {
    width: min(1500px, 90%);   /* igual que tú usas */
    margin: 0 auto;            /* centrado */
}


.logo-kennedy {
    max-width: 600px;
    width: 100%;
    height: auto;

    /* sombra REAL solo en el logo */
    filter: drop-shadow(10px 10px 10px rgba(0,0,0,0.95));
}








/* Contenedor del título */
.titulo-volador {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: bold;
    white-space: normal;   /* mantiene espacios correctamente */
    text-align: center;
}

/* Cada palabra animada */
.titulo-volador span {
    display: inline-block;
    opacity: 0;
    transform: translateX(80px) scale(2.5);
    animation: volarZoom 0.7s ease-out forwards;
    margin-right: 0.45rem; /* para que respete los espacios */
}

/* Animación principal */
@keyframes volarZoom {
    0% {
        opacity: 0;
        transform: translateX(80px) scale(2.5);
    }
    60% {
        opacity: 1;
        transform: translateX(-8px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* 👍 MÓVIL: reduce tamaño y evita cortes feos */
@media (max-width: 768px) {
    .titulo-volador {
        font-size: 1.6rem;
        line-height: 1.2;
        word-break: keep-all; /* nunca corta palabras */
    }
}


.caja {
    padding: clamp(8px, 2vw, 20px);
    text-align: center;
}