/*
Theme Name: MUPUM Portal
Description: Tema responsive inicial para el portal de MUPUM.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: mupum-portal
*/

:root {
    --blue: #1d4d8f;
    --navy: #102b50;
    --gold: #f0b429;
    --ink: #1c2838;
    --muted: #596a7e;
    --paper: #f4f7fb;
    --line: #dce5ef;
    --white: #fff;
    --shadow: 0 14px 36px rgba(16, 36, 64, .08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.65;
}

a {
    color: var(--blue);
}

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

.container {
    width: min(1120px, calc(100% - 36px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 999;
    padding: 10px;
    background: #fff;
}

.skip-link:focus {
    left: 10px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
}

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

.site-brand a {
    color: var(--navy);
    font-size: 1.45rem;
    font-weight: 800;
    text-decoration: none;
}

.primary-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav a {
    color: var(--ink);
    font-weight: 650;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: var(--blue);
    text-decoration: underline;
}

.hero {
    padding: clamp(56px, 9vw, 110px) 0;
    color: var(--white);
    background: linear-gradient(125deg, #10243e, #1d4d8f);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 36px;
}

.eyebrow {
    color: #f6d375;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 12px 0;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.hero-copy > p {
    max-width: 620px;
    color: #e3ebf5;
    font-size: 1.1rem;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--gold);
    color: #182232;
    font-weight: 750;
    text-decoration: none;
}

.button-outline {
    border-color: rgba(255, 255, 255, .55);
    background: transparent;
    color: #fff;
}

.hero-panel {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
}

.hero-panel h2 {
    margin-top: 0;
}

.hero-panel ul {
    padding-left: 20px;
    color: #e3ebf5;
}

.section {
    padding: clamp(54px, 8vw, 84px) 0;
}

.section-tint {
    background: #eaf1f8;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading h2 {
    margin: 8px 0;
    color: var(--navy);
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.15;
}

.section-heading p {
    color: var(--muted);
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.cta-panel h2 {
    margin: 6px 0;
    color: var(--navy);
}

.site-footer {
    padding: 28px 0;
    background: var(--navy);
    color: #edf3fa;
}

.site-footer a {
    color: #fff;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.content-area {
    min-height: 50vh;
    padding: 56px 0;
}

.content-area article {
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

@media (max-width: 760px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 12px 0;
    }

    .primary-nav ul {
        justify-content: flex-start;
        gap: 8px 14px;
    }

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

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}
