﻿/* HERO SECTION MEJORADO */
.banner-Noticias {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 55vh;
    background-position: left;
    background: var(--color-white);
}

    .banner-Noticias .wave {
        position: absolute;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--color-primary);
        box-shadow: inset 50px rgba(255, 255, 255, 0.1);
        transition: 0.5s;
        margin-bottom: 10px;
        color: var(--color-secondary) !important;
    }

        .banner-Noticias .wave span {
            position: absolute;
            width: 325vh;
            height: 255vh;
            top: 0;
            left: 50%;
            transform: translate(-50%, -75%);
            background: linear-gradient(135deg, #3a3a3a 0%, var(--color-secondary) 50%, var(--color-primary) 100%);
        }

    .banner-Noticias .content {
        position: relative;
        z-index: 2;
        animation: fadeInUp 1s ease-out;
    }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-Noticias .wave span:nth-child(1) {
    border-radius: 45%;
    background: rgba(131, 58, 58, 0.8);
    animation: animate 5s linear infinite;
}

.banner-Noticias .wave span:nth-child(2) {
    border-radius: 40%;
    background: rgba(209, 198, 198, 0.6);
    animation: animate 10s linear infinite;
}

.banner-Noticias .wave span:nth-child(3) {
    border-radius: 42.5%;
    background: rgba(230, 228, 228, 0.4);
    animation: animate 15s linear infinite;
}

@keyframes animate {
    0% {
        transform: translate(-50%, -75%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -75%) rotate(360deg);
    }
}

.banner-Noticias .content h1,
.banner-Noticias .content p {
    color: var(--color-secondary) !important;
    text-align: left !important;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

.banner-Noticias .content h1 {
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.banner-Noticias .btn-white {
    background-color: var(--color-white) !important;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-white) !important;
    padding: 12px 30px !important;
    font-size: 1.1rem;
    font-weight: bold;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

    .banner-Noticias .btn-white::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s;
    }

    .banner-Noticias .btn-white:hover::before {
        left: 100%;
    }

    .banner-Noticias .btn-white:hover {
        background-color: var(--color-primary) !important;
        color: var(--color-white) !important;
        border: 2px solid var(--color-primary) !important;
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 6px 20px rgba(210, 10, 17, 0.4);
    }

.hero-btn {
    position: absolute;
    top: 40%;
    left: 20%;
    transform: translateY(-50%);
    width: auto;
}

.banner-Noticias .btn-white {
    background-color: var(--color-white) !important;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-white) !important;
    padding: clamp(10px, 2vw, 16px) clamp(20px, 4vw, 40px) !important;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: bold;
    transition: var(--transition-bounce);
}

@media (max-width: 768px) {

    .banner-Noticias {
        height: auto;
    }

    .hero-btn {
        /*        position: static;*/
        transform: none;
        margin-top: 1.5rem;
        display: flex;
        justify-content: center;
        padding: 0 20px;
        top: 380px;
        left: 90px;
    }

    .banner-Noticias .btn-white {
        width: 100%;
        max-width: 320px;
        font-size: 1rem;
        padding: 12px 0 !important;
        color: var(--color-white) !important;
        background: var(--color-primary) !important;
    }
}



/*new section*/
.news-section {
    background: #fff;
}
.news-card {
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-img {
    width: 100%;
    height: 420px; /* Fijamos una altura igual para todas */
    object-fit: cover;
}

.news-body {
    padding: 20px;
    flex: 1; /* Esto hace que todas las cards igualen altura */
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1D1D1B;
    min-height: 60px; /* Para que los títulos ocupen el mismo espacio */
}

.news-text {
    color: #555;
    flex: 1; /* El texto crece para emparejar alturas */
}

.news-link {
    display: inline-block;
    margin-top: 10px;
    color: #dc3545;
    font-weight: bold;
    text-decoration: none;
}

    .news-link:hover {
        text-decoration: underline;
    }
