/*
Theme Name: PASCO 4380
Theme URI: https://pasco4380.pe
Author: PASCO 4380
Description: Tema periodístico para PASCO 4380 - Noticias desde la altura.
Version: 1.0.3
Text Domain: pasco4380
*/

:root {
    --bg: #f4f7f8;
    --white: #ffffff;
    --navy: #08203a;
    --cyan: #0496a8;
    --text: #10253d;
    --muted: #607080;
    --line: #d7e0e5;
    --black: #111111;
    --yellow: #f2c318;
    --max-width: 1480px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

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

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--cyan);
}

.container {
    width: min(calc(100% - 48px), var(--max-width));
    margin: 0 auto;
}


/* CABECERA */

.site-header {
    width: 100%;
    background: var(--white);
}

.top-strip {
    width: 100%;
    background: var(--navy);
    color: var(--white);
}

.top-strip-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.top-badge {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--yellow);
    color: #111;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    white-space: nowrap;
}

.top-note {
    color: var(--white);
    font-size: 12px;
}


/* LOGO */

.masthead {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--navy);
}

.brand:hover {
    color: var(--navy);
}

.brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-size: 17px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-text strong {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.brand-text strong em {
    color: var(--cyan);
    font-style: normal;
}

.brand-text small {
    margin-top: 7px;
    color: var(--navy);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .28em;
}

.masthead-meta {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}


/* MENÚ */

.main-nav {
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
    display: none;
}

.menu-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 34px;
    width: max-content;
    min-height: 58px;
}

.menu-list li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.menu-list li::marker {
    content: "";
}

.menu-list a {
    display: block;
    padding: 20px 0;
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.menu-list a:hover {
    color: var(--cyan);
}


/* PORTADA */

.site-main {
    width: 100%;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(360px, .9fr);
    gap: 30px;
    padding-top: 48px;
    padding-bottom: 60px;
}

.hero-main {
    min-width: 0;
}

.hero-image {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #dfe6e9;
    aspect-ratio: 16 / 8.7;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    padding-top: 16px;
}

.card-category {
    margin-bottom: 8px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 3.3vw, 56px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.025em;
}

.hero-content h1 a {
    color: var(--navy);
}

.hero-content p {
    max-width: 820px;
    margin: 16px 0 0;
    color: #48596a;
    font-size: 16px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 18px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}


/* COLUMNA DERECHA */

.hero-secondary {
    display: grid;
    gap: 28px;
    align-content: start;
}

.hero-secondary .card {
    border-top: 2px solid var(--black);
    padding-top: 12px;
}

.hero-secondary .card-media {
    aspect-ratio: 16 / 9;
}

.hero-secondary .card h2 {
    font-size: 25px;
    line-height: 1.06;
}


/* TARJETAS */

.card {
    min-width: 0;
}

.card-media {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #dfe6e9;
    aspect-ratio: 16 / 10;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding-top: 13px;
}

.card h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.08;
}

.card h2 a {
    color: var(--navy);
}

.card p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}


/* PLACEHOLDER */

.image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a223d 0%, #13365c 100%);
    color: var(--white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 700;
}


/* SECCIONES */

.category-section,
.latest-section {
    padding-top: 52px;
    padding-bottom: 62px;
    border-top: 1px solid var(--line);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.section-kicker {
    margin-bottom: 5px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.section-header h2 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1;
}

.section-more {
    color: var(--navy);
    font-size: 12px;
    font-weight: 900;
}

.section-rule {
    width: 100%;
    height: 6px;
    margin: 20px 0 30px;
    background: var(--black);
}


/* GRILLAS */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.posts-grid .card {
    display: flex;
    flex-direction: column;
}

.posts-grid .card-body {
    flex: 1;
}


/* FOOTER */

.site-footer {
    margin-top: 60px;
    padding: 50px 0;
    background: var(--navy);
    color: rgba(255,255,255,.8);
}

.site-footer a {
    color: var(--white);
}


/* TABLET */

@media (max-width: 1100px) {

    .container {
        width: min(calc(100% - 36px), var(--max-width));
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* CELULAR */

@media (max-width: 700px) {

    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .top-strip {
        display: none;
    }

    .masthead {
        min-height: 78px;
    }

    .masthead-meta {
        display: none;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .brand-text strong {
        font-size: 24px;
    }

    .brand-text small {
        font-size: 7px;
        letter-spacing: .18em;
    }

    .menu-list {
        gap: 22px;
        min-height: 52px;
    }

    .menu-list a {
        padding: 17px 0;
        font-size: 13px;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 28px;
        padding-bottom: 42px;
    }

    .hero-image {
        aspect-ratio: 16 / 10;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-secondary {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .card h2 {
        font-size: 27px;
    }
}
/* =========================================================
   MODO CLARO / OSCURO
========================================================= */

.masthead-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #d7e0e5;
    border-radius: 50%;
    background: #ffffff;
    color: #08203a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    transition: 0.2s ease;
}

.theme-toggle:hover {
    border-color: #0496a8;
    color: #0496a8;
}

.theme-icon-dark {
    display: none;
}


/* MODO OSCURO */

body.dark-mode {
    --bg: #0b1118;
    --white: #111a23;
    --navy: #f4f7f8;
    --text: #edf3f6;
    --muted: #aab7c2;
    --line: #283542;
    --black: #e7edf1;

    background: #0b1118;
    color: #edf3f6;
}

body.dark-mode .site-header,
body.dark-mode .main-nav {
    background: #111a23;
}

body.dark-mode .masthead {
    background: #111a23;
}

body.dark-mode .brand,
body.dark-mode .brand:hover,
body.dark-mode .brand-text strong,
body.dark-mode .brand-text small,
body.dark-mode .masthead-meta,
body.dark-mode .menu-list a,
body.dark-mode .hero-content h1,
body.dark-mode .hero-content h1 a,
body.dark-mode .card h2,
body.dark-mode .card h2 a,
body.dark-mode .section-header h2,
body.dark-mode .section-more,
body.dark-mode .read-more {
    color: #f4f7f8;
}

body.dark-mode .card p,
body.dark-mode .hero-content p {
    color: #aab7c2;
}

body.dark-mode .theme-toggle {
    background: #162330;
    border-color: #314251;
    color: #ffffff;
}

body.dark-mode .theme-icon-light {
    display: none;
}

body.dark-mode .theme-icon-dark {
    display: inline;
}


/* CELULAR */

@media (max-width: 700px) {

    .masthead-right {
        margin-left: auto;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }
}