/* ==========================================================================
   Variables
   ========================================================================== */
@property --angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

:root {
    --accent: #00e99b;
    --accent-2: #0bceaf;
    --accent-soft: rgba(0, 233, 155, 0.25);
    --violet: #26004b;
    --teal: #008a71;
    --text: #fff;
    --text-soft: #b8c2cc;
    --panel: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.12);
    --radius: 18px;
    --font-mono: "JetBrains Mono", monospace;
    --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    background: #000;
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.55;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--accent);
    color: #000;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.container {
    width: min(1100px, 100% - 40px);
    margin-inline: auto;
}

.icon-sprite {
    display: none;
}

.icon {
    display: inline-block;
    width: 0.875em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
}

.kicker {
    margin-bottom: 0.6rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent), #5ff5ff 60%, #a06bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Fondo fijo con los colores de la marca */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(50vw 50vw at 85% 15%, var(--violet), transparent 70%),
        radial-gradient(45vw 45vw at 10% 60%, rgba(0, 138, 113, 0.35), transparent 70%),
        radial-gradient(50vw 40vw at 80% 100%, rgba(38, 0, 75, 0.8), transparent 70%),
        #000;
}

/* Retícula de puntos sobre el fondo */
.aurora::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(120deg, #000, transparent 45%, #000);
    mask-image: linear-gradient(120deg, #000, transparent 45%, #000);
}

.cursor-glow {
    position: fixed;
    top: -350px;
    left: -350px;
    z-index: -1;
    display: none;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 233, 155, 0.1), transparent 65%);
    pointer-events: none;
    will-change: transform;
}

@media (hover: hover) {
    .cursor-glow {
        display: block;
    }
}

/* Borde de luz que gira */
.glow-border {
    position: relative;
}

.glow-border::after,
.card::after,
.more-work::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(from var(--angle), transparent 60%, var(--accent), #5ff5ff, #a06bff, transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
    animation: spin 5s linear infinite;
}

.card::after,
.more-work::after {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::after,
.more-work:hover::after {
    opacity: 1;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #5ff5ff);
    transform: scaleX(var(--progress, 0));
    transform-origin: left;
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: 100px;
    background: transparent;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    position: relative;
    overflow: hidden;
}

.btn--primary::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease-out);
}

.btn--primary:hover::after {
    left: 120%;
}

.btn--primary {
    background: var(--accent);
    box-shadow: 0 0 30px rgba(0, 233, 155, 0.35);
    color: #000;
}

.btn--primary:hover {
    box-shadow: 0 0 50px rgba(0, 233, 155, 0.65);
}

