/* =========================================
FILE: /assets/css/main.css
Instituto Boxfox1 (Comercial) — base estable (FINAL)
Incluye fixes globales (fondo + overscroll + overflow-x)
========================================= */

:root {
  --fondo: #ffffff;
  --grisBanda: #f3f5f8;

  --texto: #0f172a;
  --muted: rgba(15, 23, 42, 0.72);

  --linea: rgba(15, 23, 42, 0.12);
  --linea2: rgba(15, 23, 42, 0.18);

  --azul: #1a78ff;

  --dark: #0b1220;
  --dark2: #0e1628;

  --radius: 3px;
  --sombra2: 0 10px 22px rgba(2, 6, 23, 0.08);

  --wrap: 1120px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;

  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

/* Fixes globales baseline */
html,
body {
  background: var(--fondo);
}
html {
  overscroll-behavior-y: none;
}
body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    "Roboto",
    system-ui,
    -apple-system,
    Segoe UI,
    Arial,
    sans-serif;
  color: var(--texto);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #fff;
  padding: 10px 12px;
  border: 1px solid var(--linea);
  z-index: 9999;
}
.skip:focus {
  left: 12px;
}

/* Tipografía */
.h1 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.015em;
}
.h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
  font-weight: 900;
}
.h3 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
  font-weight: 900;
}
.p {
  margin: 10px 0 0;
  color: rgba(15, 23, 42, 0.8);
}
.lead {
  font-size: 16px;
  color: rgba(15, 23, 42, 0.78);
  margin: 12px 0 0;
}

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.58);
}

/* Tira */
.tira {
  background: linear-gradient(180deg, var(--dark), #0a1326);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
}
.tira__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}
.chip {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 10px;
  border-radius: 999px;
}
.sep {
  opacity: 0.55;
}
.tira .muted {
  color: rgba(255, 255, 255, 0.72);
}
.tira__cta {
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 10px;
  border-radius: 10px;
}
.nav__link--soft {
  background: rgba(255, 255, 255, 0.06);
}

/* Header */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--dark2), var(--dark));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.cabecera.is-shadow {
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.24);
}

.cabecera__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.marca {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.marca__logo {
  height: 34px;
  width: auto;
}

.marca__tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 12px;
  white-space: nowrap;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 10px;
}
.nav__link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 3px;
}
.nav__link:hover {
  background: rgba(255, 255, 255, 0.06);
}
.nav__link.is-active {
  background: rgba(26, 120, 255, 0.18);
  border: 1px solid rgba(26, 120, 255, 0.22);
}

/* Burger */
.navbtn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 10px;
}
.navbtn__line {
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.88);
  display: block;
  margin: 4px 0;
  border-radius: 2px;
}

/* Panel móvil */
.panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #0a1326, #0b1220);
}
.panel.is-open {
  display: block;
}
.panel__inner {
  padding: 14px 0 18px;
}
.panel__link {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.03);
}
.panel__link--cta {
  border-color: rgba(26, 120, 255, 0.28);
  background: rgba(26, 120, 255, 0.12);
}
.panel__meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.panel__metaTitle {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.panel__metaLink {
  display: block;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  padding: 8px 0;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .navbtn {
    display: inline-flex;
  }
}

/* Secciones */
.seccion {
  padding: var(--space-6) 0;
}
.seccion--banda {
  background: #eef1f5;
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
}
.seccion--mando {
  background: #0b1220;
  color: #fff;
}
.seccion--bottom {
  padding-bottom: 0;
}

.seccion__head {
  margin-bottom: 18px;
}
.seccion__head .p {
  max-width: 80ch;
  margin-bottom: var(--space-4);
}

/* Firma visual Boxfox1 (H2) */
.seccion__head .h2 {
  position: relative;
}
.seccion__head .h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 12px;
  background: var(--azul);
  border-radius: 999px;
  opacity: 0.95;
}

/* Hero HOME */
.hero--home {
  background:
    radial-gradient(
      900px 420px at 18% 18%,
      rgba(255, 255, 255, 0.16),
      transparent 60%
    ),
    radial-gradient(
      700px 360px at 85% 20%,
      rgba(26, 120, 255, 0.18),
      transparent 55%
    ),
    linear-gradient(180deg, #6f778b 0%, #5f677c 55%, #545d73 100%);
  color: #fff;
  padding: 60px 0 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: start;
}
.heroKicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.hero--home .lead {
  color: rgba(255, 255, 255, 0.82);
}
.hero--home .p {
  color: rgba(255, 255, 255, 0.8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* H1 underline */
.heroCopy .h1::after {
  content: "";
  display: block;
  width: 110px;
  height: 3px;
  margin-top: 14px;
  background: #1a78ff;
  border-radius: 2px;
}

/* TRUST ROW (más visible) */
.trustRow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.95);
}
.trust {
  font-size: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  border-radius: 999px;
}

.heroMedia {
  padding-top: 6px;
}

/* MEDIA CARD */
.mediaCard {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, var(--dark2), var(--dark));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(2, 6, 23, 0.26);
}
.mediaTop {
  padding: 14px 14px 10px;
}
.mediaTitle {
  font-weight: 900;
}
.mediaMeta {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  margin-top: 2px;
}
.mediaFrame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mediaFrame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.mediaFoot {
  padding: 10px 14px 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: transparent; /* ← sin negro */
}
.microcta {
  font-weight: 900;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
}
.microcta:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 3px;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid transparent;
}
.btn--primario {
  background: #ffffff;
  color: #0b1220;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn--secundario {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

/* BOTÓN CTA — estilo sistema */
.btn--cta {
  background: linear-gradient(180deg, #5aa2ff 0%, #3f86f1 100%);
  border: 1px solid #2f74dc;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 6px 14px rgba(26, 120, 255, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.btn--cta:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 10px 20px rgba(26, 120, 255, 0.32);
  filter: brightness(1.03);
}
.btn--cta:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    0 4px 10px rgba(26, 120, 255, 0.22);
}

/* Cards */
.card {
  border: 1px solid var(--linea2);
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 16px;
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px) {
  .cards3 {
    grid-template-columns: 1fr;
  }
}

.ph {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 3px;
  border: 1px solid var(--linea);
  background:
    radial-gradient(
      500px 220px at 30% 20%,
      rgba(26, 120, 255, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.02));
  margin-bottom: 12px;
  overflow: hidden;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(15, 23, 42, 0.78);
  font-weight: 500;
}
.list--tight li {
  margin: 6px 0;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

.priceCard {
  border: 1px solid var(--linea2);
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.1);
  position: relative;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;

  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
}

.priceCard__k {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 6px;
}
.priceCard__t {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.85);
}

