﻿:root {
    --yellow: #f4c400;
    --yellow-strong: #ffd400;
    --yellow-soft: #fff4b8;
    --ink: #171717;
    --ink-2: #252525;
    --graphite: #343434;
    --text: #3f3f3f;
    --muted: #777777;
    --line: #e8e4d4;
    --paper: #ffffff;
    --paper-warm: #fbfaf5;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.09);
    --radius: 22px;
    --shell: 1320px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--paper-warm);
    line-height: 1.55;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.top-line {
    height: 5px;
    background: var(--yellow);
}

.header-inner {
    width: min(calc(100% - 40px), var(--shell));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: var(--ink);
    min-width: max-content;
}

.brand-mark {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--yellow);
    overflow: hidden;
    flex: 0 0 46px;
}

.brand-antenna {
    position: absolute;
    width: 3px;
    height: 24px;
    background: var(--ink);
    left: 22px;
    bottom: 8px;
    border-radius: 4px;
}

.brand-antenna::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ink);
    left: -2px;
    top: -3px;
}

.brand-wave {
    position: absolute;
    border: 2px solid var(--ink);
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    top: 9px;
}

.brand-wave-1 {
    width: 18px;
    height: 28px;
    left: 14px;
}

.brand-wave-2 {
    width: 32px;
    height: 36px;
    left: 7px;
    top: 5px;
}

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

.brand-copy strong {
    letter-spacing: 0.08em;
    font-size: 1.03rem;
    color: var(--ink);
}

.brand-copy small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.nav-link {
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 650;
    color: #454545;
    padding: 10px 11px;
    border-radius: 10px;
    transition: 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--ink);
    background: #f4f1e7;
}

.nav-link-accent {
    background: var(--yellow);
    color: var(--ink);
    margin-left: 4px;
}

.nav-link-accent:hover {
    background: var(--yellow-strong);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: var(--ink);
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 4px;
    background: var(--yellow);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-main {
    min-height: calc(100vh - 170px);
}

.page-shell {
    width: min(calc(100% - 40px), var(--shell));
    margin: 0 auto;
}

.hero {
    position: relative;
    padding: clamp(52px, 7vw, 96px) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 18%, rgba(244, 196, 0, 0.22), transparent 28%),
        linear-gradient(135deg, #fffdf5 0%, #f7f3e7 100%);
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
}

.hero-copy {
    max-width: 760px;
    justify-self: start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #765f00;
    font-weight: 800;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 3px;
    border-radius: 10px;
    background: var(--yellow);
}

.hero h1 {
    margin: 18px 0 20px;
    max-width: 700px;
    font-size: clamp(2.7rem, 5.3vw, 5.6rem);
    line-height: 0.92;
    letter-spacing: -0.065em;
    color: var(--ink);
    font-weight: 850;
}

.hero h1 span {
    color: #a98700;
}

.hero-text {
    max-width: 700px;
    margin: 0;
    color: #5b5b5b;
    font-size: clamp(1.02rem, 1.7vw, 1.18rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    padding: 0 22px;
    text-decoration: none;
    font-weight: 750;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--ink);
    background: var(--yellow);
    box-shadow: 0 10px 26px rgba(244, 196, 0, 0.23);
}

.btn-primary:hover {
    background: var(--yellow-strong);
}

.btn-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.65);
    border-color: #d9d4c1;
}

.btn-dark {
    background: var(--ink);
    color: white;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid #ddd7c5;
}

.hero-meta > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-meta strong {
    color: var(--ink);
    font-size: 1rem;
}

.hero-meta span {
    color: var(--muted);
    font-size: 0.77rem;
}

.radio-card {
    position: relative;
    min-height: 435px;
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(145deg, #202020, #111111);
    color: white;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.radio-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -100px;
    top: -100px;
    border-radius: 50%;
    background: var(--yellow);
    opacity: 0.95;
}

.radio-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -42px;
    top: -42px;
    border: 2px solid rgba(23, 23, 23, 0.42);
    border-radius: 50%;
    box-shadow:
        0 0 0 20px rgba(23, 23, 23, 0.08),
        0 0 0 44px rgba(23, 23, 23, 0.06);
}

.radio-card-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.73rem;
    letter-spacing: 0.16em;
    font-weight: 800;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 5px rgba(244, 196, 0, 0.11);
}

.frequency {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 70px;
}

.frequency-number {
    color: var(--yellow);
    font-family: Consolas, "Courier New", monospace;
    font-size: clamp(3.3rem, 6vw, 5.15rem);
    line-height: 1;
    letter-spacing: -0.07em;
    text-shadow: 0 0 24px rgba(244, 196, 0, 0.16);
}

.frequency-unit {
    padding-bottom: 9px;
    color: #aaa;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.86rem;
}

.signal {
    height: 82px;
    margin-top: 36px;
    padding: 0 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.signal span {
    flex: 1;
    min-width: 3px;
    max-width: 10px;
    border-radius: 8px;
    background: var(--yellow);
    opacity: 0.82;
}

.radio-readout {
    display: flex;
    justify-content: space-between;
    margin-top: 19px;
    color: #c8c8c8;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.78rem;
}

.radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 26px;
}

.radio-grid span {
    padding: 9px 7px;
    border-radius: 9px;
    text-align: center;
    background: rgba(255, 255, 255, 0.055);
    color: #8f8f8f;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.74rem;
}

.section {
    padding: clamp(64px, 8vw, 100px) 0;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 55px;
    align-items: end;
    margin-bottom: 38px;
}

.section-heading h2,
.community-copy h2,
.contact-strip h2 {
    margin: 12px 0 0;
    color: var(--ink);
    letter-spacing: -0.04em;
    line-height: 1.03;
    font-size: clamp(2.25rem, 4vw, 3.9rem);
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    max-width: 520px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-card {
    position: relative;
    min-height: 270px;
    padding: 25px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.035);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #dfc858;
    box-shadow: var(--shadow);
}

.feature-number {
    position: absolute;
    right: 20px;
    top: 16px;
    color: #d0cab4;
    font-weight: 800;
    font-size: 0.76rem;
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: var(--yellow-soft);
    color: #6e5900;
    font-weight: 900;
    letter-spacing: 0.03em;
    font-size: 0.87rem;
}

.feature-card h3 {
    color: var(--ink);
    margin: 28px 0 10px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--muted);
    margin: 0;
    font-size: 0.92rem;
}

.feature-link {
    position: absolute;
    left: 25px;
    bottom: 23px;
    color: #8a7000;
    font-weight: 750;
    font-size: 0.86rem;
}

.feature-link b {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.18s ease;
}

.feature-card:hover .feature-link b {
    transform: translateX(4px);
}

.feature-card-dark {
    background: var(--ink);
    border-color: var(--ink);
}

.feature-card-dark h3 {
    color: white;
}

.feature-card-dark p {
    color: #bcbcbc;
}

.feature-card-dark .feature-number {
    color: #646464;
}

.feature-card-dark .feature-icon {
    background: var(--yellow);
    color: var(--ink);
}

.feature-card-dark .feature-link {
    color: var(--yellow);
}

.community-section {
    padding: clamp(64px, 8vw, 100px) 0;
    background: var(--ink);
    color: white;
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: clamp(45px, 8vw, 110px);
    align-items: center;
}

.community-copy h2 {
    color: white;
}

