/* =============================================================
   Dudus T. C. — portfolio
   ============================================================= */
:root {
  --bg:     #08090C;
  --bg-2:   #0E1016;
  --card:   #12151D;
  --ink:    #EDEFF5;
  --ink-2:  #A9AFBF;
  --mute:   #6B7285;
  --line:   rgba(237, 239, 245, .1);
  --line-2: rgba(237, 239, 245, .18);
  --blue:   #4D8DFF;
  --cyan:   #46E0D3;
  --lime:   #C8F169;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 9999; padding: .6rem 1rem; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.grad { background: linear-gradient(95deg, var(--blue), var(--cyan) 55%, var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.hl { position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .06em; height: .18em; background: var(--blue); opacity: .55; z-index: -1; border-radius: 3px; }

/* glow follows the cursor */
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px circle at var(--gx, 70%) var(--gy, 20%), rgba(77, 141, 255, .14), transparent 60%),
    radial-gradient(700px circle at 10% 90%, rgba(70, 224, 211, .07), transparent 60%);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1;
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, border-color .3s, box-shadow .4s;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--blue); color: #fff; box-shadow: 0 14px 36px -12px rgba(77, 141, 255, .7); }
.btn-ghost { border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: .6rem 1rem; background: var(--ink); color: var(--bg); }
.btn-small:hover { background: var(--blue); color: #fff; }
.btn-lg { padding: 1.1rem 1.6rem; font-size: 1.02rem; }
.btn svg.wa { fill: currentColor; stroke: none; width: 19px; height: 19px; }
.btn:hover svg.wa { transform: none; }
.btn-wa { background: #25D366; color: #06210F; }
.btn-wa:hover { background: #3BE07A; box-shadow: 0 14px 36px -12px rgba(37, 211, 102, .6); }
.btn-block { width: 100%; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.nav.is-scrolled { background: rgba(8, 9, 12, .9); border-color: var(--line); }
@supports (backdrop-filter: blur(12px)) { .nav.is-scrolled { background: rgba(8, 9, 12, .65); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.brand i { color: var(--blue); font-style: normal; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--card); border: 1px solid var(--line-2); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; font-size: .93rem; }
.nav-links a:not(.btn) { color: var(--ink-2); display: none; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* hero */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 0; }
.status { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line-2); font-size: .82rem; color: var(--ink-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200, 241, 105, .6); animation: pulse 2.2s infinite; }
.hero-title { font-size: clamp(2.8rem, 8.4vw, 7.4rem); font-weight: 700; margin: 1.6rem 0 2.2rem; letter-spacing: -.045em; line-height: .95; }
.hero-foot { display: grid; gap: 1.8rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero-sub { max-width: 52ch; color: var(--ink-2); font-size: clamp(1rem, 1.3vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.marquee { border-block: 1px solid var(--line); padding: 1.2rem 0; overflow: hidden; }
.marquee-track { display: flex; gap: 2rem; align-items: center; width: max-content; animation: marquee 36s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 2rem); white-space: nowrap; color: var(--ink-2); letter-spacing: -.02em; }
.marquee b { color: var(--blue); font-weight: 400; }

/* sections */
.sec-head { margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.kicker { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.sec-title { font-size: clamp(2.3rem, 5.6vw, 4.4rem); margin-top: .9rem; }
.sec-sub { margin-top: 1rem; color: var(--ink-2); max-width: 50ch; }

/* work */
.work { padding: clamp(4.5rem, 10vw, 7.5rem) 0; }
.cards { display: grid; gap: 1.4rem; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  transition: border-color .4s, transform .7s var(--ease-out), box-shadow .6s var(--ease-out);
}
.card:hover { border-color: var(--line-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin: .7rem .7rem 0; border-radius: 15px; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.tag { font-size: .72rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; }
.tag-real { background: rgba(200, 241, 105, .14); color: var(--lime); }
.tag-demo { background: rgba(77, 141, 255, .16); color: #8DB6FF; }
.card h3 { font-size: 1.7rem; }
.card p { color: var(--ink-2); font-size: .95rem; }
.card .btn { margin-top: auto; }
.card-soon { border-style: dashed; background: transparent; }
.soon-inner { padding: 2rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; height: 100%; justify-content: center; }
.soon-inner h3 { font-size: 1.6rem; color: var(--ink-2); }
.soon-inner ul { display: flex; flex-wrap: wrap; gap: .45rem; }
.soon-inner li { font-size: .82rem; padding: .35rem .7rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }

/* services */
.services { padding: clamp(4.5rem, 10vw, 7.5rem) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.srv-grid { display: grid; gap: 1rem; }
.srv { padding: 1.6rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: transform .6s var(--ease-out), border-color .4s; }
.srv:hover { transform: translateY(-4px); border-color: rgba(77, 141, 255, .45); }
.srv-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(77, 141, 255, .14); margin-bottom: 1.2rem; }
.srv-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.srv h3 { font-size: 1.35rem; margin-bottom: .5rem; letter-spacing: -.02em; }
.srv p { color: var(--ink-2); font-size: .93rem; }
.steps { display: grid; gap: .6rem; margin-top: 2.5rem; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); }
.steps .mono { color: var(--blue); }
.steps b { font-weight: 600; }

/* contact */
.contact { padding: clamp(4.5rem, 10vw, 7.5rem) 0; }
.contact-box {
  position: relative; text-align: center; padding-block: clamp(3rem, 8vw, 6rem);
  border-radius: 28px; border: 1px solid var(--line-2); overflow: hidden;
  background: radial-gradient(80% 120% at 50% 0%, rgba(77, 141, 255, .18), transparent 60%), var(--card);
}
.contact-title { font-size: clamp(2.4rem, 6vw, 4.8rem); margin: 1rem 0 1.2rem; }
.contact-sub { color: var(--ink-2); max-width: 46ch; margin: 0 auto 2rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

.contact-mail { margin-top: 1.2rem; font-family: var(--mono); font-size: .8rem; color: var(--mute); overflow-wrap: anywhere; }
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #06210F; display: grid; place-items: center; box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .6); transition: transform .4s var(--ease-out); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover { transform: scale(1.08); }
.footer { padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--mute); font-size: .85rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer a:hover { color: var(--ink); }

/* effects */
.fx [data-in] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.fx [data-in].is-in { opacity: 1; transform: none; }
.fx .cards [data-in]:nth-child(2), .fx .srv-grid [data-in]:nth-child(2) { transition-delay: .1s; }
.fx .cards [data-in]:nth-child(3), .fx .srv-grid [data-in]:nth-child(3) { transition-delay: .2s; }
.fx .srv-grid [data-in]:nth-child(4) { transition-delay: .3s; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 241, 105, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(200, 241, 105, 0); } }

/* responsive */
@media (min-width: 720px) {
  .nav-links a:not(.btn) { display: inline; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .srv-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .hero-foot { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .hero-actions { justify-content: flex-end; }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .srv-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
}

/* clientes satisfechos */
.clients { padding: clamp(4.5rem, 10vw, 7.5rem) 0; border-top: 1px solid var(--line); }
.tst-grid { display: grid; gap: 1.4rem; }
.tst { display: flex; flex-direction: column; border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: border-color .4s; }
.tst:hover { border-color: var(--line-2); }
.tst-site { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin: .7rem .7rem 0; border-radius: 15px; background: var(--bg-2); }
.tst-site img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out); }
.tst:hover .tst-site img { transform: scale(1.04); }
.tst-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; }
.tst h3 { font-size: 1.7rem; }
.tst-review { margin: 0; border-radius: 16px; background: var(--bg-2); overflow: hidden; }
.tst-review img { width: 100%; max-height: 560px; object-fit: contain; background: #0b141a; }
.tst-empty { min-height: 190px; display: grid; place-content: center; justify-items: center; gap: .35rem; text-align: center; padding: 1.5rem; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--ink-2); }
.tst-empty svg { width: 30px; height: 30px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .3rem; }
.tst-empty span { font-weight: 600; color: var(--ink); }
.tst-empty small { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.tst .btn { margin-top: auto; }
@media (min-width: 720px) { .tst-grid { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tst-site img { transition: none; } }

/* acceso al catálogo (25-10-2026) */
.cat-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.4rem); border-radius: 22px; border: 1px solid rgba(77, 141, 255, .45); background: radial-gradient(90% 140% at 0% 0%, rgba(77, 141, 255, .18), transparent 60%), var(--card); }
.cat-cta h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.cat-cta p { color: var(--ink-2); max-width: 52ch; }
