/* =========================================================
   Moracca Studio — estilos
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --bg: #070912;
  --bg-2: #0A0F22;
  --surface: #0D1226;
  --surface-2: #121936;
  --border: rgba(160, 170, 255, .12);
  --border-2: rgba(160, 170, 255, .24);
  --text: #F1F3FF;
  --text-soft: #A7AEC9;
  --text-dim: #7E86A8;
  --violet: #7C5CFF;
  --violet-2: #A594FF;
  --cyan: #38BDF8;
  --green: #34D399;
  --grad: linear-gradient(115deg, #7C5CFF 0%, #5B7CFF 50%, #38BDF8 100%);
  --grad-btn: linear-gradient(115deg, #6A4BF0 0%, #4A5FE0 50%, #1C74B8 100%);

  --f-display: "Sora", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;

  --r: 22px;
  --r-sm: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --accent-text: #B4A6FF;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; scrollbar-color: #2A3160 var(--bg); caret-color: var(--violet-2); }
body { margin: 0; font-family: var(--f-body); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); letter-spacing: -.025em; line-height: 1.08; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); }
button { font: inherit; color: inherit; cursor: pointer; }
button, a, [role="button"], .lang__btn { touch-action: manipulation; }
button, .btn, .nav-toggle, .lang { -webkit-user-select: none; user-select: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(124, 92, 255, .45); }

.container { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.section { padding: clamp(5rem, 11vw, 8.5rem) 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .75rem 1.25rem; border-radius: 10px; background: var(--text); color: var(--bg); text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* Luz ambiente */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(1100px 620px at 70% -10%, var(--bg-2), var(--bg) 70%); }
.ambient span { position: absolute; border-radius: 50%; filter: blur(120px); }
.ambient__a { width: 560px; height: 560px; top: -200px; right: -120px; background: var(--violet); opacity: .28; }
.ambient__b { width: 420px; height: 420px; top: 260px; left: -220px; background: var(--cyan); opacity: .12; }

/* ---------- Tipografía ---------- */
.grad { color: var(--accent-text); }
.title { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; margin-bottom: 1.2rem; }
.lead { font-size: 1.125rem; color: var(--text-soft); }
.head { max-width: 700px; margin-bottom: clamp(2.75rem, 5vw, 4rem); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .8rem 1.5rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .975rem; text-decoration: none; white-space: nowrap; transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.btn svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--grad-btn); color: #fff; box-shadow: 0 12px 32px -12px rgba(124, 92, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }

.btn--ghost { color: var(--text); border-color: var(--border-2); background: rgba(255, 255, 255, .03); }

.btn--sm { min-height: 42px; padding: .5rem 1.15rem; font-size: .9rem; }
.btn--lg { min-height: 58px; padding: 1rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* Tarjeta con brillo que sigue al cursor */
.card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r); background: linear-gradient(180deg, rgba(18, 25, 54, .7), rgba(13, 18, 38, .7)); border: 1px solid var(--border); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s var(--ease); background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, .16), transparent 45%); }