.community-copy p {
    max-width: 620px;
    color: #bdbdbd;
    font-size: 1.02rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.tag-row span {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #3f3f3f;
    color: #d7d7d7;
    font-size: 0.79rem;
}

.community-panel {
    border-radius: 24px;
    padding: 12px 28px;
    background: #202020;
    border: 1px solid #303030;
}

.community-line {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid #353535;
}

.community-line:last-child {
    border-bottom: 0;
}

.line-label {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 900;
}

.community-line div {
    display: flex;
    flex-direction: column;
}

.community-line strong {
    font-size: 1.02rem;
}

.community-line small {
    margin-top: 3px;
    color: #8f8f8f;
}

.contact-strip {
    padding: 68px 0;
    background: var(--yellow);
}

.contact-strip .eyebrow {
    color: #6b5600;
}

.contact-strip .eyebrow::before {
    background: var(--ink);
}

.contact-strip h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.contact-strip p {
    margin: 12px 0 0;
    color: #605419;
}

.contact-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-footer {
    background: #0f0f0f;
    color: white;
}

.footer-inner {
    width: min(calc(100% - 40px), var(--shell));
    min-height: 128px;
    margin: 0 auto;
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-inner strong {
    letter-spacing: 0.04em;
}

.footer-inner p {
    margin: 4px 0 0;
    color: #888;
    font-size: 0.84rem;
}

.footer-right {
    display: flex;
    gap: 22px;
    color: #888;
    font-size: 0.8rem;
}

@media (max-width: 1080px) {
    .header-inner {
        width: min(calc(100% - 28px), var(--shell));
    }

    .nav-link {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 0.83rem;
    }

    .hero-grid {
        grid-template-columns: 1fr 380px;
        gap: 42px;
    }
}

@media (max-width: 980px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: white;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-link {
        padding: 12px 14px;
        font-size: 0.93rem;
    }

    .nav-link-accent {
        margin-left: 0;
        margin-top: 5px;
        text-align: center;
    }

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

    .radio-card {
        width: min(100%, 570px);
        min-height: 390px;
    }

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

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

@media (max-width: 720px) {
    .page-shell {
        width: min(calc(100% - 28px), var(--shell));
    }

    .header-inner {
        min-height: 70px;
    }

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

    .brand-antenna {
        left: 20px;
    }

    .brand-wave-1 {
        left: 12px;
    }

    .brand-wave-2 {
        left: 5px;
    }

    .brand-copy strong {
        font-size: 0.93rem;
    }

    .brand-copy small {
        font-size: 0.69rem;
    }

    .hero {
        padding-top: 52px;
    }

    .hero h1 {
        font-size: clamp(3rem, 16vw, 5rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .radio-card {
        padding: 22px;
        min-height: 360px;
        border-radius: 24px;
    }

    .frequency {
        margin-top: 58px;
    }

    .frequency-number {
        font-size: clamp(3.1rem, 16vw, 4.6rem);
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    .feature-card {
        min-height: 245px;
    }

    .contact-strip-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .footer-right {
        flex-direction: column;
        gap: 2px;
    }
}

@media (max-width: 430px) {
    .hero-meta {
        grid-template-columns: 1fr;
    }

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

    .radio-grid span:nth-child(1),
    .radio-grid span:nth-child(3) {
        display: none;
    }

    .community-panel {
        padding-left: 18px;
        padding-right: 18px;
    }

    .community-line {
        grid-template-columns: 56px 1fr;
        gap: 13px;
    }

    .line-label {
        width: 52px;
        height: 52px;
    }
}


/* =========================================================
   IDENTIDAD RADIOAFICIONADO
   ========================================================= */

.ham-hero {
    background:
        radial-gradient(circle at 78% 25%, rgba(244, 196, 0, 0.19), transparent 25%),
        linear-gradient(135deg, #fffdf5 0%, #f7f3e5 100%);
}

.ham-meta {
    gap: 34px;
}

.ham-station-card {
    position: relative;
    min-height: 440px;
    width: min(100%, 470px);
    justify-self: end;
    margin-right: 0;
    padding: 28px;
    border-radius: 30px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(145deg, #262626, #111);
    background-size: 26px 26px, 26px 26px, auto;
    color: #fff;
    border: 1px solid rgba(255,255,255,.09);
    box-shadow: 0 35px 80px rgba(0,0,0,.22);
}

.ham-station-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 7px;
    background: var(--yellow);
}

.ham-card-head {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.ham-card-head > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ham-card-kicker {
    color: #8f8f8f;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.ham-card-head strong {
    font-size: 1.08rem;
    letter-spacing: .08em;
}

.ham-status {
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--yellow);
    color: var(--ink);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.antenna-visual {
    position: relative;
    height: 220px;
    margin: 32px 0 20px;
}

.antenna-mast {
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 5px;
    height: 154px;
    transform: translateX(-50%);
    border-radius: 4px 4px 0 0;
    background: #d9d9d9;
}

.antenna-boom {
    position: absolute;
    left: 50%;
    top: 50px;
    width: 170px;
    height: 5px;
    transform: translateX(-50%);
    border-radius: 5px;
    background: var(--yellow);
}

.antenna-element {
    position: absolute;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: #d9d9d9;
    border-radius: 4px;
}

.antenna-element.e1 { top: 20px; height: 68px; margin-left: -72px; }
.antenna-element.e2 { top: 10px; height: 88px; margin-left: -36px; }
.antenna-element.e3 { top: 2px;  height: 104px; }
.antenna-element.e4 { top: 10px; height: 88px; margin-left: 36px; }
.antenna-element.e5 { top: 20px; height: 68px; margin-left: 72px; }

.antenna-wave {
    position: absolute;
    left: 50%;
    top: 52px;
    border: 2px solid rgba(244,196,0,.6);
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.wave-a { width: 230px; height: 115px; }
.wave-b { width: 300px; height: 160px; opacity: .6; }
.wave-c { width: 370px; height: 205px; opacity: .3; }

.band-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.band-panel span {
    padding: 10px 6px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #383838;
    color: #cacaca;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.band-panel span:first-child {
    background: var(--yellow);
    color: var(--ink);
    border-color: var(--yellow);
}

.ham-card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 22px;
}

.ham-card-footer > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ham-card-footer small {
    color: #777;
    font-size: .61rem;
    letter-spacing: .13em;
}

.ham-card-footer strong {
    color: #d6d6d6;
    font-size: .69rem;
    letter-spacing: .04em;
}

.bands-section {
    padding: clamp(58px, 7vw, 90px) 0;
    background: #f1eddf;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.bands-head {
    margin-bottom: 30px;
}

.bands-head h2 {
    margin: 12px 0 0;
    color: var(--ink);
    letter-spacing: -.04em;
    line-height: 1.04;
    font-size: clamp(2.15rem, 4vw, 3.7rem);
}

.bands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
}

.band-card {
    min-height: 135px;
    padding: 22px;
    border-radius: 17px;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.band-card strong {
    color: var(--ink);
    font-size: 1.5rem;
    letter-spacing: -.02em;
}

.band-card span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .83rem;
}

.band-card:first-child {
    background: var(--yellow);
    border-color: var(--yellow);
}

.band-card:first-child span {
    color: #64530f;
}

.qso-panel {
    border-radius: 24px;
    padding: 26px;
    background: #202020;
    border: 1px solid #303030;
}

.qso-title {
    padding-bottom: 18px;
    border-bottom: 1px solid #383838;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.qso-title span {
    color: var(--yellow);
    font-size: .7rem;
    letter-spacing: .14em;
    font-weight: 800;
}

.qso-title strong {
    font-size: 1rem;
}

.qso-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #303030;
}

.qso-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.qso-row span {
    color: #777;
    font-size: .7rem;
    letter-spacing: .11em;
}

.qso-row strong {
    color: #ddd;
    font-family: Consolas, "Courier New", monospace;
    font-size: .9rem;
}

@media (max-width: 980px) {
    .bands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .ham-station-card {
        min-height: 410px;
    }

    .antenna-visual {
        height: 205px;
    }

    .wave-c {
        display: none;
    }

    .band-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .ham-card-footer {
        grid-template-columns: 1fr;
    }

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

    .qso-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}


/* =========================================================
   SESIÓN / LOGIN
   ========================================================= */

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    margin-left: 5px;
    border-radius: 11px;
    background: #f5f2e7;
    color: var(--ink);
    font-size: .8rem;
    font-weight: 750;
    white-space: nowrap;
}

.user-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 4px rgba(244, 196, 0, .14);
}

.nav-link-logout {
    border: 0;
    cursor: pointer;
    background: transparent;
    color: #7b6500;
}

.nav-link-logout:hover {
    background: #fff5c8;
}

.account-page {
    min-height: calc(100vh - 211px);
    padding: clamp(55px, 8vw, 105px) 0;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 72% 25%, rgba(244, 196, 0, .18), transparent 24%),
        linear-gradient(135deg, #fffdf5 0%, #f4f0e3 100%);
}

.account-shell {
    width: min(calc(100% - 40px), 1050px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 430px;
    gap: clamp(55px, 8vw, 100px);
    align-items: center;
}

.account-intro h1 {
    max-width: 610px;
    margin: 15px 0 18px;
    color: var(--ink);
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: .93;
    letter-spacing: -.065em;
}

.account-intro p {
    max-width: 570px;
    margin: 0;
    color: #666;
    font-size: 1.03rem;
}

.account-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 30px;
}

.account-codes span {
    min-width: 53px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #d9d2bc;
    border-radius: 10px;
    background: rgba(255, 255, 255, .55);
    color: #705c00;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.login-card {
    width: 100%;
    padding: 30px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .12);
}

.login-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 27px;
    padding-bottom: 22px;
    border-bottom: 1px solid #ece8db;
}

.login-badge {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 900;
    letter-spacing: .04em;
}

.login-card-header div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.login-card-header div span {
    color: #999;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.login-card-header div strong {
    color: var(--ink);
    font-size: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 17px;
}

.form-field label {
    color: #444;
    font-size: .82rem;
    font-weight: 750;
}

.form-control {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    outline: 0;
    border: 1px solid #dcd7c9;
    border-radius: 12px;
    background: #fcfbf7;
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-control:focus {
    border-color: #c6a400;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(244, 196, 0, .12);
}

.login-submit {
    width: 100%;
    margin-top: 5px;
    border: 0;
    cursor: pointer;
}

.login-help {
    margin-top: 18px;
    text-align: center;
    color: #929292;
    font-size: .75rem;
}

.form-message {
    margin-bottom: 19px;
    padding: 11px 13px;
    border: 1px solid #eed769;
    border-radius: 11px;
    background: #fff8d8;
    color: #655400;
    font-size: .82rem;
    font-weight: 650;
}

@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr 390px;
        gap: 34px;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 5vw, 4.8rem);
    }

    .ham-station-card {
        width: min(100%, 430px);
    }
}