.btn--outline {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--outline:hover {
    background: var(--accent);
    color: #000;
}

.btn--dark {
    background: #000;
    color: var(--accent);
}

.btn--dark:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.btn--small {
    padding: 6px 16px;
    font-size: 0.875rem;
}

.btn--block {
    width: 100%;
}

/* ==========================================================================
   Barra de navegación
   ========================================================================== */
.navbar {
    position: fixed;
    top: 12px;
    right: 0;
    left: 0;
    z-index: 1030;
    width: min(1100px, 100% - 24px);
    margin-inline: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: top 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.is-scrolled {
    top: 6px;
    border-color: var(--accent-soft);
    background: rgba(0, 0, 0, 0.82);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.navbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 7px 14px;
}

.navbar__brand {
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
}

.navbar__glyph {
    color: var(--accent);
    font-family: var(--font-mono);
}

.navbar__toggler {
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.navbar__toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2300e99b' stroke-linecap='round' stroke-width='2' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e") center / 100% no-repeat;
    vertical-align: middle;
}

.navbar__menu {
    display: none;
    flex-basis: 100%;
    padding-top: 10px;
}

.navbar__menu.is-open {
    display: block;
}

.navbar__menu .btn {
    width: 100%;
    margin-top: 8px;
}

.navbar__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar__link {
    display: block;
    padding: 6px 0;
    color: var(--text-soft);
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.navbar__link:hover,
.navbar__link.active {
    color: var(--accent);
}

.navbar__link.active::before {
    content: "> ";
    font-family: var(--font-mono);
}

/* ==========================================================================
   Portada
   ========================================================================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(100vh, 720px);
    min-height: min(100svh, 720px);
    overflow: hidden;
    padding: 96px 0 56px;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__grid {
    position: absolute;
    right: -50%;
    bottom: 0;
    left: -50%;
    height: 70%;
    background-image:
        linear-gradient(rgba(0, 233, 155, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 233, 155, 0.4) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: linear-gradient(to top, #000 25%, transparent 85%);
    mask-image: linear-gradient(to top, #000 25%, transparent 85%);
    transform: perspective(500px) rotateX(55deg);
    transform-origin: bottom;
    animation: grid-flow 3s linear infinite;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.hero__content > * {
    animation: rise 0.9s var(--ease-out) backwards;
}

.hero__content > :nth-child(2) {
    animation-delay: 0.1s;
}

.hero__content > :nth-child(3) {
    animation-delay: 0.2s;
}

.hero__content > :nth-child(4) {
    animation-delay: 0.3s;
}

.hero__title {
    margin-bottom: 1rem;
    font-size: clamp(2.1rem, 4.4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.hero__text {
    max-width: 500px;
    margin-bottom: 1.5rem;
    color: var(--text-soft);
    font-size: 1.0625rem;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__visual {
    position: relative;
    min-width: 0;
    animation: rise 1.1s 0.25s var(--ease-out) backwards;
}

.chip {
    display: none;
}

.hero__scroll {
    position: absolute;
    bottom: 12px;
    left: 50%;
    z-index: 1;
    display: none;
    width: 20px;
    height: 32px;
    margin-left: -10px;
    border: 1px solid var(--text-soft);
    border-radius: 14px;
}

.hero__scroll span {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--accent);
    animation: scroll-cue 1.6s ease-in-out infinite;
}

/* Ventanas de código y navegador */
.window-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
}

.window-bar__dots {
    display: flex;
    gap: 6px;
}

.window-bar__dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
}

.window-bar__dots i:first-child {
    background: var(--accent);
}

.window-bar__title {
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
}

.code-window {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 80px rgba(0, 233, 155, 0.18), 0 30px 80px rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.code-window__body {
    height: calc(9 * 1.7em + 2rem);
    margin: 0;
    overflow: hidden;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: clamp(0.6875rem, 2.8vw, 0.8125rem);
    line-height: 1.7;
}

.code-window__code {
    font-family: inherit;
}

.code-keyword {
    color: #b98cff;
}

.code-variable {
    color: #fff;
}

.code-function {
    color: #5ff5ff;
}

.code-string {
    color: var(--accent);
}

.code-comment {
    color: #7d8a96;
}

.code-plain {
    color: var(--text-soft);
}

.code-caret {
    display: inline-block;
    width: 0.55em;
    height: 1.1em;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: blink 1s steps(2, start) infinite;
}

/* ==========================================================================
   Tecnologías en movimiento
   ========================================================================== */
.marquee {
    overflow: hidden;
    padding-block: 0.75rem;
    border-block: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.5);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}

.marquee__list {
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    min-width: 100vw;
    margin: 0;
    padding: 0;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    list-style: none;
}

.marquee__list li {
    padding-inline: 1.25rem;
    white-space: nowrap;
}

.marquee__list li::after {
    content: "/";
    margin-left: 2.5rem;
    color: var(--accent);
}

/* ==========================================================================
   Secciones
   ========================================================================== */
.section {
    padding-block: clamp(2.75rem, 5vw, 4.25rem);
    scroll-margin-top: 40px;
}

.section-head {
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.section-head__title {
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

/* ==========================================================================
   Servicios
   ========================================================================== */
.services {
    display: grid;
    gap: 18px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(1.1rem, 2.2vw, 1.75rem);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    transition: border-color 0.3s ease, transform 0.3s var(--ease-out);
}

/* Luz que sigue al cursor */
.card::before,
.more-work::before,
.price-card::before,
.benefit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--x, 50%) var(--y, 0), rgba(0, 233, 155, 0.16), transparent 65%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.card:hover {
    border-color: transparent;
    transform: translateY(-4px);
}

.card:hover::before,
.more-work:hover::before,
.price-card:hover::before,
.benefit:hover::before {
    opacity: 1;
}

/* Mini interfaces de cada servicio */
.art {
    position: relative;
    display: flex;
    justify-content: center;
    height: 230px;
    margin-bottom: 1.35rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        radial-gradient(70% 90% at 50% 0%, rgba(0, 233, 155, 0.14), transparent 70%),
        rgba(0, 0, 0, 0.45);
}

.art i,
.art b,
.art u {
    display: block;
    border-radius: 4px;
}

.mini-window {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(84%, 400px);
    margin-top: 26px;
    padding: 12px;
    border: 1px solid var(--accent-soft);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: rgba(0, 0, 0, 0.6);
}

.mini-nav {
    flex-shrink: 0;
    width: 45%;
    height: 8px;
    background: var(--accent);
}

.mini-hero {
    flex-shrink: 0;
    height: 84px;
    background: linear-gradient(110deg, rgba(0, 233, 155, 0.45), rgba(160, 107, 255, 0.45));
    background-size: 200% 100%;
    animation: shimmer 4s ease-in-out infinite alternate;
}

.mini-cols {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.mini-cols i {
    flex: 1;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
}

.mini-phone {
    width: 124px;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--accent-soft);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: rgba(0, 0, 0, 0.6);
}

.mini-scroll {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 9px;
    animation: page-scroll 7s ease-in-out infinite alternate;
}

.mini-line {
    flex-shrink: 0;
    height: 5px;
    background: rgba(255, 255, 255, 0.22);
}

.mini-line--short {
    width: 60%;
}

.mini-button {
    flex-shrink: 0;
    width: 60%;
    height: 16px;
    border-radius: 8px !important;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(0, 233, 155, 0.6);
}

.art--shop {
    gap: 14px;
    align-items: center;
    padding-inline: 18px;
}

.mini-product {
    flex: 1;
    max-width: 140px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.6);
    animation: float 4s ease-in-out infinite;
}

.mini-product:nth-child(2) {
    border-color: var(--accent-soft);
    animation-delay: -1.3s;
}

.mini-product:nth-child(3) {
    animation-delay: -2.6s;
}

.mini-product i {
    height: 84px;
    margin-bottom: 9px;
    background: linear-gradient(145deg, rgba(0, 233, 155, 0.5), rgba(95, 245, 255, 0.15));
}

.mini-product:nth-child(2) i {
    background: linear-gradient(145deg, rgba(160, 107, 255, 0.55), rgba(0, 233, 155, 0.2));
}

.mini-product b {
    width: 80%;
    height: 6px;
    margin-bottom: 7px;
    background: rgba(255, 255, 255, 0.25);
}

.mini-product u {
    width: 45%;
    height: 6px;
    background: var(--accent);
}

.mini-cart {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: #000;
}

.mini-cart__icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.mini-cart span {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    animation: pulse 2s ease-in-out infinite;
}

.art--chart {
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 100% 46px, 70px 100%;
}

.mini-chart {
    align-self: flex-end;
    width: 100%;
    height: 80%;
}

.mini-chart__line {
    stroke: var(--accent);
    stroke-dasharray: 1;
    stroke-linecap: round;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 6px rgba(0, 233, 155, 0.8));
    animation: draw-line 6s ease-in-out infinite;
}

