/* ==========================================================================
   Lamsys Software — hoja de estilos principal
   1. Tokens y reset
   2. Utilidades y componentes base
   3. Cabecera y navegación
   4. Hero
   5. Servicios
   6. Proceso
   7. Proyectos
   8. Tecnologías
   9. Preguntas frecuentes
   10. Contacto y formulario
   11. Footer y WhatsApp
   12. Animaciones y responsive
   ========================================================================== */

/* ---------------------------------------------------------------- 1. Tokens */
:root {
    --bg: #05070f;
    --bg-soft: #080b18;
    --bg-elevated: #0c1020;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-strong: rgba(255, 255, 255, 0.065);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text: #e9ecf7;
    --text-soft: #c3cae2;
    --muted: #98a3c2;

    --primary: #5b7cff;
    --primary-dark: #3d5cff;
    --secondary: #a855f7;
    --accent: #22d3ee;
    --success: #34d399;
    --danger: #fb7185;
    --whatsapp: #25d366;

    --gradient: linear-gradient(120deg, #5b7cff 0%, #a855f7 55%, #22d3ee 100%);
    --gradient-soft: linear-gradient(135deg, rgba(91, 124, 255, 0.16), rgba(168, 85, 247, 0.08));

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --container: 1180px;
    --header-height: 76px;

    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Space Grotesk", var(--font-body);
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 30px 80px rgba(3, 6, 18, 0.55);
    --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(900px 500px at 12% -10%, rgba(91, 124, 255, 0.16), transparent 65%),
        radial-gradient(800px 500px at 92% 8%, rgba(168, 85, 247, 0.12), transparent 60%),
        var(--bg);
}

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #f4f6ff;
}

h1 { font-size: clamp(2.6rem, 5.2vw, 4.15rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); letter-spacing: -0.03em; }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    padding: 0.15em 0.4em;
    border-radius: 5px;
    background: rgba(91, 124, 255, 0.14);
    color: #cfd8ff;
}

::selection { background: rgba(91, 124, 255, 0.4); color: #fff; }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #04060d; }
::-webkit-scrollbar-thumb {
    background: #1c2340;
    border-radius: 10px;
    border: 2px solid #04060d;
}
::-webkit-scrollbar-thumb:hover { background: #2a3559; }

/* --------------------------------------------------- 2. Utilidades base */
.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.container-narrow {
    width: min(100% - 40px, 860px);
    margin-inline: auto;
}

.section {
    position: relative;
    padding: clamp(72px, 9vw, 116px) 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 60%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 720px;
    margin: 0 auto clamp(40px, 5vw, 64px);
    text-align: center;
}

.section-head--left {
    margin-inline: 0;
    text-align: left;
}

.section-head h2 { margin-bottom: 0.45em; }

.section-head > p,
.section-head .lead {
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.08rem);
    max-width: 62ch;
}

.section-head:not(.section-head--left) > p { margin-inline: auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.eyebrow .icon { color: var(--accent); }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.lead {
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
    color: var(--text-soft);
    max-width: 58ch;
}

.section-note {
    margin-top: 32px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Iconos */
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 17px; height: 17px; }
.icon-xs { width: 14px; height: 14px; }
.icon-lg { width: 27px; height: 27px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Botones */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
        background-color 0.25s var(--ease), border-color 0.25s var(--ease);
    white-space: nowrap;
}

.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
    background: var(--gradient);
    background-size: 180% 180%;
    color: #fff;
    box-shadow: 0 10px 30px rgba(91, 124, 255, 0.32);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(110, 92, 255, 0.42);
    background-position: 100% 0;
}

.btn-ghost {
    border-color: var(--border-strong);
    background: var(--surface);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: rgba(91, 124, 255, 0.5);
    background: rgba(91, 124, 255, 0.1);
    transform: translateY(-2px);
}

.btn-sm { padding: 10px 18px; font-size: 0.88rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* Animación de aparición */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--delay, 0s);
    will-change: opacity, transform;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ------------------------------------------------------ 3. Cabecera */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus { top: 16px; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition: background-color 0.35s ease, border-color 0.35s ease,
        backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
    background: rgba(5, 7, 15, 0.78);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border-bottom-color: var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.header-progress {
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: transparent;
    overflow: hidden;
}

.header-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--gradient);
    transition: width 0.1s linear;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 6px 18px rgba(91, 124, 255, 0.35));
    transition: transform 0.4s var(--ease);
}

