/* =========================================================
   MAVASA — Hoja de estilos principal
   ========================================================= */

:root {
  --navy-dark: #071433;
  --navy: #0b1f44;
  --navy-light: #12295c;
  --gold: #f5b400;
  --gold-dark: #d99e00;
  --gray-bg: #f4f6fa;
  --gray-border: #e2e6ee;
  --text-dark: #1a2436;
  --text-muted: #5b6577;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 31, 68, 0.08);
  --transition: all 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { scroll-margin-top: 90px; }

.section-pad { padding: 80px 0; }
.section-pad--sm { padding: 56px 0; }

.bg-gray { background: var(--gray-bg); }
.bg-navy { background: var(--navy); color: var(--white); }

.eyebrow {
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}

.bg-navy .section-title { color: var(--white); }

.section-underline {
  width: 60px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 14px 0 30px;
}

.section-lead {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 0 30px;
}

.bg-navy .section-lead { color: #c7cee0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn--gold:hover { background: var(--gold-dark); }

.btn--outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); }

.btn--outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 14px rgba(0,0,0,0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 48px; width: auto; }
.brand__name {
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.1;
}
.brand__tagline {
  color: var(--gold);
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item { position: relative; }

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #d8ddea;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.nav__link:hover,
.nav__item--active > .nav__link {
  color: var(--white);
  border-bottom-color: var(--gold);
}

.nav__link .caret {
  font-size: 0.6rem;
  margin-top: 2px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 260px;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
}

.nav__item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 11px 14px;
  border-radius: 6px;
  color: var(--text-dark);
  font-size: 0.88rem;
  font-weight: 600;
}
.dropdown a:hover { background: var(--gray-bg); color: var(--navy); }

.header__cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header__cta .btn { padding: 11px 22px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- Hero (carrusel a pantalla completa) ---------- */
.hero {
  position: relative;
  margin-top: 78px;
  color: var(--white);
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--navy-dark);
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg,
    var(--navy-dark) 0%,
    var(--navy-dark) 30%,
    rgba(7, 20, 51, 0.88) 42%,
    rgba(7, 20, 51, 0.55) 55%,
    rgba(7, 20, 51, 0.18) 70%,
    rgba(7, 20, 51, 0.05) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__copy { max-width: 640px; padding: 70px 0 90px; }

.hero__badge {
  color: var(--gold);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 18px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.hero__tagline {
  color: var(--gold);
  font-style: italic;
  font-size: 1.15rem;
  margin: 0 0 30px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.hero__dot:hover { background: rgba(255,255,255,0.75); }
.hero__dot.is-active {
  width: 26px;
  border-radius: 6px;
  background: var(--gold);
}

/* ---------- Stats bar ---------- */
.stats {
  border-bottom: 1px solid var(--gray-border);
}
.stats__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  padding: 34px 0;
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 190px;
}
.stat__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--navy);
}
.stat__icon svg { width: 24px; height: 24px; }
.stat__value {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.15;
}
.stat__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.clients {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-left: 1px solid var(--gray-border);
  padding-left: 30px;
}
.clients__label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.clients__logos {
  display: flex;
  align-items: center;
  gap: 20px;
}
.clients__logos img { height: 32px; width: auto; }
.clients__more {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px dashed var(--gray-border);
  padding: 6px 10px;
  border-radius: 6px;
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--navy);
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.service-card__bar {
  width: 30px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
  border-radius: 2px;
}

