/**
 * Hero Section RESCOP
 */

/* === RESET TOTAL PARA HOME === */
body.home,
body.front-page {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

body.home .wp-site-blocks,
body.home main,
body.home .site-main,
body.home .entry-content,
body.home .wp-block-post-content,
body.front-page .wp-site-blocks,
body.front-page main,
body.front-page .site-main,
body.front-page .entry-content,
body.front-page .wp-block-post-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}


/* === HERO COMPONENT BASE === */
.rescop-hero-component {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0;

    min-height: 100vh; /* Altura completa del viewport */
    display: flex;
    position: relative;
    overflow: hidden;
    padding: 0;
    background: rgba(0, 0, 0, 0.70); /* Oscuro */
}

/* === FONDO CON IMAGEN === */
.rescop-hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.rescop-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(60, 60, 60, 0.76);
    border: 1px rgba(0, 0, 0, 0.50) solid;

    z-index: 1;
    box-sizing: border-box;
}

/* === CONTENEDOR HERO PROPORCIONAL === */
.rescop-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px !important;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    /* Proporciones flexibles */
    min-height: 100vh;
    box-sizing: border-box;
}

/* === CONTENIDO PRINCIPAL PROPORCIONAL === */
.rescop-hero-main-content {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    width: 100%;
    max-width: 1263px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Espaciado fijo para el contenido principal */
    padding: 6vh 0 2vh 0;
}

/* === TÍTULO === */
.rescop-hero-title {
    /* Exacto a Figma */
    color: white !important; /* Texto blanco */
    font-size: 56px !important;
    font-family: var(--rescop-font-display, 'Anton', sans-serif) !important;
    font-weight: 400 !important;
    line-height: 80px !important;
    /* text-transform: uppercase !important;  */
    margin: 0 0 2vh 0 !important;
    padding: 0 !important;
    word-wrap: break-word;
}

/* === SUBTÍTULO === */
.rescop-hero-subtitle {
    /* Exacto a Figma */
    color: white !important;
    font-size: 24px !important;
    font-family: var(--rescop-font-primary, 'Merriweather Sans', serif) !important;
    font-weight: 400 !important;
    line-height: 30px !important;
    margin: 0 0 3vh 0 !important;
    padding: 0 !important;
    word-wrap: break-word;
}

/* === BOTÓN CTA - NUEVO COLOR === */
.rescop-hero-cta {
    margin: 3vh 0 0 0;
    padding: 0;
}

.rescop-hero-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 192px;
    height: 52px;
    /* NUEVO COLOR DEL CLIENTE */
    background: linear-gradient(0deg, #BE252D 0%, #BE252D 100%), #ED2E38;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.rescop-hero-button:hover {
    /* Hover más claro */
    background: linear-gradient(0deg, #D42C36 0%, #D42C36 100%), #ED2E38;
    transform: translateY(-2px);
}

.rescop-hero-button span {
    color: white !important;
    font-size: 24px !important;
    font-family: var(--rescop-font-display, 'Anton', sans-serif) !important;
    font-weight: 400 !important;
    line-height: 36px !important;
    text-transform: none; 
    text-decoration: none;
    white-space: nowrap;
}

/* === SECCIÓN DE NOTICIAS DESTACADAS PROPORCIONAL === */
.rescop-hero-news-section {
    flex: 1 1 auto;
    width: 100%;

    /* Flex container */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding: 10vh 2rem;
    box-sizing: border-box;
    
    overflow: hidden;

    /* Fondo transparente */
    background: rgba(255, 255, 255, 0);
}

/* === TÍTULO "NOTICIAS DESTACADAS" === */
.rescop-hero-news-title {
    color: white !important;
    font-size: clamp(28px, 3.5vw, 36px) !important;
    font-family: var(--rescop-font-display, 'Anton', sans-serif) !important;
    font-weight: 400 !important;
    line-height: 48px !important;
    text-align: center;
    margin: 0 0 3vh 0 !important;
    padding: 0 !important;
    word-wrap: break-word;
}

/* === GRID DE NOTICIAS - FLEXBOX === */
.rescop-hero-news-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    width: 100%;
    max-width: calc(100% - 4rem); 
    padding: 0;
    flex-wrap: nowrap;
    margin-top: auto;
    margin-bottom: 4vh;
    flex-shrink: 0;
}

.rescop-news-card {
    width: 100%;
    max-width: 450px; 
    min-width: 350px;
    height: 480px;
    flex: 1 1 350px;

    /* Estilos */
    background: white;
    border: 1px rgba(0, 0, 0, 0.50) solid;
    overflow: hidden;
    transition: all 0.3s ease;

    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin: 0;
}

.rescop-news-card:hover {
    transform: translateY(-4px);
}