/* ---------- Encabezado ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: calc(var(--header-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.header.is-scrolled { background: rgba(7, 9, 18, .8); backdrop-filter: blur(14px); border-color: var(--border); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { display: flex; flex-direction: column; font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; letter-spacing: .14em; line-height: 1; }
.brand__name span { margin-top: .3rem; font-size: .7rem; font-weight: 600; letter-spacing: .5em; color: var(--text-dim); }
.nav { display: flex; align-items: center; gap: 2.25rem; margin-left: auto; order: 1; }
.header__actions { display: flex; align-items: center; gap: .75rem; order: 2; }
.nav__list { display: flex; gap: 2rem; }
.nav__link { position: relative; display: inline-block; padding: .5rem 0; color: var(--text-soft); text-decoration: none; font-size: .94rem; font-weight: 500; transition: color .2s; }
.nav__link.is-current { color: var(--text); }
.nav__link.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); }
.lang { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, .03); }
.lang__btn { min-width: 40px; min-height: 36px; padding: 0 .6rem; border: 0; border-radius: 999px; background: transparent; font-family: var(--f-display); font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--text-dim); transition: background-color .25s var(--ease), color .25s var(--ease); }
.lang__btn:hover { color: var(--text); }
.lang__btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lang__sep { display: none; }
.nav-toggle { display: none; position: relative; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, .03); }
.nav-toggle span { position: absolute; left: 13px; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 250ms var(--ease-out); }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { overflow-x: clip; padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(4rem, 8vw, 6rem); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.75rem; padding: .45rem 1rem .45rem .8rem; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(124, 92, 255, .08); font-size: .875rem; color: var(--text-soft); }
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, .16); }
.hero__title { font-size: clamp(2.6rem, 5.8vw, 4.7rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.03; margin-bottom: 1.5rem; }
.hero__sub { max-width: 540px; font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--text-soft); margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.hero__trust li { position: relative; padding-left: 1.5rem; font-size: .9rem; color: var(--text-soft); }
.hero__trust li::before { content: ""; position: absolute; left: 0; top: .3em; width: 15px; height: 15px; border-radius: 50%; background: rgba(52, 211, 153, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334D399' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* Escena 3D */
.scene { position: relative; height: 520px; perspective: 1400px; }
.scene__ring { position: absolute; left: 50%; top: 50%; width: 460px; height: 460px; translate: -50% -50%; border-radius: 50%; border: 1px solid var(--border-2); box-shadow: inset 0 0 80px rgba(124, 92, 255, .12); animation: spin 40s linear infinite; }
.scene__ring::before, .scene__ring::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); top: -6px; left: 50%; }
.scene__ring::after { top: auto; bottom: 40px; left: 8%; background: var(--violet-2); box-shadow: 0 0 18px var(--violet); }
.scene__orb { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(165, 148, 255, .55), rgba(56, 189, 248, .18) 45%, transparent 70%); filter: blur(10px); }
.stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 14deg)) rotateY(var(--ry, -24deg)); transition: transform .6s var(--ease); }
.layer { position: absolute; left: 50%; top: 50%; width: 340px; height: 230px; margin: -115px 0 0 -170px; border-radius: 16px; border: 1px solid var(--border-2); background: linear-gradient(160deg, rgba(22, 30, 64, .95), rgba(10, 14, 32, .95)); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); overflow: hidden; }
.layer--back { transform: translate3d(70px, -90px, -140px); opacity: .55; }
.layer--mid { transform: translate3d(35px, -45px, -60px); opacity: .8; }
.layer--front { transform: translate3d(0, 0, 40px); border-color: rgba(124, 92, 255, .5); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95), 0 24px 50px -20px rgba(124, 92, 255, .5); animation: hover 6s ease-in-out infinite; }
.ui-bar { display: flex; align-items: center; gap: 5px; padding: .6rem .8rem; border-bottom: 1px solid var(--border); }
.ui-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.ui-bar em { margin-left: .6rem; font-style: normal; font-size: .65rem; color: var(--text-dim); letter-spacing: .04em; }
.ui-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; padding: .9rem; }
.ui-grid span { height: 70px; border-radius: 10px; background: rgba(160, 170, 255, .08); }
.ui-hero { display: grid; gap: .6rem; padding: 1.2rem; }
.ui-line { display: block; height: 9px; border-radius: 6px; background: rgba(160, 170, 255, .14); width: 80%; }
.ui-line--lg { height: 16px; width: 70%; background: rgba(160, 170, 255, .22); }
.ui-line--sm { width: 55%; }
.ui-btn { width: 90px; height: 24px; border-radius: 999px; background: rgba(124, 92, 255, .4); margin-top: .4rem; }
.ui-front { display: grid; gap: .55rem; padding: 1rem 1.1rem; }
.ui-chip { justify-self: start; padding: .15rem .55rem; border-radius: 999px; font-size: .62rem; color: var(--cyan); border: 1px solid rgba(56, 189, 248, .35); background: rgba(56, 189, 248, .08); }
.ui-title { display: block; height: 18px; width: 82%; border-radius: 6px; background: var(--grad); opacity: .85; }
.ui-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-top: .35rem; }
.ui-cards span { height: 52px; border-radius: 9px; background: rgba(160, 170, 255, .1); border: 1px solid var(--border); }
.ui-cards span:first-child { background: rgba(124, 92, 255, .22); border-color: rgba(124, 92, 255, .4); }
.tag-float { position: absolute; display: flex; align-items: center; gap: .55rem; padding: .55rem .9rem; border-radius: 12px; border: 1px solid var(--border-2); background: rgba(13, 18, 38, .92); font-size: .8rem; font-weight: 500; white-space: nowrap; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); }
.tag-float--a { left: 4%; bottom: 22%; transform: translateZ(90px); animation: hover 7s ease-in-out infinite; }
.tag-float--b { right: 2%; top: 18%; transform: translateZ(120px); animation: hover 7s ease-in-out -3.5s infinite; }
.tag-float__ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(124, 92, 255, .22); color: var(--violet-2); font-size: .8rem; }
.tag-float__ic--c { background: rgba(56, 189, 248, .18); color: var(--cyan); }
.tag-float__ic svg { width: 15px; height: 15px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hover { 50% { translate: 0 -10px; } }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.service { padding: 2rem 1.6rem 2.1rem; transition: transform 300ms var(--ease-out), border-color 300ms ease; }
.service__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1.6rem; border-radius: 16px; color: #fff; background: linear-gradient(140deg, rgba(124, 92, 255, .4), rgba(56, 189, 248, .18)); border: 1px solid rgba(124, 92, 255, .45); box-shadow: 0 10px 30px -12px rgba(124, 92, 255, .7); transition: transform 300ms var(--ease-out); }
.service__icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .7rem; }
.service { display: flex; flex-direction: column; }
.service p { margin: 0 0 1.4rem; color: var(--text-soft); font-size: .95rem; flex: 1; }
.service__link { align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-size: .9rem; font-weight: 600; color: var(--accent-text); text-decoration: none; transition: color 200ms ease; }
.service__link svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }

