/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/* =============================================
   HEMEROTECA - Ediciones históricas
   ============================================= */

.hemeroteca-edicion {
    font-family: inherit;
    color: inherit;
}

.hemeroteca-edicion-header {
    text-align: center;
    margin-bottom: 30px;
}

.hemeroteca-edicion-header img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}

.hemeroteca-edicion-fecha {
    display: inline-block;
    background: #006393;
    color: #fff;
    padding: 6px 18px;
    font-size: 13px;
    letter-spacing: 0.03em;
}

.hemeroteca-seccion-titulo {
    background: #006393;
    color: #fff;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 40px 0 20px;
}

.hemeroteca-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px 40px;
    margin-top: 30px;
}

.hemeroteca-article {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 25px;
}

.hemeroteca-article figure {
    margin: 0 0 12px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hemeroteca-article figure a {
    display: block;
    width: 100%;
    height: 100%;
}

.hemeroteca-article figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.hemeroteca-article figure img:hover {
    opacity: 0.85;
}

.hemeroteca-article h3 {
    font-size: 15px;
    line-height: 1.4;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.hemeroteca-article h3 a {
    color: inherit;
    text-decoration: none;
}

.hemeroteca-article h3 a:hover {
    color: #006393;
    text-decoration: underline;
}

.hemeroteca-article figcaption {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}

.hemeroteca-article h2 {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 10px;
    color: #1a1a1a;
}

.hemeroteca-article p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 8px;
    color: #333;
}

.hemeroteca-article .autor {
    font-style: italic;
    font-size: 13px;
    color: #006393;
    margin-top: 10px;
}

.hemeroteca-links-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.hemeroteca-links-lista li {
    border-bottom: 1px solid #ebebeb;
    padding: 9px 0;
    font-size: 14px;
    line-height: 1.5;
}

.hemeroteca-links-lista li em {
    color: #777;
    font-size: 12px;
}

@media (max-width: 768px) {
    .hemeroteca-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   HEMEROTECA - Legado: tablas originales con scroll
   ============================================= */

.hemeroteca-edicion-legado {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.hemeroteca-edicion-legado table {
    min-width: 600px;
    border-collapse: collapse;
}

.hemeroteca-edicion-legado img {
    max-width: 100%;
    height: auto !important;
}

.hemeroteca-edicion-legado a {
    color: #006393;
    text-decoration: none;
}

.hemeroteca-edicion-legado a:hover {
    text-decoration: underline;
}

.hemeroteca-edicion-legado td {
    vertical-align: top;
}

.hemeroteca-edicion-legado font[face],
.hemeroteca-edicion-legado font[size] {
    font-family: inherit;
    font-size: inherit;
}