/**
 * Hero Single Post RESCOP 
 */

/* === CONTENEDOR PRINCIPAL === */
.rescop-single-hero {
    /* Ancho completo */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 0;
    margin-bottom: 0;
    
   
    height: 216px;
    min-height: 216px;
    
    /* Fondo negro base */
    background: black;
    overflow: hidden;
    
   
    border-bottom: 10px #595959 solid;
    
    /* Flex container */
    display: flex;
    position: relative;
    padding: 0;
}

/* === IMAGEN DE FONDO === */
.rescop-single-hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    
    /* Imagen específica */
    background-image: url('../images/back_title.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* === OVERLAY OSCURO === */
.rescop-single-hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.90); 
    z-index: 1;
}

/* === CONTENIDO === */
.rescop-single-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    
    /* Flex para centrar contenido */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === CONTENEDOR INTERNO CENTRADO === */
.rescop-single-hero-inner {
    /* Estructura idéntica a los contenedores de bloques */
    width: 100%;
    max-width: var(--rescop-container-max-width, 1280px);
    margin: 0 auto;
    
    padding-left: var(--rescop-container-padding, 1.5rem);
    padding-right: var(--rescop-container-padding, 1.5rem);
    box-sizing: border-box;
    
    /* Flex para organizar título y fecha */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    position: relative;
}

/* === TÍTULO === */
.rescop-single-hero-title {
    width: 100%;
    max-width: 1117px; /* width: 1117px */
    
    /* Posición relativa dentro del contenedor */
    position: relative;
    top: -10px;
    
    /* Tipografía exacta */
    color: #E5E5E5 !important;
    font-size: clamp(24px, 3vw, 36px) !important;
    font-family: var(--rescop-font-display, 'Anton', sans-serif) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important; /* line-height: 50px adaptado */
    text-transform: capitalize !important;
    word-wrap: break-word;
    margin: 0 !important;
    padding: 0 !important;
}

/* === FECHA === */
.rescop-single-hero-date {
    /* Posición relativa al título */
    position: relative;
    top: 10px; 
    
    width: 199px; /* width: 199px */
    height: auto;
    
    /* Tipografía exacta */
    color: white !important;
    font-size: 14px !important;
    font-family: var(--rescop-font-secondary, 'Merriweather', serif) !important;
    font-weight: 400 !important;
    line-height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    
    text-align: left;
}

/* === RESPONSIVE ALINEADO CON SISTEMA GLOBAL === */

/* Pantallas grandes (1281px+) - Usar variables globales */
@media (min-width: 1281px) {
    .rescop-single-hero-inner {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Pantallas medianas-grandes (1024px - 1280px) */
@media (min-width: 1024px) and (max-width: 1280px) {
    .rescop-single-hero-inner {
        max-width: var(--rescop-container-max-width, 1280px);
        padding-left: var(--rescop-container-padding, 1.5rem);
        padding-right: var(--rescop-container-padding, 1.5rem);
    }
}

/* Tablet landscape (769px - 1023px) - Usar variables globales */
@media (min-width: 769px) and (max-width: 1023px) {
    .rescop-single-hero {
        height: 180px;
        min-height: 180px;
        border-bottom-width: 8px;
    }
    
    .rescop-single-hero-inner {
        max-width: 95vw;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    .rescop-single-hero-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
}

@media (min-width: 1024px) and (max-width: 1023px) {
    .rescop-single-hero {
        height: 180px;
        min-height: 180px;
        border-bottom-width: 8px;
    }
    
    .rescop-single-hero-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
}

/* Móvil (hasta 768px) - Seguir variables globales */
@media (max-width: 768px) {
    .rescop-single-hero {
        height: 150px;
        min-height: 150px;
        border-bottom-width: 6px;
    }
    
    .rescop-single-hero-inner {
        padding-left: var(--rescop-space-sm, 1rem);
        padding-right: var(--rescop-space-sm, 1rem);
        text-align: center;
        align-items: center;
    }
    
    .rescop-single-hero-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
        text-align: center;
        top: 0;
    }
    
    .rescop-single-hero-date {
        text-align: center;
        top: 0;
        margin-top: 1rem;
    }
}

/* Móviles pequeños (hasta 480px) - Usar variables globales */
@media (max-width: 480px) {
    .rescop-single-hero-inner {
        padding-left: var(--rescop-space-xs, 0.5rem);
        padding-right: var(--rescop-space-xs, 0.5rem);
    }
}

/* Móviles muy pequeños (hasta 360px) */
@media (max-width: 360px) {
    .rescop-single-hero-inner {
        padding-left: var(--rescop-space-xs, 0.5rem);
        padding-right: var(--rescop-space-xs, 0.5rem);
    }
}

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