/* Tipografía del logo HARPATEC: Ostrich Sans (Medium y Black), incluida en assets/fonts/. */
@font-face {
    font-family: "Ostrich Sans";
    src: url("../fonts/ostrich-sans-medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Ostrich Sans";
    src: url("../fonts/ostrich-sans-black.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-ink: #11112d;
    --color-panel: #181836;
    --color-panel-2: #101f34;
    --color-line: #27415e;
    --color-text: #eef6ff;
    --color-muted: #a8b9c9;
    --color-blue: #0a81fb;
    --color-cyan: #13d8ff;
    --color-green: #49f2a2;
    --color-brand-blue: #0a81fb;
    --color-circuit-cyan: #13d8ff;
    --color-signal-green: #49f2a2;
    --color-steel: #d9e6f2;
    --color-white: #ffffff;
    --color-light: #f5f8fb;
    --color-body: #202020;
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
    --shadow-tech: 0 22px 68px rgba(10, 129, 251, 0.18);
    --radius: 8px;
    --max: 1180px;
    --header-height: 76px;
    --focus-ring: 0 0 0 3px rgba(19, 216, 255, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-light);
    color: var(--color-body);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-cyan);
    outline-offset: 3px;
    box-shadow: var(--focus-ring);
}

h1,
h2,
h3 {
    margin: 0;
    color: inherit;
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
    font-family: "Ostrich Sans", Inter, ui-sans-serif, system-ui, sans-serif;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

p {
    margin: 0;
}

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    z-index: 999;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    color: var(--color-white);
    background: var(--color-blue);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--header-height);
    background: rgba(17, 17, 45, 0.94);
    color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}

.site-header::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(19, 216, 255, 0.82), rgba(10, 129, 251, 0.62), transparent);
    content: "";
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    width: min(100% - 32px, var(--max));
    min-height: var(--header-height);
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    width: 184px;
    filter: drop-shadow(0 0 16px rgba(19, 216, 255, 0.18));
}

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

.primary-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 12px;
    border-radius: var(--radius);
    color: var(--color-muted);
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    color: var(--color-white);
    background: rgba(19, 216, 255, 0.08);
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-cta {
    color: var(--color-white);
    border-color: rgba(19, 216, 255, 0.45);
    background: rgba(10, 129, 251, 0.08);
}

.button:hover,
.header-cta:hover {
    transform: translateY(-1px);
}

.button--primary {
    color: #031426;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-green));
    box-shadow: 0 12px 30px rgba(19, 216, 255, 0.22);
}

.button--ghost {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    color: var(--color-white);
    background: transparent;
}

.nav-toggle__line,
.nav-toggle__line::before,
.nav-toggle__line::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    content: "";
}

.nav-toggle__line {
    position: relative;
}

.nav-toggle__line::before,
.nav-toggle__line::after {
    position: absolute;
    left: 0;
}

.nav-toggle__line::before {
    top: -7px;
}

.nav-toggle__line::after {
    top: 7px;
}

.hero {
    position: relative;
    display: grid;
    min-height: calc(100vh - var(--header-height));
    overflow: hidden;
    background: var(--color-ink);
    color: var(--color-white);
}

.hero__media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 17, 45, 0.96) 0%, rgba(17, 17, 45, 0.72) 43%, rgba(17, 17, 45, 0.18) 100%),
        linear-gradient(rgba(19, 216, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 216, 255, 0.05) 1px, transparent 1px),
        url("../images/logo-mark-color.png") right 4% center no-repeat;
    background-size: auto, 72px 72px, 72px 72px, auto 72%;
}

.hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 22px;
    width: min(100% - 32px, var(--max));
    min-height: calc(100vh - var(--header-height));
    margin: 0 auto;
    padding: 72px 0 96px;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(56px, 9vw, 124px);
    text-shadow: 0 18px 56px rgba(10, 129, 251, 0.28);
}

.hero p:not(.eyebrow) {
    max-width: 640px;
    color: var(--color-muted);
    font-size: 1.2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.eyebrow {
    color: var(--color-cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.metric-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100% - 32px, var(--max));
    margin: -48px auto 0;
    position: relative;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--color-white);
    box-shadow: var(--shadow);
}

.metric-band div {
    padding: 28px;
    border-right: 1px solid #dce5ee;
}

.metric-band div:last-child {
    border-right: 0;
}

.metric-band strong {
    display: block;
    color: var(--color-blue);
    font-size: 2.4rem;
    line-height: 1;
}

.metric-band span {
    color: #42566c;
    font-weight: 700;
}

