/* ===========================
   AJUSTES GLOBALES
   =========================== */

html,
body {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Aseguramos que el wrap se pueda adaptar */
#wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.hamburger-menu {
    display: none;
}

/* Por defecto, el bloque móvil de destacados no se muestra en escritorio */
#mobile-featured-list {
    display: none;
}

/* ===========================
   TABLET Y ABAJO
   =========================== */

@media (max-width: 1024px) {

    body {
        font-size: 15px;
    }

    #slideshow {
        width: 100% !important;
        overflow: hidden;
    }

    #slideshow img {
        width: 100% !important;
        height: auto !important;
    }

    #left_col,
    #right_col,
    #full_col {
        box-sizing: border-box;
    }
}

/* ===========================
   MÓVIL GENERAL
   =========================== */

@media (max-width: 900px) {

    body {
        background-color: #f3f5ff;
        overflow-x: hidden;
    }

    /* Quitamos todos los paddings laterales globales en móvil */
    #site_layout,
    #site_body,
    #site_body .centerbody,
    #wrap,
    #content,
    #lateral {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #left_col,
    #right_col,
    #full_col,
    #content,
    #lateral,
    .contentleft,
    .contentright {
        float: none !important;
        width: 100% !important;
        margin: 0 0 20px 0 !important;
    }

    #right_col,
    #lateral,
    .contentright {
        margin-top: 20px !important;
    }

    /* FIX supercapa #right_col: lo metemos en el flujo normal */
    #right_col {
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        z-index: auto !important;
    }

    .textoNoticia,
    .news_body,
    .article_body,
    .storytext,
    .storycontent {
        font-size: 16px;
        line-height: 1.6;
    }

    h1,
    .titularNoticia {
        font-size: 22px;
        line-height: 1.3;
    }

    /* CABECERA */

    #mywrap {
        position: relative;
        padding: 8px 10px;
        height: auto !important;
    }

    #mywrap>div[style*="search.png"] {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        margin: 10px 0 0 0 !important;
        background-position: right center;
        box-sizing: border-box;
    }

    #mywrap form[name="sear"] {
        margin-top: 5px !important;
        margin-left: 5px !important;
    }

    #mywrap .inputmio {
        width: 60% !important;
    }

    #mywrap div[onclick*="TestDataCheck()"] {
        position: static !important;
        display: inline-block;
        padding-left: 10px !important;
        width: auto !important;
        height: auto !important;
        line-height: 1.4;
        cursor: pointer;
    }

    #header_nav {
        display: none;
        width: 100% !important;
        padding: 0 5px !important;
        box-sizing: border-box;
        background: #fff;
        position: absolute;
        top: 100px;
        left: 0;
        z-index: 1000;
        border-bottom: 2px solid #ccc;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    #header_nav.nav-open {
        display: block !important;
    }

    #header_nav>li {
        float: none !important;
        display: block;
        margin-right: 0;
        margin-bottom: 0;
        border-bottom: 1px solid #eee;
    }

    #header_nav>li>a {
        padding: 4px 6px;
        font-size: 14px;
    }

    #header_nav .dropdown_3columns,
    #header_nav .dropdown_2columns {
        position: static !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* 🔴 En móvil ocultamos el slider antiguo */
    #slideshow {
        display: none !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    ul#nav {
        display: none !important;
    }

    /* 🟥 Destacados tipo Playlyft en móvil */

    #mobile-featured-list {
        display: block;
        width: 100%;
        margin: 0 0 8px 0;
    }

    .mobile-featured-card {
        margin-bottom: 8px;
        background: #000;
    }

    .mobile-featured-card a {
        display: block;
        text-decoration: none;
        color: #fff;
    }

    .mobile-featured-bg {
        position: relative;
        width: 100%;
        padding-top: 56%;
        /* 16:9 */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .mobile-featured-overlay {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 8px 10px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
        color: #fff;
        box-sizing: border-box;
    }

    .mobile-featured-type {
        font-size: 11px;
        text-transform: uppercase;
        margin-bottom: 3px;
        opacity: 0.8;
    }

    .mobile-featured-title {
        font-size: 15px;
        font-weight: bold;
        line-height: 1.3;
    }

    /* Reducimos el hueco del div style="height:70px" entre destacados y noticias */
    #wrap>div[style*="height:70px"] {
        height: 8px !important;
    }
}

