@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@300;400;700&display=swap');

* {
    font-family: 'Comic Neue', cursive;
    box-sizing: border-box;
}

/* ============================================================
   ACTUALIDAD PAGE
============================================================ */
.actualidad-main {
    background: #f4f5f7;
    padding: 50px 0 90px;
}

.actualidad-container {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
}

/* ============================================================
   NAV ACTIVE
============================================================ */
.active-nav > a {
    color: #ff4136 !important;
    font-weight: 700;
}

/* ============================================================
   HERO
============================================================ */
.actualidad-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
    background: #1f2d46;
}

.actualidad-hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(7, 20, 48, 0.18) 0%,
            rgba(7, 20, 48, 0.08) 30%,
            rgba(18, 43, 93, 0.72) 58%,
            rgba(10, 29, 69, 0.92) 100%
        ),
        url('img/37.jpg') left center / cover no-repeat;
    z-index: 1;
}

.actualidad-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.actualidad-hero__overlay::before {
    content: "";
    position: absolute;
    top: 0;
    right: -140px;
    width: 58%;
    height: 100%;
    background: linear-gradient(180deg, rgba(25, 58, 120, 0.78) 0%, rgba(10, 29, 69, 0.92) 100%);
    transform: skewX(-22deg);
    transform-origin: top right;
}

.actualidad-hero__overlay::after {
    content: ".";
    position: absolute;
    right: 90px;
    top: 100px;
    font-size: clamp(8rem, 18vw, 17rem);
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.12);
    z-index: 1;
    pointer-events: none;
}

.actualidad-hero__content {
    position: relative;
    z-index: 3;
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 120px 30px 120px;
}

.actualidad-hero__content h1 {
    color: #ffffff;
    font-size: clamp(3rem, 7vw, 5.4rem);
    font-weight: 700;
    line-height: 1;
    margin: 0;
    text-align: right;
    max-width: 520px;
}

/* Ondas inferiores */
.actualidad-hero__waves {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 86px;
    z-index: 4;
    pointer-events: none;
}

.actualidad-hero__waves .wave {
    position: absolute;
    left: -2%;
    width: 104%;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.actualidad-hero__waves .wave-1 {
    height: 28px;
    bottom: 44px;
    background: rgba(24, 84, 180, 0.95); /* azul */
}

.actualidad-hero__waves .wave-2 {
    height: 36px;
    bottom: 20px;
    background: rgba(220, 45, 56, 0.95); /* rojo */
}

.actualidad-hero__waves .wave-3 {
    height: 28px;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98); /* blanco */
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.08);
}
/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb {
    background: #ffffff;
    border-bottom: 1px solid #e8ebf0;
}

.breadcrumb-container {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 0.96rem;
    flex-wrap: wrap;
}

.breadcrumb-container a {
    text-decoration: none;
    color: #001f3f;
    font-weight: 600;
}

.breadcrumb-container i {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ============================================================
   INTRO
============================================================ */
.actualidad-intro {
    text-align: center;
    margin-bottom: 40px;
}

.actualidad-titulo {
    font-size: clamp(2rem, 4vw, 2.9rem);
    color: #001226;
    font-weight: 800;
    margin-bottom: 8px;
}

.actualidad-titulo span {
    color: #ff4136;
}

.actualidad-linea-deco {
    width: 72px;
    height: 4px;
    background: #daa520;
    margin: 0 auto 20px;
    border-radius: 999px;
}

.actualidad-intro p {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.8;
    color: #5b6576;
}

/* ============================================================
   POSTS GRID
============================================================ */
.actualidad-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    align-items: start;
}

.actualidad-post-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecf3;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: flex-start;
    justify-content: center;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.actualidad-post-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.actualidad-post-card:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.actualidad-post-card iframe {
    width: 100% !important;
    min-height: 520px;
    height: 520px;
    border: none;
    border-radius: 18px;
    background: #fff;
}

/* ============================================================
   TABLET
============================================================ */
@media (max-width: 1100px) {
    .actualidad-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .actualidad-hero {
        min-height: 470px;
    }

    .actualidad-hero__overlay::before {
        width: 64%;
        right: -180px;
    }
}

/* ============================================================
   MOBILE
============================================================ */
@media (max-width: 768px) {
    .actualidad-hero {
        min-height: 420px;
        justify-content: center;
    }

    .actualidad-hero__overlay::before {
        width: 100%;
        right: -120px;
        transform: skewX(-18deg);
        opacity: 0.95;
    }

    .actualidad-hero__overlay::after {
        right: 20px;
        top: 120px;
        font-size: 7rem;
    }

    .actualidad-hero__content {
        justify-content: center;
        padding: 120px 10px 110px;
    }

    .actualidad-hero__content h1 {
        text-align: center;
        font-size: 3rem;
    }

    .actualidad-main {
        padding: 38px 0 70px;
    }

    .actualidad-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .actualidad-post-card {
        min-height: 540px;
        border-radius: 18px;
        padding: 10px;
    }

    .actualidad-post-card iframe {
        min-height: 510px;
        height: 510px;
        border-radius: 12px;
    }

    .breadcrumb-container {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .actualidad-container {
        width: calc(100% - 20px);
    }

    .actualidad-hero {
        min-height: 360px;
    }

    .actualidad-hero__content {
        padding: 100px 6px 96px;
    }

    .actualidad-hero__content h1 {
        font-size: 2.5rem;
    }

    .actualidad-hero__waves {
        height: 62px;
    }

    .actualidad-hero__waves .wave-1 {
        height: 20px;
        bottom: 30px;
    }

    .actualidad-hero__waves .wave-2 {
        height: 24px;
        bottom: 12px;
    }

    .actualidad-hero__waves .wave-3 {
        height: 20px;
        bottom: 0;
    }

    .actualidad-intro p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .actualidad-post-card {
        min-height: 520px;
    }

    .actualidad-post-card iframe {
        min-height: 490px;
        height: 490px;
    }
}