/* Xcedentes — estilos compartidos
   Outlet: colores del logo (rojo + azul marino). Apps: estilo neón del cartel. */
:root {
  --red: #F0452B;
  --red-dark: #C9311B;
  --navy: #142A5C;
  --navy-ink: #0D1B3D;
  --paper: #FFF8F4;
  --white: #FFFFFF;

  --night: #0B0420;
  --violet: #8C3CFF;
  --pink: #FF3D9A;
  --orange: #FF7A2F;
  --sun: #FFD23F;
  --cyan: #7CF3FF;
  --blue: #2F6BFF;
  --lilac: #D3CCF5;

  --f-outlet: "Poppins", "Segoe UI", system-ui, sans-serif;
  --f-apps: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font-family: var(--f-body); font-size: 17px; line-height: 1.55; color: var(--navy-ink); background: var(--paper); }
body > main { flex: 1 0 auto; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 244, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(20, 42, 92, 0.1); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.logo img { height: 64px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; font-size: 16px; }
.nav a { text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--red); }

.dark .site-header { background: rgba(11, 4, 32, 0.8); border-bottom-color: rgba(255, 255, 255, 0.12); color: var(--white); }
.dark .nav a:hover { border-color: var(--pink); }
.brand-apps { font-family: var(--f-apps); font-weight: 800; font-size: 26px; letter-spacing: -0.5px; text-decoration: none; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 10px 24px rgba(240, 69, 43, .35); }
.btn-red:hover { background: var(--red-dark); }
.btn-neon { background: linear-gradient(110deg, #E0177A, #FF4D2E 60%, #FF8A00); color: var(--white); box-shadow: 0 12px 30px rgba(255, 61, 154, .45); }
.btn-glass { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: var(--white); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); }

/* ---------- Portada dividida ---------- */
.split { flex: 1 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 620px; }
.half { position: relative; overflow: hidden; display: flex; align-items: center; padding: 72px clamp(20px, 6vw, 110px); }
.half-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 580px; }
.half-outlet { justify-content: flex-end; }
.half-apps { justify-content: flex-start; }

