/* Inseer — sistema visual compartido con el dashboard de SportAction */

:root {
  --bg: 242 243 245;
  --card: 255 255 255;
  --soft: 246 247 249;
  --line: 233 235 239;
  --ink: 17 19 24;
  --muted: 112 118 131;
  --brand: 37 99 235;
  --mint: 34 229 138;
  --win: 16 172 98;
  --loss: 239 68 68;
  --warn: 245 158 11;
  --night: 24 25 29;
  --contrast: 17 19 24;
  --oncontrast: 255 255 255;
  --radius: 28px;
  --shadow-card: 0 1px 2px rgb(16 24 40 / 0.04), 0 1px 3px rgb(16 24 40 / 0.04);
  --shadow-pop: 0 12px 32px -8px rgb(16 24 40 / 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: 12 13 16;
  --card: 22 23 28;
  --soft: 30 32 38;
  --line: 40 42 50;
  --ink: 240 241 244;
  --muted: 140 146 160;
  --brand: 76 132 255;
  --mint: 43 255 154;
  --win: 34 211 120;
  --loss: 248 98 98;
  --warn: 251 176 52;
  --night: 32 34 42;
  --contrast: 240 241 244;
  --oncontrast: 17 19 24;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.3);
  --shadow-pop: 0 16px 40px -10px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: rgb(var(--bg));
  color: rgb(var(--ink));
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid rgb(var(--brand));
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* Páginas bilingües: solo se ve el idioma activo */
html[data-lang="es"] [lang="en"],
html[data-lang="en"] [lang="es"] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 24px;
  }
}

.muted {
  color: rgb(var(--muted));
}

.ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Componentes base ---------- */

.card {
  background: rgb(var(--card));
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgb(var(--line));
  background: rgb(var(--card));
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgb(var(--win));
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: ping 1.6s var(--ease) infinite;
}

@keyframes ping {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, filter 0.2s, background 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
}

.btn-brand {
  background: rgb(var(--brand));
  color: #fff;
}

.btn-brand:hover {
  filter: brightness(1.1);
}

.btn-dark {
  background: rgb(var(--contrast));
  color: rgb(var(--oncontrast));
}

.btn-dark:hover {
  opacity: 0.9;
}

.btn-soft {
  background: rgb(var(--card));
  color: rgb(var(--ink));
  box-shadow: var(--shadow-card);
}

.btn-soft:hover {
  background: rgb(var(--soft));
}

.btn-danger {
  background: rgb(var(--loss));
  color: #fff;
}

.btn-danger:hover {
  filter: brightness(1.08);
}

.bubble {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgb(var(--soft));
  color: rgb(var(--brand));
}

.bubble.brand {
  background: rgb(var(--brand));
  color: #fff;
}

.bubble.mint {
  background: rgb(var(--mint));
  color: rgb(24 25 29);
}

.bubble.dark {
  background: rgb(var(--night));
  color: #fff;
}

.bubble.loss {
  background: rgb(var(--loss) / 0.12);
  color: rgb(var(--loss));
}

.bubble.win {
  background: rgb(var(--win) / 0.12);
  color: rgb(var(--win));
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
}

.badge.win {
  background: rgb(var(--win) / 0.1);
  color: rgb(var(--win));
}

.badge.brand {
  background: rgb(var(--brand) / 0.1);
  color: rgb(var(--brand));
}

.badge.warn {
  background: rgb(var(--warn) / 0.12);
  color: rgb(var(--warn));
}

.badge.loss {
  background: rgb(var(--loss) / 0.1);
  color: rgb(var(--loss));
}

/* ---------- Logo ---------- */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 11px;
  background: rgb(24 25 29);
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  left: -4px;
  width: 44px;
  transform: rotate(-12deg);
}

.logo-mark::before {
  top: 6px;
  height: 11px;
  background: rgb(var(--brand));
}

.logo-mark::after {
  top: 18px;
  height: 9px;
  background: rgb(var(--mint));
}

.logo-mark span {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
}

.logo-text {
  line-height: 1;
}

.logo-text b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--muted));
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgb(var(--line) / 0.6);
  background: rgb(var(--bg) / 0.8);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}

.nav {
  position: relative;
  display: none;
  padding: 4px;
  border-radius: 999px;
  background: rgb(var(--card));
  box-shadow: var(--shadow-card);
}

.nav a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.25s;
}

.nav a:hover {
  color: rgb(var(--brand));
}

