/* MBA Holding — sistema alineado con mbacut.com y mbafilter.com
   Titulares: Barlow Condensed (mayúsculas) · Texto: Manrope */

:root {
  --navy-950: #050e1c;
  --navy-900: #071a33;
  --navy-800: #0b2547;
  --brand: #063f88;          /* azul del logo MBA Holding */
  --brand-600: #0a4fa8;
  --accent: #5aa9ff;         /* acento del holding */
  --cut: #1bae47;            /* verde MBA Cut */
  --filters: #15479e;        /* azul MBA Filters */
  --ink: #09182b;
  --ink-2: #3b4b61;
  --muted: #6a7a90;
  --line: #dfe6ef;
  --tint: #f5f8fc;
  --white: #ffffff;
  --radius: 14px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* ---------- Tipografía ---------- */
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-600);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--accent); }
.h2 {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 52px);
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--ink);
}
.h2--light { color: var(--white); }
.lead { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 560px; }
.lead--light { color: #c4d7ec; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, transform .15s, border-color .2s;
  cursor: pointer;
  font-family: var(--body);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-600); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.12); }
.btn--cut { background: var(--cut); color: var(--white); }
.btn--cut:hover { background: #179a3e; }
.btn--filters { background: var(--filters); color: var(--white); }
.btn--filters:hover { background: #1a56bd; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* ---------- Banderas (CSS) ---------- */
.flag { display: inline-block; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.flag--pe { background: linear-gradient(90deg, #d91023 33.3%, #fff 33.3% 66.6%, #d91023 66.6%); }
.flag--co { background: linear-gradient(180deg, #fcd116 50%, #003893 50% 75%, #ce1126 75%); }
.flag--ec { background: linear-gradient(180deg, #ffdd00 50%, #034ea2 50% 75%, #ed1c24 75%); position: relative; }
.flag--ec::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22%; height: 34%; transform: translate(-50%,-50%); border-radius: 50%; background: #7a5a2b; opacity: .8; }
.flag--lg { width: 36px; height: 24px; border-radius: 3px; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-950); color: #9fb3cc; font-size: 12px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar__tag { letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.flags { display: inline-flex; gap: 4px; }
.flags a { display: inline-flex; padding: 6px; border-radius: 4px; transition: background .2s; }
.flags a:hover { background: rgba(255,255,255,.12); }
.flags .flag { width: 22px; height: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 767px) {
  .topbar__tag { display: none; }
  .topbar__in { justify-content: center; }
}

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--brand); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: #dbe7f6; text-decoration: none; font-size: 14px; font-weight: 600; }
.nav__links a:hover { color: var(--white); }
.nav__links .nav__cta {
  color: var(--brand); background: var(--white); padding: 10px 18px; border-radius: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.nav__links .nav__cta:hover { color: var(--brand); background: #e7f0fb; }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: 8px 16px 20px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 16px; }
  .nav__links .nav__cta { margin-top: 14px; text-align: center; border: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-950); color: var(--white); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,14,28,.96) 0%, rgba(5,14,28,.82) 42%, rgba(5,14,28,.25) 100%),
    url("images/hero-960.webp") center right / cover no-repeat;
}
@media (min-width: 768px) {
  .hero__bg {
    background:
      linear-gradient(90deg, rgba(5,14,28,.96) 0%, rgba(5,14,28,.82) 42%, rgba(5,14,28,.25) 100%),
      url("images/hero-1672.webp") center right / cover no-repeat;
  }
}
.hero__in { position: relative; padding: 96px 16px 120px; }
@media (min-width: 768px) { .hero__in { padding: 128px 32px 150px; } }
.hero__title {
  margin: 0 0 22px;
  font-family: var(--head); font-weight: 700; text-transform: uppercase;
  font-size: clamp(48px, 8.5vw, 96px); line-height: .92; letter-spacing: -.015em;
  max-width: 820px;
}
.hero__title .hl { position: relative; display: block; width: fit-content; }
.hero__title .hl__in { display: block; }
.hero__title .hl--accent { color: var(--accent); }
.hero__lead { margin: 0 0 34px; max-width: 580px; font-size: 18px; color: #c4d7ec; }
.hero__lead strong { color: var(--white); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__strip { position: relative; border-top: 1px solid rgba(255,255,255,.12); background: rgba(5,14,28,.6); }
.hero__strip-in {
  display: flex; flex-wrap: wrap; gap: 8px 32px; padding-top: 16px; padding-bottom: 16px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8fa6c2;
}
.hero__strip-in span:first-child { color: var(--accent); }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy-900); color: var(--white); }
.split { display: grid; gap: 24px; align-items: end; margin-bottom: 48px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.head { margin-bottom: 48px; max-width: 720px; }
.head__sub { margin: 16px 0 0; color: var(--ink-2); }

/* Pilares */
.pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--white); padding: 32px 28px; }
.pillar__n { font-family: var(--head); font-size: 15px; font-weight: 700; color: var(--brand-600); letter-spacing: .1em; }
.pillar h3 { margin: 10px 0 8px; font-family: var(--head); font-size: 26px; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Marcas */
.brands { display: grid; gap: 24px; }
@media (min-width: 1000px) { .brands { grid-template-columns: 1fr 1fr; } }
.brand {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  position: relative; --brand-c: var(--brand);
  transition: box-shadow .25s, transform .25s;
}
/* Franja de color de la marca: va dentro de la tarjeta y la recorta el borde redondeado */
.brand::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 2;
  background: var(--brand-c); transform-origin: left; transition: transform .8s cubic-bezier(0.16, 1, 0.3, 1) .1s;
}
.js-motion .brand:not(.is-in)::before { transform: scaleX(0); }
.brand:hover { box-shadow: 0 18px 40px -20px rgba(9,24,43,.35); transform: translateY(-2px); }
.brand--cut { --brand-c: var(--cut); }
.brand--filters { --brand-c: var(--filters); }
.brand__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-900); }
.brand__media img { width: 100%; height: 100%; object-fit: cover; }
.brand__media--light { background: #eef2f7; }
.brand__media--light img { object-fit: contain; padding: 12px; }
.brand__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 768px) { .brand__body { padding: 36px; } }
.brand__logo { height: 52px; width: auto; margin-bottom: 20px; align-self: flex-start; }
.brand__kicker { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand__title { margin: 0 0 12px; font-family: var(--head); font-size: 34px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.brand__text { margin: 0 0 20px; color: var(--ink-2); }
.chips { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); color: var(--ink-2); }
.brand__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.brand__mail { font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.brand__mail:hover { color: var(--brand); text-decoration: underline; }

/* Power y Tower */
.brands__sep { margin: 56px 0 20px; color: var(--muted); }
.brand--power, .brand--tower { --brand-c: #ffb400; }
.brand__media { position: relative; }
.brand--power .brand__media img, .brand--tower .brand__media img { object-fit: cover; padding: 0; }
.brand__badge {
  position: absolute; top: 14px; left: 14px;
  background: #111; color: #ffc21a; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 6px;
}
.btn--yellow { background: #ffb400; color: #111; }
.btn--yellow:hover { background: #ffc533; }


/* Sectores */
.sectors { display: grid; gap: 16px; }
@media (min-width: 768px) { .sectors { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.sector { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-900); }
@media (max-width: 767px) { .sector { aspect-ratio: 16 / 11; } }
.sector img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sector:hover img { transform: scale(1.04); }
.sector figcaption {
  position: absolute; inset: auto 0 0 0; padding: 80px 24px 24px;
  background: linear-gradient(0deg, rgba(5,14,28,.95), rgba(5,14,28,0));
  color: var(--white); font-family: var(--head); font-size: 30px; font-weight: 700; text-transform: uppercase; line-height: 1;
}
.sector figcaption span { display: block; font-size: 14px; letter-spacing: .12em; color: var(--accent); margin-bottom: 6px; }
.sector figcaption small { display: block; margin-top: 10px; font-family: var(--body); font-size: 14px; font-weight: 500; text-transform: none; line-height: 1.5; color: #c4d7ec; }

/* Cobertura */
.countries { display: grid; gap: 16px; }
@media (min-width: 768px) { .countries { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.country { background: var(--navy-800); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 4px; }
.country h3 { margin: 16px 0 0; font-family: var(--head); font-size: 32px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.country__role { margin: 4px 0 8px !important; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent) !important; }
.country p { margin: 0 0 12px; color: #c4d7ec; font-size: 15px; }
.country a { color: var(--white); font-weight: 700; text-decoration: none; font-size: 15px; }
.country a:hover { color: var(--accent); }
.country { scroll-margin-top: 110px; transition: border-color .3s, box-shadow .3s; }
.country:target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.country.is-flash { animation: flash 1.6s ease-out; }
@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(90,169,255,.75); }
  100% { box-shadow: 0 0 0 18px rgba(90,169,255,0); }
}

/* Distribuidores */
.dist { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .dist { grid-template-columns: 1.3fr 1fr; gap: 72px; } }
.dist__text .lead { margin: 20px 0 24px; }
.checks { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8.2 13.6 4.6 10l1.2-1.2 2.4 2.4 6-6 1.2 1.2z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.dist__stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--white); padding: 24px 28px; display: flex; align-items: baseline; gap: 18px; }
.stat b { font-family: var(--head); font-size: 48px; line-height: 1; color: var(--brand); min-width: 110px; }
.stat span { color: var(--ink-2); font-size: 15px; }

/* Contacto */
.contact { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 72px; } }
.contact__info .lead { margin: 20px 0 32px; }
.contact__list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact__list > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .contact__list > div { grid-template-columns: 170px 1fr; gap: 16px; } }
.contact__list dt { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.contact__list dd { margin: 0; font-weight: 700; }
.contact__list a { text-decoration: none; color: var(--ink); }
.contact__list a:hover { color: var(--brand); text-decoration: underline; }

.wa { display: grid; gap: 12px; align-content: start; }
.wa__title { margin: 0 0 4px; font-family: var(--head); font-size: 30px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.wa__card {
  display: flex; align-items: center; gap: 18px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--ink);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.wa__card:hover { box-shadow: 0 14px 30px -18px rgba(9,24,43,.4); transform: translateY(-1px); border-color: #25d366; }
.wa__txt { display: grid; flex: 1; }
.wa__txt small { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wa__txt b { font-family: var(--head); font-size: 28px; font-weight: 700; line-height: 1.1; }
.wa__go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-weight: 800; flex: none; }

/* Footer */
.footer { background: var(--navy-950); color: #8fa6c2; padding: 64px 0 28px; font-size: 14px; }
.footer__in { display: grid; gap: 36px; }
@media (min-width: 768px) { .footer__in { grid-template-columns: 2fr 1fr 1fr; } }
.footer__brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer__brand p { margin: 0; max-width: 340px; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h4 { margin: 0 0 4px; color: var(--white); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--white); }
.footer__legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff; text-decoration: none;
  padding: 12px 18px; border-radius: 999px; font-weight: 800; font-size: 14px;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
}
.wa-float:hover { background: #1fbd59; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
