/* Web de Bit Pampa. Colores del logo: cielo nocturno, sol de píxeles (amarillo, naranja) y el celeste del horizonte. */
:root {
  --night: #0b1322;
  --night-2: #0f1a2d;
  --card: #132038;
  --card-2: #182844;
  --line: rgba(116, 172, 223, .16);
  --line-2: rgba(116, 172, 223, .28);
  --text: #eef3fa;
  --text-2: #b1bfd3;
  --text-3: #8093ad;
  --sun-1: #ffd34d;
  --sun-2: #f6a213;
  --sun-3: #e8641e;
  --celeste: #74acdf;
  --ok: #4ade80;
  --error: #fca5a5;
  --sun-gradient: linear-gradient(120deg, var(--sun-1), var(--sun-2) 55%, var(--sun-3));
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 5vw, 48px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font: 16px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun-1); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; padding: 8px 14px; background: var(--sun-1); color: #1a1205; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px;
  border: 1px solid transparent; font: 600 15px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn.sun { background: var(--sun-gradient); color: #1f1405; box-shadow: 0 10px 30px -12px rgba(246, 162, 19, .7); }
.btn.sun:hover { box-shadow: 0 14px 36px -12px rgba(246, 162, 19, .9); }
.btn.ghost { color: var(--text); border-color: var(--line-2); background: rgba(116, 172, 223, .06); }
.btn.ghost:hover { border-color: var(--celeste); background: rgba(116, 172, 223, .12); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- Encabezado ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px var(--gutter);
  background: rgba(11, 19, 34, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px var(--display); letter-spacing: -.03em; color: #f4f7fb; }
.brand img { border-radius: 9px; }
.brand b { color: var(--sun-1); font-weight: 700; }
.menu { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.menu a:not(.btn) { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s; }
.menu a:not(.btn):hover { color: var(--text); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; margin: 0;
    padding: 12px var(--gutter) 20px; background: var(--night); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .menu a:not(.btn) { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 12px; height: 48px; }
}

/* ---------- Portada ---------- */
.hero { position: relative; min-height: min(100svh - 66px, 900px); display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(1200px 520px at 50% 115%, rgba(232, 100, 30, .16), transparent 70%),
              radial-gradient(900px 500px at 85% -10%, rgba(116, 172, 223, .14), transparent 60%), var(--night); }
.hero-copy { position: relative; z-index: 2; max-width: 1040px; margin: 0 auto; padding: clamp(36px, 7vh, 88px) var(--gutter) 0; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(116, 172, 223, .07); color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--sun-2); box-shadow: 0 0 12px var(--sun-2); }
.hero h1 { margin: 20px 0 18px; font-size: clamp(36px, 5.4vw, 68px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.sun-text { background: var(--sun-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 640px; margin: 0 auto; color: var(--text-2); font-size: clamp(17px, 2vw, 19.5px); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.horizon { position: relative; flex: 1; min-height: clamp(190px, 25vw, 340px); margin-top: clamp(20px, 3vh, 40px); }
.horizon-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.horizon-art .sun { animation: rise 1.8s var(--ease) both .15s; transform-origin: 50% 100%; }
.horizon-art .tw { animation: twinkle 4s ease-in-out infinite; }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .62; } }

/* ---------- Secciones ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 10vw, 120px) var(--gutter); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.kicker { display: inline-block; margin-bottom: 14px; color: var(--sun-2); font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase; }
.section h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; }
.sub { margin-top: 14px; color: var(--text-2); font-size: 18px; }

/* ---------- Apps: cada tarjeta con los colores de su marca (variables en el style de cada una) ---------- */
.apps { display: flex; flex-direction: column; gap: 28px; }
.app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4.5vw, 56px); border-radius: 28px; background: var(--bg); color: var(--fg); border: 1px solid var(--line);
  overflow: hidden; position: relative; }
.app:nth-child(even) .app-copy { order: 2; }
.app-name { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-name img { border-radius: 12px; }
.app h3 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
.app-pitch { font-size: clamp(18px, 2vw, 21px); font-weight: 600; line-height: 1.35; margin-bottom: 20px; }
.app ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.app li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15.5px; }
.app li::before { content: ''; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 3px; background: var(--acc); }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.app-btn { background: var(--acc); color: var(--acc-fg); box-shadow: 0 10px 26px -14px var(--acc); }
.app-btn:hover { filter: brightness(1.06); }
.link { color: var(--fg); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--acc) 55%, transparent); padding-bottom: 2px; }
.link:hover { border-bottom-color: var(--acc); }

.app-shot { justify-self: center; width: 100%; }
.app-shot img { border-radius: 14px; }
.app-shot.browser { border-radius: 16px; padding: 30px 6px 6px; position: relative; background: color-mix(in srgb, var(--fg) 8%, var(--bg));
  border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .55); }
