/* Tipografías servidas por el sitio (DEC-002; public/fonts/README.md). */
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

/* Paleta (DEC-001, DEC-003; WDEVENET-008): grafito con profundidad, el
   naranja del logo y un acento cian, del concepto del equipo
   (docs/concepto-equipo.webp). --brand-text es el naranja para texto pequeño
   (#fd4b00 sobre grafito queda justo); sobre el naranja, texto oscuro. */
:root {
    --bg: #161b20;
    --bg-deep: #101418;
    --surface: #1c2228;
    --surface-2: #222a31;
    --line: #2c353d;
    --line-strong: #3a4550;
    --text: #e7ebee;
    --text-2: #c2cad0;
    --text-3: #93a0aa;
    --brand: #fd4b00;
    --brand-text: #ff7a3d;
    --brand-hover: #ffa071;
    --brand-glow: rgb(253 75 0 / 45%);
    --cyan: #45d3e6;
    --white: #ffffff;
    --error: #ff8a80;

    --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    --radius: 0.25rem;
    --radius-sm: 0.25rem;
    --shadow: 0 1px 0 rgb(255 255 255 / 3%) inset, 0 12px 32px -18px rgb(0 0 0 / 70%);
    --shadow-lg: 0 1px 0 rgb(255 255 255 / 4%) inset, 0 24px 48px -20px rgb(0 0 0 / 80%);
    --gutter: clamp(1rem, 4vw, 1.5rem);
    --width: 80rem;

    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

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

::selection {
    background: rgb(253 75 0 / 35%);
    color: var(--white);
}

/* Tipografía */
h1,
h2,
h3 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--white);
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.25rem, 5vw + 1rem, 3.625rem);
}

h1 em,
h2 em {
    font-style: normal;
    color: var(--brand);
    text-shadow: 0 0 28px var(--brand-glow);
}

h2 {
    font-size: clamp(1.875rem, 2.5vw + 1rem, 2.5rem);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5em;
}

p {
    margin: 0 0 1em;
    max-width: 70ch;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-2);
}

small,
.muted {
    color: var(--text-3);
}

a {
    color: var(--brand-text);
    text-underline-offset: 0.2em;
}

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

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Etiqueta monoespaciada sobre un título («Productos», «Clientes»…). */
.eyebrow {
    display: block;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
}

/* Marca corta (módulo, sector, período). */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.125rem 0.625rem;
    border: 1px solid var(--line-strong);
    align-self: flex-start;
    border-radius: 999px;
    background: var(--bg-deep);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-2);
}

/* Páginas interiores: halo naranja y cian arriba, como la portada. */
main > .section:first-child {
    background:
        radial-gradient(ellipse 60% 26rem at 88% 0, rgb(253 75 0 / 9%), transparent 70%),
        radial-gradient(ellipse 45% 22rem at 8% 0, rgb(69 211 230 / 6%), transparent 70%);
}

/* Contenedor, secciones y rejilla */
.wrap {
    width: 100%;
    max-width: var(--width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section.alt {
    background: var(--bg-deep);
    border-block: 1px solid var(--line);
}

.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

/* Botones (enlaces o botones con aspecto de acción) */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: 1px solid var(--brand);
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: var(--bg-deep);
    font: 700 0.9375rem/1.2 var(--font-sans);
    box-shadow: 0 8px 28px -10px var(--brand-glow);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.button:hover {
    background: #ff6a26;
    border-color: #ff6a26;
    box-shadow: 0 8px 32px -8px var(--brand-glow);
    color: var(--bg-deep);
}

.button.secondary {
    background: rgb(22 27 32 / 60%);
    border-color: var(--line-strong);
    color: var(--text);
    box-shadow: none;
}

.button.secondary:hover {
    background: var(--surface);
    border-color: var(--cyan);
    color: var(--white);
}

.button.dark {
    background: rgb(253 75 0 / 12%);
    border-color: rgb(253 75 0 / 70%);
    color: var(--white);
    box-shadow: none;
}

.button.dark:hover {
    background: rgb(253 75 0 / 22%);
    color: var(--white);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Tarjeta */
.card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    position: relative;
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card > :last-child {
    margin-bottom: 0;
}

.card footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-3);
}

/* Banda oscura (sección destacada) */
.band {
    background: var(--bg-deep);
    color: var(--text);
    border-block: 1px solid var(--line);
}

.band h2,
.band h3 {
    color: var(--white);
}

.band p {
    color: var(--text-2);
}

.band a {
    color: var(--brand-text);
}

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

/* Enlace para saltar la cabecera con el teclado. */
.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--brand);
    color: var(--bg-deep);
    border-radius: var(--radius-sm);
}