.mini-chart__area {
    animation: fade-area 6s ease-in-out infinite;
}

.card__title {
    margin-bottom: 0.4rem;
    font-size: 1.0625rem;
}

.card .card__title {
    margin-bottom: 0.5rem;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.card__text {
    margin-bottom: 0.6rem;
    color: var(--text-soft);
    font-size: 0.9375rem;
}

.card__list {
    flex-grow: 1;
    margin: 0.25rem 0 1.25rem;
    font-size: 0.9375rem;
    padding: 0;
    list-style: none;
}

.card__list li {
    position: relative;
    padding: 0.2rem 0 0.2rem 1.25rem;
}

.card__list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-mono);
}

.card__link {
    position: relative;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.card__link span {
    display: inline-block;
    transition: transform 0.2s var(--ease-out);
}

.card__link:hover span {
    transform: translateX(6px);
}

/* ==========================================================================
   Proyectos
   ========================================================================== */
.works {
    display: grid;
    gap: 14px;
}

.works {
    counter-reset: work;
}

.work {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    counter-increment: work;
    transition: border-color 0.3s ease;
}

.work:hover {
    border-color: var(--accent-soft);
}

.work__media {
    position: relative;
    min-width: 0;
    margin-bottom: 8px;
}

/* Vista real del sitio en un celular */
.work__phone {
    position: absolute;
    right: -2px;
    bottom: -8px;
    z-index: 2;
    width: clamp(48px, 15%, 76px);
    border: 2px solid #222;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 233, 155, 0.2);
    pointer-events: none;
}

.work__info {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 0 0.35rem 0.35rem;
}

.work__info .btn {
    margin-top: auto;
}

.work__info::before {
    content: "0" counter(work);
    position: absolute;
    top: 0;
    right: 0.35rem;
    z-index: -1;
    color: transparent;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
}

.js .work.is-visible .browser {
    animation: tilt-in 1.2s var(--ease-out) backwards;
}

.browser {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #000;
    transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease-out;
}

.browser:hover {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(0, 233, 155, 0.25);
}

.browser__screen {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff;
}

/* Al pasar el cursor se recorre la página completa */
.browser__screen img {
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: object-position 1s var(--ease-out);
}

.browser:hover .browser__screen img,
.browser:focus-visible .browser__screen img {
    object-position: bottom;
    transition: object-position 9s cubic-bezier(0.45, 0, 0.55, 1);
}

.browser__hint {
    position: absolute;
    bottom: 8px;
    left: 50%;
    display: none;
    padding: 3px 10px;
    border: 1px solid var(--accent-soft);
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
}

.work:hover .browser__hint {
    opacity: 1;
}

.browser:hover .browser__hint {
    opacity: 0;
}

@media (hover: hover) {
    .browser__hint {
        display: block;
    }
}

/* En pantallas táctiles el recorrido es automático */
@media (hover: none) {
    .work.is-visible .browser__screen img {
        animation: page-pan 14s ease-in-out 1s infinite alternate;
    }
}

.window-bar__status {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-left: auto;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    white-space: nowrap;
}

.window-bar__status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

.work__title {
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
}

.work__text {
    margin-bottom: 0.6rem;
    color: var(--text-soft);
    font-size: 0.8125rem;
}

.work__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0 0 0.85rem;
    padding: 0;
    list-style: none;
}