.nav a.active {
  color: rgb(var(--oncontrast));
}

.nav-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: rgb(var(--contrast));
  opacity: 0;
  transition: left 0.45s var(--ease), width 0.45s var(--ease), opacity 0.2s;
}

.tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme {
  display: none;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgb(var(--card));
  box-shadow: var(--shadow-card);
}

.theme button,
.lang button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgb(var(--muted));
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.theme button[aria-pressed="true"],
.lang button[aria-pressed="true"] {
  background: rgb(var(--contrast));
  color: rgb(var(--oncontrast));
}

.lang {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgb(var(--card));
  box-shadow: var(--shadow-card);
}

.lang button {
  width: auto;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgb(var(--card));
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.topbar .cta {
  display: none;
}

.mobile-nav {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 0 18px;
  border-top: 1px solid rgb(var(--line) / 0.6);
}

.mobile-nav.open {
  display: grid;
  animation: drop 0.3s var(--ease);
}

.mobile-nav a,
.mobile-nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 18px;
  padding: 12px 16px;
  background: rgb(var(--card));
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.mobile-nav .full {
  grid-column: span 2;
  justify-content: center;
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (min-width: 640px) {
  .theme {
    display: flex;
  }
  .topbar .cta {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
  .menu-btn,
  .mobile-nav.open {
    display: none;
  }
}

/* ---------- Secciones ---------- */

.section {
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--muted));
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: rgb(var(--brand));
}

.h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.lead {
  margin-top: 12px;
  max-width: 620px;
  font-size: 16px;
  color: rgb(var(--muted));
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .g2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .g3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .g3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .g4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Aparición al hacer scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

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

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero {
    padding: 80px 0 56px;
  }
  .hero-grid {
    grid-template-columns: 1.02fr 1fr;
    gap: 56px;
  }
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(38px, 6.4vw, 66px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.hl {
  position: relative;
  white-space: nowrap;
}

.hl::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.08em;
  height: 0.28em;
  z-index: -1;
  border-radius: 6px;
  background: rgb(var(--mint) / 0.75);
  transform: skewX(-12deg);
}

.hero .lead {
  font-size: 17px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

/* Collage tipo dashboard */
.collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.collage .card {
  padding: 16px;
}

.c-wide {
  grid-column: span 6;
}

.c-half {
  grid-column: span 3;
}

.c-stat p.v {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.between {
  justify-content: space-between;
}

.t-sm {
  font-size: 13px;
}

.t-xs {
  font-size: 12px;
}

.t-semi {
  font-weight: 600;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 92px;
  margin-top: 14px;
}

.bars span {
  flex: 1;
  border-radius: 8px 8px 4px 4px;
  background: rgb(var(--soft));
  transform-origin: bottom;
  animation: grow 1s var(--ease) both;
}

.bars span.on {
  background: rgb(var(--brand));
}

.bars span.mint {
  background: rgb(var(--mint));
}

@keyframes grow {
  from {
    transform: scaleY(0.1);
  }
}

.c-dark {
  background: rgb(24 25 29);
  color: #fff;
}

.c-dark .muted {
  color: rgb(255 255 255 / 0.55);
}

.prob {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
}

.prob i {
  display: block;
  height: 100%;
  width: 68%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(var(--brand)), rgb(var(--mint)));
}

.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}

/* ---------- Tarjetas de servicio ---------- */

.svc {
  padding: 22px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.svc:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
}

.svc h3 {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.svc p {
  margin-top: 6px;
  font-size: 14px;
  color: rgb(var(--muted));
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tags span {
  border-radius: 999px;
  background: rgb(var(--soft));
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: rgb(var(--muted));
}

/* ---------- Proyecto destacado ---------- */

.feature {
  display: grid;
  overflow: hidden;
}

@media (min-width: 960px) {
  .feature {
    grid-template-columns: 1.05fr 1fr;
  }
}

.feature-body {
  padding: 28px;
}

@media (min-width: 640px) {
  .feature-body {
    padding: 40px;
  }
}

.feature-body h3 {
  margin-top: 14px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.feature-art {
  position: relative;
  min-height: 340px;
  padding: 28px;
  background: rgb(24 25 29);
  overflow: hidden;
}

.feature-art::before,
.feature-art::after {
  content: "";
  position: absolute;
  left: -10%;
  width: 130%;
  transform: rotate(-12deg);
  opacity: 0.9;
}

.feature-art::before {
  top: 18%;
  height: 70px;
  background: rgb(var(--brand));
}

.feature-art::after {
  top: calc(18% + 82px);
  height: 52px;
  background: rgb(var(--mint));
}

.phone {
  position: relative;
  z-index: 1;
  width: 230px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 38px;
  background: #0d0e11;
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.8), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}

.phone-screen {
  border-radius: 29px;
  overflow: hidden;
  background: rgb(242 243 245);
  color: rgb(17 19 24);
  padding: 30px 12px 14px;
  font-size: 11px;
}

.phone-screen .mini {
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  margin-top: 8px;
}

.team {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgb(242 243 245);
  font-size: 9px;
  font-weight: 700;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
}

.checks li .ico {
  margin-top: 3px;
  color: rgb(var(--win));
}

/* ---------- Proceso ---------- */

.steps {
  counter-reset: s;
}

.step {
  padding: 22px;
}

.step .n {
  display: inline-grid;
  place-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgb(var(--contrast));
  color: rgb(var(--oncontrast));
  font-size: 12px;
  font-weight: 700;
}

.step h3 {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
}

.step p {
  margin-top: 6px;
  font-size: 14px;
  color: rgb(var(--muted));
}

@media (min-width: 1024px) {
  .g5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---------- Precios ---------- */

.price {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.price.dark {
  background: rgb(var(--contrast));
  color: rgb(var(--oncontrast));
}

.price.dark .muted,
.price.dark .checks li {
  color: rgb(var(--oncontrast) / 0.75);
}

.price .amount {
  margin-top: 18px;
  font-size: 38px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.price .amount small {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.6;
}

.price .btn {
  margin-top: auto;
}

.price .checks {
  margin-bottom: 26px;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 0 22px;
  background: rgb(var(--card));
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .ico {
  transition: transform 0.3s var(--ease);
  color: rgb(var(--muted));
}

.faq details[open] summary .ico {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 20px;
  color: rgb(var(--muted));
  font-size: 14px;
}

/* ---------- Formularios ---------- */

.field {
  display: grid;
  gap: 6px;
}

.label {
  font-size: 12px;
  font-weight: 500;
  color: rgb(var(--muted));
}

.input {
  width: 100%;
  border: 1px solid rgb(var(--line));
  border-radius: 16px;
  background: rgb(var(--soft));
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: rgb(var(--muted));
}

.input:focus {
  border-color: rgb(var(--brand));
  background: rgb(var(--card));
  box-shadow: 0 0 0 4px rgb(var(--brand) / 0.12);
}

.input[aria-invalid="true"] {
  border-color: rgb(var(--loss));
}

textarea.input {
  min-height: 120px;
  resize: vertical;
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23707683' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.err {
  font-size: 12px;
  color: rgb(var(--loss));
  min-height: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgb(var(--line));
  border-radius: 18px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.check:hover {
  background: rgb(var(--soft));
}

.check input {
  margin: 2px 0 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: rgb(var(--brand));
}

.check:has(input:checked) {
  border-color: rgb(var(--brand));
  background: rgb(var(--brand) / 0.05);
}

.check b {
  display: block;
  font-weight: 600;
}

.check small {
  display: block;
  margin-top: 2px;
  color: rgb(var(--muted));
  font-size: 13px;
}

.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14px;
}

.alert.warn {
  background: rgb(var(--warn) / 0.1);
  color: rgb(var(--ink));
}

.alert.warn .ico {
  color: rgb(var(--warn));
  margin-top: 2px;
}

.form-status.alert {
  display: block;
}

.alert.ok {
  background: rgb(var(--win) / 0.1);
}

.alert.bad {
  background: rgb(var(--loss) / 0.1);
}

.spin {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: rot 0.7s linear infinite;
}

@keyframes rot {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Contacto ---------- */

.contact {
  display: grid;
  gap: 16px;
}

@media (min-width: 960px) {
  .contact {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.contact-info {
  padding: 30px;
  background: rgb(24 25 29);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact-info .muted {
  color: rgb(255 255 255 / 0.6);
}

.contact-info .h2 {
  color: #fff;
}

.contact-info .eyebrow {
  color: rgb(255 255 255 / 0.6);
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.info-list a,
.info-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.06);
  font-size: 14px;
}

.info-list .bubble {
  background: rgb(255 255 255 / 0.1);
  color: rgb(var(--mint));
}

.form-card {
  padding: 26px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Footer ---------- */

.footer {
  margin-top: 40px;
  padding: 48px 0 28px;
  border-top: 1px solid rgb(var(--line));
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

.footer h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--muted));
}

.footer ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.footer ul a:hover {
  color: rgb(var(--brand));
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgb(var(--line));
  font-size: 13px;
  color: rgb(var(--muted));
}

/* ---------- Páginas legales ---------- */

.page-head {
  padding-top: 44px;
  padding-bottom: 28px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgb(var(--muted));
}

.crumbs a:hover {
  color: rgb(var(--brand));
}

.page-head h1 {
  margin-top: 14px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.legal {
  display: grid;
  gap: 16px;
  align-items: start;
  padding-bottom: 40px;
}

@media (min-width: 1024px) {
  .legal {
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }
}

.legal > *,
.del-grid > *,
.grid > * {
  min-width: 0;
}

.toc {
  padding: 18px;
}

@media (min-width: 1024px) {
  .toc {
    position: sticky;
    top: 86px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
}

.toc ol {
  display: grid;
  gap: 2px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: t;
}

.toc a {
  display: flex;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 13px;
  color: rgb(var(--muted));
  transition: background 0.2s, color 0.2s;
}

.toc a::before {
  counter-increment: t;
  content: counter(t, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  opacity: 0.6;
}

.toc a:hover,
.toc a.active {
  background: rgb(var(--soft));
  color: rgb(var(--ink));
}

.toc details summary {
  list-style: none;
  cursor: pointer;
}

.doc {
  padding: 26px;
}

@media (min-width: 640px) {
  .doc {
    padding: 40px;
  }
}

.doc section + section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid rgb(var(--line));
}

.doc h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.doc h2 .num {
  font-size: 13px;
  font-weight: 700;
  color: rgb(var(--brand));
  font-variant-numeric: tabular-nums;
}

.doc h3 {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
}

.doc p,
.doc li {
  color: rgb(var(--ink) / 0.82);
  font-size: 15px;
}

.doc p {
  margin-top: 12px;
}

.doc ul {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.doc a {
  color: rgb(var(--brand));
  font-weight: 500;
}

.doc a:hover {
  text-decoration: underline;
}

.doc strong {
  color: rgb(var(--ink));
}

.table-wrap {
  margin-top: 14px;
  overflow-x: auto;
  border: 1px solid rgb(var(--line));
  border-radius: 18px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.doc th {
  padding: 12px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--muted));
  background: rgb(var(--soft));
}

.doc td {
  padding: 12px 14px;
  border-top: 1px solid rgb(var(--line));
  vertical-align: top;
}

.callout {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgb(var(--brand) / 0.07);
  font-size: 14px;
}

.callout.warn {
  background: rgb(var(--warn) / 0.1);
}

/* ---------- Eliminación de cuenta ---------- */

.del-grid {
  display: grid;
  gap: 16px;
  align-items: start;
  padding-bottom: 40px;
}

@media (min-width: 1024px) {
  .del-grid {
    grid-template-columns: 1.25fr 1fr;
  }
}

.steps-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: st;
}

.steps-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
}

.steps-list li::before {
  counter-increment: st;
  content: counter(st);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgb(var(--soft));
  font-size: 12px;
  font-weight: 700;
}

.result {
  display: none;
  text-align: center;
  padding: 36px 26px;
}

.result.show {
  display: block;
  animation: drop 0.4s var(--ease);
}

.result .bubble {
  width: 56px;
  height: 56px;
  margin: 0 auto;
}

.result .bubble .ico {
  width: 24px;
  height: 24px;
}

.kv {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
}

.kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgb(var(--soft));
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
}

.sa-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 14px;
  background: rgb(24 25 29);
  flex-shrink: 0;
}

.sa-mark::before,
.sa-mark::after {
  content: "";
  position: absolute;
  left: -4px;
  width: 56px;
  transform: rotate(-12deg);
}

.sa-mark::before {
  top: 9px;
  height: 13px;
  background: rgb(var(--brand));
}

.sa-mark::after {
  top: 24px;
  height: 10px;
  background: rgb(var(--mint));
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 60;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgb(var(--contrast));
  color: rgb(var(--oncontrast));
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-pop);
  transition: opacity 0.3s, transform 0.3s var(--ease);
  pointer-events: none;
  max-width: calc(100vw - 32px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