.skip:focus {
    top: 1rem;
    color: var(--bg-deep);
}

/* Cabecera. El menú es un popover nativo (sin JavaScript): en el teléfono se
   abre con el botón; desde 64rem se muestra siempre en línea. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgb(16 20 24 / 85%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

/* Filo de la cabecera: una pista naranja que se apaga hacia los lados. */
.site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(253 75 0 / 55%) 30%, rgb(69 211 230 / 45%) 75%, transparent);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.5rem;
}

.brand {
    display: flex;
    flex-shrink: 1;
    min-width: 0;
}

.brand img {
    display: block;
    width: 244px;
    max-width: 100%;
    height: auto;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

#site-menu {
    margin: 0;
    padding: 1rem var(--gutter) 1.5rem;
    inset: 4.5rem 0 auto 0;
    width: auto;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg-deep);
    box-shadow: var(--shadow-lg);
}

#site-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#site-menu a:not(.button) {
    display: block;
    padding: 0.75rem 0.25rem;
    color: var(--text-2);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

#site-menu a:not(.button):hover,
#site-menu a:not(.button)[aria-current="page"] {
    color: var(--white);
}

/* Contacto como sección actual: el botón pasa a naranja, con texto oscuro. */
#site-menu .button[aria-current="page"] {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--bg-deep);
}

#site-menu .button {
    margin-top: 1rem;
    width: 100%;
}

@media (min-width: 64rem) {
    .menu-toggle {
        display: none;
    }

    #site-menu,
    #site-menu:not(:popover-open) {
        display: block;
        position: static;
        inset: auto;
        padding: 0;
        border: 0;
        background: none;
        box-shadow: none;
        overflow: visible;
    }

    #site-menu ul {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    #site-menu a:not(.button) {
        padding: 0.25rem 0;
        font-size: 0.875rem;
        border-bottom: 2px solid transparent;
    }

    #site-menu a:not(.button)[aria-current="page"] {
        border-bottom-color: var(--brand);
        box-shadow: 0 6px 12px -8px var(--brand-glow);
    }

    #site-menu .button {
        margin-top: 0;
        width: auto;
        padding: 0.625rem 1.125rem;
    }
}

/* Pie */
.site-footer {
    margin-top: auto;
    padding-block: 3.5rem 2rem;
    background: var(--bg-deep);
    border-top: 1px solid var(--line);
    font-size: 0.875rem;
    color: var(--text-2);
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
}

.site-footer h2 {
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.site-footer address {
    font-style: normal;
}

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

.site-footer a:hover {
    color: var(--brand-text);
    text-decoration: underline;
}

.site-footer img {
    display: block;
    margin-bottom: 0.75rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    max-width: none;
    margin: 1.5rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-3);
}

/* Texto en Markdown (descripciones, módulos, beneficios). */
.prose > :last-child {
    margin-bottom: 0;
}

.prose ul {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.5rem;
}

.prose li::marker {
    color: var(--brand);
}

.prose strong {
    color: var(--text);
}

/* Miga de pan sobre el título. */
.crumbs {
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crumbs a::after {
    content: " /";
    color: var(--text-3);
}

/* Lista de productos */
.products {
    margin-top: 2.5rem;
}

.products h2 {
    font-size: 1.875rem;
    margin: 0;
}

.products h2 a {
    color: inherit;
    text-decoration: none;
}

.products h2 a:hover {
    color: var(--brand-text);
}

/* Página de un producto */
.product-body {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

.product-body > .prose {
    font-size: 1.0625rem;
    color: var(--text-2);
}

@media (min-width: 64rem) {
    .product-body {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .product-body > .prose {
        grid-column: 1 / -1;
    }
}

/* Rejilla de logos de clientes */
.logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 1rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.logos li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5.5rem;
    padding: 1rem;
    background: #eef1f3;
    color: var(--bg-deep);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.logos img {
    max-height: 3.5rem;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* Clientes */
.clients {
    margin-top: 2.5rem;
}

.client img {
    align-self: flex-start;
    padding: 0.5rem 0.75rem;
    background: #eef1f3;
    border-radius: var(--radius-sm);
    box-sizing: content-box;
    max-height: 3.5rem;
    max-width: 10rem;
    width: auto;
    object-fit: contain;
}

.client h2 {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.client p {
    margin: 0;
}

.client footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.client footer .tag {
    text-decoration: none;
}

.names {
    columns: 16rem;
    column-gap: 2rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--text-2);
}

.names li {
    break-inside: avoid;
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--line);
}

/* Proyectos */
.projects {
    margin-top: 2.5rem;
}

.projects h2 {
    margin: 0;
    font-size: 1.625rem;
}

.projects h2 a {
    color: inherit;
    text-decoration: none;
}

.projects h2 a:hover {
    color: var(--brand-text);
}

.projects footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1rem;
}

.projects .external {
    overflow-wrap: anywhere;
}

/* Lista de hechos sobre la banda oscura */
.facts {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.facts li {
    padding-top: 1rem;
    border-top: 1px solid var(--line-strong);
    color: var(--text-2);
    font-size: 0.9375rem;
}

.facts strong {
    display: block;
    color: var(--white);
}

/* Servicios */
.services {
    margin-top: 2.5rem;
}

.services h2 {
    margin: 0;
    font-size: 1.625rem;
}

.services ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-2);
    font-size: 0.9375rem;
}

.services li::marker {
    color: var(--brand);
}

/* Llamado al final de una página */
.callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: 3rem;
    padding: 1.5rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    border-left: 2px solid var(--brand);
}