.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }

.brand-text {
    display: inline-flex;
    flex-direction: column;
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.brand-text span {
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active { color: var(--text); }

.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.nav-cta { margin-left: 12px; }
.nav-cta::after { display: none; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.nav-toggle-box span {
    display: block;
    width: 18px;
    height: 1.8px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle-box span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.site-header.nav-open .nav-toggle-box span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-box span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ---------------------------------------------------------------- 4. Hero */
.hero {
    position: relative;
    padding: calc(var(--header-height) + clamp(56px, 9vw, 100px)) 0 clamp(48px, 7vw, 76px);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 25%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 60% at 50% 25%, #000 20%, transparent 75%);
    opacity: 0.55;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: orb-float 16s ease-in-out infinite;
}

.orb-one {
    top: -18%;
    left: -8%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(91, 124, 255, 0.55), transparent 65%);
}

.orb-two {
    top: 4%;
    right: -12%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.45), transparent 65%);
    animation-delay: -5s;
}

.orb-three {
    bottom: -35%;
    left: 38%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 65%);
    animation-delay: -9s;
}

@keyframes orb-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(24px, -32px, 0) scale(1.06); }
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.hero-copy h1 { margin: 20px 0 20px; }

.hero-copy .lead { max-width: 54ch; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.08);
    font-size: 0.8rem;
    font-weight: 500;
    color: #a7f3d0;
}

.pulse {
    position: relative;
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
    animation: pulse-ring 2.4s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 28px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: 0.87rem;
    color: var(--muted);
}

.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .icon { color: var(--success); }

/* Terminal */
.hero-visual { position: relative; }

.terminal {
    position: relative;
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    background:
        linear-gradient(160deg, rgba(91, 124, 255, 0.12), rgba(8, 11, 24, 0.9) 45%),
        #080b18;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.6s var(--ease);
}

.terminal:hover { transform: perspective(1200px) rotateY(-1deg) rotateX(0); }

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-amber { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
}

.terminal-body {
    padding: 24px 22px 26px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 2.1;
}

.term-line { margin: 0; color: var(--text-soft); white-space: nowrap; }
.term-prompt { color: var(--accent); }
.term-ok { color: #86efac; }
.term-muted { color: var(--muted); font-size: 0.78rem; }
.term-cursor { display: flex; align-items: center; gap: 8px; }

.caret {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--accent);
    animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink { to { visibility: hidden; } }

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    background: rgba(10, 14, 28, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    animation: chip-float 6s ease-in-out infinite;
}

.float-chip .icon { color: var(--accent); }

.chip-ia { top: -18px; right: 4%; animation-delay: -1.5s; }
.chip-docker { bottom: 16%; left: -26px; animation-delay: -3s; }
.chip-php { bottom: -16px; right: 12%; animation-delay: -4.5s; }
.chip-docker .icon { color: var(--primary); }
.chip-php .icon { color: var(--secondary); }

@keyframes chip-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* Compromisos */
.commitments {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: clamp(48px, 7vw, 76px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--border);
    overflow: hidden;
}

.commitments li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 24px;
    background: rgba(8, 11, 24, 0.85);
}

.commitments .icon {
    flex: none;
    margin-top: 3px;
    padding: 7px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--gradient-soft);
    border: 1px solid rgba(91, 124, 255, 0.2);
    color: var(--accent);
}

.commitments strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.commitments span {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ----------------------------------------------------------- 5. Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(600px 200px at 100% 0%, rgba(91, 124, 255, 0.08), transparent 60%),
        var(--surface);
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s ease, background-color 0.4s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(91, 124, 255, 0.32);
}

.service-card:hover::before { opacity: 1; }

.service-number {
    position: absolute;
    top: 20px;
    right: 26px;
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border: 1px solid rgba(91, 124, 255, 0.28);
    border-radius: 14px;
    background: var(--gradient-soft);
    color: #b9c6ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: color 0.4s ease, transform 0.4s var(--ease);
}

