/* ==========================================================================
   MAR-TRANS Logistics — style
   ========================================================================== */

:root {
  --green: #00a34f;
  --green-600: #008c44;
  --green-50: #e7f6ee;
  --ink: #0b1820;
  --ink-2: #112430;
  --ink-3: #071117;
  --text: #1b2a33;
  --muted: #5d6d77;
  --line: #e2e8eb;
  --tint: #f3f7f5;
  --gold: #c9a227;
  --star: #f5b301;
  --white: #fff;

  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 24, 32, .06), 0 12px 32px -12px rgba(11, 24, 32, .18);
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; line-height: 1.15; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .75rem;
}
.eyebrow--light { color: #7fe0ad; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-600); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); }
.btn--outline { color: var(--green-600); border-color: var(--green); }
.btn--outline:hover { background: var(--green-50); }
.btn--lg { padding: 1rem 1.6rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.header__logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) {
  padding: .5rem .8rem;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--white); }
.nav__cta { margin-left: .75rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 10px;
  border: 0; border-radius: 8px;
  background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .25s; }
.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;
  isolation: isolate;
  min-height: min(86vh, 800px);
  display: flex; align-items: center;
  padding: 72px 0 140px;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 55%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 17, 23, .92) 0%, rgba(7, 17, 23, .72) 42%, rgba(7, 17, 23, .15) 78%),
    linear-gradient(0deg, rgba(7, 17, 23, .55) 0%, rgba(7, 17, 23, 0) 40%);
}
.hero__content { max-width: 1200px; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); max-width: 18ch; margin-bottom: 1.25rem; font-weight: 800; }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40ch; color: rgba(255, 255, 255, .86); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 0; padding: 0; list-style: none; font-size: .975rem; color: rgba(255, 255, 255, .85); }
.hero__trust li { display: flex; align-items: center; gap: .5rem; }
.hero__trust svg { width: 22px; height: 22px; fill: var(--gold); color: var(--gold); }
.stars { color: var(--star); letter-spacing: .08em; }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -84px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { display: flex; flex-direction: column-reverse; padding: 1.75rem 1.5rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat dd { margin: 0; font: 800 clamp(2.4rem, 4vw, 3.4rem)/1 var(--font-head); color: var(--ink); }
.stat dd small { font-size: .5em; font-weight: 700; color: var(--green); }
.stat dt { margin-top: .4rem; color: var(--muted); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--dark { background: var(--ink); color: #c3d0d7; }
.section--dark h2, .section--dark h3, .section--dark strong { color: var(--white); }
.section--tint { background: var(--tint); }
.section__head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section__head p:last-child { color: var(--muted); font-size: 1.125rem; margin: 0; }
#oferta .section__head { max-width: 860px; }
#oferta .section__head h2 { font-size: clamp(2.5rem, 5.5vw, 3.9rem); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  padding: 2rem 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 1.25rem;
  border-radius: 14px;
  background: var(--green-50); color: var(--green-600);
}
.card__icon svg, .features svg, .contact__list svg {
  width: 28px; height: 28px;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.card p { color: var(--muted); font-size: 1rem; }

.ticks { list-style: none; margin: auto 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); font-size: .95rem; }
.ticks li { position: relative; padding-left: 1.6rem; margin: .4rem 0; }
.ticks li::before {
  content: ""; position: absolute; left: .2rem; top: .45em;
  width: .45rem; height: .8rem;
  border: solid var(--green); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media > img:first-child { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split__media-inset {
  position: absolute; right: -24px; bottom: -40px;
  width: 46%;
  border: 6px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5);
}
.split__body p { font-size: 1.0625rem; }

.features { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.features li { display: flex; gap: .9rem; align-items: flex-start; }
.features svg { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: rgba(0, 163, 79, .14); color: #3fd486; }
.features strong { display: block; font-size: 1.05rem; margin-bottom: .15rem; }
.features span { font-size: .95rem; color: #9fb0b9; }

.split__body .signature {
  margin: 2rem 0 0;
  padding-left: 1.1rem;
  border-left: 4px solid var(--green);
  font: italic 700 1.75rem/1.1 var(--font-head);
  color: var(--ink);
}

/* Video (click-to-load) */
.video {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--ink); overflow: hidden; cursor: pointer;
  aspect-ratio: 3 / 2;
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; opacity: .85; }
.video:hover img { transform: scale(1.03); opacity: 1; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(0, 163, 79, .25);
  transition: box-shadow .3s;
}
.video:hover .video__play { box-shadow: 0 0 0 12px rgba(0, 163, 79, .2); }
.video__play svg { width: 24px; height: 24px; fill: var(--white); display: block; margin: 0; }
.video__label {
  position: absolute; left: 1.25rem; bottom: 1.1rem;
  font: 700 1.2rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase;
  color: var(--white);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Proof / reviews ---------- */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.proof__badge {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.5rem 1.6rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.proof__badge p { margin: 0; color: var(--muted); font-size: .975rem; line-height: 1.4; }
.proof__badge strong { color: var(--ink); }
.proof__score { font: 800 3.2rem/1 var(--font-head); color: var(--green); }
.proof__title { font: 700 1.35rem/1.1 var(--font-head) !important; color: var(--ink) !important; margin-bottom: .2rem !important; }
.proof__medal {
  flex: none; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f3dc84, var(--gold) 60%, #a07f12);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15);
}
.proof__medal svg { width: 30px; height: 30px; fill: var(--white); }
.proof__badge--gold { border-color: rgba(201, 162, 39, .45); background: linear-gradient(180deg, #fffdf5, var(--white)); }

.reviews {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.reviews__nav { display: flex; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.reviews__btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--green); background: var(--white); color: var(--green-600);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  transition: background-color .2s;
}
.reviews__btn { display: grid; place-items: center; padding: 0; }
.reviews__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.reviews__btn:hover { background: var(--green); color: var(--white); }
.review {
  flex: 0 0 calc(50% - 10px); scroll-snap-align: start;
  display: flex; flex-direction: column;
  margin: 0; padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.review blockquote { margin: .75rem 0 1.25rem; font-size: 1.0625rem; color: var(--text); }
.review--featured { background: var(--ink); border-color: var(--ink); }
.review--featured blockquote { color: var(--white); font-size: 1.2rem; line-height: 1.5; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--ink); }
.review figcaption small { font-weight: 400; color: var(--muted); }
.review--featured figcaption { color: var(--white); }
.review--featured figcaption small { color: #9fb0b9; }
.avatar {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-50); color: var(--green-600);
  font-weight: 700;
}

/* ---------- Gallery ---------- */
.gallery { padding: 0 0 clamp(72px, 9vw, 120px); background: var(--tint); }
.gallery__track {
  display: flex; gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 20px 6px;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track img {
  flex: none;
  height: clamp(200px, 26vw, 300px); width: auto;
  aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 12px;
  scroll-snap-align: center;
}

/* ---------- Careers ---------- */
.careers {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch;
  padding: 0;
  background: var(--tint);
  border-radius: 24px;
  overflow: hidden;
  max-width: 1160px;
}
.careers__body { padding: clamp(32px, 5vw, 64px); }
.careers__body p { color: var(--muted); max-width: 46ch; }
.careers__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.careers__img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq__item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-weight: 600; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; line-height: 1; color: var(--green);
}
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--muted); }
.faq__item a { color: var(--green-600); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 72px); align-items: start; }
.contact h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }

.form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #9fb0b9; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: .8rem .9rem;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--white);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  transition: border-color .2s, background-color .2s;
  text-transform: none; letter-spacing: 0;
}
.form select option { color: var(--ink); }
.form input::placeholder, .form textarea::placeholder { color: rgba(255, 255, 255, .38); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); background: rgba(255, 255, 255, .09); }
.form input[type="date"] { color-scheme: dark; }
.form .is-invalid { border-color: #ff6b6b; }
.form__note { margin: 0; font-size: .85rem; color: #8597a1; }
.form .consent {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .9rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: #c3d0d7;
}
.form .consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--green); }
.form .consent a { color: #3fd486; }
.form__success { margin: 0; padding: .9rem 1rem; border-radius: var(--radius-sm); background: rgba(0, 163, 79, .16); color: #3fd486; font-weight: 600; }

.contact__list { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact__list svg { flex: none; width: 24px; height: 24px; margin-top: 2px; color: #3fd486; }
.contact__list a { color: var(--white); text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.contact__list a:hover { color: #3fd486; }
.contact__list span { color: var(--white); }
.contact__list small { display: block; color: #9fb0b9; font-size: .925rem; margin-top: .2rem; }

.map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.map img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.map__overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .75rem; padding: 1rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-3); color: #8597a1; font-size: .95rem; padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 48px; }
.footer__brand img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer__title { font: 700 1rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer a { color: #c3d0d7; text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .875rem; }
.footer__bottom p { margin: 0; }

/* Floating call button (mobile) */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: none; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); color: var(--white);
  box-shadow: 0 10px 24px -6px rgba(0, 140, 68, .6);
}
.call-fab svg { width: 26px; height: 26px; fill: currentColor; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .review--featured { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .header__logo img { height: 32px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 16px 1.25rem;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: .9rem .25rem; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
  .nav__cta { margin: 1rem 0 0; }

  .split, .contact, .careers { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media-inset { right: 12px; bottom: -28px; width: 42%; }
  .split__body { margin-top: 1rem; }
  .careers__img { order: -1; max-height: 320px; }
  .proof { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .call-fab { display: grid; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding-inline: 16px; }
  .hero { min-height: auto; padding: 56px 0 128px; }
  .hero::before { background: linear-gradient(180deg, rgba(7, 17, 23, .7) 0%, rgba(7, 17, 23, .88) 100%); }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats { margin-top: -96px; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat { padding: 1.25rem 1rem; border-left: 0; }
  .stat:nth-child(n+2) { border-top: 1px solid var(--line); }
  .cards, .features { grid-template-columns: 1fr; }
  .review { flex-basis: 100%; }
  .section__head { margin-bottom: 2.5rem; text-align: left; }
  .form__row { grid-template-columns: 1fr; }
  .careers { border-radius: 0; }
  .careers__actions .btn { flex: 1 1 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; padding-bottom: 88px; }
  .gallery__track { padding-inline: 16px; }
}