.callout p {
    margin: 0;
    font-size: 1.0625rem;
}

/* Nosotros */
.about {
    display: grid;
    gap: 2rem;
    margin-top: 1rem;
}

.about > div p {
    color: var(--text-2);
}

.steps {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    color: var(--text-2);
}

.steps strong {
    color: var(--text);
}

@media (min-width: 64rem) {
    .about {
        grid-template-columns: 3fr 2fr;
        align-items: start;
    }
}

/* Portada: fondo de rombos y pistas (SVG en la plantilla, sin mapa de bits)
   y el rombo de Devenet con la neurona (WDEVENET-008, concepto del equipo). */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 90% at 50% 40%, #242c34 0%, var(--bg) 55%, var(--bg-deep) 100%);
    border-bottom: 1px solid var(--line);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
}

.hero .wrap {
    position: relative;
    display: grid;
    gap: 2rem;
    align-items: center;
    padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 5rem);
}

.hero h1 {
    max-width: 16ch;
    font-size: clamp(2.375rem, 5vw + 1rem, 4rem);
    line-height: 1.06;
}

.hero .lead {
    max-width: 38rem;
    font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.2rem);
    color: var(--text-2);
}

.hero .lead strong {
    color: var(--white);
    font-weight: 600;
}

.hero-art {
    width: min(100%, 36rem);
    justify-self: center;
}

/* Pulso por las pistas: un tramo corto que recorre cada una. */
.hero-art .pulse {
    stroke-dasharray: 6 94;
    animation: hero-run 6s linear infinite;
}

.hero-art .pulse.b {
    animation-duration: 8s;
    animation-delay: -3s;
}

.hero-art .pulse.c {
    animation-duration: 7s;
    animation-delay: -5s;
}

.hero-art .glow {
    animation: hero-breathe 4s ease-in-out infinite;
}

@keyframes hero-run {
    from { stroke-dashoffset: 100; }
    to { stroke-dashoffset: 0; }
}

@keyframes hero-breathe {
    50% { opacity: 0.5; }
}

@media (min-width: 64rem) {
    .hero .wrap {
        grid-template-columns: 1.1fr 0.9fr;
        min-height: 36rem;
    }

    .hero-art {
        width: 100%;
        margin-left: -12%;
        width: 112%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-art .pulse {
        display: none;
    }

    .hero-art .glow {
        animation: none;
    }
}

/* Franja de cifras */
.stats {
    padding-block: 3rem;
    background: var(--bg-deep);
    border-block: 1px solid var(--line);
}

.stats dl {
    display: grid;
    gap: 2rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
    margin: 0;
}

.stats dl > div {
    display: flex;
    flex-direction: column;
}

.stats dt {
    order: 2;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.stats dd {
    order: 1;
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(2.5rem, 3vw + 1rem, 3.25rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--white);
}

.stats dd small {
    margin-left: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--brand-text);
}

.stats dd.note {
    order: 3;
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    color: var(--text-3);
}

/* Pilares: tarjetas con el rombo numerado y un filo naranja. */
.pillars {
    margin-top: 2rem;
}

.pillars .card::before,
.products .card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 1.5rem;
    width: 3rem;
    height: 2px;
    background: var(--brand);
    box-shadow: 0 0 12px var(--brand-glow);
}

.pillars h3 {
    margin: 0;
    font-size: 1.1875rem;
}

.pillars p {
    margin: 0;
    color: var(--text-2);
    font-size: 0.9688rem;
}

.diamond {
    position: relative;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.25rem;
    font: 500 0.75rem var(--font-mono);
    color: var(--cyan);
}

.diamond::before {
    content: "";
    position: absolute;
    inset: 0.375rem;
    transform: rotate(45deg);
    border: 1.5px solid var(--cyan);
    box-shadow: 0 0 14px rgb(69 211 230 / 35%);
}

