/* Torneo Gestión · landing comercial */
:root {
  --bg: #0b0d14;
  --bg-2: #11141e;
  --card: #161a26;
  --borde: #262b3b;
  --texto: #eef0f6;
  --suave: #a3a9bb;
  --violeta: #7c5cff;
  --violeta-2: #a48bff;
  --verde: #3ee08f;
  --wsp: #25d366;
  --rojo: #ff4d6a;
  --radio: 18px;
  --sombra: 0 30px 60px -20px rgba(0, 0, 0, .6);
  --titulo: "Barlow Condensed", "Arial Narrow", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1, h2 { font-family: var(--titulo); font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap-angosto { width: min(780px, 100% - 32px); }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--verde); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 14px;
}
.punto-vivo {
  width: 8px; height: 8px; border-radius: 50%; background: var(--rojo); flex: none;
  box-shadow: 0 0 0 0 rgba(255, 77, 106, .7); animation: latido 1.8s infinite;
}
@keyframes latido { 70% { box-shadow: 0 0 0 9px rgba(255, 77, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 106, 0); } }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; text-decoration: none; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-wsp { background: var(--wsp); color: #04220f; }
.btn-wsp:hover { background: #3be27a; }
.btn-ghost { border-color: var(--borde); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--violeta-2); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 18px 28px; font-size: 1.08rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 20, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--titulo); font-size: 1.45rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.marca b { color: var(--violeta-2); }
.marca-chica { font-size: 1.1rem; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--suave); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--texto); }

/* Hero */
.hero {
  position: relative; padding: 72px 0 96px; overflow: hidden;
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(124, 92, 255, .28), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, rgba(62, 224, 143, .12), transparent 70%);
}
.hero::before { /* líneas de cancha */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background:
    radial-gradient(circle at 50% 50%, transparent 119px, #fff 120px, #fff 122px, transparent 123px),
    linear-gradient(90deg, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px));
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero h1 em { font-style: italic; color: var(--violeta-2); }
.lead { margin-top: 20px; font-size: 1.15rem; color: var(--suave); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--suave); font-size: .92rem; }
.hero-chips li::before { content: "✓"; color: var(--verde); font-weight: 700; margin-right: 7px; }

.hero-vis { position: relative; padding: 0 60px 60px 0; }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--borde); background: var(--card); box-shadow: var(--sombra); transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1b2030; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #343a4f; }
.browser-bar span { margin-left: 12px; padding: 3px 14px; border-radius: 999px; background: #0f121b; color: var(--suave); font-size: .75rem; }
.phone {
  border-radius: 34px; padding: 8px; background: #05060a; border: 1px solid #2c3142;
  box-shadow: var(--sombra), inset 0 0 0 2px #151824; overflow: hidden;
}
.phone img { border-radius: 27px; }
.hero-vis .phone { position: absolute; right: 0; bottom: -10px; width: 34%; max-width: 210px; transform: rotate(3deg); }
.hero-vis .phone img { aspect-ratio: 520 / 900; object-fit: cover; object-position: top; }
.toast {
  position: absolute; left: -18px; bottom: 26px; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px; background: rgba(22, 26, 38, .92); border: 1px solid var(--borde);
  box-shadow: var(--sombra); backdrop-filter: blur(8px);
  animation: flotar 4s ease-in-out infinite;
}
.toast b { display: block; font-size: .92rem; }
.toast small { color: var(--suave); font-size: .8rem; }
@keyframes flotar { 50% { transform: translateY(-6px); } }

/* Franja de números */
.franja { border-block: 1px solid var(--borde); background: var(--bg-2); }
.franja-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.franja-in div { padding: 26px 18px; text-align: center; }
.franja-in div + div { border-left: 1px solid var(--borde); }
.franja b { display: block; font-family: var(--titulo); font-size: 2.2rem; line-height: 1; color: var(--verde); text-transform: uppercase; }
.franja span { color: var(--suave); font-size: .9rem; }

/* Secciones */
.seccion { padding: 104px 0; }
.seccion-alt { background: var(--bg-2); border-block: 1px solid rgba(255, 255, 255, .04); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.sec-head > p:last-child:not(.kicker) { margin-top: 16px; color: var(--suave); font-size: 1.08rem; }

/* Beneficios */
.grid-ben { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ben {
  padding: 24px; border-radius: var(--radio); background: var(--card); border: 1px solid var(--borde);
  transition: border-color .2s, transform .2s;
}
.ben:hover { border-color: rgba(164, 139, 255, .55); transform: translateY(-2px); }
.ben .ico {
  width: 46px; height: 46px; padding: 11px; border-radius: 13px; margin-bottom: 18px;
  color: var(--violeta-2); background: rgba(124, 92, 255, .14);
}
.ben p { margin-top: 8px; color: var(--suave); font-size: .93rem; line-height: 1.55; }

/* Destacados */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feat + .feat { margin-top: 112px; }
.feat-inv .feat-txt { order: 2; }
.feat-txt > p:not(.kicker) { margin-top: 18px; color: var(--suave); font-size: 1.06rem; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
  background: rgba(62, 224, 143, .15); color: var(--verde);
}
.feat-vis { display: flex; justify-content: center; }
.feat-vis .phone { width: min(290px, 70%); }
.feat-phones { gap: 20px; }
.feat-phones .phone { width: min(250px, 46%); }
.feat-phones .phone:last-child { margin-top: 64px; }
.card-img { border-radius: var(--radio); overflow: hidden; border: 1px solid var(--borde); box-shadow: var(--sombra); }

/* Demos */
.grid-demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.demo {
  display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radio); overflow: hidden;
  background: var(--card); border: 1px solid var(--borde); transition: transform .2s, border-color .2s;
}
.demo:hover { transform: translateY(-3px); border-color: var(--violeta-2); }
.demo img { aspect-ratio: 900 / 567; object-fit: cover; object-position: top; border-bottom: 1px solid var(--borde); }
.demo-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.demo-pie b { display: block; }
.demo-pie small { color: var(--suave); }
.flecha { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); flex: none; }
.demo:hover .flecha { background: var(--violeta); }
.demo-tuya { border-style: dashed; border-color: rgba(164, 139, 255, .5); background: rgba(124, 92, 255, .07); }
.demo-tuya-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 32px 24px; }
.demo-tuya-in .ico { width: 40px; height: 40px; color: var(--violeta-2); }
.demo-tuya-in b { font-family: var(--titulo); font-size: 1.8rem; text-transform: uppercase; }
.demo-tuya-in p { color: var(--suave); max-width: 260px; }
.demo-tuya-in .btn { margin-top: 6px; }