/* ===========================
   MÓVIL PEQUEÑO (<768)
   =========================== */

@media (max-width: 768px) {

    #left_col,
    #right_col,
    #full_col {
        float: none !important;
        width: 100% !important;
        margin: 0 0 20px 0 !important;
    }

    #left_col .fila-izq,
    #right_col .column-sub,
    #full_col>div {
        padding: 10px;
        box-sizing: border-box;
    }

    #txtdivhead {
        font-size: 16px;
        padding: 8px 10px;
    }

    .ui-plat {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 10px;
    }

    .ui-plat li {
        float: none !important;
        margin: 0;
    }

    .ui-plat a {
        display: block;
        padding: 4px 8px;
        font-size: 14px;
    }

    .fila-izq {
        overflow: hidden;
        margin-bottom: 15px;
        padding: 10px 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .fila-izq>div[style*="FLOAT: left"],
    .fila-izq>div[style*="FLOAT:left"] {
        float: left !important;
        margin-left: 0 !important;
        margin-right: 10px !important;
    }

    .fila-izq img {
        width: 100%;
        height: auto;
        display: block;
    }

    .fila-izq a {
        font-size: 15px;
        display: block;
        margin-bottom: 4px;
    }

    #column-face {
        height: auto !important;
    }

    #ad300r {
        margin-top: 15px;
    }
}

/* ===========================
   MÓVIL MUY PEQUEÑO (<480)
   =========================== */

@media (max-width: 480px) {

    body {
        font-size: 14px;
    }

    #txtdivhead {
        font-size: 15px;
    }

    #left_col .fila-izq,
    #right_col .column-sub {
        padding: 8px;
    }

    .ui-plat a {
        font-size: 13px;
        padding: 3px 6px;
    }

    h1,
    .titularNoticia {
        font-size: 20px;
    }
}

/* ===========================
   HOME: AJUSTES EXTRA (INDEX)
   =========================== */

@media (max-width: 900px) {

    table[bgcolor="#FFFFFF"],
    table[bgcolor="#ffffff"] {
        width: 100% !important;
    }

    table[bgcolor="#FFFFFF"]>tbody>tr>td,
    table[bgcolor="#ffffff"]>tbody>tr>td {
        display: block;
        width: 100% !important;
    }
}

/* Anuncios cabecera: versión escritorio vs móvil */
.ads-desktop {
    display: block;
}

.ads-mobile {
    display: none;
}

@media (max-width: 900px) {
    .ads-desktop {
        display: none;
    }

    .ads-mobile {
        display: block;
    }
}

/* ===========================
   AJUSTE TOP LANZAMIENTOS EN MÓVIL
   =========================== */

/* ===========================
   AJUSTE TOP LANZAMIENTOS EN MÓVIL
   =========================== */

/* ===========================
   TOP LANZAMIENTOS – AJUSTE IMAGEN EN MÓVIL
   =========================== */

@media (max-width: 900px) {

    /* La ficha ocupa todo el ancho pero sin desbordes internos */
    #column-top .ficha-columna {
        float: none !important;
        width: 100% !important;
        box-sizing: border-box;
        overflow: hidden;
        /* Por si acaso se pasa algo de alto/ancho */
        padding: 8px 10px;
    }

    /* Imagen dentro de la fila: más pequeña y flotada a la izquierda */
    #column-top .ficha-columna img {
        float: left !important;
        max-width: 35%;
        /* prueba 35%; si la ves aún grande, baja a 30 % o pon 120px */
        height: auto;
        display: block;
        margin: 0 10px 0 0;
        /* separación respecto al texto */
    }
}