.work__tags li {
    padding: 0.15rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--panel);
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
}

.more-works__title {
    margin: clamp(2.25rem, 4vw, 3rem) 0 1rem;
    font-size: clamp(1.15rem, 2vw, 1.4rem);
}

/* Carrusel: se mueve solo y también se desliza con el dedo o el mouse */
.more-works {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    cursor: grab;
    scrollbar-width: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.more-works::-webkit-scrollbar {
    display: none;
}

.more-works.is-dragging {
    cursor: grabbing;
}

.more-work {
    position: relative;
    flex: 0 0 min(300px, 76vw);
    overflow: hidden;
    padding: 0.65rem 0.65rem 0.9rem;
    font-size: 0.875rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    color: var(--text-soft);
}

.more-work__shot {
    aspect-ratio: 16 / 10;
    margin-bottom: 0.7rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

/* Grabación del sitio real; no captura el mouse para no estorbar el arrastre */
.more-work__shot video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    pointer-events: none;
}

.more-work__shot--empty {
    display: grid;
    place-items: center;
    background:
        radial-gradient(80% 100% at 20% 0%, rgba(0, 233, 155, 0.3), transparent 70%),
        radial-gradient(80% 100% at 100% 100%, rgba(160, 107, 255, 0.35), transparent 70%),
        #050505;
}

.more-work__shot--empty span {
    color: transparent;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    -webkit-text-stroke: 1px var(--accent);
}

.more-work p {
    margin: 0 0.35rem;
}

.more-work__title {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: baseline;
    margin: 0 0.35rem 0.3rem;
    color: var(--text);
    font-size: 1rem;
}

.more-work__title span {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
}

/* ==========================================================================
   Proceso
   ========================================================================== */
.steps {
    display: grid;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    z-index: 1;
    padding-left: 52px;
    color: var(--text-soft);
    font-size: 0.875rem;
    counter-increment: step;
}

.step::before {
    content: "0" counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #000;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.step.is-active::before {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 28px rgba(0, 233, 155, 0.7);
    color: #000;
}

/* Tramo de línea que une cada paso con el siguiente */
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 36px;
    bottom: -1.5rem;
    left: 17px;
    width: 2px;
    background: linear-gradient(var(--accent), #5ff5ff);
    box-shadow: 0 0 14px rgba(0, 233, 155, 0.7);
    transform-origin: top;
    transition: transform 0.6s ease-in-out;
}

.js .step:not(:last-child):not(.is-linked)::after {
    transform: scaleY(0);
}

/* Secuencia: aparece el paso, avanza la línea y aparece el siguiente */
.js .step {
    transition: opacity 0.45s ease, transform 0.45s var(--ease-out);
}

.js .step:not(.is-active) {
    opacity: 0;
    transform: translateY(14px);
}

.step__title {
    margin-bottom: 0.35rem;
    color: var(--text);
    font-size: 1.0625rem;
}

/* ==========================================================================
   Precios
   ========================================================================== */
.pricing {
    display: grid;
    gap: 14px;
    max-width: 900px;
    margin-inline: auto;
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.55);
}