.priceCard--hot {
  border: 2px solid rgba(26, 120, 255, 0.55);
  background: #f8fbff;
  box-shadow: 0 14px 32px rgba(26, 120, 255, 0.18);
  transform: translateY(-4px);
}

.priceCard__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0d6efd;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 4px;
}

/* Pricing bullets tipo enterprise */
.priceCard .list {
  list-style: none;
  padding-left: 0;
  margin-top: 14px;
}
.priceCard .list li {
  position: relative;
  padding-left: 22px;
  margin: 10px 0;
  color: rgba(15, 23, 42, 0.82);
  font-weight: 600;
}
.priceCard .list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--azul);
  font-weight: 900;
}

/* CTA dentro de pricing: grande y consistente */
.priceCard .btn {
  margin-top: auto;
  width: 100%;
  font-size: 18px; /* texto más presente */
  font-weight: 800;
  padding: 6.5px 14px; /* menos alto */
  border-radius: 4px;
  line-height: 1.2;
}

/* CTA inline */
.ctaInline {
  margin-top: 12px;
  border: 1px solid var(--linea2);
  background: #fff;
  border-radius: var(--radius);
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: var(--sombra2);
}
.ctaInline__k {
  font-weight: 900;
}
.ctaInline__v {
  margin-top: 4px;
  color: rgba(15, 23, 42, 0.74);
  font-size: 13px;
}

/* Contacto (dark) */
.seccion--mando .label {
  color: rgba(255, 255, 255, 0.6);
}
.seccion--mando .h2 {
  color: #fff;
}
.seccion--mando .p {
  color: rgba(255, 255, 255, 0.78);
}
.seccion--mando .list {
  color: rgba(255, 255, 255, 0.88);
}
.seccion--mando .list li {
  color: inherit;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 14px;
  padding-bottom: 28px;
}
@media (max-width: 980px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

.contactCard {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 16px 16px;
}
.contactCard--soft {
  background: rgba(255, 255, 255, 0.04);
}

.contactCard__title {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 10px;
}
.contactGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 980px) {
  .contactGrid {
    grid-template-columns: 1fr;
  }
}

.contactRow {
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}
.contactRow__k {
  display: block;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.86);
}
.contactRow__v {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.link {
  color: rgba(140, 190, 255, 1);
  font-weight: 800;
}
.link:hover {
  text-decoration: underline;
}

/* Footer V3 */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0 18px;
  background: #0b1220;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer__legal {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 700;
  opacity: 0.75;
}
.footer__link--legal {
  color: rgba(255, 255, 255, 0.78);
}

.footer__icons {
  display: flex;
  gap: 10px;
  opacity: 0.75;
}
.iconlink {
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
}
.iconlink img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1); /* blanco */
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}
.modal.is-open {
  display: block;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
}
.modal__panel {
  position: relative;
  width: min(720px, calc(100% - 28px));
  margin: 7vh auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.3);
  padding: 16px 16px 18px;
}
.modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal__kicker {
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}
.kicker__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(26, 120, 255, 0.95);
}
.modal__x {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}
.modal__actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

/* WhatsApp FAB (icon svg en /assets/img/icons/) */
.wafab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25d366;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.2);
  display: grid;
  place-items: center;
  z-index: 60;
}
.wafab img {
  width: 24px;
  height: 24px;
}

/* Utilidades layout packs (si las usas después) */
.packCard {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.packGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* HERO INTERIOR + BREADCRUMBS */
.hero--inner {
  background: linear-gradient(180deg, var(--dark2), var(--dark));
  color: #fff;
  padding: 44px 0 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
}
.crumbs__link {
  color: rgba(255, 255, 255, 0.88);
}
.crumbs__link:hover {
  text-decoration: underline;
}
.crumbs__sep {
  opacity: 0.5;
}
.crumbs__current {
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
OVERRIDES FINALES (para evitar “micro-ajustes” conflictivos)
========================================================= */

/* 1) Bloque video: todo igual al menú (sin negro en ninguna parte) */
.hero--home .mediaCard,
.hero--home .mediaFoot,
.hero--home .mediaFrame {
  background: linear-gradient(180deg, var(--dark2), var(--dark)) !important;
}

/* 2) Títulos de cards: peso/jerarquía final */
.card .h3 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
  letter-spacing: -0.01em;
}
