/* Correcciones compartidas del tema editorial; cargado después de los estilos heredados. */
html { overflow-x: clip; }
body { min-width: 0; }
.tp-static-page, .tp-author-page { width: min(1200px, calc(100% - 32px)); margin: 30px auto 50px; }
.tp-static-page > .container, .tp-author-page .container { width: 100%; padding: 0; }
.tp-static-page .content { min-width: 0; overflow-wrap: break-word; }
.tp-static-page .content h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.15; }
.tp-static-page .content p { font-size: 18px; line-height: 1.8; text-align: left; }
.tp-static-page .content img { max-width: 100%; height: auto; }
.tp-main, .tp-article-layout, .tp-header, .tp-footer { box-sizing: border-box; }
.tp-main *, .tp-article-layout * { box-sizing: border-box; }
.tp-card-copy p, .tp-hero-copy p, .tp-category-lead-copy p,
.tp-article .post-body p, .tp-article .short-head { text-align: left; word-spacing: normal; letter-spacing: normal; }
.tp-card-copy h3, .tp-hero h1, .tp-category-lead-copy h2,
.tp-article h1, .tp-trending-list h3 { text-transform: none; overflow-wrap: break-word; word-break: normal; }
.tp-news-card { display: flex; flex-direction: column; }
.tp-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.tp-card-copy time { margin-top: auto; padding-top: 8px; }
.tp-card-image { flex: none; width: 100%; }
.tp-main a:focus-visible, .tp-header a:focus-visible, .tp-main button:focus-visible {
    outline: 3px solid #d69a22; outline-offset: 3px;
}
.tp-nav-links a { letter-spacing: .02em; }
.tp-article h1 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.1; }
.tp-article .post-body { font-size: 18px; line-height: 1.8; }
.tp-article .date ul { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; list-style: none; }
.tp-article .date li { float: none; }
.tp-article .post-body iframe { width: 100%; }
.tp-footer img { height: auto; }
.tp-footer .box-item { display: flex; gap: 12px; }
.tp-footer .img-thumb { float: none; flex: 0 0 80px; width: 80px; margin: 0; }
.tp-footer .img-thumb img { width: 80px; height: 64px; object-fit: cover; }
.tp-footer .item-details { min-width: 0; margin: 0; }
.tp-article .related-news-inner .row { margin-inline: 0; }
.tp-article .related-news-inner h4 { font-size: 20px; line-height: 1.25; }
.tp-article .related-news-inner .post-thumb img { aspect-ratio: 16/10; object-fit: cover; }
.tp-article .sidebar .box-item { display: flex; gap: 12px; padding-block: 12px; }
.tp-article .sidebar .img-thumb { float: none; flex: 0 0 85px; margin: 0; }
.tp-article .sidebar .img-thumb img { width: 85px; height: 68px; object-fit: cover; }
.tp-article .sidebar .item-details { min-width: 0; margin: 0; }
.tp-article .sidebar h3 { font-size: 18px; line-height: 1.25; }
.tp-ad-slot:empty, .tp-article .banner-add:empty { display: none; min-height: 0; margin: 0; }
@media (max-width: 1024px) {
    .tp-news-layout, .tp-category-feed-layout, .tp-search-results-layout { grid-template-columns: minmax(0, 1fr); }
    .tp-sidebar, .tp-category-sidebar { position: static; }
    .tp-latest-grid, .tp-category-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tp-sidebar-block { padding: 20px; }
    .tp-article-layout > .row { grid-template-columns: minmax(0, 1fr); }
    .tp-article-layout > .row > .tp-article-primary,
    .tp-article-layout > .row > .left-padding { grid-column: 1; grid-row: auto; }
    .tp-article-layout .left-padding { border-top: 1px solid var(--tp-line); padding-top: 24px; }
    .tp-category-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tp-footer > .container > .row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
    .tp-footer > .container > .row > div { float: none; width: 100%; }
    .tp-footer > .container > .row > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .tp-today, .tp-install-app { display: none !important; }
    .tp-category-lead, .tp-hero-slide { grid-template-columns: minmax(0, 1fr); }
    .tp-category-lead-image, .tp-hero-image { aspect-ratio: 16/9; }
    .tp-hero-copy { padding: 22px; }
    .tp-hero h1 { font-size: 29px; line-height: 1.13; }
    .tp-category-lead-copy h2 { font-size: 29px; line-height: 1.13; }
}
@media (max-width: 680px) {
    .tp-static-page > .container > .row { display: block; margin: 0; }
    .tp-static-page > .container > .row > div { width: 100%; padding: 0; float: none; }
    .tp-main, .tp-category-page, .tp-article-layout { width: calc(100% - 32px); }
    .tp-masthead-inner, .tp-nav-inner, .tp-footer .container { width: calc(100% - 32px); }
    .tp-masthead-inner { min-height: 76px; }
    .tp-brand img { max-width: 162px; max-height: 52px; }
    .tp-latest-grid, .tp-category-card-grid, .tp-archive-grid, .tp-category-news-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .tp-news-card, .tp-category-news-grid .tp-news-card,
    .tp-category-card-grid .tp-news-card, .tp-search-page .tp-category-card-grid .tp-news-card,
    .tp-archive-grid .tp-news-card { display: flex; flex-direction: column; grid-template-columns: none; }
    .tp-news-card .tp-card-image, .tp-category-card-grid .tp-card-image,
    .tp-search-page .tp-category-card-grid .tp-card-image, .tp-archive-grid .tp-card-image {
        width: 100%; min-height: 0; height: auto; aspect-ratio: 16/10;
    }
    .tp-card-copy, .tp-category-card-grid .tp-card-copy, .tp-category-news-grid .tp-card-copy { min-height: 0; padding: 17px; }
    .tp-card-copy h3, .tp-category-card-grid .tp-card-copy h3,
    .tp-category-news-grid .tp-card-copy h3 { font-size: 24px; line-height: 1.18; }
    .tp-card-copy p, .tp-search-page .tp-category-card-grid .tp-card-copy p,
    .tp-category-card-grid .tp-card-copy p { display: block; font-size: 15px; line-height: 1.6; }
    .tp-card-copy time { font-size: 12px; }
    .tp-hero-copy { padding: 20px 18px; }
    .tp-hero h1 { font-size: 29px; }
    .tp-hero-copy p { display: block; font-size: 15px; }
    .tp-carousel-arrow { min-width: 44px; min-height: 44px; }
    .tp-carousel-dots button { min-width: 12px; min-height: 12px; }
    .tp-hero-controls { justify-content: center; }
    .tp-section-heading { align-items: center; gap: 12px; }
    .tp-section-heading h2 { font-size: 28px; }
    .tp-section-heading > a { font-size: 12px; }
    .tp-article h1 { font-size: 34px; line-height: 1.12; }
    .tp-article .short-head { font-size: 19px; line-height: 1.5; }
    .tp-article .post-body { font-size: 18px; line-height: 1.75; }
    .tp-trending-list h3 { font-size: 19px; line-height: 1.3; }
    .tp-footer > .container > .row { grid-template-columns: minmax(0, 1fr); }
    .tp-footer > .container > .row > div:last-child { grid-column: auto; }
    .tp-footer .row { margin: 0; }
    .tp-footer .col-sm-6 { padding: 0; margin-bottom: 20px; }
    .tp-footer .td-module-title { font-size: 19px; }
    .tp-category-strip, .tp-video-section { margin-inline: 0; }
}