.price-card--featured {
    border-color: var(--accent);
    background: linear-gradient(145deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 50px rgba(0, 233, 155, 0.25);
    color: #000;
}

.price-card--featured::before {
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.4) 50%, transparent 65%);
    opacity: 1;
    animation: sweep 5s ease-in-out infinite;
}

.price-card__top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.25rem;
}

.price-card__title {
    font-size: 1.15rem;
}

.price-card__offer {
    position: relative;
    margin: 0;
    padding: 0.15rem 0.6rem;
    border-radius: 100px;
    background: #000;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.625rem;
}

.price-card__for {
    margin-bottom: 0.85rem;
    color: var(--text-soft);
    font-size: 0.8125rem;
}

.price-card--featured .price-card__for {
    color: rgba(0, 0, 0, 0.75);
}

.price-card__price {
    margin-bottom: 0.35rem;
    font-size: clamp(2rem, 3.6vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.price-card__price small {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0;
}

.price-card__price .price-card__period {
    display: inline;
    color: var(--text-soft);
}

.price-card__normal {
    position: relative;
    margin: 0;
    font-size: 0.75rem;
}

/* El precio anterior se tacha al aparecer */
.price-card__normal s {
    position: relative;
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
}

.price-card__normal s::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -3px;
    left: -3px;
    height: 2px;
    background: #000;
    transform-origin: left;
}

.is-visible .price-card__normal s::after {
    animation: strike 0.7s 0.5s var(--ease-out) backwards;
}

.price-card__list {
    display: grid;
    flex-grow: 1;
    align-content: start;
    gap: 0.35rem 1rem;
    width: 100%;
    margin: 0.85rem 0 1rem;
    padding: 0.85rem 0 0;
    font-size: 0.8125rem;
    border-top: 1px solid var(--line);
    list-style: none;
}

.price-card--featured .price-card__list {
    border-top-color: rgba(0, 0, 0, 0.2);
}

.price-card__list li {
    position: relative;
    padding-left: 1.3rem;
    line-height: 1.35;
}

.price-card__list li::before {
    content: "✓";
    position: absolute;
    top: 0.05em;
    left: 0;
    display: grid;
    place-items: center;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.55rem;
    font-weight: 700;
}

.price-card--featured .price-card__list li::before {
    background: #000;
    color: var(--accent);
}

.pricing-help {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 14px auto 0;
    padding: 0.85rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
}

.pricing-help > div {
    flex: 1 1 280px;
}

.pricing-help__title {
    margin-bottom: 0.15rem;
    font-size: 1rem;
}

.pricing-help__text {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.8125rem;
}

/* ==========================================================================
   Por qué trabajar conmigo
   ========================================================================== */
.benefits {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    list-style: none;
    counter-reset: benefit;
}

.benefit {
    position: relative;
    padding: 1.1rem;
    background: #050505;
    /* Cada tarjeta trae su línea divisoria, para que no se vea antes de que aparezca */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
    font-size: 0.875rem;
    counter-increment: benefit;
}

.benefit::after {
    content: "0" counter(benefit);
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.625rem;
}

.benefit p {
    margin: 0;
}

.benefit .card__title {
    color: var(--text);
}

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin-inline: auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--accent-soft);
    border-radius: 18px;
    background:
        radial-gradient(60% 80% at 0% 0%, rgba(0, 138, 113, 0.35), transparent 70%),
        radial-gradient(60% 80% at 100% 100%, rgba(38, 0, 75, 0.9), transparent 70%),
        rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 90px rgba(0, 233, 155, 0.12);
}

.contact__title {
    margin-bottom: 0.75rem;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    line-height: 1.08;
}

