/* ================================================================
   TapBox · Arquitectura multipágina
   Extiende el sistema visual original sin modificar sus componentes.
   ================================================================ */

.page-inner { background: var(--canvas); }
.page-inner .nav__links a[aria-current="page"] { color: var(--blue); }
.page-inner .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-sheet__links a[aria-current="page"] { color: var(--blue); }

/* Hero editorial para páginas interiores */
.mp-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 84px) 0 clamp(68px, 9vw, 118px);
  color: #fff;
  background:
    radial-gradient(circle at 86% 15%, rgba(26,213,219,.3), transparent 28%),
    radial-gradient(circle at 10% 110%, rgba(136,249,255,.12), transparent 32%),
    linear-gradient(145deg, var(--navy-deep), var(--navy));
}
.mp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.mp-hero .container { position: relative; z-index: 1; }
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: clamp(36px, 5vw, 64px);
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .035em;
  color: rgba(255,255,255,.53);
}
.breadcrumbs a { transition: color .25s; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span[aria-current="page"] { color: rgba(255,255,255,.82); }
.mp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: center;
}
.mp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
  font-family: var(--f-mono);
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #94fbff;
}
.mp-hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(26,213,219,.2);
}
.mp-hero h1 {
  max-width: 16ch;
  font-family: var(--f-display);
  font-size: clamp(2.45rem, 1.35rem + 4vw, 4.7rem);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.04em;
  color: #fff;
}
.mp-hero__lead {
  max-width: 62ch;
  margin-top: 27px;
  font-size: clamp(1.03rem, .98rem + .3vw, 1.2rem);
  line-height: 1.68;
  color: rgba(255,255,255,.72);
}
.mp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.mp-hero__panel {
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.07);
  box-shadow: 0 35px 80px -48px rgba(0,0,0,.8);
  backdrop-filter: blur(12px);
}
.mp-hero__panel-label {
  display: block;
  margin-bottom: 19px;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.mp-hero .mp-checks { margin-top: 0; }
.mp-hero .mp-checks li { color: rgba(255,255,255,.86); border-color: rgba(255,255,255,.1); }
.mp-hero .mp-checks svg { color: #94fbff; background: rgba(26,213,219,.2); }
.mp-hero__contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.11);
  color: #fff;
}
.mp-hero__contact span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.mp-hero__contact strong { font-family: var(--f-display); font-size: 1.12rem; font-weight: 600; }
.article-meta { margin-top: 19px; font-family: var(--f-mono); font-size: .76rem; color: rgba(255,255,255,.5); }

/* Secciones de contenido */
.mp-section { position: relative; padding: clamp(72px, 8vw, 118px) 0; background: #fff; }
.mp-section--bone { background: var(--bone); }
.mp-section--cool { background: var(--cool); }
.mp-section--dark { background: var(--navy); color: #fff; }
.mp-section .container {
  display: grid;
  grid-template-columns: minmax(230px, .7fr) minmax(0, 1.3fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: start;
}
.mp-section__head { position: sticky; top: 106px; }
.mp-section__head .h-lg { max-width: 14ch; }
.mp-section__body { min-width: 0; }
.mp-copy {
  max-width: 72ch;
  font-size: clamp(1rem, .97rem + .18vw, 1.09rem);
  line-height: 1.78;
  color: var(--body);
}
.mp-copy + .mp-copy { margin-top: 20px; }
.mp-section--dark .h-lg,
.mp-section--dark .mp-card h3,
.mp-section--dark .mp-step__num { color: #fff; }
.mp-section--dark .mp-copy,
.mp-section--dark .mp-card p,
.mp-section--dark .mp-steps p { color: rgba(255,255,255,.68); }

/* Tarjetas */
.mp-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}
.mp-cards:first-child { margin-top: 0; }
.mp-card {
  display: flex;
  flex-direction: column;
  min-height: 226px;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line-cool);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.mp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--blue) 24%, var(--line-cool)); }
