/* TABLAS DEL DOSSIER DE PRENSA */

.tabla-contenedor {
    width: 100%;
    overflow-x: auto;
    margin-top: 18px;
}

.tabla-prensa {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 14px;
}

.tabla-prensa th {
    padding: 14px 10px;
    background: #f3f4f6;
    color: #1f2937;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #d1d5db;
}

.tabla-prensa td {
    padding: 14px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tabla-prensa tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.tabla-prensa tbody tr:nth-child(even) {
    background-color: #f1f3f5;
}

.tabla-prensa tbody tr:hover {
    background: #f8f9fb;
}

.tabla-prensa th:nth-child(1) { width: 5%; }
.tabla-prensa th:nth-child(2) { width: 20%; }
.tabla-prensa th:nth-child(3) { width: 11%; }
.tabla-prensa th:nth-child(4) { width: 12%; }
.tabla-prensa th:nth-child(5) { width: 14%; }
.tabla-prensa th:nth-child(6) { width: 26%; }
.tabla-prensa th:nth-child(7) { width: 12%; }

.tabla-prensa .miniatura {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
    cursor: pointer;
}

.tabla-prensa a {
    color: #174a8b;
    text-decoration: none;
}

.tabla-prensa a:hover {
    text-decoration: underline;
}


/* BOTON DE APERTURA DEL VISOR */

.tabla-prensa .abrir-visor {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    text-align: left;
    cursor: zoom-in;
}

.tabla-prensa .abrir-visor .miniatura {
    display: block;
    width: 100%;
    transition: filter 0.2s ease;
}

.tabla-prensa .abrir-visor:hover .miniatura {
    filter: brightness(0.92);
}

.tabla-prensa .abrir-visor:focus-visible {
    outline: 3px solid #174a8b;
    outline-offset: 3px;
}


.tabla-prensa .miniatura {

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);

}

/* TITULAR Y RESUMEN EN LAS TABLAS */

.tabla-prensa .titular-noticia {
    color: #174a8b;
    font-weight: 700;
    line-height: 1.45;
}

.tabla-prensa .titular-traduccion {
    margin: 6px 0 0;
    color: #374151;
    font-size: 12px;
    line-height: 1.45;
}

.tabla-prensa .resumen-noticia {
    margin: 8px 0 0;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

/* ALINEACION TITULAR Y RESUMEN */
.tabla-prensa td .titular-noticia,
.tabla-prensa td .resumen-noticia {
    margin-left: 0;
    padding-left: 0;
    text-indent: 0;
    text-align: left;
}

/* TARJETAS MOVILES CXS 2026 */

@media (max-width: 760px) {

    .tabla-contenedor {
        overflow: visible;
        margin-top: 4px;
        padding: 0 12px 12px;
    }

    .tabla-prensa,
    .tabla-prensa tbody {
        display: block;
        width: 100%;
    }

    .tabla-prensa {
        table-layout: auto;
    }

    .tabla-prensa thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    .tabla-prensa tbody tr {
        display: grid;
        grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "imagen imagen imagen"
            "numero fecha tipo"
            "medio medio medio"
            "titular titular titular"
            "enlace enlace enlace";
        margin-bottom: 16px;
        border: 1px solid #d9dee5;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
    }

    .tabla-prensa tbody tr > td {
        display: block;
        width: auto;
        min-width: 0;
        padding: 0;
        border: 0;
        vertical-align: top;
    }

    /* NUMERO */

    .tabla-prensa tbody tr > td:nth-child(1) {
        grid-area: numero;
        padding: 12px 0 0 14px;
        font-size: 12px;
        color: #64748b;
        white-space: nowrap;
    }

    .tabla-prensa tbody tr > td:nth-child(1)::before {
        content: "N.º ";
    }

    /* IMAGEN PRINCIPAL */

    .tabla-prensa tbody tr > td:nth-child(2) {
        grid-area: imagen;
    }

    .tabla-prensa .abrir-visor {
        border-radius: 0;
    }

    .tabla-prensa .miniatura,
    .tabla-prensa .abrir-visor .miniatura {
        display: block;
        width: 100%;
        height: clamp(150px, 45vw, 200px);
        aspect-ratio: auto;
        object-fit: cover;
        object-position: top;
        border-radius: 0;
        box-shadow: none;
    }

    .tabla-prensa tbody tr > td:nth-child(2) small {
        display: block;
        padding: 6px 14px;
        font-size: 12px;
        color: #64748b;
    }

    /* FECHA Y TIPO */

    .tabla-prensa tbody tr > td:nth-child(3) {
        grid-area: fecha;
        padding: 12px 4px 0 0;
        font-size: 12px;
        color: #475569;
    }

    .tabla-prensa tbody tr > td:nth-child(4) {
        grid-area: tipo;
        padding: 12px 14px 0 4px;
        font-size: 12px;
        text-align: right;
        color: #475569;
    }

    /* MEDIO */

    .tabla-prensa tbody tr > td:nth-child(5) {
        grid-area: medio;
        padding: 8px 14px 0;
        font-weight: 700;
        color: #334155;
    }

    /* TITULAR Y RESUMEN */

    .tabla-prensa tbody tr > td:nth-child(6) {
        grid-area: titular;
        padding: 8px 14px 12px;
    }

    .tabla-prensa .titular-noticia {
        font-size: 15px;
        line-height: 1.4;
    }

    .tabla-prensa .titular-traduccion {
        padding: 0;
    }

    .tabla-prensa .resumen-noticia {
        margin: 6px 0 0;
        padding: 0;
        font-size: 13px;
        line-height: 1.5;
        -webkit-line-clamp: 4;
    }

    /* ENLACE */

    .tabla-prensa tbody tr > td:nth-child(7) {
        text-align: center;
        grid-area: enlace;
        padding: 10px 14px;
        border-top: 1px solid #e5e7eb;
    }

    .tabla-prensa tbody tr > td:nth-child(7) a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 16px;
        border-radius: 8px;
        background: #174a8b;
        color: #ffffff;
        font-weight: 600;
        text-decoration: none;
    }

    .tabla-prensa tbody tr > td:nth-child(7) a:hover {
        background: #123b70;
        color: #ffffff;
    }

    /* BLOQUES SIN REFERENCIAS */

    .tabla-prensa tbody tr > td[colspan="7"] {
        grid-column: 1 / -1;
        grid-row: 1 / -1;
        padding: 20px 14px;
    }

    .tabla-prensa tbody tr > td[colspan="7"]::before {
        content: none;
    }
}