.service-card:hover .service-icon {
    color: var(--accent);
    transform: translateY(-2px) scale(1.04);
}

.service-card h3 { margin-bottom: 10px; }

.service-card p {
    color: var(--muted);
    font-size: 0.94rem;
}

.service-list {
    display: grid;
    gap: 8px;
    margin: 18px 0 24px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.87rem;
    color: var(--text-soft);
}

.service-list .icon { color: var(--accent); }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 0.87rem;
    font-weight: 600;
    color: #aab9ff;
    transition: color 0.25s ease;
}

.card-link .icon { transition: transform 0.25s var(--ease); }
.card-link:hover { color: #fff; }
.card-link:hover .icon { transform: translateX(4px); }

/* ------------------------------------------------------------- 6. Proceso */
.process-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    counter-reset: step;
}

.process-grid::before {
    content: "";
    position: absolute;
    top: 56px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91, 124, 255, 0.5), rgba(168, 85, 247, 0.5), transparent);
}

.process-step {
    position: relative;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: border-color 0.3s ease, transform 0.35s var(--ease);
}

.process-step:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 124, 255, 0.3);
}

.process-index {
    position: absolute;
    top: 20px;
    right: 22px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.28);
}

.process-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, rgba(91, 124, 255, 0.35), rgba(8, 11, 24, 0.9));
    color: #d5dcff;
    box-shadow: 0 0 0 6px rgba(91, 124, 255, 0.07);
}

.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.87rem; color: var(--muted); }

/* ---------------------------------------------------------- 7. Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(91, 124, 255, 0.3);
}

.project-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(400px 200px at 50% 0%, rgba(91, 124, 255, 0.16), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
    overflow: hidden;
}

.project-visual--screenshot {
    min-height: 0;
    height: 245px;
    padding: 0;
    background: #0b0f1b;
}

.project-visual.project-visual--screenshot::after { display: none; }

.project-carousel-slides {
    position: absolute;
    inset: 0;
}

.project-image-link {
    position: absolute;
    inset: 0;
    cursor: zoom-in;
}

.project-image-link[hidden] { display: none; }

.project-image-link:focus-visible {
    z-index: 3;
    outline: 3px solid #22d3ee;
    outline-offset: -3px;
}

.project-image-link--main {
    width: 100%;
    height: 100%;
}

.project-screenshot {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.project-visual--hr-web {
    height: 300px;
    padding: 0;
}

.project-visual--hr-mobile {
    height: 330px;
    padding: 0;
}

.project-image-link--portrait {
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at center, rgba(91, 124, 255, 0.14), transparent 68%);
}

.project-image-link--portrait .project-screenshot {
    width: auto;
    height: 300px;
    max-width: 100%;
    object-fit: contain;
}

.project-card--hr-mobile {
    grid-column: 1 / -1;
    width: calc(50% - 11px);
    justify-self: center;
}

.project-preview-label {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 50%;
    max-width: calc(100% - 130px);
    overflow: hidden;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(8, 11, 24, 0.82);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    transform: translateX(-50%);
    white-space: nowrap;
}

.project-carousel-control {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(8, 11, 24, 0.82);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.project-carousel-control:hover {
    border-color: rgba(91, 124, 255, 0.8);
    background: rgba(52, 73, 160, 0.92);
}

.project-carousel-control:focus-visible {
    outline: 3px solid #22d3ee;
    outline-offset: 3px;
}

.project-carousel-control--prev { left: 14px; }
.project-carousel-control--next { right: 14px; }

.project-carousel-count {
    position: absolute;
    right: 14px;
    bottom: 12px;
    z-index: 2;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(8, 11, 24, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

.project-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
    mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
    opacity: 0.7;
    pointer-events: none;
}

.project-body { padding: 24px 26px 28px; }

.project-body h3 { margin: 12px 0 8px; font-size: 1.1rem; }
.project-body p { font-size: 0.88rem; color: var(--muted); }

.tag {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.07);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #9beeff;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}

.tags li {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.72rem;
    color: var(--muted);
}

/* Mock: dashboard */
.mock-app {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    max-width: 330px;
    height: 160px;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    background: rgba(6, 9, 20, 0.92);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    font-size: 0;
}

