/* ===== Variables de marca ===== */
:root {
  --accent: #D6363C;        /* coral ZIBAC (botones) */
  --accent-dark: #B42B30;   /* coral para textos sobre fondo claro */
  --accent-light: #FF8A8E;  /* coral para textos sobre negro */
  --ink: #111111;
  --ink-2: #1C1C1C;
  --line-dark: #2E2E2E;
  --text-muted: #4D4D4D;
  --paper: #FAF8F5;
  --line: #E6E3DE;
  --radius: 16px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

a { color: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Botones ===== */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 16px 28px; border-radius: 12px; font-size: 17px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #12804A;   /* verde WhatsApp oscurecido para que el texto blanco se lea bien */
  color: #fff;
}
.btn--whatsapp:hover { background: #0E6B3D; }
.btn--whatsapp svg { width: 24px; height: 24px; }
.btn--outline { border: 1.5px solid #CFCAC2; background: #fff; }
.btn--outline:hover { border-color: var(--ink); }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow--light { color: var(--accent-light); }

.icon {
  width: 32px; height: 32px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Recuadro gris mientras no hay captura */
.placeholder {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #8A8A8A;
}

/* ===== Menú ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  text-decoration: none;
  color: var(--ink);
}
.logo__key { width: 38px; height: 38px; margin-bottom: 2px; }
.logo__text {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.9;
}
.logo__i { position: relative; }
.logo__i svg {
  position: absolute;
  left: 50%;
  top: -9px;
  width: 11px;
  height: 20px;
  transform: translateX(-50%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
}
.nav a:not(.btn) { text-decoration: none; padding: 12px 0; }
.nav a:not(.btn):hover { color: var(--accent-dark); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== 1. Inicio ===== */
.hero {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}

/* Líneas de cancha muy sutiles de fondo */
.pitch { position: absolute; inset: 0; pointer-events: none; }
.pitch__line {
  position: absolute;
  top: 0; bottom: 0;
  left: 58%;
  border-left: 2px solid rgba(17, 17, 17, .06);
}
.pitch__circle {
  position: absolute;
  top: 50%;
  left: 58%;
  width: 360px; height: 360px;
  border: 2px solid rgba(17, 17, 17, .06);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 104px;
}
.hero__text {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero__lead { font-size: 20px; color: var(--text-muted); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Computador + celular */
.devices {
  flex: 1 1 460px;
  min-width: 0;
  position: relative;
  padding-right: 48px;
  padding-bottom: 32px;
}
.laptop__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #ECE8E2;
  border: 10px solid var(--ink);
  border-radius: 14px 14px 4px 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.laptop__base {
  height: 14px;
  margin: 0 -24px;
  background: #2B2B2B;
  border-radius: 0 0 14px 14px;
}
.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28%;
  min-width: 120px;
  padding: 8px;
  background: var(--ink);
  border-radius: 26px;
  box-shadow: 0 24px 50px rgba(17, 17, 17, .25);
}
.phone__screen {
  position: relative;
  aspect-ratio: 9 / 19;
  background: #ECE8E2;
  border-radius: 19px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.phone__screen .placeholder { font-size: 11px; padding: 0 6px; }

.laptop__screen img,
.phone__screen img,
.screenshot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ===== Secciones ===== */
.section { padding: 104px 0; }
.section--paper { background: var(--paper); }
.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 56px;
}
.section h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ===== 2. El problema ===== */
.problem {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
}
.problem .icon { stroke: var(--accent-dark); }
.problem h3, .feature h3 { font-size: 21px; font-weight: 600; }
.problem p, .feature p { color: var(--text-muted); }

/* ===== 3. La solución ===== */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.split__text {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.split__text p:not(.eyebrow) { font-size: 18px; color: var(--text-muted); }
.split__text p:last-child { color: var(--ink); font-weight: 600; }
.screenshot {
  flex: 1.3 1 480px;
  min-width: 0;
  position: relative;
  aspect-ratio: 16 / 10;
  background: #ECE8E2;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(17, 17, 17, .12);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 4. Funcionalidades ===== */
.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ===== 4b. Galería de pantallas ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.gallery__item { display: flex; flex-direction: column; gap: 12px; }
.gallery__img {
  aspect-ratio: 4 / 3;
  background: #0B0D10;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(17, 17, 17, .12);
  cursor: zoom-in;
}
.gallery__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .3s;
}
.gallery__img:hover img { transform: scale(1.03); }
.gallery figcaption { font-weight: 500; }

/* Visor al hacer clic en una pantalla */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
}
.lightbox button {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ===== 5. Caso real ===== */
.section--dark { background: var(--ink); color: #fff; }
.case {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.case__info {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case__info > p:not(.eyebrow):not(.case__place) { font-size: 18px; color: #CFCFCF; }
.case__place { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: #A3A3A3; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
}
.facts li { display: flex; flex-direction: column; }
.facts strong { font-size: 40px; font-weight: 800; line-height: 1.1; }
.facts span { font-size: 15px; color: #A3A3A3; }

.quote {
  flex: 1 1 380px;
  min-width: 0;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-left: 0;
  position: relative;
}
.quote::before {
  content: "";
  position: absolute;
  top: 36px; bottom: 36px; left: 0;
  width: 4px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}
.quote p { font-size: 22px; line-height: 1.45; }
.quote footer { margin-top: 18px; color: #A3A3A3; }

/* ===== 6. Contacto ===== */
.contact { background: var(--paper); }
.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.contact p:not(.eyebrow) { font-size: 19px; color: var(--text-muted); max-width: 560px; }
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

/* ===== Pie ===== */
.footer { background: var(--ink); color: #A3A3A3; font-size: 14px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
}

/* ===== Celular ===== */
@media (max-width: 860px) {
  .menu-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; text-align: center; }

  .logo__text { font-size: 36px; }
  .logo__key { width: 32px; height: 32px; }
  .logo__i svg { width: 9px; height: 16px; top: -7px; }

  .hero__inner { padding-top: 56px; padding-bottom: 64px; }
  .hero__lead { font-size: 18px; }
  .hero__actions .btn { flex: 1 1 100%; text-align: center; }
  .pitch__line, .pitch__circle { left: 80%; }

  .devices { padding-right: 32px; }
  .laptop__screen { border-width: 6px; }
  .laptop__base { margin: 0 -12px; height: 10px; }

  .section { padding: 72px 0; }
  .quote { padding: 28px; }
  .quote p { font-size: 19px; }
}