.contact__text {
    margin-bottom: 1rem;
    color: var(--text-soft);
    font-size: 0.9375rem;
}

.contact__channels {
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    list-style: none;
    overflow-wrap: anywhere;
}

.contact__channels li {
    padding-block: 0.15rem;
}

.contact__channels a:hover {
    color: var(--accent);
}

.field {
    margin-bottom: 0.75rem;
}

.field__label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
}

.form-control {
    display: block;
    width: 100%;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--accent);
    outline: 0;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

select.form-control {
    padding-right: 44px;
    background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3e%3cpath fill='none' stroke='%2300e99b' stroke-width='1.5' d='M1 1l5 5 5-5'/%3e%3c/svg%3e") right 16px center / 12px no-repeat;
    -webkit-appearance: none;
    appearance: none;
}

select.form-control:invalid {
    color: var(--text-soft);
}

select.form-control option {
    background: #000;
    color: #fff;
}

textarea.form-control {
    resize: vertical;
}

/* ==========================================================================
   Pie de página
   ========================================================================== */
.footer {
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
    font-size: 0.875rem;
    background:
        radial-gradient(70% 60% at 50% 100%, rgba(0, 233, 155, 0.12), transparent 70%),
        rgba(0, 0, 0, 0.6);
}

/* Línea de luz superior */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer__columns {
    display: grid;
    gap: 2.25rem;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer__text {
    max-width: 30ch;
    margin: 0 0 0.25rem;
    color: var(--text-soft);
}

.footer__list {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-wrap: anywhere;
}

.footer__list a {
    display: inline-block;
    padding-block: 0.15rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer__list a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer__location {
    padding-block: 0.15rem;
    color: var(--text-soft);
}

.footer__copyright {
    margin: 2.5rem 0 0;
    /* El espacio a la derecha evita el botón de volver arriba */
    padding: 1.25rem 3rem 1.5rem 0;
    border-top: 1px solid var(--line);
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
}

/* ==========================================================================
   Volver arriba
   ========================================================================== */
.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 11;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: var(--accent);
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    color: #000;
}

/* ==========================================================================
   Páginas de proyecto
   ========================================================================== */
.project {
    padding-top: 90px;
}

.project__frame {
    margin-bottom: 3rem;
}

.project__cta {
    padding-bottom: 4rem;
    text-align: center;
}

/* ==========================================================================
   Animaciones
   ========================================================================== */
.js .reveal {
    opacity: 0;
}

.js .reveal.is-visible {
    opacity: 1;
    animation: rise 0.9s var(--ease-out) backwards;
}

.js .benefit.is-visible,
.js .pricing-help.is-visible {
    animation-name: zoom-in;
}

.services .reveal:nth-child(2),
.pricing .reveal:nth-child(2) {
    animation-delay: 0.12s;
}

.services .reveal:nth-child(3) {
    animation-delay: 0.24s;
}

.services .reveal:nth-child(4) {
    animation-delay: 0.36s;
}

@keyframes zoom-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes page-pan {
    to {
        object-position: bottom;
    }
}

@keyframes strike {
    from {
        transform: scaleX(0);
    }
}

@keyframes tilt-in {
    from {
        transform: perspective(1200px) rotateX(16deg) translateY(50px) scale(0.96);
    }
}

@keyframes spin {
    to {
        --angle: 360deg;
    }
}

@keyframes float {
    50% {
        transform: translateY(-8px);
    }
}

@keyframes scroll-cue {
    50% {
        transform: translateY(14px);
        opacity: 0.2;
    }
}

@keyframes shimmer {
    to {
        background-position: 100% 0;
    }
}

@keyframes page-scroll {
    to {
        transform: translateY(-44%);
    }
}

@keyframes pulse {
    50% {
        box-shadow: 0 0 0 6px rgba(0, 233, 155, 0.25);
    }
}

@keyframes draw-line {
    from {
        stroke-dashoffset: 1;
    }

    45%,
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fade-area {
    from,
    20% {
        opacity: 0;
    }

    50%,
    to {
        opacity: 1;
    }
}

@keyframes sweep {
    from {
        transform: translateX(-100%);
    }

    60%,
    to {
        transform: translateX(100%);
    }
}

@keyframes grid-flow {
    to {
        background-position: 0 60px;
    }
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .step,
    .step:not(:last-child)::after {
        transition: none;
    }

    .hero__grid,
    .marquee__track,
    .code-caret,
    .hero__content > *,
    .hero__visual,
    .chip,
    .hero__scroll span,
    .mini-hero,
    .mini-scroll,
    .mini-product,
    .mini-cart span,
    .mini-chart__line,
    .mini-chart__area,
    .glow-border::after,
    .card::after,
    .more-work::after,
    .price-card--featured::before,
    .js .work.is-visible .browser,
    .work.is-visible .browser__screen img,
    .window-bar__status::before {
        animation: none;
    }

    .browser:hover .browser__screen img,
    .browser:focus-visible .browser__screen img {
        object-position: top;
    }

    .price-card--featured::before {
        opacity: 0;
    }

    .is-visible .price-card__normal s::after {
        animation: none;
    }

    .js .reveal.is-visible {
        animation: none;
    }

    .marquee__track {
        width: auto;
    }

    .marquee__list[aria-hidden] {
        display: none;
    }

    .marquee__list {
        flex-shrink: 1;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 768px) {
    .services,
    .pricing,
    .benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .step {
        padding-top: 50px;
        padding-left: 0;
    }

    .step:not(:last-child)::after {
        top: 17px;
        right: -1.5rem;
        bottom: auto;
        left: 36px;
        width: auto;
        height: 2px;
        background: linear-gradient(90deg, var(--accent), #5ff5ff);
        transform-origin: left;
    }

    .js .step:not(:last-child):not(.is-linked)::after {
        transform: scaleX(0);
    }

    .hero__scroll {
        display: block;
    }

    .footer__columns {
        grid-template-columns: 1.6fr 1fr auto;
        gap: 2.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .works {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* En celular las tarjetas se deslizan con el dedo */
@media (max-width: 767.98px) {
    .services,
    .works {
        display: flex;
        gap: 12px;
        margin-inline: -20px;
        padding: 2px 20px 10px;
        overflow-x: auto;
        scroll-padding-inline: 20px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .services::-webkit-scrollbar,
    .works::-webkit-scrollbar {
        display: none;
    }

    .services .card,
    .works .work {
        flex: 0 0 84%;
        scroll-snap-align: start;
    }

    .art {
        height: 190px;
    }
}

@media (min-width: 992px) {
    .navbar__toggler {
        display: none;
    }

    .navbar__inner {
        flex-wrap: nowrap;
    }

    .navbar__menu {
        display: flex;
        flex-basis: auto;
        flex-grow: 1;
        gap: 1rem;
        align-items: center;
        justify-content: space-between;
        padding-top: 0;
    }

    .navbar__menu .btn {
        width: auto;
        margin-top: 0;
    }

    .navbar__list {
        display: flex;
        gap: 1.5rem;
        margin-left: 2rem;
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }

    .hero__visual {
        perspective: 1400px;
    }

    .code-window {
        transform: rotateX(var(--tilt-x, 4deg)) rotateY(var(--tilt-y, -12deg));
        transition: transform 0.25s ease-out;
    }

    .chip {
        position: absolute;
        z-index: 2;
        display: block;
        padding: 5px 11px;
        border: 1px solid var(--accent-soft);
        border-radius: 100px;
        background: rgba(0, 0, 0, 0.85);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 233, 155, 0.15);
        color: var(--accent);
        font-family: var(--font-mono);
        font-size: 0.6875rem;
        white-space: nowrap;
        animation: float 5s ease-in-out infinite;
    }

    .chip--one {
        top: -22px;
        right: 8%;
    }

    .chip--two {
        bottom: -36px;
        left: 4%;
        animation-delay: -1.7s;
    }

    .chip--three {
        right: 4%;
        bottom: -36px;
        animation-delay: -3.4s;
    }

    .works {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .work {
        grid-column: span 2;
    }


    .benefits {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    /* En una sola fila aparecen en orden, de la primera a la última */
    .benefits .reveal:nth-child(2) {
        animation-delay: 0.2s;
    }

    .benefits .reveal:nth-child(3) {
        animation-delay: 0.4s;
    }

    .benefits .reveal:nth-child(4) {
        animation-delay: 0.6s;
    }

    .pricing {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }

    .contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem;
    }

}

@media (min-width: 1200px) {
    .price-card__list--columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
