/* ===== MEJORAS PARA LA VISIBILIDAD DEL BANNER PRINCIPAL ===== */

/* Banner principal mejorado */
.hero-section,
.banner-section,
.welcome-section {
    position: relative;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
}

/* Título principal del banner */
.hero-section h1,
.banner-section h1,
.welcome-section h1,
.hero-title,
.banner-title,
.welcome-title {
    color: #ffffff !important;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3),
        0 0 60px rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 3;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* Subtítulo del banner */
.hero-section p,
.banner-section p,
.welcome-section p,
.hero-subtitle,
.banner-subtitle,
.welcome-subtitle {
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
    opacity: 0.95;
}

/* Efecto de fondo para mejorar contraste */
.hero-section::before,
.banner-section::before,
.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
    z-index: 1;
}

/* Contenedor del contenido del banner */
.hero-content,
.banner-content,
.welcome-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
}

/* Imagen del banner */
.hero-section img,
.banner-section img,
.welcome-section img,
.hero-image,
.banner-image,
.welcome-image {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 255, 255, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.hero-section img:hover,
.banner-section img:hover,
.welcome-section img:hover,
.hero-image:hover,
.banner-image:hover,
.welcome-image:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
}

/* Responsive para el banner */
@media (max-width: 1200px) {
    .hero-section img,
    .banner-section img,
    .welcome-section img,
    .hero-image,
    .banner-image,
    .welcome-image {
        width: 180px;
        height: 180px;
        right: 1.5rem;
    }
}

@media (max-width: 992px) {
    .hero-section h1,
    .banner-section h1,
    .welcome-section h1,
    .hero-title,
    .banner-title,
    .welcome-title {
        font-size: 2.5rem;
        letter-spacing: 1.5px;
    }
    
    .hero-section p,
    .banner-section p,
    .welcome-section p,
    .hero-subtitle,
    .banner-subtitle,
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-section img,
    .banner-section img,
    .welcome-section img,
    .hero-image,
    .banner-image,
    .welcome-image {
        width: 160px;
        height: 160px;
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section,
    .banner-section,
    .welcome-section {
        padding: 3rem 1.5rem;
    }
    
    .hero-section h1,
    .banner-section h1,
    .welcome-section h1,
    .hero-title,
    .banner-title,
    .welcome-title {
        font-size: 2rem;
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }
    
    .hero-section p,
    .banner-section p,
    .welcome-section p,
    .hero-subtitle,
    .banner-subtitle,
    .welcome-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section img,
    .banner-section img,
    .welcome-section img,
    .hero-image,
    .banner-image,
    .welcome-image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 140px;
        height: 140px;
        margin: 2rem auto 0;
        display: block;
    }
    
    .hero-section img:hover,
    .banner-section img:hover,
    .welcome-section img:hover,
    .hero-image:hover,
    .banner-image:hover,
    .welcome-image:hover {
        transform: scale(1.05);
    }
}

@media (max-width: 576px) {
    .hero-section,
    .banner-section,
    .welcome-section {
        padding: 2rem 1rem;
    }
    
    .hero-section h1,
    .banner-section h1,
    .welcome-section h1,
    .hero-title,
    .banner-title,
    .welcome-title {
        font-size: 1.75rem;
        letter-spacing: 0.5px;
        margin-bottom: 0.75rem;
    }
    
    .hero-section p,
    .banner-section p,
    .welcome-section p,
    .hero-subtitle,
    .banner-subtitle,
    .welcome-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-section img,
    .banner-section img,
    .welcome-section img,
    .hero-image,
    .banner-image,
    .welcome-image {
        width: 120px;
        height: 120px;
        margin: 1.5rem auto 0;
    }
}

/* Animaciones del banner */
.hero-section,
.banner-section,
.welcome-section {
    animation: bannerEntrance 1s ease-out;
}

@keyframes bannerEntrance {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section h1,
.banner-section h1,
.welcome-section h1,
.hero-title,
.banner-title,
.welcome-title {
    animation: titleEntrance 1.2s ease-out 0.3s both;
}

@keyframes titleEntrance {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-section p,
.banner-section p,
.welcome-section p,
.hero-subtitle,
.banner-subtitle,
.welcome-subtitle {
    animation: subtitleEntrance 1.2s ease-out 0.6s both;
}

@keyframes subtitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-section img,
.banner-section img,
.welcome-section img,
.hero-image,
.banner-image,
.welcome-image {
    animation: imageEntrance 1.2s ease-out 0.9s both;
}

@keyframes imageEntrance {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Efectos de hover adicionales */
.hero-section:hover,
.banner-section:hover,
.welcome-section:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
}

/* Efecto de partículas de fondo */
.hero-section::after,
.banner-section::after,
.welcome-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: particleFloat 20s linear infinite;
    z-index: 1;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50px);
    }
}
