/* =========================
   HERO NOTICIA DETALLE FIX
   ========================= */

.hero-noticia.video-section {
    min-height: 330px !important;
    max-height: 330px !important;
    height: 330px !important;
    display: block !important;
}

/* fuerza override del home */
.page-noticias .video-section,
.page-noticia .video-section,
body:not(.page-home) .hero-noticia.video-section {
    min-height: 330px !important;
    height: 330px !important;
}

/* Tarjeta individual */
.noticias .col-md-4 {
    display: flex;
}

.noticia-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}
 
.noticia-card-body {
    flex-grow: 1;
}
.noticia-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
 
.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
 
.noticia-card a.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
 
/* Imagen */
.card-img-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px;
}
 
.noticia-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
 
.noticia-card-img:hover {
    transform: scale(1.05);
}
 
/* Fecha */
.meta-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
}
 
/* Cuerpo de la tarjeta */
.noticia-card-body {
    padding: 1rem 1rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
 
.card-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    color: #111;
    margin: 0;
}
 
/* Botón ver todas */
.ver-todas-noticias {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    text-transform: uppercase;
}
 
/* Responsivo */
@media(max-width:768px){
    .card-img-wrapper {
        height: 200px;
    }
}
 
/* ── INSCRIPCIÓN CTA ───────────────────────────────────────────────────── */
.inscripcion-cta {
    background-color: #880d0d;
    color: #fff;
    padding: 5rem 1.5rem;
}
 
.inscripcion-cta__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
 
.inscripcion-cta__titulo {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3rem;
    color: #fff;
}
 
.inscripcion-cta__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    width: 100%;
    margin-bottom: 3rem;
}
 
.inscripcion-cta__col {
    flex: 1 1 280px;
    max-width: 340px;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
 
.inscripcion-cta__col--border {
    border-right: 1px solid rgba(255,255,255,0.25);
}
 
.inscripcion-cta__distancia {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1;
    color: #fff;
    letter-spacing: -0.02em;
}
 
.inscripcion-cta__tipo {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #e07070;
    margin-top: 0.3rem;
    margin-bottom: 1rem;
}
 
.inscripcion-cta__desc {
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
    margin: 0;
}
 
.inscripcion-cta__btn {
    display: inline-block;
    background-color: #fff;
    color: #2b0a0a;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
 
.inscripcion-cta__btn:hover {
    background-color: #a31e33;
    color: #fff;
}

/* ===============================
   BOTONES RESULTADOS (10K / 20K)
   SOLO noticia-detalle
   =============================== */

.btn-result.btn-cta {
    background-color: #a31e33 !important;
    color: #fff !important;
    border: 1px solid #a31e33 !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none !important;

    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* HOVER REAL (ESTE ES EL QUE TE FALTABA) */
.btn-result.btn-cta:hover {
    background: #fff !important;
    color: #a31e33 !important;
    border: 1px solid #a31e33 !important;

    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
@media (max-width: 768px) {
    .inscripcion-cta__col--border {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding-bottom: 2rem;
        margin-bottom: 1rem;
    }
    .inscripcion-cta__col {
        max-width: 100%;
    }
}
/* ===============================
   IMAGEN PRINCIPAL — NOTICIA DETALLE
   =============================== */

/* Imagen más ancha: columna pasa de 5/12 a 6/12 en desktop */
.noticia_detalle .col-lg-5 {
    flex: 0 0 auto;
    width: 50% !important;
    display: flex;
    align-items: flex-start;
}
.noticia_detalle .col-lg-7 {
    flex: 0 0 auto;
    width: 50% !important;
}

.noticia_detalle .col-lg-5 .img-fluid {
    width: 100% !important;
    height: 320px !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18) !important;
    display: block;
    margin-bottom: 0 !important;
}

@media (max-width: 991px) {
    .noticia_detalle .col-lg-5,
    .noticia_detalle .col-lg-7 {
        width: 100% !important;
    }
    .noticia_detalle .col-lg-5 .img-fluid {
        height: 280px !important;
    }
}

@media (max-width: 576px) {
    .noticia_detalle .col-lg-5 .img-fluid {
        height: 220px !important;
    }
}

/* =========================
   HERO NOTICIA DETALLE = LISTADO
   ========================= */

.hero-noticia.video-section {
    width: 100vw;
    position: relative;
    overflow: hidden;

    height: 330px !important;
    min-height: 330px !important;
    max-height: 330px !important;

    display: block !important;
}

/* imagen igual que listado */
.hero-noticia__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* overlay igual */
.hero-noticia__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

/* caption igual */
.hero-noticia__caption {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 0 1rem;
}

/* título controlado — clamp: pequeño en móvil, máx 3rem en desktop */
.hero-noticia__title {
    color: #fff;
    font-size: clamp(1.6rem, 5vw, 3rem) !important;
    line-height: 1.15;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.7);
    margin: 0;
    padding: 0 1rem;
    word-break: break-word;
}

/* seguridad anti home.css */
.page-home .hero-noticia.video-section {
    min-height: 330px !important;
    height: 330px !important;
}