.two-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.promo-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
}
.promo-card__icon { font-size: 1.6rem; margin-bottom: 12px; }
.promo-card h3 {
  color: var(--gold);
  font-size: 1.05rem;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.promo-card p { color: #c7cee0; font-size: 0.92rem; margin: 0 0 18px; }

/* ---------- Quiénes somos / regiones ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 34px;
  align-items: start;
}

.about-grid h3 {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.region-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--gray-border);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.94rem;
}
.region-list li:last-child { border-bottom: none; }
.region-list .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.region-list li.is-hq { color: var(--gold-dark); }
.region-list .tag {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--navy);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.mini-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.mini-card .stat__icon { margin: 0 auto 12px; }
.mini-card strong {
  display: block;
  font-size: 1.6rem;
  color: var(--navy);
}
.mini-card span { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- MVV ---------- */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mvv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.mvv-card .eyebrow { color: var(--gold-dark); }
.mvv-card h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin: 0 0 14px;
}
.mvv-card p { color: var(--text-muted); font-size: 0.94rem; margin: 0; }
.mvv-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.mvv-values span {
  background: var(--gray-bg);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 20px;
}

.tagline-banner {
  text-align: center;
  margin-top: 46px;
  padding: 34px;
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
}
.tagline-banner strong {
  font-size: 1.4rem;
  color: var(--navy);
  font-style: italic;
}

/* ---------- Política Integrada ---------- */
.policy-box {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.policy-box p { color: var(--text-dark); margin: 0 0 18px; }
.policy-box ul { margin: 0 0 22px; }
.policy-box ul li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--text-dark);
  font-size: 0.95rem;
}
.policy-box ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 9px; height: 9px;
  background: var(--gold);
  border-radius: 2px;
}
.scope-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--gray-bg);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 22px 26px;
  margin: 8px 0 26px;
}
.scope-box--standalone {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
  margin: 0 0 34px;
}
.scope-box__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--navy);
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(11, 31, 68, 0.1);
}
.scope-box__icon svg { width: 22px; height: 22px; }
.scope-box h4 {
  margin: 4px 0 6px;
  color: var(--navy);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
}
.scope-box p { margin: 0; color: var(--text-dark); font-size: 0.95rem; }

.policy-sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-border);
}
.policy-sign__who strong { display: block; color: var(--navy); }
.policy-sign__who span { color: var(--text-muted); font-size: 0.85rem; }
.policy-meta { color: var(--text-muted); font-size: 0.8rem; text-align: right; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 8px;
  transition: var(--transition);
}
.gallery img:hover { transform: scale(1.03); }
.gallery a:first-child img,
.gallery a:first-child { grid-column: span 2; grid-row: span 2; height: 100%; }
.gallery a:first-child img { height: 100%; min-height: 474px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}
.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info-card h3 {
  color: var(--gold);
  margin: 0 0 20px;
  font-size: 1.1rem;
}
.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-item__icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon svg { width: 18px; height: 18px; }
.contact-item strong { display: block; font-size: 0.85rem; color: var(--white); }
.contact-item span, .contact-item a { color: #c7cee0; font-size: 0.88rem; }
.contact-item small.placeholder {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  margin-top: 2px;
}
.social-row { display: flex; gap: 10px; margin-top: 26px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.social-row a svg { width: 16px; height: 16px; }
.social-row a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--gray-bg);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
}
.form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  display: none;
}
.form-status.ok { color: #147a3f; display: block; }
.form-status.err { color: #b3261e; display: block; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  color: #c7cee0;
  padding: 54px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 56px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.85rem; color: #9aa4bd; max-width: 260px; }
.footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 0.88rem; color: #c7cee0; }
.footer ul li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  font-size: 0.8rem;
  color: #8a93ac;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

.whatsapp-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  z-index: 900;
}
.whatsapp-float svg { width: 26px; height: 26px; fill: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header__cta .btn--outline-navy { display: none; }

  .nav.nav--mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px;
    left: 0; right: 0;
    background: var(--navy);
    padding: 10px 24px 20px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
  }
  .nav--mobile-open .nav__item { width: 100%; }
  .nav--mobile-open .nav__link { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 14px 4px; }
  .nav--mobile-open .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    display: none;
    background: rgba(255,255,255,0.04);
  }
  .nav--mobile-open .nav__item.is-open .dropdown { display: block; }
  .nav--mobile-open .dropdown a { color: #d8ddea; }

  .hero { min-height: 560px; }
  .hero__copy { max-width: 100%; padding: 60px 0 90px; }
  .hero__overlay {
    background: linear-gradient(180deg,
      rgba(7, 20, 51, 0.55) 0%,
      rgba(7, 20, 51, 0.8) 55%,
      rgba(7, 20, 51, 0.94) 100%);
  }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .two-cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .mvv-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery a:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery a:first-child img { height: 230px; min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero { min-height: 500px; }
  .hero h1 { font-size: 1.9rem; }
  .hero__badge { font-size: 2.2rem; }
  .hero__dots { bottom: 18px; }
  .section-title { font-size: 1.6rem; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery a:first-child { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .clients { border-left: none; padding-left: 0; }
  .policy-box { padding: 24px; }
}
