﻿:root {
  --bg: #0b0c0e;
  --bg-2: #121418;
  --ink: #f2f1ed;
  --muted: #9a9ca3;
  --line: rgba(255,255,255,.12);
  --accent: #00afef;           /* celeste XECOM */
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --pad: clamp(20px, 4vw, 64px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
h1, h2 { font-weight: 500; letter-spacing: -0.03em; line-height: .95; }

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

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 500; border: 1px solid var(--ink); cursor: pointer; transition: background .3s, color .3s; font-family: inherit; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: var(--bg); }
.btn--small { padding: 10px 18px; font-size: 13px; }

/* NAV */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad); mix-blend-mode: normal; background: linear-gradient(to bottom, rgba(11,12,14,.7), transparent); }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav__links a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; letter-spacing: .08em; color: var(--ink); transition: border-color .3s, color .3s; }
.lang:hover { border-color: var(--accent); color: var(--accent); }
.lang .flag { width: 22px; height: 15px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
@media (max-width: 760px) { .nav__links { display: none; } .nav__right { gap: 8px; } .lang span { display: none; } }

/* HERO */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11,12,14,.72) 0%, rgba(11,12,14,.35) 45%, rgba(11,12,14,0) 70%),
  linear-gradient(180deg, rgba(11,12,14,.55) 0%, rgba(11,12,14,.1) 22%, rgba(11,12,14,.15) 50%, rgba(11,12,14,.92) 100%); }
.hero__content { position: relative; padding: 0 var(--pad) clamp(60px, 10vh, 120px); max-width: 1100px; }
.hero__title { font-size: clamp(56px, 10vw, 168px); margin: 18px 0 26px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
/* Entrada del hero en CSS puro: no espera a que cargue el JS (mejora el LCP en celulares) */
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: heroUp 1.2s cubic-bezier(.16,1,.3,1) .1s forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .22s; }
@keyframes heroUp { to { transform: translateY(0); } }
@keyframes heroFade { to { opacity: 1; transform: translateY(0); } }
.hero__lead { max-width: 560px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; color: #d6d5d0; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero__scroll { position: absolute; right: var(--pad); bottom: 40px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__scroll span { width: 1px; height: 56px; background: linear-gradient(var(--ink), transparent); animation: drip 2s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.reveal { opacity: 0; transform: translateY(20px); animation: heroFade .9s ease-out .35s forwards; }
.hero__lead.reveal { opacity: 1; transform: none; animation: none; }   /* visible desde el inicio: es el elemento LCP en celulares */
.hero__ctas.reveal { animation-delay: .5s; }

/* SERVICES SCROLL SEQUENCE */
.services { position: relative; background: var(--bg); }
.services__pin { height: 100svh; display: flex; flex-direction: column; padding: 96px var(--pad) 40px; }
.services__head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.services__counter { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.services__current { color: var(--ink); font-size: 22px; }
.services__grid { flex: 1; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 72px); align-items: center; min-height: 0; padding: 28px 0; }
.services__text { position: relative; height: 100%; display: flex; flex-direction: column; }
.services__slides { position: relative; flex: 1; min-height: 0; }
.services__nav { display: flex; gap: 12px; padding-top: 18px; }
.arrow { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .3s, border-color .3s, color .3s, opacity .3s; }
.arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.arrow--prev:hover:not(:disabled) svg { transform: translateX(-3px); }
.arrow--next:hover:not(:disabled) svg { transform: translateX(3px); }
.arrow:disabled { opacity: .3; cursor: default; }
.service { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.service__title { font-size: clamp(44px, 6.4vw, 108px); }
.service__title span { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.service__title span:last-child { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.service__desc { margin-top: 28px; max-width: 440px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; color: #c9c8c3; }
.service__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.service__tags li { font-size: 12px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.services__media { position: relative; height: 100%; border-radius: 6px; overflow: hidden; background: var(--bg-2); }
.smedia { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.smedia[data-i="0"] { clip-path: inset(0 0 0 0); }
.smedia img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.services__progress { height: 2px; background: var(--line); }
.services__progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
@media (max-width: 860px) {
  .services__grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .services__text { height: 340px; }
  .arrow { width: 46px; height: 46px; }
  .service__desc { margin-top: 14px; }
  .service__tags { display: none; }
}

/* CAMPAIGN */
.campaign { padding: clamp(80px, 14vh, 160px) var(--pad); background: var(--bg); }
.campaign__card { max-width: 980px; margin: 0 auto; text-align: center; padding: clamp(40px, 6vw, 80px); border: 1px solid var(--line); border-radius: 8px; background: radial-gradient(120% 140% at 50% 0%, rgba(0,175,239,.12), transparent 60%), var(--bg-2); }
.campaign__card h2 { font-size: clamp(32px, 4.4vw, 64px); margin: 18px 0 20px; line-height: 1.02; }
.campaign__card > p:not(.eyebrow) { color: #c9c8c3; max-width: 560px; margin: 0 auto; line-height: 1.55; }
.campaign__form { display: flex; gap: 10px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.campaign__form input { min-width: 280px; padding: 16px 22px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; }
.campaign__form input:focus { outline: none; border-color: var(--accent); }
.campaign__ok { display: none; width: 100%; color: var(--accent); font-size: 14px; }
.campaign__form.is-sent .campaign__ok { display: block; }

/* HELIX */
.helix { position: relative; background: var(--bg); }
.helix__pin { position: relative; height: 100svh; overflow: hidden; }
.helix__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.helix__overlay { position: absolute; left: var(--pad); bottom: 56px; pointer-events: none; }
.helix__overlay h2 { font-size: clamp(40px, 6vw, 96px); margin-top: 14px; }
.helix__hint { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* NOTAS */
.notes { padding: clamp(80px, 12vh, 140px) var(--pad); background: var(--bg); }
.notes__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.notes__head h2 { font-size: clamp(36px, 4.6vw, 72px); margin-top: 14px; }
.notes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.note { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg-2); transition: border-color .3s, transform .4s; }
.note:hover { border-color: var(--accent); transform: translateY(-4px); }
.note img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s; }
.note:hover img { transform: scale(1.04); }
.note__cat { margin: 18px 20px 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.note h3 { margin: 10px 20px 0; font-size: 19px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.note p { margin: 10px 20px 22px; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1100px) { .notes__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .notes__grid { grid-template-columns: 1fr; } }

/* FOOTER */
.footer { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: #050607; display: flex; flex-direction: column; justify-content: flex-end; }
.footer__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.footer__content { position: relative; text-align: center; padding: 0 var(--pad) 90px; pointer-events: none; }
.footer__content .btn { pointer-events: auto; margin-top: 30px; }
.footer__content h2 { font-size: clamp(36px, 5vw, 76px); margin-top: 14px; line-height: 1; }
.footer__bottom { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 20px var(--pad); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .hero__title .line > span, .reveal { transform: none; opacity: 1; animation: none; }
}