@media (max-width: 980px) {
    .user-chip {
        margin: 5px 0 0;
        justify-content: center;
    }

    .nav-link-logout {
        width: 100%;
        text-align: center;
    }

    .account-shell {
        grid-template-columns: 1fr;
        max-width: 650px;
        gap: 40px;
    }

    .account-intro {
        text-align: center;
    }

    .account-intro .eyebrow {
        justify-content: center;
    }

    .account-intro p {
        margin-left: auto;
        margin-right: auto;
    }

    .account-codes {
        justify-content: center;
    }

    .hero-copy {
        max-width: 100%;
    }

    .ham-station-card {
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .account-shell {
        width: min(calc(100% - 28px), 650px);
    }

    .account-page {
        padding-top: 42px;
        padding-bottom: 55px;
    }

    .account-intro h1 {
        font-size: clamp(2.6rem, 14vw, 4.1rem);
    }

    .login-card {
        padding: 22px;
        border-radius: 20px;
    }
}


/* =========================================================
   MENÚ PRIVADO / MI ESTACIÓN
   ========================================================= */

.private-menu {
    position: relative;
    margin-left: 4px;
}

.private-menu summary {
    list-style: none;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px 0 7px;
    border-radius: 11px;
    cursor: pointer;
    background: var(--ink);
    color: #fff;
    font-size: .8rem;
    font-weight: 750;
    white-space: nowrap;
    user-select: none;
}

.private-menu summary::-webkit-details-marker {
    display: none;
}

.private-menu summary:hover {
    background: #292929;
}

.private-menu[open] summary {
    background: var(--ink);
}

.private-menu-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--yellow);
    color: var(--ink);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .03em;
}

.private-menu-arrow {
    color: var(--yellow);
    font-size: 1rem;
    line-height: 1;
    transition: transform .16s ease;
}

.private-menu[open] .private-menu-arrow {
    transform: rotate(180deg);
}

.private-menu-panel {
    position: absolute;
    z-index: 1300;
    top: calc(100% + 11px);
    right: 0;
    width: 310px;
    overflow: hidden;
    border-radius: 17px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .17);
}

.private-menu-head {
    padding: 17px 18px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #181818;
    color: #fff;
}

.private-menu-head span {
    color: #858585;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.private-menu-head strong {
    color: var(--yellow);
    font-size: .82rem;
    letter-spacing: .06em;
}

.private-menu-items {
    padding: 8px;
}

.private-menu-link {
    width: 100%;
    min-height: 47px;
    display: grid;
    grid-template-columns: 34px 1fr 18px;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    background: transparent;
    font-size: .82rem;
    font-weight: 700;
    text-align: left;
    transition: background .16s ease, color .16s ease;
}

.private-menu-link:hover {
    background: #f5f2e7;
    color: var(--ink);
}

.private-item-code {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #fff3b8;
    color: #705c00;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.private-item-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.private-item-go {
    color: #b99a00;
    font-size: 1rem;
    transition: transform .16s ease;
}

.private-menu-link:hover .private-item-go {
    transform: translateX(2px);
}

.private-menu-separator {
    height: 1px;
    margin: 6px 9px;
    background: #ece7d8;
}

.private-menu-empty {
    padding: 18px 14px;
    text-align: center;
    color: #888;
    font-size: .78rem;
}

@media (max-width: 1180px) {
    .user-chip {
        display: none;
    }
}

@media (max-width: 980px) {
    .private-menu {
        width: 100%;
        margin: 5px 0 0;
    }

    .private-menu summary {
        width: 100%;
        justify-content: center;
        min-height: 45px;
    }

    .private-menu-panel {
        position: static;
        width: 100%;
        margin-top: 7px;
        box-shadow: none;
        border-radius: 13px;
    }

    .private-menu-head {
        border-radius: 12px 12px 0 0;
    }
}


/* =========================================================
   LIBRO DE GUARDIA
   ========================================================= */

.logbook-page {
    min-height: calc(100vh - 205px);
    padding: 52px 0 85px;
    background: radial-gradient(circle at 88% 4%, rgba(244,196,0,.13), transparent 18%), #f7f5ed;
}

.logbook-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 30px;
}

.logbook-heading h1 {
    margin: 9px 0 7px;
    color: var(--ink);
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.logbook-heading p {
    margin: 0;
    color: var(--muted);
}

.logbook-call {
    min-width: 190px;
    padding: 18px 22px;
    border-radius: 18px;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.logbook-call span,
.station-summary-main span,
.station-summary-info span {
    color: #8d8d8d;
    font-size: .61rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.logbook-call strong {
    color: var(--yellow);
    font-size: 1.3rem;
}

.module-message {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid #e5c72f;
    background: #fff4b7;
    color: #5f5000;
    font-size: .87rem;
    font-weight: 700;
}

.module-message-error {
    border-color: #e9a6a6;
    background: #fff0f0;
    color: #8c2f2f;
}

.access-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 30px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.access-card-code,
.station-avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 900;
}

.access-card h2 {
    margin: 0 0 5px;
    color: var(--ink);
}

.access-card p {
    margin: 0;
    color: var(--muted);
}

.station-summary {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) 1.3fr;
    gap: 15px;
    margin-bottom: 18px;
}

.station-summary-main,
.station-summary-info {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.station-summary-main {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 19px;
}

.station-summary-main > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.station-summary-main strong {
    margin-top: 2px;
    color: var(--ink);
}

.station-summary-main small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.station-summary-info {
    display: grid;
    grid-template-columns: 1.4fr .7fr .45fr;
    padding: 12px 5px;
}

.station-summary-info > div {
    min-width: 0;
    padding: 8px 17px;
    border-right: 1px solid #eeeadd;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.station-summary-info > div:last-child {
    border-right: 0;
}

.station-summary-info strong {
    margin-top: 3px;
    overflow: hidden;
    color: #333;
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logbook-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.logbook-toolbar-actions,
.logbook-search {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

.module-btn {
    width: auto;
    min-height: 43px;
    padding-left: 17px;
    padding-right: 17px;
    border: 0;
    cursor: pointer;
    font-size: .82rem;
}

.mini-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mini-field label {
    color: #777;
    font-size: .68rem;
    font-weight: 750;
}

.compact-control {
    min-height: 43px;
    width: 155px;
}

.qso-editor {
    margin-bottom: 26px;
    padding: 26px;
    border-radius: 22px;
    border: 1px solid #d8c55d;
    background: #fff;
    box-shadow: 0 22px 50px rgba(0,0,0,.08);
}

.qso-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee9d9;
}

.qso-editor-head h2 {
    margin: 7px 0 0;
    color: var(--ink);
    font-size: 1.55rem;
}

.editor-close {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #f1eee5;
    color: #777;
    cursor: pointer;
    font-size: 1.45rem;
}

.editor-close:hover {
    background: var(--yellow);
    color: var(--ink);
}

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

.qso-span-2 { grid-column: span 2; }
.qso-span-4 { grid-column: span 4; }

.readonly-control {
    background: #f2f0e8 !important;
    color: #777;
}

.form-control-uppercase { text-transform: uppercase; }

.textarea-control {
    min-height: 105px;
    padding-top: 12px;
    resize: vertical;
}

.qsl-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.check-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e6e1d2;
    border-radius: 13px;
    background: #faf9f4;
    cursor: pointer;
}

.check-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--yellow);
}

.check-card > span {
    display: flex;
    flex-direction: column;
}

.check-card strong {
    color: var(--ink);
    font-size: .84rem;
}

.check-card small {
    margin-top: 2px;
    color: #909090;
    font-size: .7rem;
}

.qso-editor-actions {
    display: flex;
    gap: 9px;
    margin-top: 22px;
    padding-top: 19px;
    border-top: 1px solid #eee9d9;
}

.logbook-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0 15px;
}

.logbook-results-head h2 {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: 1.65rem;
}

.result-count {
    padding: 7px 11px;
    border-radius: 9px;
    background: #eeeade;
    color: #777;
    font-size: .73rem;
    font-weight: 750;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
}

.modern-grid {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
}

.modern-grid th {
    padding: 12px 11px;
    border-bottom: 1px solid #ddd7c6;
    background: #1b1b1b;
    color: #d4d4d4;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-align: left;
    white-space: nowrap;
}

.modern-grid td {
    padding: 12px 11px;
    border-bottom: 1px solid #efecdf;
    color: #505050;
    font-size: .76rem;
    white-space: nowrap;
}