.section,
.content-wrap,
.page-hero,
.cta-band,
.site-footer__grid,
.site-footer__bottom {
    width: min(100% - 32px, var(--max));
    margin-right: auto;
    margin-left: auto;
}

.section {
    padding: 96px 0;
}

.section__header {
    display: grid;
    max-width: 780px;
    gap: 14px;
    margin-bottom: 34px;
}

.section h2,
.page-hero h1 {
    color: var(--color-ink);
    font-size: clamp(2rem, 5vw, 4rem);
}

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

.service-card,
.post-card {
    display: grid;
    gap: 18px;
    min-height: 280px;
    padding: 26px;
    border: 1px solid #d9e2ec;
    border-radius: var(--radius);
    background: var(--color-white);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-card:hover,
.post-card:hover,
.service-detail:hover,
.contact-panel:hover,
.forum-topic:hover {
    border-color: rgba(10, 129, 251, 0.32);
    box-shadow: var(--shadow-tech);
    transform: translateY(-2px);
}

.service-card img,
.service-detail img {
    padding: 7px;
    border: 1px solid rgba(10, 129, 251, 0.18);
    border-radius: var(--radius);
    background: #eef7ff;
}

.service-card h3,
.post-card h2,
.post-card h3 {
    color: var(--color-ink);
    font-size: 1.45rem;
}

.service-card p,
.post-card p {
    color: #50647a;
}

.service-card a,
.post-card a {
    align-self: end;
    color: var(--color-blue);
    font-weight: 800;
}

.section--split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    color: var(--color-white);
    background:
        linear-gradient(rgba(19, 216, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 216, 255, 0.05) 1px, transparent 1px),
        var(--color-ink);
    background-size: 80px 80px;
    width: 100%;
    max-width: none;
    padding-right: max(16px, calc((100vw - var(--max)) / 2));
    padding-left: max(16px, calc((100vw - var(--max)) / 2));
}

.section--split h2 {
    color: var(--color-white);
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline div {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: start;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 3px 0 0 rgba(19, 216, 255, 0.36);
}

.timeline span {
    color: var(--color-green);
    font-weight: 900;
}

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

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 92px;
    padding: 36px;
    color: var(--color-white);
    border: 1px solid rgba(19, 216, 255, 0.2);
    background:
        linear-gradient(135deg, rgba(9, 24, 42, 0.98), rgba(16, 43, 71, 0.96) 56%, rgba(15, 59, 61, 0.96)),
        linear-gradient(90deg, rgba(19, 216, 255, 0.18), transparent);
    box-shadow: var(--shadow-tech);
}

.cta-band h2 {
    color: var(--color-white);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.page-hero {
    display: grid;
    gap: 16px;
    padding: 84px 0 44px;
}

.page-hero--dark {
    width: 100%;
    max-width: none;
    padding-right: max(16px, calc((100vw - var(--max)) / 2));
    padding-left: max(16px, calc((100vw - var(--max)) / 2));
    color: var(--color-white);
    background:
        linear-gradient(90deg, rgba(17, 17, 45, 0.97), rgba(17, 17, 45, 0.84)),
        linear-gradient(rgba(19, 216, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 216, 255, 0.05) 1px, transparent 1px),
        url("../images/logo-mark-color.png") right -3% center no-repeat var(--color-ink);
    background-size: auto, 72px 72px, 72px 72px, auto 118%;
}

.page-hero--dark h1,
.page-hero--dark p {
    color: var(--color-white);
}

.page-hero--dark .eyebrow {
    color: var(--color-cyan);
}

.page-hero p {
    max-width: 740px;
}

.content-wrap {
    padding: 0 0 92px;
}

.content-wrap--article {
    max-width: 820px;
}

.content-wrap h2,
.content-wrap h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-ink);
}

.content-wrap p,
.content-wrap ul,
.content-wrap ol {
    margin-top: 0;
    margin-bottom: 1rem;
}

.harpatec-form {
    display: grid;
    gap: 16px;
    max-width: 760px;
    padding: 28px;
    border: 1px solid #d9e2ec;
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: 0 16px 42px rgba(17, 17, 45, 0.08);
}

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

.harpatec-form label {
    display: grid;
    gap: 6px;
    color: var(--color-ink);
    font-weight: 750;
}

.harpatec-form input,
.harpatec-form select,
.harpatec-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #bdcad7;
    border-radius: var(--radius);
    color: var(--color-ink);
    background: var(--color-light);
    font: inherit;
}

.harpatec-form input:hover,
.harpatec-form select:hover,
.harpatec-form textarea:hover {
    border-color: rgba(10, 129, 251, 0.48);
}

.harpatec-form textarea {
    min-height: 132px;
    resize: vertical;
}