/* Tecnología propia: lista y terminal con la salida real del sitio. */
.tech .wrap {
    display: grid;
    gap: 2.5rem;
}

.tech-list {
    margin: 2rem 0 0;
}

.tech-list dt {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    margin-top: 1.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white);
}

.tech-list dt:first-child {
    margin-top: 0;
}

.tech-list code {
    font: 500 0.75rem var(--font-mono);
    color: var(--cyan);
}

.tech-list dd {
    margin: 0.375rem 0 0;
    color: var(--text-2);
}

.terminal {
    margin: 0;
    align-self: start;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.4375rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--line);
    border-bottom: 0;
    background: #0c1013;
    font: 0.75rem var(--font-mono);
    color: var(--text-3);
}

.terminal-bar i {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--line-strong);
}

.terminal-bar span {
    margin-left: auto;
}

.terminal pre {
    margin: 0;
    padding: 1.125rem 1.25rem;
    overflow-x: auto;
    border: 1px solid var(--line);
    background: #0c1013;
    box-shadow: 0 30px 70px -30px #000;
    font: 0.8125rem/1.75 var(--font-mono);
    color: var(--text-2);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.t-prompt { color: var(--brand-text); }
.t-key { color: var(--cyan); }
.t-num { color: var(--white); }
.t-str { color: #e8b86a; }

.terminal figcaption {
    margin-top: 0.75rem;
    font: 0.75rem/1.5 var(--font-mono);
    color: var(--text-3);
}

@media (min-width: 64rem) {
    .tech .wrap {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

/* Seguridad: prácticas verificables con el rombo como viñeta. */
.checks {
    display: grid;
    gap: 1px;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    background: var(--line);
    border: 1px solid var(--line);
}

.checks li {
    position: relative;
    padding: 1.375rem 1.5rem 1.375rem 3.5rem;
    background: var(--surface);
    color: var(--text-3);
    font-size: 0.9375rem;
}

.checks li::before {
    content: "";
    position: absolute;
    left: 1.5rem;
    top: 1.75rem;
    width: 0.625rem;
    height: 0.625rem;
    transform: rotate(45deg);
    background: var(--brand);
    box-shadow: 0 0 10px var(--brand-glow);
}

.checks strong {
    display: block;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

@media (min-width: 56rem) {
    .checks {
        grid-template-columns: 1fr 1fr;
    }
}

/* Líneas de trabajo: tarjetas enlazadas */
.lines {
    margin-top: 2rem;
}

a.card {
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

a.card:hover {
    color: inherit;
    transform: translateY(-2px);
    border-color: rgb(253 75 0 / 60%);
    box-shadow: var(--shadow-lg);
}

a.card h3 {
    margin: 0;
}

a.card p {
    margin: 0;
    color: var(--text-2);
}

.products h3 {
    margin: 0;
    font-size: 1.875rem;
}

.products h3 a {
    color: inherit;
    text-decoration: none;
}

.products h3 a:hover {
    color: var(--brand-text);
}

.band-link {
    margin: 2rem 0 0;
}

/* Contacto al pie de la portada */
.contact-band .wrap {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.contact-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: 600;
}

.contact-list a:not(.button) {
    color: var(--white);
}

@media (min-width: 64rem) {
    .contact-band .wrap {
        grid-template-columns: 1fr auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    a.card {
        transition: none;
    }

    a.card:hover {
        transform: none;
    }
}

/* Contacto */
.contact {
    display: grid;
    gap: 2.5rem;
    margin-top: 1rem;
}

.contact-info dl {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.contact-info dt {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.contact-info dd {
    margin: 0;
    font-weight: 600;
}

.contact-form p {
    display: grid;
    gap: 0.375rem;
    margin: 0;
    max-width: none;
}

.contact-form label {
    font-size: 0.875rem;
    font-weight: 600;
}

.contact-form label small {
    font-weight: 400;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-deep);
    color: var(--text);
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 0;
    border-color: var(--brand);
}

.contact-form [aria-invalid="true"] {
    border-color: var(--error);
    background: rgb(255 107 91 / 8%);
}

.contact-form [role="status"] {
    margin: 0;
    font-weight: 600;
}

.contact-form [role="status"]:empty {
    display: none;
}

.contact-form [role="alert"] {
    color: var(--error);
}

.contact-form .form-note {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-3);
}

.contact-form button {
    align-self: flex-start;
}

@media (min-width: 64rem) {
    .contact {
        grid-template-columns: 2fr 3fr;
        align-items: start;
    }
}

/* Página de texto (privacidad) */
.prose-page {
    max-width: 48rem;
}

.prose-page h2 {
    margin-top: 2.5rem;
    font-size: 1.625rem;
}

.prose-page p {
    color: var(--text-2);
}
