/*
    KRIOTEC - Sitio web técnico retro / HTML5
    Estructura prolija para editar con Notepad++
*/

:root {
    --bg: #07111f;
    --bg-soft: #0b1d33;
    --panel: rgba(8, 24, 42, 0.88);
    --panel-solid: #0a1a2d;
    --line: rgba(225, 238, 255, 0.28);
    --line-strong: rgba(225, 238, 255, 0.55);
    --text: #eef6ff;
    --muted: #b6c8dc;
    --accent: #7cc7ff;
    --accent-soft: rgba(124, 199, 255, 0.16);
    --white-soft: #f7fbff;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --max: 1180px;
    --mono: "Courier New", Courier, monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        radial-gradient(circle at top, rgba(124, 199, 255, 0.11), transparent 36rem),
        var(--bg);
    background-size: 28px 28px, 28px 28px, auto, auto;
    font-family: var(--mono);
    line-height: 1.65;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.025) 50%, transparent 100%),
        repeating-linear-gradient(0deg, transparent 0 6px, rgba(255, 255, 255, 0.018) 7px);
    opacity: 0.5;
    z-index: -1;
}

a {
    color: inherit;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

.wrap {
    width: min(calc(100% - 40px), var(--max));
    margin-inline: auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 17, 31, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    text-decoration: none;
    letter-spacing: 0.12em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    background: var(--accent-soft);
    color: var(--white-soft);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-text {
    display: grid;
    gap: 0;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
}

.brand-sub {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.16em;
}

.menu-toggle {
    display: none;
    justify-self: end;
    padding: 9px 12px;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--line);
    font-family: var(--mono);
    cursor: pointer;
}

.main-nav {
    justify-self: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;
    padding: 9px 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--white-soft);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.045);
}

.header-contact {
    justify-self: end;
}

.header-contact a {
    display: inline-block;
    padding: 10px 13px;
    color: var(--white-soft);
    text-decoration: none;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.035);
    font-size: 12px;
    letter-spacing: 0.08em;
}

/* Hero */

.hero {
    padding: 70px 0 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    align-items: center;
    gap: 42px;
}

.hero-copy {
    text-align: center;
}

.kicker {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 12px;
    color: var(--accent);
    border: 1px solid var(--line);
    background: rgba(124, 199, 255, 0.08);
    font-size: 12px;
    letter-spacing: 0.14em;
}

.hero h1 {
    max-width: 880px;
    margin: 0 auto 18px;
    font-size: clamp(34px, 5.4vw, 68px);
    line-height: 1.02;
    letter-spacing: 0.035em;
    text-align: center;
    text-transform: uppercase;
}

.hero-lead {
    max-width: 760px;
    margin: 0 auto 26px;
    color: var(--muted);
    font-size: clamp(16px, 1.8vw, 20px);
    text-align: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 28px 0 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    color: var(--white-soft);
    text-decoration: none;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.button.secondary {
    color: var(--muted);
    background: transparent;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 780px;
    margin: 0 auto;
}

.tag {
    padding: 5px 9px;
    color: var(--muted);
    text-decoration: none;
    border: 1px dashed var(--line);
    font-size: 12px;
}

/* Technical image */

.tech-card {
    position: relative;
    width: min(100%, 430px);
    justify-self: center;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.tech-card::before,
.tech-card::after {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    border-color: var(--line-strong);
    border-style: solid;
}

.tech-card::before {
    top: 8px;
    left: 8px;
    border-width: 1px 0 0 1px;
}

.tech-card::after {
    right: 8px;
    bottom: 8px;
    border-width: 0 1px 1px 0;
}

.tech-caption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.1em;
}

/* Sections */

.section {
    padding: 58px 0;
}

.section-head {
    max-width: 820px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-label {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section h2 {
    margin: 8px 0 10px;
    font-size: clamp(25px, 3.2vw, 40px);
    line-height: 1.15;
    text-transform: uppercase;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

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

.card {
    min-height: 100%;
    padding: 22px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.card h3 {
    margin: 10px 0 10px;
    font-size: 18px;
    line-height: 1.25;
}

.card p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

.card-icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    color: var(--accent);
}

.text-link {
    color: var(--white-soft);
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
    font-size: 13px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.panel {
    padding: 26px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.panel h2,
.panel h3 {
    margin-top: 0;
}

.clean-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.clean-list li {
    padding: 8px 0 8px 22px;
    color: var(--muted);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    position: relative;
}

.clean-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Blog */

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

.article-meta {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.12em;
}

/* Forms */

.form {
    display: grid;
    gap: 14px;
}

.form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 12px;
    color: var(--text);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--line);
    font-family: var(--mono);
}

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

/* SEO semi oculto */

.seo-context {
    max-width: 1080px;
    margin: 24px auto 0;
    padding: 14px 18px;
    color: rgba(238, 246, 255, 0.46);
    border-top: 1px dashed rgba(255, 255, 255, 0.16);
    font-size: 12px;
    text-align: center;
}

.seo-context a {
    color: rgba(238, 246, 255, 0.56);
    text-decoration: none;
}

/* Footer */

.footer {
    margin-top: 40px;
    padding: 46px 0 30px;
    border-top: 1px solid var(--line);
    background: rgba(4, 11, 20, 0.48);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.footer h3 {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--white-soft);
}

.footer p,
.footer li {
    color: var(--muted);
    font-size: 13px;
}

.footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer a {
    color: var(--muted);
    text-decoration: none;
}

.footer-legal {
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px dashed rgba(255, 255, 255, 0.16);
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.footer-legal p {
    margin: 5px 0;
}

/* Responsive */

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .main-nav {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
    }

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

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-bottom: 14px;
    }

    .main-nav a {
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .menu-toggle {
        display: inline-block;
    }

    .header-contact {
        display: none;
    }

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

    .tech-card {
        max-width: 520px;
    }

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

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

    .two-col {
        grid-template-columns: 1fr;
    }
}

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

    .hero {
        padding: 46px 0 28px;
    }

    .hero h1 {
        font-size: clamp(31px, 11vw, 46px);
    }

    .grid,
    .blog-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .button {
        width: 100%;
    }

    .tech-card {
        padding: 12px;
    }
}