.harpatec-form__full {
    grid-column: 1 / -1;
}

.harpatec-form-status {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(73, 242, 162, 0.45);
    border-radius: var(--radius);
    color: #06351f;
    background: rgba(73, 242, 162, 0.16);
    font-weight: 750;
}

.harpatec-form-status--error {
    border-color: rgba(255, 99, 99, 0.55);
    color: #4a0d0d;
    background: rgba(255, 99, 99, 0.14);
}

.harpatec-form__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.value-card__text {
    font-size: 1.05rem;
    line-height: 1.65;
    color: inherit;
}

.value-card--primary .value-card__text {
    color: rgba(245, 248, 251, 0.92);
}

.service-stat {
    padding: 12px 14px;
    border-left: 3px solid var(--color-cyan, #13D8FF);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: rgba(19, 216, 255, 0.08);
    color: #24435f;
    font-weight: 700;
    font-size: 0.95rem;
}

.site-footer__tagline {
    font-weight: 800;
    color: var(--color-cyan, #13D8FF);
}

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

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

.value-card {
    display: grid;
    gap: 18px;
    min-height: 300px;
    align-content: end;
    padding: 32px;
    border: 1px solid #d9e2ec;
    border-radius: var(--radius);
    background: var(--color-white);
}

.value-card--primary {
    color: var(--color-white);
    background:
        url("../images/logo-mark-white.png") right 28px bottom 28px / 150px auto no-repeat,
        linear-gradient(135deg, rgba(17, 17, 45, 0.98), rgba(13, 44, 74, 0.96) 60%, rgba(11, 75, 82, 0.96));
}

.value-card h2 {
    color: inherit;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.2;
}

.service-detail,
.contact-panel,
.forum-topic {
    display: grid;
    gap: 16px;
    padding: 26px;
    border: 1px solid #d9e2ec;
    border-radius: var(--radius);
    background: var(--color-white);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-detail h2,
.contact-panel h2,
.forum-topic h3 {
    color: var(--color-ink);
    font-size: 1.45rem;
}

.service-detail p,
.contact-panel p,
.forum-topic p,
.contact-panel dd {
    color: #50647a;
}

.service-detail ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
}

.service-detail a {
    align-self: end;
    color: var(--color-blue);
    font-weight: 800;
}

.contact-layout,
.forum-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start;
}

.contact-panel dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.contact-panel dt {
    color: var(--color-ink);
    font-weight: 850;
}

.contact-panel dd {
    margin: 4px 0 0;
}

.forum-list {
    display: grid;
    gap: 14px;
}

.site-footer {
    padding: 72px 0 28px;
    color: var(--color-muted);
    background:
        linear-gradient(90deg, rgba(19, 216, 255, 0.07) 1px, transparent 1px),
        #11112d;
    background-size: 96px 96px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
}

.site-footer h2 {
    color: var(--color-white);
    font-size: 1rem;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

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

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.social-links a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    text-decoration: none;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 54px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
    .site-header__inner {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .primary-nav,
    .header-cta {
        display: none;
    }

    .primary-nav.is-open {
        display: block;
        grid-column: 1 / -1;
        width: 100%;
        padding-bottom: 18px;
    }

    .primary-nav ul {
        display: grid;
        gap: 0;
    }

    .primary-nav a {
        padding-right: 0;
        padding-left: 0;
        border-radius: 0;
    }

    .hero__media {
        background:
            linear-gradient(180deg, rgba(17, 17, 45, 0.92) 0%, rgba(17, 17, 45, 0.7) 100%),
            linear-gradient(rgba(19, 216, 255, 0.06) 1px, transparent 1px),
            linear-gradient(90deg, rgba(19, 216, 255, 0.05) 1px, transparent 1px),
            url("../images/logo-mark-color.png") right bottom no-repeat;
        background-size: auto, 56px 56px, 56px 56px, auto 46%;
    }

    .metric-band,
    .service-grid,
    .service-detail-grid,
    .values-grid,
    .post-grid,
    .section--split,
    .contact-layout,
    .forum-layout,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .metric-band div {
        border-right: 0;
        border-bottom: 1px solid #dce5ee;
    }

    .metric-band div:last-child {
        border-bottom: 0;
    }

    .cta-band {
        display: grid;
    }
}

@media (max-width: 620px) {
    .brand img {
        width: 154px;
    }

    .hero h1 {
        font-size: 3.3rem;
    }

    .hero__content {
        min-height: 680px;
        padding-top: 48px;
    }

    .section {
        padding: 68px 0;
    }

    .harpatec-form__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom {
        display: grid;
    }
}