.half-outlet { background: var(--paper); }
.half-outlet::before { content: ""; position: absolute; left: -10%; bottom: 12%; width: 140%; height: 130px; background: var(--red); transform: rotate(-8deg); opacity: .09; }
.half-outlet::after { content: "X"; position: absolute; left: -4%; top: 50%; transform: translateY(-52%) rotate(-6deg); font-family: var(--f-outlet); font-weight: 800; font-size: clamp(320px, 38vw, 760px); line-height: 1; color: var(--red); opacity: .07; pointer-events: none; }
.tag-slant { align-self: flex-start; display: inline-block; background: var(--red); color: var(--white); font-family: var(--f-outlet); font-weight: 800; font-size: 18px; letter-spacing: 1px; padding: 6px 18px; transform: skewX(-12deg) rotate(-3deg); }
.tag-slant span { display: inline-block; transform: skewX(12deg); }
.half-outlet h1, .half-outlet h2 { font-family: var(--f-outlet); font-weight: 800; font-size: clamp(38px, 5vw, 62px); line-height: 1.02; letter-spacing: -1.5px; color: var(--navy); }
.half-outlet h1 em, .half-outlet h2 em { font-style: normal; color: var(--red); }
.half-outlet p { font-size: 19px; color: #3B4A6E; }

.half-apps { background: var(--night); color: var(--white); }
.neon-bg { background-color: var(--night); background-image:
  radial-gradient(circle at 85% 15%, rgba(255,46,147,.7) 0, rgba(255,46,147,0) 40%),
  radial-gradient(circle at 10% 40%, rgba(47,107,255,.65) 0, rgba(47,107,255,0) 42%),
  radial-gradient(circle at 90% 75%, rgba(0,229,255,.4) 0, rgba(0,229,255,0) 35%),
  radial-gradient(circle at 25% 100%, rgba(255,138,0,.5) 0, rgba(255,138,0,0) 40%),
  radial-gradient(circle at 55% 50%, rgba(140,60,255,.45) 0, rgba(140,60,255,0) 48%); }
.dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.13) 1.2px, transparent 1.2px); background-size: 28px 28px; pointer-events: none; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; font-family: var(--f-mono); font-weight: 700; font-size: 14px; letter-spacing: 2px; }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #3DFFB0; box-shadow: 0 0 10px #3DFFB0; }
.half-apps h2, .apps-hero h1 { font-family: var(--f-apps); font-weight: 800; font-size: clamp(40px, 5.2vw, 66px); line-height: .98; letter-spacing: -2px; }
.half-apps p { font-size: 19px; color: #E4DEFF; }
.grad { background: linear-gradient(95deg, var(--pink) 0%, var(--orange) 45%, var(--sun) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glass { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 50px rgba(5,0,30,.3), inset 0 1px 0 rgba(255,255,255,.16); }

.soon { display: inline-block; margin-left: 4px; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red); }

/* ---------- Contacto ---------- */
.contact { background: var(--navy); color: var(--white); padding-block: 64px; }
.contact .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.contact h2 { font-family: var(--f-outlet); font-weight: 800; font-size: clamp(28px, 3.5vw, 40px); line-height: 1.1; }
.contact-list { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-item { display: flex; flex-direction: column; gap: 2px; padding: 14px 22px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); text-decoration: none; min-width: 0; }
.contact-item small { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #AFC0E8; font-weight: 600; }
.contact-item strong { font-size: 19px; overflow-wrap: anywhere; }
a.contact-item:hover { background: rgba(255,255,255,.16); }

.site-footer { background: var(--navy-ink); color: #AFC0E8; font-size: 14px; padding-block: 26px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: #fff; }
.dark .site-footer { background: #06021A; }

/* ---------- Página Apps ---------- */
.dark { background: var(--night); color: var(--white); }
.apps-hero { position: relative; overflow: hidden; padding-block: 96px 80px; }
.apps-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.apps-hero h1 { font-size: clamp(48px, 7vw, 104px); letter-spacing: -3px; }
.apps-hero .lead { font-size: 21px; color: #E4DEFF; max-width: 560px; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.mock { position: relative; height: 380px; }
.mock-window { position: absolute; right: 0; top: 10px; width: min(100%, 400px); border-radius: 22px; overflow: hidden; transform: rotate(4deg); }
.mock-bar { display: flex; gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.18); }
.mock-bar span { width: 12px; height: 12px; border-radius: 50%; }
.mock-code { margin: 0; padding: 18px 22px; font-family: var(--f-mono); font-size: 16px; line-height: 1.7; color: #E6E2FF; white-space: pre; overflow-x: auto; }
.k { color: #FF8CC6; } .t { color: #3DFFB0; } .s { color: var(--sun); }
.mock-chart { position: absolute; left: 10%; bottom: 0; width: 150px; height: 170px; border-radius: 18px; transform: rotate(-7deg); padding: 16px; display: flex; align-items: flex-end; gap: 10px; }
.mock-chart i { flex: 1; border-radius: 6px; }
.mock-phone { position: absolute; right: 6%; bottom: -10px; width: 120px; height: 170px; border-radius: 24px; padding: 7px; background: rgba(255,255,255,.92); transform: rotate(10deg); box-shadow: 0 20px 50px rgba(5,0,30,.5); }
.mock-phone div { height: 100%; border-radius: 18px; background: linear-gradient(160deg, var(--blue), var(--violet) 55%, var(--pink)); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px; }
.mock-phone b { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.8); }
.mock-phone b:last-child { height: 22px; border-radius: 8px; background: var(--sun); margin-top: 6px; }

.section { position: relative; padding-block: 88px; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 720px; }
.eyebrow { font-family: var(--f-mono); font-weight: 700; font-size: 14px; letter-spacing: 2px; color: var(--cyan); text-transform: uppercase; }
.dark h2 { font-family: var(--f-apps); font-weight: 800; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.02; letter-spacing: -1.5px; }
.section-head p { font-size: 19px; color: var(--lilac); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 22px; min-width: 0; }
.card h3 { font-family: var(--f-apps); font-weight: 700; font-size: 25px; line-height: 1.15; }
.card p { color: var(--lilac); }
.ico { width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center; }
.ico svg { width: 28px; height: 28px; }
.ico-a { background: linear-gradient(135deg, var(--pink), var(--orange)); box-shadow: 0 8px 24px rgba(255,61,154,.45); }
.ico-b { background: linear-gradient(135deg, var(--blue), #00D4FF); box-shadow: 0 8px 24px rgba(47,107,255,.45); }
.ico-c { background: linear-gradient(135deg, var(--violet), var(--pink)); box-shadow: 0 8px 24px rgba(140,60,255,.45); }

.projects .card { gap: 18px; }
.shot { aspect-ratio: 16 / 10; max-width: 100%; border-radius: 14px; border: 1px dashed rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; font-family: var(--f-mono); font-size: 13px; color: var(--lilac); background: rgba(255,255,255,.04); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot-media { padding: 0; overflow: hidden; border-style: solid; border-color: rgba(255,255,255,.14); background: radial-gradient(120% 120% at 50% 0%, rgba(124,243,255,.10), rgba(255,255,255,.03) 60%); }
.shot-media img, .shot-media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot-video video { object-fit: contain; object-position: center; background: transparent; }
a.shot-media { transition: transform .25s ease, border-color .25s ease; }
a.shot-media:hover { transform: translateY(-2px); border-color: rgba(124,243,255,.45); }
.proj-link { margin-top: auto; font-weight: 700; color: var(--cyan); text-decoration: none; }
.proj-link:hover { text-decoration: underline; }
.pill { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: rgba(124,243,255,.14); color: var(--cyan); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { padding: 26px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step-n { font-family: var(--f-apps); font-weight: 800; font-size: 46px; line-height: 1; }
.step h3 { font-family: var(--f-apps); font-size: 22px; }
.step p { color: var(--lilac); font-size: 16px; }

.cta-band { border-radius: 30px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; background: linear-gradient(110deg, #E0177A 0%, #FF4D2E 55%, #FF8A00 100%); box-shadow: 0 24px 60px rgba(255,61,154,.45); }
.cta-band h2 { font-size: clamp(32px, 4.5vw, 56px); }
.cta-band p { font-size: 19px; font-weight: 600; margin-top: 8px; }
.cta-contact { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-mono); font-weight: 700; font-size: 18px; min-width: 0; }
.cta-contact a { text-decoration: none; overflow-wrap: anywhere; }
.cta-contact a:hover { text-decoration: underline; }
.cta-contact .big { font-family: var(--f-apps); font-size: clamp(30px, 4vw, 42px); font-weight: 800; }

/* ---------- Móvil ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .mock { height: 330px; max-width: 460px; }
}
@media (max-width: 800px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .half { padding-block: 56px; justify-content: flex-start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .logo img { height: 42px; }
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 64px; }
  .mock { display: none; }
  .apps-hero { padding-block: 64px 48px; }
}