.modern-grid tr:hover td { background: #fffdf4; }

.modern-grid td:nth-child(2) {
    color: var(--ink);
    font-weight: 850;
}

.grid-actions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.grid-action {
    padding: 6px 8px;
    border-radius: 7px;
    text-decoration: none;
    font-size: .68rem;
    font-weight: 800;
}

.grid-action-edit {
    background: #fff1a4;
    color: #6f5a00;
}

.grid-action-delete {
    background: #f8e5e5;
    color: #9a3e3e;
}

@media (max-width: 1020px) {
    .station-summary { grid-template-columns: 1fr; }

    .logbook-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

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

    .qso-span-4 { grid-column: span 2; }
}

@media (max-width: 720px) {
    .logbook-page { padding-top: 35px; }

    .logbook-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .logbook-call {
        width: 100%;
        min-width: 0;
        text-align: left;
    }

    .station-summary-info { grid-template-columns: 1fr; }

    .station-summary-info > div {
        border-right: 0;
        border-bottom: 1px solid #eeeadd;
    }

    .station-summary-info > div:last-child { border-bottom: 0; }

    .logbook-toolbar-actions,
    .logbook-search {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .mini-field,
    .compact-control,
    .module-btn { width: 100%; }

    .qso-editor { padding: 19px; }

    .qso-form-grid { grid-template-columns: 1fr; }

    .qso-span-2,
    .qso-span-4 { grid-column: span 1; }

    .qsl-options { grid-template-columns: 1fr; }

    .qso-editor-actions { flex-direction: column; }

    .logbook-results-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .logbook-toolbar-actions,
    .logbook-search { grid-template-columns: 1fr; }
}


/* =========================================================
   IMPRESIÓN LIBRO DE GUARDIA
   ========================================================= */

.print-body {
    margin: 0;
    background: #eceae2;
    color: #222;
}

.print-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 12px max(20px, calc((100% - 1380px) / 2));
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #ddd8c9;
}

.print-toolbar-btn {
    width: auto;
}

.print-document {
    width: min(calc(100% - 34px), 1380px);
    margin: 28px auto;
    padding: 32px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(0,0,0,.1);
}

.print-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 4px solid var(--yellow);
}

.print-kicker {
    color: #8a7100;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .15em;
}

.print-header h1 {
    margin: 5px 0 3px;
    color: #111;
    font-size: 2.7rem;
    letter-spacing: -.05em;
}

.print-header p {
    margin: 0;
    color: #777;
    font-size: .82rem;
}

.print-call {
    min-width: 160px;
    padding: 13px 16px;
    border-radius: 12px;
    background: #191919;
    text-align: right;
}

.print-call span {
    display: block;
    color: #777;
    font-size: .58rem;
    letter-spacing: .14em;
}

.print-call strong {
    display: block;
    margin-top: 3px;
    color: var(--yellow);
    font-size: 1.1rem;
}

.print-station {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 12px;
    margin: 18px 0;
}

.print-station > div {
    padding: 12px 14px;
    border: 1px solid #e5e1d4;
    border-radius: 10px;
}

.print-station span {
    display: block;
    color: #888;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .11em;
}

.print-station strong {
    display: block;
    margin-top: 3px;
    font-size: .78rem;
}

.print-grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.print-grid th {
    padding: 7px 5px;
    border: 1px solid #333;
    background: #1b1b1b;
    color: #fff;
    font-size: .57rem;
    text-align: center;
    white-space: nowrap;
}

.print-grid td {
    padding: 6px 5px;
    border: 1px solid #aaa;
    font-size: .56rem;
    vertical-align: top;
}

.print-footer {
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid #ddd8ca;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #888;
    font-size: .62rem;
}

/* =========================================================
   QSL
   ========================================================= */

.qsl-page {
    margin: 0;
    background: #dedbd1;
}

.qsl-stage {
    min-height: calc(100vh - 70px);
    display: grid;
    place-items: center;
    padding: 28px;
}

.qsl-card {
    position: relative;
    width: min(94vw, 1120px);
    aspect-ratio: 14 / 9;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 80% 20%, rgba(244,196,0,.2), transparent 25%),
        linear-gradient(135deg, #e8eced 0%, #cdd5d7 100%);
    box-shadow: 0 24px 70px rgba(0,0,0,.2);
}

.qsl-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qsl-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 4.5% 5%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #111;
}

.qsl-top {
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.qsl-callsign {
    font-size: clamp(2.8rem, 7vw, 6.8rem);
    font-weight: 950;
    letter-spacing: -.07em;
    line-height: .9;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.qsl-operator {
    max-width: 33%;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: clamp(.55rem, 1vw, .9rem);
    line-height: 1.25;
    background: rgba(255,255,255,.58);
    border-radius: 9px;
    backdrop-filter: blur(2px);
}

.qsl-data-row {
    display: grid;
    grid-template-columns: 1.05fr .75fr .75fr 1fr .75fr 1fr 1.1fr;
    gap: 3px;
}

.qsl-data-row > div,
.qsl-secondary-row > div,
.qsl-operation,
.qsl-emission,
.qsl-notes {
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid rgba(0,0,0,.75);
    background: rgba(255,255,255,.76);
}

.qsl-data-row span,
.qsl-secondary-row span,
.qsl-bottom span {
    display: block;
    margin-bottom: 3px;
    font-size: clamp(.42rem, .72vw, .68rem);
    font-weight: 850;
    letter-spacing: .07em;
}

.qsl-data-row strong,
.qsl-secondary-row strong,
.qsl-bottom strong {
    display: block;
    overflow: hidden;
    font-size: clamp(.62rem, 1.3vw, 1.25rem);
    line-height: 1.08;
    text-overflow: ellipsis;
}

.qsl-secondary-row {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1.35fr;
    gap: 3px;
}

.qsl-bottom {
    display: grid;
    grid-template-columns: .8fr 1.05fr 2.15fr;
    gap: 3px;
}

.qsl-notes strong {
    white-space: normal;
    font-size: clamp(.55rem, 1vw, .9rem);
}

.qsl-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: rgba(0,0,0,.72);
    font-size: clamp(.55rem, .9vw, .8rem);
    font-weight: 800;
}

.qsl-footer strong {
    font-size: clamp(1rem, 2.2vw, 2rem);
    letter-spacing: .08em;
}

/* QSL button */
.grid-action-qsl {
    background: #202020;
    color: var(--yellow);
}

@media (max-width: 720px) {
    .qsl-stage {
        padding: 14px;
    }

    .qsl-overlay {
        padding: 4%;
    }

    .qsl-operator {
        max-width: 42%;
    }
}


/* =========================================================
   LISTADOS
   ========================================================= */

.directory-page {
    min-height: calc(100vh - 205px);
    padding: 52px 0 85px;
    background:
        radial-gradient(circle at 92% 5%, rgba(244,196,0,.13), transparent 19%),
        #f7f5ed;
}

.directory-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 30px;
}