.mp-section--bone .mp-card { background: rgba(255,255,255,.72); border-color: rgba(16,53,55,.08); }
.mp-section--cool .mp-card { background: #fff; }
.mp-card__num {
  margin-bottom: 28px;
  font-family: var(--f-mono);
  font-size: .7rem;
  color: var(--blue);
  letter-spacing: .1em;
}
.mp-card h3 { font-family: var(--f-display); font-size: 1.22rem; line-height: 1.18; font-weight: 600; color: var(--ink); }
.mp-card p { margin-top: 12px; font-size: .96rem; line-height: 1.62; color: var(--body); }
.mp-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 24px;
  font-weight: 600;
  font-size: .91rem;
  color: var(--blue-press);
}
.mp-card__link svg { transition: transform .3s var(--ease); }
.mp-card__link:hover svg { transform: translateX(4px); }

/* Pasos */
.mp-steps { display: flex; flex-direction: column; gap: 0; margin-top: 30px; }
.mp-steps:first-child { margin-top: 0; }
.mp-steps li {
  display: grid;
  grid-template-columns: 56px minmax(0,1fr);
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.mp-steps li:first-child { padding-top: 0; }
.mp-steps li:last-child { border-bottom: 0; }
.mp-step__num { font-family: var(--f-mono); font-size: .78rem; color: var(--blue); padding-top: 3px; }
.mp-steps h3 { font-family: var(--f-display); font-size: 1.23rem; line-height: 1.25; font-weight: 600; color: var(--ink); }
.mp-steps p { margin-top: 8px; max-width: 66ch; color: var(--body); line-height: 1.65; }

/* Listas de control */
.mp-checks { display: flex; flex-direction: column; gap: 0; margin-top: 30px; }
.mp-checks li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-cool);
  color: var(--ink);
  line-height: 1.55;
}
.mp-checks li:last-child { border-bottom: 0; }
.mp-checks svg { width: 21px; height: 21px; flex: none; margin-top: 2px; padding: 3px; border-radius: 50%; color: var(--blue); background: var(--blue-soft); }

/* Bloques de transparencia */
.mp-callout {
  margin-top: 34px;
  padding: 25px 28px;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: color-mix(in srgb, var(--blue-soft) 58%, #fff);
}
.mp-section--bone .mp-callout { background: rgba(255,255,255,.65); }
.mp-callout strong { display: block; font-family: var(--f-display); font-size: 1.05rem; color: var(--ink); }
.mp-callout p { margin-top: 7px; max-width: 68ch; line-height: 1.65; color: var(--body); }

/* FAQ, CTA y footer */
.mp-faq { background: #fff; }
.page-inner .ctc { border-top: 1px solid var(--line); }
.footer__sub--flush { padding-left: 0; }
.footer__legal-links { display: inline-flex; gap: 16px; }
.footer__legal-links a { transition: color .25s; }
.footer__legal-links a:hover { color: rgba(255,255,255,.8); }
.page-inner .ctc__wa > svg:last-child { width: 18px; height: 18px; flex: none; }
.page-inner .ctc__chan > svg:last-child { width: 16px; height: 16px; flex: none; color: var(--muted); }

/* Página 404 */
.error-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--navy-deep); }
.error-page main { flex: 1; display: grid; place-items: center; padding: 80px 0; color: #fff; }
.error-wrap { text-align: center; max-width: 760px; }
.error-code { display: block; font-family: var(--f-mono); font-size: clamp(4rem, 12vw, 9rem); line-height: .9; color: #88f9ff; }
.error-wrap h1 { margin-top: 22px; font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; }
.error-wrap p { max-width: 56ch; margin: 22px auto 0; color: rgba(255,255,255,.66); }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

@media (max-width: 980px) {
  .mp-hero__grid { grid-template-columns: 1fr; }
  .mp-hero__panel { max-width: 640px; }
  .mp-section .container { grid-template-columns: 1fr; gap: 34px; }
  .mp-section__head { position: static; }
  .mp-section__head .h-lg { max-width: 20ch; }
}

@media (max-width: 680px) {
  .mp-hero { padding-top: 30px; }
  .breadcrumbs { margin-bottom: 32px; }
  .mp-hero h1 { max-width: none; font-size: clamp(2.28rem, 12vw, 3.45rem); }
  .mp-hero__lead { font-size: 1rem; }
  .mp-hero__actions { flex-direction: column; }
  .mp-hero__actions .btn { width: 100%; justify-content: center; }
  .mp-cards { grid-template-columns: 1fr; }
  .mp-card { min-height: 0; }
  .mp-steps li { grid-template-columns: 42px minmax(0,1fr); gap: 14px; }
  .footer__legal-links { width: 100%; order: 3; }
}
