/* ==========================================================================
   Mezclas y Disolventes de Venezuela, C.A. — Web corporativa
   Paleta derivada del logo: azul royal, azul marino, naranja, grises neutros
   ========================================================================== */

:root {
  --navy-950: #0a1330;
  --navy-900: #101c48;
  --royal-700: #1f3fae;
  --royal-600: #2b56d6;
  --royal-500: #4169e8;
  --orange-600: #e56a15;
  --orange-500: #f0821f;

  --bg: #ffffff;
  --bg-tint: #f4f6fb;
  --line: #e2e6ef;
  --text: #1b2138;
  --muted: #5c6478;
  --muted-on-dark: #aab3d0;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --radius: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--royal-700); text-decoration: none; }
a:hover { color: var(--orange-600); }

:focus-visible { outline: 2px solid var(--royal-600); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--royal-700);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.brand-rule {
  width: 84px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--royal-700), var(--orange-500));
  margin: 20px 0 22px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.btn--primary {
  background: linear-gradient(120deg, var(--royal-600), var(--royal-700));
  color: #fff;
  box-shadow: 0 10px 26px rgba(31, 63, 174, .28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(31, 63, 174, .38); color: #fff; }

.btn--outline {
  border-color: var(--line);
  color: var(--text);
  background: #fff;
}
.btn--outline:hover { border-color: var(--royal-600); color: var(--royal-700); transform: translateY(-2px); }

.btn--on-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: #fff; }
.btn--on-dark:hover { border-color: var(--orange-500); color: var(--orange-500); }

.btn--small { padding: 10px 18px; font-size: 14px; }
.btn--full { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
}

.brand { flex: none; }
.brand__logo { height: 44px; width: auto; border-radius: 6px; }

.nav {
  display: flex;
  gap: 28px;
  margin-left: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
}

.nav a { color: var(--text); }
.nav a:hover { color: var(--royal-700); }

.header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
.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; padding: 84px 0 76px; overflow: hidden; }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(31,63,174,.10), transparent 65%),
    radial-gradient(700px 420px at -5% 110%, rgba(240,130,31,.08), transparent 60%),
    var(--bg-tint);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--royal-700);
  background: rgba(31,63,174,.08);
  border: 1px solid rgba(31,63,174,.18);
  border-radius: 999px;
  padding: 8px 16px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-top: 18px;
  color: var(--navy-900);
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 600;
  color: var(--royal-700);
  max-width: 60ch;
  margin-bottom: 14px;
}

.hero__support { color: var(--muted); font-size: 16.5px; max-width: 62ch; margin-bottom: 32px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero__stats li { display: flex; flex-direction: column; gap: 4px; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: var(--navy-900);
}
.hero__stats span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section--tinted { background: var(--bg-tint); }
.section--dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); }

.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }

.overline {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 12px;
}
.overline--light { color: var(--orange-500); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  margin-bottom: 12px;
}
.section-title--light { color: #fff; }

.section-sub { color: var(--muted); font-size: 16.5px; }

.body-text { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.body-text strong { color: var(--text); }

/* ---------- Quiénes somos ---------- */

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.media-card {
  background: linear-gradient(155deg, var(--navy-900), var(--royal-700));
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 50px rgba(16,28,72,.24);
  position: sticky;
  top: 100px;
}

.media-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted-on-dark);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.media-card__row:last-child { border-bottom: none; padding-bottom: 0; }
.media-card__row b { color: #fff; font-family: var(--font-display); font-weight: 600; text-align: right; }
.media-card__row--accent b { color: var(--orange-500); }

/* ---------- Misión / Visión / Objetivo ---------- */

.mvo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mvo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: 0 12px 30px rgba(16,28,72,.05);
}
.mvo-card--accent { border-color: rgba(31,63,174,.25); box-shadow: 0 16px 36px rgba(31,63,174,.12); }

.mvo-card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--royal-700);
  margin-bottom: 14px;
}

.mvo-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Cards / Servicios ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(31,63,174,.3); box-shadow: 0 20px 40px rgba(16,28,72,.1); }

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(31,63,174,.08);
  color: var(--royal-700);
  margin-bottom: 16px;
}
.card__icon svg { width: 22px; height: 22px; }

.card__title { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--navy-900); }
.card__text { color: var(--muted); font-size: 14.5px; }

/* ---------- Broker ---------- */

.broker { display: flex; justify-content: center; }
.broker__content { max-width: 760px; text-align: center; }
.broker__text { color: var(--muted-on-dark); font-size: 16.5px; margin-bottom: 26px; }

.broker__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
}
.broker__list li {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 10px 18px;
}

/* ---------- Sectores ---------- */

.sectors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.sector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy-900);
  transition: transform .2s ease, border-color .2s ease;
}
.sector:hover { transform: translateY(-4px); border-color: rgba(31,63,174,.3); }

.sector__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, rgba(31,63,174,.1), rgba(240,130,31,.08));
  color: var(--royal-700);
}
.sector__icon svg { width: 24px; height: 24px; }

/* ---------- Valores ---------- */

.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin-top: 8px;
}
.values li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--royal-700);
  background: #fff;
  border: 1px solid rgba(31,63,174,.22);
  border-radius: 999px;
  padding: 10px 20px;
}

/* ---------- Ubicación ---------- */

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin: 22px 0 26px; }
.info-list li { font-size: 15px; color: var(--muted); }
.info-list__label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.location-grid__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.location-grid__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

.contact-grid__sub { color: var(--muted-on-dark); font-size: 16px; margin-bottom: 28px; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.contact-list__label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}
.contact-list a { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.contact-list a:hover { color: var(--orange-500); }

.contact-grid__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.form-panel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: clamp(26px, 4vw, 36px);
  backdrop-filter: blur(6px);
}
.form-panel__title { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.form-panel__sub { color: var(--muted-on-dark); font-size: 14px; margin-bottom: 24px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #fff; }
.field input, .field textarea {
  width: 100%;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 12px 15px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange-500); box-shadow: 0 0 0 3px rgba(240,130,31,.18); }
.field input.field--error, .field textarea.field--error { border-color: var(--orange-500); }

.form-note { margin-top: 14px; font-size: 12.5px; color: var(--muted-on-dark); text-align: center; }

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

.footer { background: var(--navy-950); color: var(--muted-on-dark); padding: 56px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__logo { height: 40px; width: auto; border-radius: 5px; margin-bottom: 14px; }
.footer__tag { font-size: 14px; max-width: 32ch; }
.footer__heading { display: block; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col a { color: var(--muted-on-dark); }
.footer__col a:hover { color: var(--orange-500); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: 13px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  display: flex; align-items: center; gap: 12px;
  background: var(--navy-900); border: 1px solid rgba(31,63,174,.4);
  border-radius: 12px; padding: 14px 22px; font-size: 15px; font-weight: 600; color: #fff;
  box-shadow: 0 16px 48px rgba(0,0,0,.35); opacity: 0; transition: opacity .3s ease, transform .3s ease; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast__icon { width: 24px; height: 24px; border-radius: 50%; background: var(--orange-500); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .sectors { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .media-card { position: static; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px;
  }
  .site-header.nav-open .nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .mvo-grid { grid-template-columns: 1fr; }
  .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 56px; }
  .cards { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .header__actions .btn--small { display: none; }
  .hero__actions .btn { width: 100%; }
}

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