.rescop-news-card-image {
    flex: 0 0 206px;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.rescop-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rescop-news-card-placeholder {
    width: 100%;
    height: 100%;
    background: #E5E5E5;
    border: 1px rgba(0, 0, 0, 0.30) solid;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.5);
    font-size: 14px;
}

.rescop-news-card-placeholder::after {
    content: 'Imagen de noticia';
}

/* === CONTENIDO DE LA CARD === */
.rescop-news-card-content {
    flex: 1;
    padding: 1rem; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* === TÍTULOS DE NOTICIAS - CAPITALIZAR === */
.rescop-news-card-title {
    color: black !important;
    font-size: 24px !important;
    font-family: var(--rescop-font-display, 'Anton', sans-serif) !important;
    font-weight: 400 !important;
    line-height: 32px !important;
    text-transform: none !important; 
    margin: 16px !important;
    padding: 0 !important;
    word-wrap: break-word;

    flex: 1;
    display: flex;
    align-items: flex-start;
}

.rescop-news-card-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: all 0.3s ease;

    display: block;
    width: 100%;
}

.rescop-news-card-title a:hover {
    color: #BE252D !important;
}

.rescop-hero-news {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 600px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 38px;
}

.rescop-hero-news-card {
    background: white;
    border: 1px rgba(0, 0, 0, 0.50) solid;
    height: 400px;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.rescop-hero-news-card:hover {
    transform: translateY(-4px);
}

.rescop-hero-news-image {
    width: 100%;
    height: 206px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.rescop-hero-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rescop-hero-news-placeholder {
    width: 100%;
    height: 100%;
    background: #E5E5E5;
    border: 1px rgba(0, 0, 0, 0.30) solid;
}

.rescop-hero-news-content {
    padding: 1.5rem;
    height: calc(100% - 206px);
}

.rescop-hero-news-card-title {
    color: black !important;
    font-size: 24px !important;
    font-family: var(--rescop-font-display, 'Anton', sans-serif) !important;
    font-weight: 400 !important;
    line-height: 36px !important;
    text-transform: capitalize !important;
    margin: 0 !important;
    padding: 0 !important;
    word-wrap: break-word;
}

.rescop-hero-news-card-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.rescop-hero-news-card-title a:hover {
    color: #BE252D !important;
}

/* === RESPONSIVE === */
@media (max-width: 1680px) {
    .rescop-hero-news-grid {
        padding: 0 4rem;
        gap: 4rem;
    }
}

@media (max-width: 1400px) {
    .rescop-hero-component {
        min-height: 1200px;
    }

    .rescop-hero-main-content {
        min-height: 450px;
        padding: 4vh 0 2vh 0;
    }

    .rescop-hero-news-section {
        padding: 8vh 2rem;
    }

    .rescop-hero-news-grid {
        gap: 2rem;
        padding: 0;
        max-width: 100%;
    }
    .rescop-news-card {
        width: 350px;
        flex: 0 0 350px;
        min-width: 300px;
    }
}

@media (max-width: 1200px) {
    .rescop-hero-component {
        min-height: 1400px;
    }

    .rescop-hero-news-section {
        padding: 6vh 1rem;
    }

    .rescop-hero-news-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        max-width: 100%;
    }

    .rescop-news-card {
        width: calc(50% - 1rem);
        min-width: 300px;
        max-width: 400px;
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .rescop-hero-component {
        min-height: 100vh;
        flex-direction: column;
    }

    .rescop-hero-container {
        min-height: auto;
        height: auto;
        padding: 0 1rem;
    }

    .rescop-hero-main-content {
        min-height: auto;
        padding: 4vh 0 2vh 0;
        flex: 0 0 auto;
    }

    .rescop-hero-title {
        font-size: 36px !important;
        line-height: 48px !important;
        margin-bottom: 2vh !important;
    }

    .rescop-hero-subtitle {
    font-size: 18px !important;
        line-height: 24px !important;
        margin-bottom: 2vh !important;
}

    .rescop-hero-button {
        width: 160px;
        height: 44px;
    }

    .rescop-hero-button span {
        font-size: 18px !important;
        line-height: 28px !important;
    }

    .rescop-hero-news-section {
        flex: 1 1 auto;
        padding: 4vh 1rem 6vh 1rem;
        display: flex;
        flex-direction: column;
    justify-content: center;
        align-items: center;
}

    .rescop-hero-news-title {
        font-size: 28px !important;
        line-height: 36px !important;
        margin-bottom: 4vh !important;
    }

    .rescop-hero-news-grid {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
}

    .rescop-news-card {
    width: 100%;
        max-width: 350px;
        min-width: auto;
        height: 360px;
        flex: 0 0 auto;
        margin: 0 auto;
}

    .rescop-news-card-image {
        flex: 0 0 180px;
}

    .rescop-news-card-content {
        flex: 1;
        padding: 1rem;
    }

    .rescop-news-card-title {
        font-size: 18px !important;
        line-height: 24px !important;
        margin: 0 !important;
    }

    /* Ocultar elementos duplicados */
    .rescop-hero-news {
        display: none;
    }
}

@media (max-width: 480px) {
    .rescop-hero-component {
        padding: 0;
    }

    .rescop-hero-container {
        padding: 0 1rem;
    }

    .rescop-hero-main-content {
        padding: 3vh 0 2vh 0;
    }

    .rescop-hero-title {
        font-size: 28px !important;
        line-height: 36px !important;
    }

    .rescop-hero-subtitle {
        font-size: 16px !important;
        line-height: 22px !important;
    }

    .rescop-hero-news-section {
        padding: 3vh 0.5rem 4vh 0.5rem;
    }

    .rescop-hero-news-title {
        font-size: 24px !important;
        line-height: 32px !important;
    }

    .rescop-news-card {
        max-width: 100%;
        height: 340px;
    }

    .rescop-news-card-image {
        flex: 0 0 160px;
    }

    .rescop-news-card-content {
        padding: 0.75rem;
    }

    .rescop-news-card-title {
        font-size: 16px !important;
        line-height: 22px !important;
    }
}

body.home .wp-block-*,
body.front-page .wp-block-* {
    margin: 0 !important;
    padding: 0 !important;
}

.rescop-hero-component + * {
    margin-top: 0 !important;
}

body.home .wp-site-blocks > *:not(.rescop-hero-section):not(.rescop-featured-news):not(.rescop-active-campaigns):not(.rescop-latest-news):not(.rescop-organizations),
body.front-page .wp-site-blocks > *:not(.rescop-hero-section):not(.rescop-featured-news):not(.rescop-active-campaigns):not(.rescop-latest-news):not(.rescop-organizations) {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* === ELIMINAR RESTRICCIONES DEL TEMA === */
.entry-content .rescop-hero-component,
.wp-block-post-content .rescop-hero-component,
.site-main .rescop-hero-component {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    max-width: none !important;
}

/* === FEATURED NEWS COMPONENT === */
.rescop-featured-news {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 4rem 0;
    background: #F8F8F8;
    box-sizing: border-box;
}

.rescop-featured-news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.rescop-featured-news-title {
    color: black !important;
    font-size: 48px !important;
    font-family: var(--rescop-font-display, 'Anton', sans-serif) !important;
    font-weight: 400 !important;
    line-height: 72px !important;
    margin: 0 0 3rem 0 !important;
    text-align: center;
    }

.rescop-featured-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.rescop-featured-news-card {
    background: white;
    border: 1px rgba(0, 0, 0, 0.50) solid;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rescop-featured-news-card:hover {
    transform: translateY(-4px);
}

.rescop-featured-news-image {
    width: 100%;
    height: 206px;
    overflow: hidden;
}

.rescop-featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rescop-featured-news-placeholder {
    width: 100%;
    height: 100%;
    background: #E5E5E5;
    border: 1px rgba(0, 0, 0, 0.30) solid;
}

.rescop-featured-news-content {
    padding: 1.5rem;
}

.rescop-featured-news-card-title {
    color: black !important;
    font-size: 24px !important;
    font-family: var(--rescop-font-display, 'Anton', sans-serif) !important;
    font-weight: 400 !important;
    line-height: 36px !important;
    margin: 0 0 1rem 0 !important;
}

.rescop-featured-news-card-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.rescop-featured-news-card-title a:hover {
    color: #BE252D !important;
}

.rescop-featured-news-excerpt {
    color: rgba(0, 0, 0, 0.80) !important;
    font-size: 16px !important;
    font-family: var(--rescop-font-primary, 'Merriweather Sans', serif) !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin: 0 0 1rem 0 !important;
}

.rescop-featured-news-date {
    color: var(--rescop-date-beige, rgba(217, 208, 195, 0.80)) !important;
    font-size: 18px !important;
    font-family: var(--rescop-font-primary, 'Merriweather Sans', serif) !important;
    font-weight: 400 !important;
    line-height: 30px !important;
}

/* === ACTIVE CAMPAIGNS COMPONENT === */
.rescop-active-campaigns {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 4rem 0;
    background: white;
    box-sizing: border-box;
}

.rescop-active-campaigns-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.rescop-active-campaigns-title {
    color: black !important;
    font-size: 48px !important;
    font-family: var(--rescop-font-display, 'Anton', sans-serif) !important;
    font-weight: 400 !important;
    line-height: 72px !important;
    margin: 0 0 3rem 0 !important;
    text-align: center;
}

.rescop-active-campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.rescop-campaign-card {
    background: white;
    border: 1px rgba(0, 0, 0, 0.50) solid;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rescop-campaign-card:hover {
    transform: translateY(-4px);
}

.rescop-campaign-image {
    width: 100%;
    height: 206px;
    overflow: hidden;
}

.rescop-campaign-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rescop-campaign-content {
    padding: 1.5rem;
}