.directory-heading h1 {
    margin: 9px 0 7px;
    color: var(--ink);
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.directory-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.directory-badge {
    min-width: 190px;
    padding: 18px 22px;
    border-radius: 18px;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.directory-badge span {
    color: #777;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.directory-badge strong {
    color: var(--yellow);
    font-size: 1.15rem;
    letter-spacing: .04em;
}

.directory-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.directory-type {
    min-width: 0;
    min-height: 95px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.directory-type:hover {
    transform: translateY(-2px);
    border-color: #d7bd35;
    box-shadow: 0 12px 30px rgba(0,0,0,.07);
}

.directory-type.active {
    border-color: #d7bd35;
    background: #fff9d8;
    box-shadow: inset 0 0 0 1px rgba(244,196,0,.18);
}

.directory-type-code {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #1d1d1d;
    color: var(--yellow);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .04em;
}

.directory-type.active .directory-type-code {
    background: var(--yellow);
    color: var(--ink);
}

.directory-type-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.directory-type-copy strong {
    color: var(--ink);
    font-size: .95rem;
}

.directory-type-copy small {
    margin-top: 4px;
    color: #888;
    font-size: .72rem;
    line-height: 1.35;
}

.directory-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.directory-search-field {
    width: min(100%, 690px);
}

.directory-search-field > label {
    display: block;
    margin-bottom: 6px;
    color: #777;
    font-size: .69rem;
    font-weight: 800;
}

.directory-search-box {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 8px;
}

.directory-search-box .form-control {
    min-height: 43px;
}

.directory-toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.directory-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0 14px;
}

.directory-results-head h2 {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: 1.65rem;
    letter-spacing: -.035em;
}

.directory-table-wrap {
    overflow: auto;
}

.directory-grid {
    min-width: 920px;
}

.directory-grid td {
    vertical-align: middle;
}

.directory-call-cell {
    color: #111 !important;
    font-weight: 900 !important;
    letter-spacing: .035em;
}

.directory-frequency-cell {
    color: #6f5900 !important;
    font-weight: 850 !important;
}

.directory-pager {
    background: #f7f4e8 !important;
}

.directory-pager td {
    padding: 12px !important;
    background: #f7f4e8 !important;
}

.directory-pager table {
    margin: 0 auto;
}

.directory-pager a,
.directory-pager span {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    margin: 0 2px;
    border-radius: 7px;
    display: inline-grid;
    place-items: center;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 800;
}

.directory-pager a {
    background: #fff;
    color: #555;
    border: 1px solid #ded9c9;
}

.directory-pager span {
    background: var(--yellow);
    color: #111;
}

.directory-print-grid {
    margin-top: 18px;
}

@media (max-width: 900px) {
    .directory-types {
        grid-template-columns: 1fr;
    }

    .directory-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .directory-search-field {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .directory-page {
        padding-top: 35px;
    }

    .directory-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .directory-badge {
        width: 100%;
        min-width: 0;
        text-align: left;
    }

    .directory-search-box {
        grid-template-columns: 1fr;
    }

    .directory-toolbar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .directory-toolbar-actions .module-btn {
        width: 100%;
    }

    .directory-results-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 430px) {
    .directory-toolbar-actions {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   HERRAMIENTAS
   ========================================================= */

.tools-page {
    min-height: calc(100vh - 205px);
    padding: 52px 0 85px;
    background:
        radial-gradient(circle at 90% 5%, rgba(244,196,0,.13), transparent 19%),
        #f7f5ed;
}

.tools-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 30px;
}

.tools-heading h1 {
    margin: 9px 0 7px;
    color: var(--ink);
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.tools-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.tools-badge {
    min-width: 190px;
    padding: 18px 22px;
    border-radius: 18px;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.tools-badge span {
    color: #777;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.tools-badge strong {
    color: var(--yellow);
    font-size: 1.15rem;
    letter-spacing: .04em;
}

.tools-types {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 18px;
}

.tools-type {
    min-width: 0;
    min-height: 96px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 13px;
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.tools-type:hover {
    transform: translateY(-2px);
    border-color: #d7bd35;
    box-shadow: 0 12px 30px rgba(0,0,0,.07);
}

.tools-type.active {
    border-color: #d7bd35;
    background: #fff9d8;
    box-shadow: inset 0 0 0 1px rgba(244,196,0,.18);
}

.tools-type-code {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #1d1d1d;
    color: var(--yellow);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .03em;
}

.tools-type.active .tools-type-code {
    background: var(--yellow);
    color: var(--ink);
}

.tools-type-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tools-type-copy strong {
    color: var(--ink);
    font-size: .92rem;
}

.tools-type-copy small {
    margin-top: 4px;
    color: #888;
    font-size: .7rem;
    line-height: 1.35;
}

.tools-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.tools-search-field {
    width: min(100%, 690px);
}

.tools-search-field > label {
    display: block;
    margin-bottom: 6px;
    color: #777;
    font-size: .69rem;
    font-weight: 800;
}

.tools-search-box {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 8px;
}

.tools-search-box .form-control {
    min-height: 43px;
}

.tools-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0 14px;
}

.tools-results-head h2 {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: 1.65rem;
    letter-spacing: -.035em;
}

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

.tool-card {
    min-width: 0;
    min-height: 225px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0,0,0,.035);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color: #d8c34d;
    box-shadow: 0 16px 35px rgba(0,0,0,.075);
}

.tool-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tool-card-code {
    min-width: 43px;
    height: 35px;
    padding: 0 9px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    background: var(--yellow);
    color: #111;
    font-size: .67rem;
    font-weight: 900;
}

.tool-card-kind {
    color: #999;
    font-size: .59rem;
    font-weight: 850;
    letter-spacing: .1em;
}

.tool-card-body {
    flex: 1;
    padding: 20px 0 18px;
}

.tool-card-body h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.04rem;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.tool-card-body p {
    margin: 9px 0 0;
    color: #888;
    font-size: .73rem;
    line-height: 1.5;
}

.tool-card-footer {
    padding-top: 14px;
    border-top: 1px solid #eeeadd;
}

.tool-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #222;
    text-decoration: none;
    font-size: .75rem;
    font-weight: 850;
}

.tool-card-action span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #1d1d1d;
    color: var(--yellow);
}

.tool-card-action:hover {
    color: #7f6700;
}

.tools-empty {
    min-height: 230px;
    padding: 32px;
    border: 1px dashed #d6d0bd;
    border-radius: 18px;
    background: rgba(255,255,255,.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tools-empty > span {
    width: 58px;
    height: 58px;
    margin-bottom: 13px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--yellow);
    color: #111;
    font-weight: 950;
}

.tools-empty strong {
    color: #333;
    font-size: 1rem;
}

.tools-empty small {
    margin-top: 5px;
    color: #888;
    font-size: .73rem;
}

@media (max-width: 1100px) {
    .tools-types,
    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .tools-page {
        padding-top: 35px;
    }

    .tools-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .tools-badge {
        width: 100%;
        min-width: 0;
        text-align: left;
    }

    .tools-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .tools-search-field {
        width: 100%;
    }

    .tools-search-box {
        grid-template-columns: 1fr;
    }

    .tools-toolbar > .module-btn {
        width: 100%;
    }

    .tools-results-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .tools-types,
    .tools-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   NOTICIAS
   ========================================================= */

.news-page {
    min-height: calc(100vh - 205px);
    padding: 52px 0 85px;
    background:
        radial-gradient(circle at 91% 5%, rgba(244,196,0,.13), transparent 19%),
        #f7f5ed;
}

.news-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 30px;
}

.news-heading h1 {
    margin: 9px 0 7px;
    color: var(--ink);
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.news-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.news-badge {
    min-width: 175px;
    padding: 18px 22px;
    border-radius: 18px;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.news-badge span {
    color: #777;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.news-badge strong {
    color: var(--yellow);
    font-size: 1.55rem;
    line-height: 1;
}

.news-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 17px;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.news-search-field {
    width: min(100%, 690px);
}

.news-search-field > label {
    display: block;
    margin-bottom: 6px;
    color: #777;
    font-size: .69rem;
    font-weight: 800;
}

.news-search-box {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 8px;
}

.news-search-box .form-control {
    min-height: 43px;
}

.news-results-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.news-results-head h2 {
    margin: 6px 0 0;
    color: var(--ink);
    font-size: 1.65rem;
    letter-spacing: -.035em;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0,0,0,.035);
    transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: #d6be44;
    box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

.news-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dedbd0;
}

.news-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .28s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.025);
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 72% 25%, rgba(244,196,0,.25), transparent 28%),
        #202020;
}

.news-card-placeholder span {
    color: var(--yellow);
    font-size: 2.1rem;
    font-weight: 950;
    letter-spacing: -.06em;
}

.news-card-placeholder small {
    margin-top: 3px;
    color: #8e8e8e;
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .16em;
}

.news-card-content {
    flex: 1;
    padding: 19px 19px 16px;
}

.news-card-date {
    color: #987d00;
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .07em;
}

.news-card-content h3 {
    margin: 9px 0 9px;
    font-size: 1.12rem;
    line-height: 1.22;
    letter-spacing: -.025em;
}

.news-card-content h3 a {
    color: var(--ink);
    text-decoration: none;
}

.news-card-content h3 a:hover {
    color: #806700;
}

.news-card-content p {
    margin: 0;
    color: #777;
    font-size: .77rem;
    line-height: 1.55;
}

.news-card-footer {
    padding: 0 19px 18px;
}

.news-read-more {
    min-height: 38px;
    padding-top: 13px;
    border-top: 1px solid #eeeadd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #222;
    text-decoration: none;
    font-size: .74rem;
    font-weight: 850;
}

.news-read-more span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #1d1d1d;
    color: var(--yellow);
}

.news-empty {
    min-height: 240px;
    padding: 32px;
    border: 1px dashed #d6d0bd;
    border-radius: 18px;
    background: rgba(255,255,255,.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.news-empty > span {
    width: 58px;
    height: 58px;
    margin-bottom: 13px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--yellow);
    color: #111;
    font-weight: 950;
}

.news-empty strong {
    color: #333;
    font-size: 1rem;
}

.news-empty small {
    margin-top: 5px;
    color: #888;
    font-size: .73rem;
}

/* Detalle */

.news-detail-nav {
    margin-bottom: 18px;
}

.news-back {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #ddd7c7;
    border-radius: 10px;
    background: #fff;
    color: #444;
    text-decoration: none;
    font-size: .75rem;
    font-weight: 800;
}

.news-back:hover {
    border-color: #d2b92f;
    color: #6f5b00;
}

.news-detail {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(0,0,0,.075);
}

.news-detail-header {
    max-width: 980px;
    padding: clamp(28px, 5vw, 62px);
    padding-bottom: 30px;
}

.news-detail-date {
    display: block;
    margin-top: 13px;
    color: #987d00;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .07em;
}

.news-detail-header h1 {
    margin: 9px 0 0;
    color: var(--ink);
    font-size: clamp(2.2rem, 4.4vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.news-detail-lead {
    margin-top: 22px;
    color: #666;
    font-size: 1rem;
    line-height: 1.65;
}

.news-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 0 4px;
}

.news-detail-photo {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: #e8e5db;
}

.news-detail-photo:first-child:nth-last-child(1) {
    grid-column: 1 / -1;
}

.news-detail-photo:first-child:nth-last-child(3),
.news-detail-photo:first-child:nth-last-child(5) {
    grid-column: 1 / -1;
}

.news-detail-photo img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    max-height: 580px;
    display: block;
    object-fit: cover;
}

.news-detail-body {
    max-width: 980px;
    padding: clamp(28px, 5vw, 62px);
    color: #424242;
    font-size: .94rem;
    line-height: 1.85;
}

.news-detail-footer {
    padding: 18px clamp(28px, 5vw, 62px);
    border-top: 1px solid #eeeadd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #faf8f0;
    color: #888;
    font-size: .7rem;
    font-weight: 800;
}

.news-detail-footer strong {
    color: #8b7100;
    font-size: 1rem;
}

@media (max-width: 1020px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .news-page {
        padding-top: 35px;
    }

    .news-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-badge {
        width: 100%;
        min-width: 0;
        text-align: left;
    }

    .news-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .news-search-field {
        width: 100%;
    }

    .news-search-box {
        grid-template-columns: 1fr;
    }

    .news-toolbar > .module-btn {
        width: 100%;
    }

    .news-results-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .news-detail-gallery {
        grid-template-columns: 1fr;
    }

    .news-detail-photo:first-child:nth-last-child(3),
    .news-detail-photo:first-child:nth-last-child(5) {
        grid-column: auto;
    }

    .news-detail-photo img {
        min-height: 220px;
    }
}


/* =========================================================
   CLIMA
   ========================================================= */

.weather-page {
    min-height: calc(100vh - 205px);
    padding: 52px 0 85px;
    background:
        radial-gradient(circle at 90% 5%, rgba(244,196,0,.13), transparent 19%),
        #f7f5ed;
}

.weather-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 26px;
}

.weather-heading h1 {
    margin: 9px 0 7px;
    color: var(--ink);
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.weather-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.weather-update-card {
    min-width: 285px;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 12px;
    align-items: center;
}

.weather-update-card > span {
    grid-column: 1 / -1;
    color: #999;
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .13em;
}

.weather-update-card > strong {
    color: #333;
    font-size: .82rem;
}

.weather-refresh {
    grid-row: 2;
    grid-column: 2;
    min-height: 36px !important;
    padding: 0 14px !important;
}

.weather-primary-grid {
    display: grid;
    grid-template-columns: 1.18fr .91fr .91fr;
    gap: 16px;
}

.weather-main-card,
.weather-wind-card,
.weather-trend-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.weather-main-card {
    padding: 27px;
    background:
        radial-gradient(circle at 85% 18%, rgba(244,196,0,.24), transparent 30%),
        #1d1d1d;
    color: #fff;
}

.weather-main-label {
    color: #999;
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .13em;
}

.weather-main-value {
    margin: 13px 0 25px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.weather-main-value > span:first-child {
    color: #fff;
    font-size: clamp(4.5rem, 7vw, 7rem);
    line-height: .88;
    font-weight: 900;
    letter-spacing: -.07em;
}

.weather-main-value > span:last-child {
    margin-top: 8px;
    color: var(--yellow);
    font-size: 1.45rem;
    font-weight: 850;
}

.weather-main-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.weather-main-meta > div {
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    background: rgba(255,255,255,.04);
}

.weather-main-meta span {
    display: block;
    color: #949494;
    font-size: .58rem;
    font-weight: 750;
}

.weather-main-meta strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-size: .78rem;
}

.weather-wind-card,
.weather-trend-card {
    padding: 21px;
}

.weather-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.weather-card-head h2 {
    margin: 5px 0 0;
    color: var(--ink);
    font-size: 1.2rem;
    letter-spacing: -.03em;
}

.weather-wind-speed {
    text-align: right;
}

.weather-wind-speed strong {
    display: block;
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1;
}

.weather-wind-speed span {
    color: #999;
    font-size: .6rem;
    font-weight: 750;
}

.weather-wind-layout {
    margin-top: 15px;
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(100px, .72fr);
    gap: 12px;
    align-items: center;
}

.weather-wind-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

.weather-wind-info {
    min-width: 0;
}

.weather-wind-info span {
    display: block;
    margin-top: 10px;
    color: #999;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .05em;
}

.weather-wind-info span:first-child {
    margin-top: 0;
}

.weather-wind-info strong {
    display: block;
    margin-top: 2px;
    color: #333;
    font-size: .78rem;
    line-height: 1.25;
}

.weather-trend-layout {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.weather-trend-image {
    width: min(100%, 180px);
    height: 145px;
    object-fit: contain;
    display: block;
}

.weather-trend-name {
    display: block;
    margin-top: 5px;
    color: #222;
    font-size: 1.05rem;
}

.weather-trend-layout p {
    margin: 8px auto 0;
    max-width: 250px;
    color: #888;
    font-size: .68rem;
    line-height: 1.45;
}

.weather-data-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.weather-data-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 13px;
}

.weather-data-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--yellow);
    color: #111;
    font-size: .75rem;
    font-weight: 950;
}

