/* style.css */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

/* Espacio extra debajo del navbar si se hace fixed-top después */
main {
    flex-grow: 1;
}

/* Header con imagen de fondo blur y capa oscura */
.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(2px);
    z-index: 1;
}

.header-background.index { background-image: url('../img/1fotoHeader.jpg'); }
.header-background.fundacion { background-image: url('../img/2fotoFundacion.jpg'); }
.header-background.alisson { background-image: url('../img/3fotoAlisson.jpg'); }
.header-background.lumina { background-image: url('../img/4fotoLumina.jpg'); }
.header-background.educacion { background-image: url('../img/aloNuevoFondo.jpeg'); }
.header-background.donacion { background-image: url('../img/6donar.jpg'); }
.header-background.contacto { background-image: url('../img/7contacto.jpg'); }
.header-background.alo { background-image: url('../img/9alo.jpg'); }

.header-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Asegurar que el header tenga altura mínima adecuada */
header {
    min-height: 500px;
}

/* --- NUEVAS CLASES PARA MEJORAR LA LECTURA Y CONTRASTE --- */

/* Contenedor claro semi-transparente para textos largos */
.texto-legible-container {
    background-color: rgba(255, 255, 255, 0.90) !important;
    color: #212529 !important; /* Texto oscuro para máximo contraste */
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Forzar que todos los textos dentro del contenedor sean oscuros */
.texto-legible-container p, 
.texto-legible-container h2, 
.texto-legible-container h3, 
.texto-legible-container h4,
.texto-legible-container li {
    color: #212529 !important;
}

/* Fondo suave para resaltar los títulos rosados/verdes sueltos */
.titulo-destacado {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
}

/* --- MEJORA DE CONTRASTE PARA EL MENÚ DESPLEGABLE --- */
.dropdown-menu {
    background-color: rgba(0, 0, 0, 0.60) !important; /* Fondo oscuro al 85% */
    background-image: none !important; /* Quitamos el brillo blanco por defecto */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding: 0.5rem 0 !important;
}

.dropdown-menu .dropdown-item {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.5rem 1.5rem !important;
}

/* Efecto al pasar el ratón por encima o cuando está activo (Menú Desplegable) */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.15) !important; /* Luz blanca sutil */
    color: #ffffff !important;
    font-weight: bold; /* Ponemos la letra un poco más gruesa para que resalte más */
}

/* --- BOTÓN VOLVER ARRIBA --- */
#btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Clase que se activa con JavaScript cuando bajamos la página */
#btn-back-to-top.mostrar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- REGLAS GLOBALES PARA CELULARES --- */
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Esto corta mágicamente cualquier cosa que se salga por la derecha */
}

/* Hace que NINGUNA imagen se vea gigante ni se salga de la pantalla */
img {
    max-width: 100%;
    height: auto;
}

/* --- AJUSTE ESPECÍFICO PARA EL LOGO DEL NAVBAR --- */
.navbar-brand img {
    height: 50px !important; /* Mantenemos la altura original que querías */
    width: auto !important;  /* La anchura se escala proporcionalmente */
    max-width: 100% !important; /* Asegura que no se desborde en pantallas diminutas */
    object-fit: contain; /* Evita que se deforme */
}

/* --- BORDES DEL BANNER ALÓ (RESPONSIVO) --- */

/* 1. Por defecto (para celulares): Redondeo moderado */
.img-banner-alo {
    border-radius: 2.2rem; 
}

/* 2. Para tablets y computadoras (pantallas de 768px en adelante): Redondeo extremo */
@media (min-width: 768px) {
    .img-banner-alo {
        border-radius: 7.5rem;
    }
}