.mock-side {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 46px;
    padding: 14px 10px;
    border-right: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.mock-side span {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.14);
}

.mock-side span:first-child {
    background: var(--gradient);
    box-shadow: 0 0 12px rgba(91, 124, 255, 0.5);
}

.mock-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 14px 12px;
}

.mock-stats { display: flex; gap: 8px; }

.mock-stats span {
    flex: 1;
    height: 24px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.mock-stats span:nth-child(2) { background: rgba(91, 124, 255, 0.16); }

.mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    flex: 1;
    padding: 8px 8px 0;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.02);
}

.mock-chart span {
    flex: 1;
    height: var(--h, 40%);
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #7c96ff, rgba(91, 124, 255, 0.25));
    animation: chart-grow 1.4s var(--ease) both;
}

.mock-chart span:nth-child(2n) {
    background: linear-gradient(180deg, #c084fc, rgba(168, 85, 247, 0.2));
}

@keyframes chart-grow {
    from { height: 0; opacity: 0.2; }
}

.mock-rows { display: grid; gap: 5px; }
.mock-rows span { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.09); }
.mock-rows span:nth-child(2) { width: 78%; }
.mock-rows span:nth-child(3) { width: 55%; }

/* Mock: chat */
.mock-chat {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 290px;
}

.mock-bubble {
    max-width: 84%;
    padding: 9px 12px;
    border-radius: 11px;
    font-size: 0.72rem;
    line-height: 1.45;
    box-shadow: var(--shadow-sm);
}

.mock-bubble--in {
    align-self: flex-start;
    border-bottom-left-radius: 3px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
}

.mock-bubble--out {
    align-self: flex-end;
    border-bottom-right-radius: 3px;
    background: linear-gradient(135deg, #4b68f0, #8b46e8);
    color: #fff;
}

.mock-typing {
    align-self: flex-start;
    display: inline-flex;
    gap: 4px;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    border-bottom-left-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.mock-typing i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--muted);
    animation: typing 1.2s infinite ease-in-out;
}