/* ---------- Proyectos ---------- */
.projects { display: grid; gap: clamp(3.5rem, 7vw, 6rem); }
.project { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.project--alt .project__media { order: 2; }
.project__media { display: block; text-decoration: none; border-radius: var(--r); }
.browser { border-radius: var(--r); border: 1px solid var(--border-2); background: var(--surface); overflow: hidden; box-shadow: 0 40px 90px -45px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .02) inset; transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out), border-color 300ms ease; }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: .75rem 1rem; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.browser__bar span { margin-left: .75rem; padding: .2rem .8rem; border-radius: 999px; font-size: .72rem; color: var(--text-dim); background: rgba(255, 255, 255, .04); }
.browser__view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.shot { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 600ms var(--ease-out); }
.shot.is-missing { display: none; }


/* Vistas previas hechas con código (se muestran si no hay captura) */
.preview { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 6% 7%; transition: transform 600ms var(--ease-out); }
.pv-nav { position: absolute; top: 5%; left: 7%; right: 7%; display: flex; align-items: center; gap: 4%; }
.pv-logo { width: 13%; height: 12px; border-radius: 3px; }
.pv-links { flex: 1; height: 6px; max-width: 34%; margin-left: auto; border-radius: 4px; background: rgba(255, 255, 255, .25); }
.pv-cta { width: 14%; height: 16px; border-radius: 3px; }
.pv-kicker { margin: 0 0 3%; font-size: clamp(.5rem, 1vw, .7rem); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pv-title { margin: 0 0 5%; font-size: clamp(1.1rem, 2.6vw, 2.1rem); line-height: 1.02; }
.pv-btn { display: block; width: 28%; height: 20px; border-radius: 4px; }

.preview--build { background: linear-gradient(180deg, rgba(14, 14, 14, .55), rgba(14, 14, 14, .9)), #1d1d1d; }
.pv-logo--orange, .pv-cta--orange, .pv-btn--orange { background: #F26B1D; }
.pv-kicker--orange { color: #F26B1D; }
.pv-title--build { max-width: 82%; font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; color: #fff; }
.pv-title--build b { color: #F26B1D; font-weight: 800; }

.preview--coffee { background: linear-gradient(100deg, rgba(23, 17, 13, .88), rgba(23, 17, 13, .35)), #3A2A20; }
.pv-logo--cream { background: #EADFCF; }
.pv-cta--cream { background: #F7F1E8; border-radius: 999px; }
.pv-btn--brown { background: #F7F1E8; border-radius: 999px; }
.pv-kicker--sand { color: #D8C6AC; }
.pv-title--coffee { font-family: Georgia, "Times New Roman", serif; font-weight: 600; color: #F7F1E8; font-size: clamp(1.4rem, 3.4vw, 2.8rem); letter-spacing: -.01em; }
.pv-title--coffee i { color: #D8C6AC; font-weight: 500; }

.preview--ai { background: radial-gradient(60% 70% at 85% 10%, rgba(139, 92, 246, .35), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(34, 211, 238, .18), transparent 60%), #05060B; }
.pv-logo--grad, .pv-cta--grad, .pv-btn--grad { background: linear-gradient(110deg, #8B5CF6, #22D3EE); }
.pv-cta--grad, .pv-btn--grad { border-radius: 6px; }
.pv-ai { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6%; align-items: center; }
.pv-title--ai { font-family: var(--f-display); font-weight: 700; color: #EEF1FF; font-size: clamp(1rem, 2.2vw, 1.75rem); }
.pv-title--ai b { background: linear-gradient(110deg, #8B5CF6, #22D3EE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pv-console { display: grid; gap: 8px; padding: 9%; border-radius: 12px; border: 1px solid rgba(148, 163, 255, .28); background: rgba(14, 20, 48, .9); box-shadow: 0 0 40px -10px rgba(139, 92, 246, .6); }
.pv-console span { height: 12px; border-radius: 5px; background: rgba(148, 163, 255, .14); }
.pv-console span:nth-child(2) { width: 75%; background: rgba(34, 211, 238, .3); }
.pv-console .pv-graph { height: 46px; background: linear-gradient(180deg, rgba(139, 92, 246, .45), transparent); clip-path: polygon(0 80%, 20% 65%, 40% 70%, 60% 35%, 80% 42%, 100% 10%, 100% 100%, 0 100%); }

.project__top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.badge { padding: .3rem .75rem; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(56, 189, 248, .3); background: rgba(56, 189, 248, .08); }
.project__cat { margin: 0 0 .5rem; font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.project__name { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
.project__desc { color: var(--text-soft); font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.5rem 0 2rem; }
.chips li { padding: .3rem .8rem; border-radius: 999px; font-size: .8rem; color: var(--text-soft); border: 1px solid var(--border); background: rgba(255, 255, 255, .02); }

.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-top: clamp(3.5rem, 7vw, 5.5rem); padding: 1.75rem 2rem; border-radius: var(--r); border: 1px solid rgba(124, 92, 255, .35); background: linear-gradient(120deg, rgba(124, 92, 255, .14), rgba(13, 18, 38, .6)); }
.inline-cta p { margin: 0; max-width: 620px; color: var(--text-soft); font-size: 1.05rem; }
.inline-cta strong { display: block; color: var(--text); font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; margin-bottom: .2rem; }

/* ---------- Sobre el estudio ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about__text { color: var(--text-soft); }
.about__side { display: grid; gap: 1rem; }
.founder { display: flex; align-items: center; gap: 1.1rem; padding: 1.4rem 1.5rem; border-color: rgba(124, 92, 255, .35); background: linear-gradient(130deg, rgba(124, 92, 255, .16), rgba(13, 18, 38, .75) 60%); }
.founder__avatar { display: grid; place-items: center; flex: none; width: 62px; height: 62px; border-radius: 18px; font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; color: #fff; background: var(--grad-btn); box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .8); }
.founder__name { margin: 0; font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; }
.founder__role { margin: 0; font-size: .9rem; color: var(--text-soft); }
.values { display: grid; gap: 1rem; }
.value { display: flex; gap: 1rem; padding: 1.25rem 1.5rem; align-items: flex-start; }
.value svg { flex: none; width: 24px; height: 24px; margin-top: .15rem; color: var(--cyan); }
.value h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .2rem; }
.value p { margin: 0; color: var(--text-soft); font-size: .93rem; }

/* ---------- Proceso ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.process::before { content: ""; position: absolute; top: 31px; left: 31px; right: calc((100% - 3.3rem) / 4 - 31px); height: 2px; background: var(--border); }
.process::after { content: ""; position: absolute; top: 31px; left: 31px; height: 2px; width: calc((100% - (100% - 3.3rem) / 4) * var(--progress, 0)); background: var(--grad); box-shadow: 0 0 14px rgba(124, 92, 255, .7); }
.stage { position: relative; z-index: 1; padding-right: 1rem; }
.stage__num { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 1.5rem; border-radius: 18px; font-family: var(--f-display); font-weight: 600; background: var(--surface); border: 1px solid var(--border-2); box-shadow: 0 0 0 8px var(--bg); transition: border-color .5s var(--ease), box-shadow .5s var(--ease); }
.stage.is-active .stage__num { border-color: rgba(124, 92, 255, .7); box-shadow: 0 0 0 8px var(--bg), 0 12px 30px -8px rgba(124, 92, 255, .8); }
.stage h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .6rem; }
.stage p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* ---------- Llamado a la acción ---------- */
.cta-band { padding: 0 0 clamp(3rem, 7vw, 5rem); }
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(3.5rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem); border-radius: 28px; border: 1px solid rgba(124, 92, 255, .4); background: linear-gradient(140deg, rgba(124, 92, 255, .22), rgba(13, 18, 38, .9) 50%, rgba(56, 189, 248, .14)); }
.cta__glow { position: absolute; z-index: -1; left: 50%; top: -60%; width: 70%; height: 120%; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 92, 255, .45), transparent); filter: blur(20px); }
.cta__title { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; max-width: 760px; margin: 0 auto 1.1rem; }
.cta__text { max-width: 520px; margin: 0 auto 2.25rem; font-size: 1.125rem; color: var(--text-soft); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .85rem; }
.cta__note { margin: 1.25rem 0 0; font-size: .9rem; color: var(--text-soft); }
.btn .wa-ic { color: var(--green); }
.btn:hover .wa-ic { transform: none; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.next-steps { display: grid; gap: .9rem; margin: 2rem 0 0; counter-reset: s; }
.next-steps li { display: flex; align-items: center; gap: .9rem; }
.next-steps span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; font-family: var(--f-display); font-size: .85rem; font-weight: 600; color: var(--text); background: rgba(124, 92, 255, .16); border: 1px solid rgba(124, 92, 255, .35); }
.next-steps p { margin: 0; color: var(--text-soft); }
.channels { display: grid; gap: .75rem; margin-top: 2rem; }
.channel { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: var(--r-sm); border: 1px solid var(--border); background: rgba(255, 255, 255, .02); color: var(--text); text-decoration: none; transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out); }
.channel:active { transform: scale(.98); }
.channel__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; color: var(--violet-2); background: rgba(124, 92, 255, .14); }
.channel__icon svg { width: 22px; height: 22px; }
.channel__icon--wa { color: var(--green); background: rgba(52, 211, 153, .12); }
.channel__label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.channel__value { display: block; font-weight: 500; word-break: break-word; }
.channel.is-pending { cursor: default; border-style: dashed; }
.channel.is-pending:active { transform: none; }
.channel.is-pending .channel__value { color: var(--text-dim); font-size: .9rem; }

.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; }
.field label { font-size: .875rem; font-weight: 500; }
.optional { color: var(--text-dim); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .8rem 1rem; font: inherit; font-size: 1rem; color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--border-2); border-radius: 12px; transition: border-color 200ms ease, box-shadow 200ms var(--ease-out); }
.field input::placeholder, .field textarea::placeholder { color: #8A92B4; }
.field select { appearance: none; padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A7AEC9' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; }
.field select option { background: var(--surface); color: var(--text); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(124, 92, 255, .2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #F87171; }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-color: rgba(52, 211, 153, .5); }
.field__error { min-height: 1.1em; font-size: .8125rem; color: #FCA5A5; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.form-note { margin: .9rem 0 0; text-align: center; font-size: .82rem; color: var(--text-dim); }
.form-status { min-height: 1.4em; margin: .9rem 0 0; text-align: center; font-size: .875rem; color: var(--text-soft); }
.form-status.is-error { color: #FCA5A5; }
.form-success { text-align: center; padding: 2.5rem 1rem; }
.form-success__icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 1.25rem; border-radius: 50%; color: #fff; background: var(--grad-btn); box-shadow: 0 0 50px -6px rgba(124, 92, 255, .8); }
.form-success__icon svg { width: 32px; height: 32px; stroke-width: 2.5; }
.form-success h3 { font-size: 1.7rem; margin-bottom: .6rem; }
.form-success p { color: var(--text-soft); margin-bottom: 1.75rem; }

.wa-float { position: fixed; right: calc(1.25rem + env(safe-area-inset-right, 0px)); bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: #1F9D55; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(16px) scale(.92); pointer-events: none; transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), background-color 200ms ease; }
.wa-float.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.wa-float.is-shown:active { transform: scale(.94); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float[hidden] { display: none; }

/* ---------- Pie ---------- */
.footer { padding: 3rem 0; border-top: 1px solid var(--border); background: rgba(7, 9, 18, .85); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.footer__nav a { color: var(--text-soft); text-decoration: none; font-size: .92rem; padding: .25rem 0; }

.footer__copy { width: 100%; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-dim); }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Entrada del hero: el único momento coreografiado de la página */
.rise { animation: rise 900ms var(--ease-out) both; }
.hero__sub.rise { animation-delay: 70ms; }
.hero__actions.rise { animation-delay: 130ms; }
.hero__trust.rise { animation-delay: 200ms; }
.scene.rise { animation: rise-scene 1200ms var(--ease-out) 120ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes rise-scene { from { opacity: 0; transform: scale(.94); filter: blur(10px); } }

/* Hover solo con mouse: en pantallas táctiles el hover queda pegado */
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(3px); }
  .btn--primary:hover { color: #fff; box-shadow: 0 18px 40px -12px rgba(91, 124, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .25); filter: brightness(1.08); }
  .btn--ghost:hover { color: var(--text); border-color: var(--violet-2); background: rgba(124, 92, 255, .1); }
  .card:hover::before { opacity: 1; }
  .nav__link:hover { color: var(--text); }
  .service:hover { transform: translateY(-4px); border-color: var(--border-2); }
  .service:hover .service__icon { transform: rotate(-6deg) scale(1.05); }
  .service__link:hover { color: var(--text); }
  .service__link:hover svg { transform: translateX(3px); }
  .project__media:hover .browser { transform: translateY(-6px); border-color: rgba(124, 92, 255, .55); box-shadow: 0 50px 100px -45px rgba(0, 0, 0, .95), 0 30px 70px -30px rgba(124, 92, 255, .45); }
  .project__media:hover .shot, .project__media:hover .preview { transform: scale(1.03); }
  .channel:hover { color: var(--text); border-color: var(--border-2); background: rgba(124, 92, 255, .08); }
  .channel.is-pending:hover { background: rgba(255, 255, 255, .02); border-color: var(--border); }
  .wa-float:hover { background: #18834A; color: #fff; }
  .footer__nav a:hover { color: var(--text); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene { height: 460px; }
  .layer { width: 300px; height: 205px; margin: -102px 0 0 -150px; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .header { background: rgba(7, 9, 18, .88); backdrop-filter: blur(14px); border-color: var(--border); }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 1.25rem; padding: 1.25rem 1.5rem 2rem; background: rgba(7, 9, 18, .98); border-bottom: 1px solid var(--border); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 1rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
  .nav__link.is-current::after { display: none; }
  .nav { margin-left: 0; }
  .header__actions { margin-left: auto; }
  .nav__cta { min-height: 50px; margin-top: .5rem; }

  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .scene { height: 400px; max-width: 520px; width: 100%; margin-inline: auto; margin-top: 2rem; }
  .scene__ring { width: 360px; height: 360px; }

  .project, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .project--alt .project__media { order: 0; }
  .process { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .process::before, .process::after { left: 30px; right: auto; top: 31px; bottom: 31px; width: 2px; height: auto; }
  .process::after { bottom: auto; height: calc((100% - 62px) * var(--progress, 0)); }
  .stage { display: grid; grid-template-columns: 62px minmax(0, 1fr); column-gap: 1.25rem; padding: 0; }
  .stage__num { grid-row: span 2; margin: 0; }
}

@media (max-width: 600px) {
  .container { width: min(1200px, 100% - 2.25rem); }
  .hero__title { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .hero__actions .btn { flex: 1 1 100%; white-space: normal; }
  .services, .form-row { grid-template-columns: minmax(0, 1fr); }
  .scene { height: 320px; margin-top: 2.5rem; }
  .scene__ring { width: 280px; height: 280px; }
  .scene__orb { width: 220px; height: 220px; }
  .layer { width: 228px; height: 158px; margin: -79px 0 0 -128px; }
  .layer--back { transform: translate3d(32px, -46px, -110px); }
  .layer--mid { transform: translate3d(16px, -23px, -45px); }
  .ui-grid span { height: 46px; }
  .ui-cards span { height: 34px; }
  .tag-float { font-size: .72rem; padding: .45rem .7rem; }
  .tag-float--a { left: 4%; bottom: 8%; }
  .tag-float--b { right: 4%; top: 6%; }
  .pv-btn { height: 14px; }
  .pv-cta { height: 12px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .inline-cta { padding: 1.5rem; }
  .inline-cta .btn, .cta__actions .btn { width: 100%; white-space: normal; }
  .hero__trust { justify-content: center; }
  .wa-float { right: 1rem; bottom: 1rem; width: 54px; height: 54px; }
  .footer__nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .rise, .scene.rise { animation: none; }
}

@media (max-width: 920px) { .hero__trust { justify-content: center; } }
@media (max-width: 360px) {
  .brand__name { font-size: .92rem; letter-spacing: .1em; }
  .brand__mark { width: 34px; height: 34px; }
  .lang__btn { min-width: 34px; padding: 0 .4rem; }
  .header__inner { gap: .75rem; }
}