.app-shot.browser::before { content: ''; position: absolute; top: 12px; left: 14px; width: 8px; height: 8px; border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 30%, transparent); box-shadow: 14px 0 0 color-mix(in srgb, var(--fg) 30%, transparent), 28px 0 0 color-mix(in srgb, var(--fg) 30%, transparent); }
.app-shot.browser img { border-radius: 10px; }
.app-shot.phone { width: min(270px, 70vw); aspect-ratio: 540 / 1000; border: 9px solid #111827; border-radius: 38px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(15, 36, 64, .55); background: #fff; }
.app-shot.phone img { border-radius: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .app:nth-child(even) .app-copy { order: 0; }
}

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service { padding: 28px 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--card), var(--night-2)); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease); }
.service:hover { border-color: var(--line-2); transform: translateY(-3px); }
.service .icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 13px;
  background: rgba(246, 162, 19, .12); border: 1px solid rgba(246, 162, 19, .28); }
.service svg { width: 24px; height: 24px; fill: none; stroke: var(--sun-1); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service p { color: var(--text-2); font-size: 15px; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.proof { margin-top: 28px; padding: 26px clamp(20px, 3vw, 32px); border-radius: var(--radius); border: 1px dashed var(--line-2); text-align: center; }
.proof p { color: var(--text-2); font-weight: 500; margin-bottom: 16px; }
.proof ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.proof li { padding: 8px 14px; border-radius: 999px; background: rgba(116, 172, 223, .09); border: 1px solid var(--line); color: var(--text); font-size: 14px; }

/* ---------- Cómo trabajamos ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.steps li { position: relative; padding: 30px 24px 26px; border-radius: var(--radius); background: var(--night-2); border: 1px solid var(--line); }
.steps .num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 10px;
  background: var(--sun-gradient); color: #1f1405; font: 700 18px var(--display); }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--text-2); font-size: 15px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact h2 { margin-bottom: 4px; }
.channels { margin: 32px 0 0; display: flex; flex-direction: column; gap: 18px; }
.channels div { padding: 18px 20px; border-radius: 16px; background: var(--night-2); border: 1px solid var(--line); }
.channels dt { color: var(--text-3); font-size: 13.5px; margin-bottom: 4px; }
.channels dd { margin: 0; }
.channels a { color: var(--sun-1); font-weight: 600; font-size: 17px; text-decoration: none; }
.channels a:hover { text-decoration: underline; }

.card { border-radius: var(--radius); background: linear-gradient(180deg, var(--card), var(--night-2)); border: 1px solid var(--line); }
.form { padding: clamp(22px, 3.5vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text); }
.form .opt { color: var(--text-3); font-weight: 400; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(5, 10, 20, .45); color: var(--text); font: 15.5px var(--body); transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 130px; }
.form select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23b1bfd3' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form select option { background: var(--night-2); }
.form input::placeholder, .form textarea::placeholder { color: var(--text-3); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sun-2); box-shadow: 0 0 0 4px rgba(246, 162, 19, .16); }
.form [aria-invalid="true"] { border-color: var(--error); }
.form .btn { margin-top: 4px; }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-size: 15px; font-weight: 500; }
.form-msg.ok { color: var(--ok); }
.form-msg.error { color: var(--error); }
.fine { color: var(--text-3); font-size: 13px; margin-top: -6px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.footer { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter) 36px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px 40px; }
.footer-brand p { margin-top: 10px; color: var(--text-3); font-size: 14px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer h4 { font: 600 13px var(--body); color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.footer nav a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: var(--text); }
.copy { grid-column: 1 / -1; color: var(--text-3); font-size: 13px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .footer { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Aparición al hacer scroll (solo con JS; sin JS todo se ve) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

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