.weather-data-card > div {
    min-width: 0;
}

.weather-data-card small {
    display: block;
    color: #999;
    font-size: .56rem;
    font-weight: 850;
    letter-spacing: .08em;
}

.weather-data-card strong {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 3px;
    color: #222;
    font-size: 1.55rem;
    line-height: 1;
}

.weather-data-card strong span {
    color: #888;
    font-size: .65rem;
    font-weight: 750;
}

.weather-data-card em {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: .61rem;
    font-style: normal;
}

.weather-footnote {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: #999;
    font-size: .61rem;
}

.weather-live-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #58a83f;
    box-shadow: 0 0 0 4px rgba(88,168,63,.12);
}

@media (max-width: 1080px) {
    .weather-primary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .weather-temperature-card {
        grid-column: 1 / -1;
    }

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

@media (max-width: 720px) {
    .weather-page {
        padding-top: 35px;
    }

    .weather-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .weather-update-card {
        width: 100%;
        min-width: 0;
    }

    .weather-primary-grid,
    .weather-data-grid {
        grid-template-columns: 1fr;
    }

    .weather-temperature-card {
        grid-column: auto;
    }

    .weather-main-meta {
        grid-template-columns: 1fr;
    }

    .weather-wind-layout {
        grid-template-columns: 1fr;
    }

    .weather-wind-image {
        width: min(100%, 290px);
        margin: 0 auto;
    }

    .weather-wind-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 14px;
        text-align: center;
    }

    .weather-wind-info span,
    .weather-wind-info strong {
        margin-top: 0;
    }

    .weather-footnote {
        justify-content: flex-start;
    }
}


/* =========================================================
   CONTACTO
   ========================================================= */

.contact-page {
    min-height: calc(100vh - 205px);
    padding: 52px 0 85px;
    background:
        radial-gradient(circle at 91% 6%, rgba(244,196,0,.14), transparent 20%),
        #f7f5ed;
}

.contact-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 28px;
}