.mock-typing i:nth-child(2) { animation-delay: 0.15s; }
.mock-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Mock: infraestructura */
.mock-infra {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.mock-node {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(10, 14, 28, 0.95);
    color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.mock-node--main {
    border-color: rgba(91, 124, 255, 0.5);
    background: linear-gradient(160deg, rgba(91, 124, 255, 0.24), rgba(10, 14, 28, 0.95));
    box-shadow: 0 0 30px rgba(91, 124, 255, 0.28);
}

.mock-lines {
    display: flex;
    gap: 30px;
    height: 26px;
    border-top: 1px solid rgba(91, 124, 255, 0.35);
    border-left: 1px solid rgba(91, 124, 255, 0.35);
    border-right: 1px solid rgba(91, 124, 255, 0.35);
    border-radius: 4px 4px 0 0;
    width: 62%;
    position: relative;
}

.mock-lines span {
    flex: 1;
    border-left: 1px dashed rgba(91, 124, 255, 0.35);
}

.mock-lines span:first-child { border-left: 0; }

.mock-node-row { display: flex; gap: 18px; }
.mock-node-row .mock-node { width: 40px; height: 40px; }
.mock-node-row .mock-node:nth-child(2) { border-color: rgba(168, 85, 247, 0.45); color: #e0aaff; }
.mock-node-row .mock-node:nth-child(3) { border-color: rgba(34, 211, 238, 0.4); }

/* -------------------------------------------------------- 8. Tecnologías */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stack-group {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.3s ease, transform 0.35s var(--ease);
}

.stack-group:hover {
    border-color: rgba(91, 124, 255, 0.28);
    transform: translateY(-3px);
}

.stack-group h3 {
    margin-bottom: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.stack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.stack-chips li {
    padding: 6px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.78rem;
    color: var(--text-soft);
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.stack-chips li:hover {
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(34, 211, 238, 0.08);
    color: #c8f6ff;
}

/* --------------------------------------------------------------- 9. FAQ */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.faq-layout .section-head {
    position: sticky;
    top: calc(var(--header-height) + 32px);
    margin-bottom: 0;
}

.faq-layout .section-head .btn { margin-top: 10px; }

.faq-list { border-top: 1px solid var(--border); }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 4px;
    list-style: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.25s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #bfcaff; }

.faq-icon {
    position: relative;
    flex: none;
    width: 22px;
    height: 22px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    transition: transform 0.35s var(--ease), border-color 0.3s ease, background-color 0.3s ease;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--text-soft);
    transform: translate(-50%, -50%);
    transition: transform 0.35s var(--ease), background-color 0.3s ease;
}

.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    border-color: rgba(91, 124, 255, 0.6);
    background: rgba(91, 124, 255, 0.15);
}

.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item[open] .faq-icon::before { background: #c3ceff; }
.faq-item[open] .faq-icon::after { background: #c3ceff; }

.faq-answer {
    padding: 0 4px 22px;
    max-width: 62ch;
    color: var(--muted);
    font-size: 0.93rem;
    animation: faq-open 0.35s var(--ease);
}

@keyframes faq-open {
    from { opacity: 0; transform: translateY(-6px); }
}

/* ---------------------------------------------------------- 10. Contacto */
.section-contact {
    position: relative;
    overflow: hidden;
}

.section-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(700px 380px at 18% 12%, rgba(91, 124, 255, 0.14), transparent 65%),
        radial-gradient(600px 320px at 88% 88%, rgba(168, 85, 247, 0.12), transparent 65%);
    pointer-events: none;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.contact-info h2 { margin: 6px 0 18px; }

.contact-channels {
    display: grid;
    gap: 18px;
    margin-top: 32px;
}

.contact-channels li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.channel-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--accent);
}

.channel-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-channels a,
.channel-text {
    font-size: 0.95rem;
    color: var(--text-soft);
    transition: color 0.25s ease;
}

.contact-channels a:hover { color: var(--accent); }

.contact-card {
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(160deg, rgba(91, 124, 255, 0.08), transparent 45%),
        rgba(9, 12, 24, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
}

.form-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.08);
    font-size: 0.8rem;
    color: #fde68a;
}

.form-notice .icon { margin-top: 2px; color: #fbbf24; }
.form-notice code { background: rgba(0, 0, 0, 0.25); color: #fef3c7; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.field label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-soft);
}

.field label span { color: var(--accent); }
.field .optional { color: var(--muted); font-size: 0.75rem; }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    font-size: 0.92rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: #6b7697; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.24); }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(91, 124, 255, 0.7);
    background: rgba(91, 124, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.16);
}

.field textarea {
    resize: vertical;
    min-height: 128px;
    line-height: 1.6;
}

.select-wrap { position: relative; }

.select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.select-wrap select:invalid { color: #6b7697; }

.select-arrow {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 8px;
    height: 8px;
    border-right: 1.6px solid var(--muted);
    border-bottom: 1.6px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: rgba(251, 113, 133, 0.65);
    background: rgba(251, 113, 133, 0.05);
}

.field-error {
    min-height: 0;
    font-size: 0.76rem;
    color: var(--danger);
    line-height: 1.35;
}

.field-error:empty { display: none; }

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.char-counter {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.contact-form .btn[type="submit"] { margin-top: 4px; }

.contact-form .btn[type="submit"] .icon { transition: transform 0.25s var(--ease), opacity 0.2s ease; }

.contact-form.is-loading .btn[type="submit"] .icon { opacity: 0; }

.spinner {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: spin 0.7s linear infinite;
}

.contact-form.is-loading .spinner { opacity: 1; }
.contact-form.is-loading .btn[type="submit"] { cursor: progress; opacity: 0.85; }

@keyframes spin { to { transform: rotate(360deg); } }

.form-legal {
    font-size: 0.74rem;
    line-height: 1.5;
    color: var(--muted);
    text-align: center;
}

.form-status:empty { display: none; }

.form-status {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.form-status.is-success {
    border: 1px solid rgba(52, 211, 153, 0.35);
    background: rgba(52, 211, 153, 0.09);
    color: #a7f3d0;
}

.form-status.is-error {
    border: 1px solid rgba(251, 113, 133, 0.35);
    background: rgba(251, 113, 133, 0.09);
    color: #fecdd3;
}

/* ------------------------------------------------------------ 11. Footer */
.site-footer {
    position: relative;
    padding: clamp(56px, 7vw, 80px) 0 28px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 40%);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 56px);
}

.footer-brand p {
    max-width: 38ch;
    margin: 18px 0;
    font-size: 0.87rem;
    color: var(--muted);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.footer-badges li {
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.68rem;
    color: var(--muted);
}

.footer-col h3 {
    margin-bottom: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.footer-col ul { display: grid; gap: 10px; }

.footer-col a {
    font-size: 0.86rem;
    color: var(--muted);
    transition: color 0.25s ease;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: clamp(40px, 5vw, 60px);
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--muted);
}

.back-top {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-soft);
    transition: color 0.25s ease;
}

.back-top:hover { color: var(--accent); }
.back-top:hover .icon { transform: translateY(-3px); }
.back-top .icon { transition: transform 0.25s var(--ease); }

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ee06f, var(--whatsapp));
    color: #05250f;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.45);
}

.whatsapp-float .icon { width: 26px; height: 26px; }

/* ------------------------------------------------- 12. Responsive */
@media (max-width: 1024px) {
    :root { --header-height: 70px; }

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

    .hero-visual { max-width: 560px; }

    .terminal { transform: none; }

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

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

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

    .faq-layout { grid-template-columns: 1fr; }
    .faq-layout .section-head { position: static; }

    .contact-layout { grid-template-columns: 1fr; }
    .contact-info { max-width: 640px; }

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

@media (max-width: 900px) {
    .nav-toggle { display: inline-grid; place-items: center; }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 16px 20px 24px;
        border-bottom: 1px solid var(--border);
        background: rgba(6, 9, 19, 0.97);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .site-header.nav-open .nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-link {
        padding: 14px 12px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .nav-link::after { display: none; }
    .nav-link:hover, .nav-link.is-active { background: rgba(91, 124, 255, 0.1); }

    .nav-cta { margin: 12px 0 0; }
    .nav-cta.btn { width: 100%; }

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

.project-lightbox {
    position: fixed;
    width: fit-content;
    max-width: min(94vw, 1500px);
    max-height: 94vh;
    padding: 48px 16px 16px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    background: #080b18;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.project-lightbox::backdrop {
    background: rgba(2, 4, 12, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.project-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(94vw - 32px);
    max-height: calc(94vh - 80px);
    object-fit: contain;
}

.project-lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
}

.project-lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }

.project-lightbox-close:focus-visible {
    outline: 3px solid #22d3ee;
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .container { width: min(100% - 32px, var(--container)); }

    .hero { padding-top: calc(var(--header-height) + 46px); }

    .hero-points { flex-direction: column; gap: 8px; }

    .hero-actions .btn { flex: 1 1 auto; }

    .float-chip { display: none; }

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

    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 26px; }

    .projects-grid { grid-template-columns: 1fr; }
    .project-card--hr-mobile {
        grid-column: auto;
        width: 100%;
    }
    .project-visual { min-height: 190px; }
    .project-visual--screenshot { min-height: 0; height: 220px; }
    .project-visual--hr-web { height: 270px; }
    .project-visual--hr-mobile { height: 330px; }

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

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

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .footer-bottom { justify-content: flex-start; }

    .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }

    .section-head--left .btn { width: 100%; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.35rem; }

    .terminal-body { font-size: 0.72rem; padding: 18px 14px 20px; }
    .term-line { white-space: normal; }
    .term-line::before { content: ""; }

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

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .js .reveal { opacity: 1; transform: none; }
}

/* Impresión */
@media print {
    .site-header, .whatsapp-float, .hero-bg, .float-chip, .header-progress { display: none !important; }
    body { background: #fff; color: #111; }
    .js .reveal { opacity: 1; transform: none; }
}