/* Pasos */
.pasos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: paso; }
.pasos li { position: relative; padding: 30px 26px; border-radius: var(--radio); background: var(--card); border: 1px solid var(--borde); }
.paso-n {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px;
  font-family: var(--titulo); font-size: 1.6rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--violeta-2), var(--violeta));
}
.pasos p { margin-top: 10px; color: var(--suave); font-size: .95rem; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--borde); }
.faq details[open] { border-color: rgba(164, 139, 255, .45); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; font-size: 1.4rem; color: var(--violeta-2); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 22px 20px; color: var(--suave); }

/* Contacto */
.contacto { padding: 0 0 104px; }
.contacto-in {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 52px; border-radius: 26px;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(62, 224, 143, .22), transparent 70%),
    linear-gradient(135deg, #5c3be6, #3a1f9e);
  box-shadow: var(--sombra);
}
.contacto h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.contacto p { margin-top: 10px; color: rgba(255, 255, 255, .82); max-width: 520px; font-size: 1.06rem; }
.contacto .btn { flex: none; }

/* Pie */
.pie { border-top: 1px solid var(--borde); padding: 28px 0; color: var(--suave); font-size: .9rem; }
.pie-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pie .marca { color: var(--texto); }

/* WhatsApp flotante */
.wsp-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wsp); color: #04220f; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
}
.wsp-flotante .ico { width: 30px; height: 30px; }
.wsp-flotante[hidden] { display: none; }

/* Responsive */
@media (max-width: 1020px) {
  .grid-ben { grid-template-columns: repeat(2, 1fr); }
  .grid-demos { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-vis { max-width: 640px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .hero { padding: 44px 0 64px; }
  .hero-vis { padding: 0 34px 40px 0; }
  .toast { left: -4px; bottom: 6px; padding: 9px 12px; }
  .franja-in { grid-template-columns: repeat(2, 1fr); }
  .franja-in div:nth-child(3) { border-left: 0; }
  .franja-in div:nth-child(n+3) { border-top: 1px solid var(--borde); }
  .seccion { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }
  .feat { grid-template-columns: 1fr; gap: 36px; }
  .feat + .feat { margin-top: 80px; }
  .feat-inv .feat-txt { order: 0; }
  .pasos { grid-template-columns: 1fr; }
  .contacto { padding-bottom: 72px; }
  .contacto-in { flex-direction: column; align-items: flex-start; padding: 34px 24px; }
  .contacto .btn { width: 100%; }
}
@media (max-width: 560px) {
  .grid-ben, .grid-demos { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .nav .btn span { display: none; }
  .nav .btn { padding: 9px 11px; }
  .marca { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