.contact-heading h1 {
    margin: 9px 0 7px;
    color: var(--ink);
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.contact-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.contact-call-card {
    min-width: 230px;
    padding: 18px 21px;
    border-radius: 18px;
    background: var(--ink);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 15px;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.contact-call-card > span {
    color: #777;
    font-size: .61rem;
    font-weight: 850;
    letter-spacing: .15em;
}

.contact-call-card > strong {
    grid-row: 1 / span 2;
    grid-column: 2;
    color: var(--yellow);
    font-size: 2rem;
    line-height: 1;
}

.contact-call-card > small {
    color: #aaa;
    font-size: .63rem;
    line-height: 1.35;
}

.contact-layout {
    display: grid;
    grid-template-columns: .82fr 1.38fr;
    gap: 18px;
    align-items: stretch;
}

.contact-info-card,
.contact-form-card {
    border: 1px solid var(--line);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.contact-info-card {
    padding: 27px;
    background:
        radial-gradient(circle at 90% 8%, rgba(244,196,0,.21), transparent 28%),
        #1e1e1e;
    color: #fff;
}

.contact-info-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-info-code {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--yellow);
    color: #111;
    font-size: .85rem;
    font-weight: 950;
}

.contact-info-top h2 {
    margin: 5px 0 0;
    color: #fff;
    font-size: 1.35rem;
}

.contact-info-card > p {
    margin: 24px 0;
    color: #aaa;
    font-size: .78rem;
    line-height: 1.65;
}

.contact-info-items {
    display: grid;
    gap: 10px;
}

.contact-info-items > div {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    display: grid;
    grid-template-columns: 37px 1fr;
    gap: 2px 11px;
}

.contact-info-items span {
    grid-row: 1 / span 2;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(244,196,0,.12);
    color: var(--yellow);
    font-size: .65rem;
    font-weight: 900;
}

.contact-info-items strong {
    color: #eee;
    font-size: .75rem;
}

.contact-info-items small {
    color: #888;
    font-size: .62rem;
    line-height: 1.35;
}

.contact-form-card {
    padding: clamp(22px, 4vw, 34px);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.contact-field {
    min-width: 0;
}

.contact-field-wide,
.contact-field-full {
    grid-column: 1 / -1;
}

.contact-field label {
    display: block;
    margin-bottom: 6px;
    color: #686868;
    font-size: .68rem;
    font-weight: 850;
}

.contact-field label span {
    color: #b28e00;
}

.contact-field .form-control {
    width: 100%;
    min-height: 44px;
}

.contact-uppercase {
    text-transform: uppercase;
}

.contact-message {
    min-height: 165px !important;
    resize: vertical;
    line-height: 1.5;
}

.contact-form-footer {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #eeeadd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.contact-form-footer small {
    color: #999;
    font-size: .64rem;
}

.contact-submit {
    min-width: 150px;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-success {
    min-height: 370px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-success-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 15px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--yellow);
    color: #111;
    font-size: 1.7rem;
    font-weight: 950;
}

.contact-success h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.55rem;
}

.contact-success p {
    margin: 7px 0 20px;
    color: #888;
    font-size: .8rem;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .contact-page {
        padding-top: 35px;
    }

    .contact-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-call-card {
        width: 100%;
        min-width: 0;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-field-wide,
    .contact-field-full {
        grid-column: auto;
    }

    .contact-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-submit {
        width: 100%;
    }
}


/* =========================================================
   PERFIL / CUENTA
   ========================================================= */

.account-page {
    min-height: calc(100vh - 205px);
    padding: 52px 0 85px;
    background:
        radial-gradient(circle at 90% 5%, rgba(244,196,0,.13), transparent 20%),
        #f7f5ed;
}

.account-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 27px;
}

.account-heading h1 {
    margin: 9px 0 7px;
    color: var(--ink);
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.account-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.account-callsign-card,
.account-security-card {
    min-width: 230px;
    padding: 18px 21px;
    border-radius: 18px;
    background: var(--ink);
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.account-callsign-card > span,
.account-security-card > span {
    display: block;
    color: #777;
    font-size: .6rem;
    font-weight: 850;
    letter-spacing: .14em;
}

.account-callsign-card > strong,
.account-security-card > strong {
    display: block;
    margin-top: 4px;
    color: var(--yellow);
    font-size: 1.45rem;
    line-height: 1;
}

.account-callsign-card > small,
.account-security-card > small {
    display: block;
    margin-top: 6px;
    color: #aaa;
    font-size: .63rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.account-card {
    min-width: 0;
    padding: clamp(21px, 3vw, 31px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.account-card-head {
    margin-bottom: 23px;
    padding-bottom: 17px;
    border-bottom: 1px solid #eeeadd;
    display: flex;
    align-items: center;
    gap: 13px;
}

.account-card-code {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--yellow);
    color: #111;
    font-size: .68rem;
    font-weight: 950;
}

.account-card-head h2 {
    margin: 4px 0 0;
    color: #252525;
    font-size: 1.18rem;
    letter-spacing: -.025em;
}

.account-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-field {
    min-width: 0;
}

.account-field-full {
    grid-column: 1 / -1;
}

.account-field label {
    display: block;
    margin-bottom: 6px;
    color: #686868;
    font-size: .68rem;
    font-weight: 850;
}

.account-field small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: .6rem;
}

.account-field .form-control {
    width: 100%;
    min-height: 43px;
}

.account-uppercase {
    text-transform: uppercase;
}

.account-textarea {
    min-height: 116px !important;
    resize: vertical;
}

.account-actions {
    margin-top: 17px;
    padding: 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.module-message-success {
    border-color: rgba(74,150,56,.27) !important;
    background: rgba(82,168,60,.09) !important;
    color: #39712c !important;
}

/* Cambio de contraseña */

.password-layout {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: 18px;
    align-items: stretch;
}

.password-info {
    padding: 29px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 88% 10%, rgba(244,196,0,.22), transparent 29%),
        #1d1d1d;
    color: #fff;
}

.password-lock {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--yellow);
    color: #111;
    font-size: 1.1rem;
    font-weight: 950;
    letter-spacing: .08em;
}

.password-info h2 {
    margin: 19px 0 8px;
    color: #fff;
    font-size: 1.45rem;
}

.password-info > p {
    margin: 0 0 23px;
    color: #aaa;
    font-size: .76rem;
    line-height: 1.65;
}

.password-rule {
    margin-top: 10px;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    background: rgba(255,255,255,.035);
    display: flex;
    gap: 11px;
}

.password-rule > span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(244,196,0,.12);
    color: var(--yellow);
    font-size: .61rem;
    font-weight: 900;
}

.password-rule strong {
    display: block;
    color: #eee;
    font-size: .72rem;
}

.password-rule small {
    display: block;
    margin-top: 3px;
    color: #888;
    font-size: .61rem;
    line-height: 1.35;
}

.password-card {
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.password-card .account-field + .account-field {
    margin-top: 16px;
}

.password-actions {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eeeadd;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 900px) {
    .profile-grid,
    .password-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .account-page {
        padding-top: 35px;
    }

    .account-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-callsign-card,
    .account-security-card {
        width: 100%;
        min-width: 0;
    }

    .account-fields {
        grid-template-columns: 1fr;
    }

    .account-field-full {
        grid-column: auto;
    }

    .account-actions,
    .password-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .account-actions .btn,
    .password-actions .btn {
        width: 100%;
    }
}


/* =========================================================
   CONFIGURACION
   ========================================================= */

.config-page {
    min-height: calc(100vh - 205px);
    padding: 52px 0 85px;
    background:
        radial-gradient(circle at 90% 5%, rgba(244,196,0,.13), transparent 20%),
        #f7f5ed;
}

.config-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
}

.config-heading h1 {
    margin: 9px 0 7px;
    color: var(--ink);
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.config-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.config-admin-card {
    min-width: 235px;
    padding: 18px 21px;
    border-radius: 18px;
    background: var(--ink);
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.config-admin-card span {
    display: block;
    color: #777;
    font-size: .6rem;
    font-weight: 850;
    letter-spacing: .14em;
}

.config-admin-card strong {
    display: block;
    margin-top: 4px;
    color: var(--yellow);
    font-size: 1.2rem;
}

.config-admin-card small {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: .61rem;
}

.config-no-access {
    min-height: 340px;
    padding: 35px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.config-no-access > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--yellow);
    color: #111;
    font-size: 1.4rem;
    font-weight: 950;
}

.config-no-access h2 {
    margin: 16px 0 4px;
}

.config-no-access p {
    margin: 0 0 20px;
    color: #888;
}

.config-nav {
    margin-bottom: 16px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    display: flex;
    gap: 6px;
    overflow-x: auto;
}

.config-nav-btn {
    min-height: 39px;
    padding: 0 15px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    font-size: .72rem;
    font-weight: 850;
}

.config-nav-btn:hover {
    background: #f5f1df;
}

.config-nav-btn.active {
    background: var(--yellow);
    color: #111;
}

.config-section {
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.config-section-head {
    margin-bottom: 19px;
    padding-bottom: 17px;
    border-bottom: 1px solid #eeeadd;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.config-section-head h2 {
    margin: 5px 0 3px;
    color: #222;
    font-size: 1.5rem;
    letter-spacing: -.035em;
}

.config-section-head p {
    margin: 0;
    color: #888;
    font-size: .72rem;
}

.config-toolbar {
    margin-bottom: 14px;
}

.config-search {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 8px;
    max-width: 780px;
}

.config-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #eeeadd;
    border-radius: 13px;
}

.config-grid {
    min-width: 760px;
    margin: 0 !important;
    border: 0 !important;
}

.config-grid th {
    white-space: nowrap;
}

.grid-action {
    color: #7b6500;
    font-weight: 850;
    text-decoration: none;
}

.grid-action:hover {
    text-decoration: underline;
}

.config-editor {
    margin-top: 18px;
    padding: clamp(18px, 3vw, 27px);
    border: 1px solid #d9d1b4;
    border-radius: 16px;
    background: #faf8ef;
}

.config-editor-head {
    margin-bottom: 17px;
}

.config-editor-head h3 {
    margin: 5px 0 0;
    color: #222;
    font-size: 1.1rem;
}

.config-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.config-form.compact {
    grid-template-columns: repeat(2, minmax(0, 280px));
}

.config-field {
    min-width: 0;
}

.config-field-full,
.config-subtitle {
    grid-column: 1 / -1;
}

.config-field label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: .65rem;
    font-weight: 850;
}

.config-field .form-control {
    width: 100%;
    min-height: 42px;
}

.config-check-field {
    display: flex;
    align-items: center;
    min-height: 42px;
    color: #555;
    font-size: .72rem;
    font-weight: 750;
}

.config-subtitle {
    margin-top: 5px;
    padding: 12px 0 3px;
    border-top: 1px solid #e4decb;
    color: #8a7200;
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.config-editor-actions {
    margin-top: 19px;
    padding-top: 17px;
    border-top: 1px solid #e6dfca;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.config-editor-actions > div {
    display: flex;
    gap: 8px;
}

.btn-danger-soft {
    border: 1px solid #e1b6b6 !important;
    background: #fff4f4 !important;
    color: #9a3939 !important;
}

.permission-checks {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.permission-checks > span,
.permission-checks label {
    font-size: .7rem;
}

.permission-checks > span {
    padding: 11px;
    border: 1px solid #ddd7c4;
    border-radius: 10px;
    background: #fff;
}

.audit-filters {
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 155px 155px minmax(240px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.audit-filter-actions {
    display: flex;
    gap: 7px;
}

.audit-print-head {
    display: none;
}

.import-stats {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.import-stats > div {
    padding: 17px;
    border: 1px solid #e6dfc9;
    border-radius: 14px;
    background: #faf8ef;
}

.import-stats span,
.import-stats small {
    display: block;
}

.import-stats span {
    color: #8c770b;
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.import-stats strong {
    display: block;
    margin: 4px 0 3px;
    color: #222;
    font-size: 1.55rem;
}

.import-stats small {
    color: #999;
    font-size: .58rem;
}

.import-card {
    padding: 21px;
    border: 1px solid #e5deca;
    border-radius: 15px;
    background: #faf8ef;
}

.config-file {
    padding: 8px !important;
}

.import-help {
    margin-top: 15px;
    padding: 13px 15px;
    border-radius: 11px;
    background: #fff;
    color: #777;
    font-size: .69rem;
    line-height: 1.5;
}

.import-help strong {
    display: block;
    margin-bottom: 3px;
    color: #333;
}

.import-help p {
    margin: 0;
}

.import-actions {
    margin-top: 15px;
}

@media (max-width: 1000px) {
    .permission-checks {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .audit-filters {
        grid-template-columns: 1fr 1fr;
    }

    .audit-search-field,
    .audit-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .config-page {
        padding-top: 35px;
    }

    .config-heading,
    .config-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .config-admin-card {
        width: 100%;
        min-width: 0;
    }

    .config-search {
        grid-template-columns: 1fr;
    }

    .config-form,
    .config-form.compact {
        grid-template-columns: 1fr;
    }

    .config-field-full,
    .config-subtitle {
        grid-column: auto;
    }

    .config-editor-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .config-editor-actions > div {
        width: 100%;
        flex-direction: column;
    }

    .config-editor-actions .btn {
        width: 100%;
    }

    .permission-checks {
        grid-template-columns: 1fr 1fr;
    }

    .audit-filters {
        grid-template-columns: 1fr;
    }

    .audit-search-field,
    .audit-filter-actions {
        grid-column: auto;
    }

    .audit-filter-actions {
        flex-direction: column;
    }

    .audit-filter-actions .btn {
        width: 100%;
    }

    .import-stats {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   SUSCRIPCION
   ========================================================= */

.nav-link-subscribe {
    border: 1px solid #d9c650;
    border-radius: 10px;
    color: #655400 !important;
}

.nav-link-subscribe:hover {
    background: #fff7c9;
    color: #302700 !important;
}

.subscribe-page {
    min-height: calc(100vh - 205px);
    padding: 52px 0 85px;
    background:
        radial-gradient(circle at 91% 5%, rgba(244,196,0,.14), transparent 20%),
        #f7f5ed;
}

.subscribe-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 27px;
}

.subscribe-heading h1,
.subscription-success h1 {
    margin: 9px 0 7px;
    color: var(--ink);
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.subscribe-heading p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.subscribe-badge {
    min-width: 220px;
    padding: 18px 21px;
    border-radius: 18px;
    background: var(--ink);
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.subscribe-badge > span {
    display: block;
    color: #777;
    font-size: .6rem;
    font-weight: 850;
    letter-spacing: .14em;
}

.subscribe-badge > strong {
    display: block;
    margin-top: 4px;
    color: var(--yellow);
    font-size: 1.55rem;
    line-height: 1;
}

.subscribe-badge > small {
    display: block;
    margin-top: 6px;
    color: #aaa;
    font-size: .63rem;
}

.subscribe-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.subscribe-card {
    padding: clamp(21px, 3vw, 31px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.subscribe-card-head {
    margin-bottom: 22px;
    padding-bottom: 17px;
    border-bottom: 1px solid #eeeadd;
    display: flex;
    align-items: center;
    gap: 13px;
}

.subscribe-step {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--yellow);
    color: #111;
    font-size: .68rem;
    font-weight: 950;
}

.subscribe-card-head h2 {
    margin: 4px 0 0;
    color: #252525;
    font-size: 1.18rem;
    letter-spacing: -.025em;
}

.subscribe-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.subscribe-field {
    min-width: 0;
}

.subscribe-field-full,
.subscribe-separator {
    grid-column: 1 / -1;
}

.subscribe-field label {
    display: block;
    margin-bottom: 6px;
    color: #686868;
    font-size: .68rem;
    font-weight: 850;
}

.subscribe-field label span {
    color: #9c7e00;
}

.subscribe-field small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: .6rem;
}

.subscribe-field .form-control {
    width: 100%;
    min-height: 43px;
}

.subscribe-separator {
    height: 1px;
    margin: 4px 0;
    background: #eeeadd;
}

.subscribe-copy {
    margin-bottom: 17px;
    padding: 11px 13px;
    border: 1px solid #e3dcc6;
    border-radius: 10px;
    background: #faf8ef;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5f5f5f;
    cursor: pointer;
    font-size: .7rem;
    font-weight: 800;
}

.subscribe-copy input {
    width: 16px;
    height: 16px;
}

.subscribe-textarea {
    min-height: 130px !important;
    resize: vertical;
}

.subscribe-note {
    margin-top: 18px;
    padding: 14px 15px;
    border-radius: 11px;
    background: #1f1f1f;
}

.subscribe-note strong {
    display: block;
    color: var(--yellow);
    font-size: .7rem;
}

.subscribe-note p {
    margin: 5px 0 0;
    color: #aaa;
    font-size: .65rem;
    line-height: 1.5;
}

.subscribe-actions {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

/* Confirmación de suscripción */

.subscription-success {
    max-width: 760px;
    margin: 25px auto;
    padding: clamp(28px, 5vw, 55px);
    border: 1px solid var(--line);
    border-radius: 23px;
    background: #fff;
    text-align: center;
    box-shadow: 0 20px 55px rgba(0,0,0,.075);
}

.subscription-success-mark {
    width: 68px;
    height: 68px;
    margin: 0 auto 19px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--yellow);
    color: #111;
    font-size: 1.7rem;
    font-weight: 950;
}

.subscription-success h1 {
    margin-top: 10px;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.subscription-success > p {
    max-width: 600px;
    margin: 12px auto 24px;
    color: #777;
    font-size: .82rem;
    line-height: 1.6;
}

.subscription-key-box {
    max-width: 650px;
    margin: 0 auto;
    padding: 18px;
    border: 1px solid #ddd4ad;
    border-radius: 14px;
    background: #faf8ef;
    text-align: left;
}

.subscription-key-box label {
    display: block;
    margin-bottom: 6px;
    color: #786500;
    font-size: .65rem;
    font-weight: 900;
}

.subscription-key-box > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.subscription-key {
    font-family: Consolas, monospace !important;
    font-size: .72rem !important;
}

.subscription-warning {
    max-width: 650px;
    margin: 14px auto 22px;
    padding: 13px 15px;
    border-radius: 11px;
    background: #fff7cb;
    color: #685700;
    font-size: .68rem;
    line-height: 1.5;
}

.subscription-login-btn {
    min-width: 145px;
}

/* Login - suscripción y activación */

.login-subscribe {
    margin-top: 13px;
    padding: 12px 13px;
    border: 1px solid #e5dec9;
    border-radius: 10px;
    background: #faf8ef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: .68rem;
}

.login-subscribe span {
    color: #777;
}

.login-subscribe a {
    color: #725d00;
    font-weight: 900;
    text-decoration: none;
}

.login-subscribe a:hover {
    text-decoration: underline;
}

.activation-panel {
    padding-top: 4px;
    text-align: center;
}

.activation-icon {
    width: 57px;
    height: 57px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--yellow);
    color: #111;
    font-size: .78rem;
    font-weight: 950;
}

.activation-panel h2 {
    margin: 0;
    color: #222;
    font-size: 1.4rem;
}

.activation-panel > p {
    margin: 8px 0 19px;
    color: #777;
    font-size: .72rem;
    line-height: 1.55;
}

.activation-panel .form-field {
    text-align: left;
}

.login-cancel-activation {
    width: 100%;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .subscribe-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .subscribe-page {
        padding-top: 35px;
    }

    .subscribe-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .subscribe-badge {
        width: 100%;
        min-width: 0;
    }

    .subscribe-fields {
        grid-template-columns: 1fr;
    }

    .subscribe-field-full,
    .subscribe-separator {
        grid-column: auto;
    }

    .subscribe-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .subscribe-actions .btn {
        width: 100%;
    }

    .subscription-key-box > div {
        grid-template-columns: 1fr;
    }

    .login-subscribe {
        align-items: flex-start;
        flex-direction: column;
    }
}
