/* =========================================================
   Murray Transportes y Servicios — estilos
   ========================================================= */
:root {
  --red: #d5171e;
  --red-dark: #a80f15;
  --indigo: #2c1f8f;
  --ink: #0f1226;
  --ink-2: #181c38;
  --ink-3: #242a4f;
  --text: #2b2f45;
  --muted: #6a6f86;
  --line: #e3e5ec;
  --bg: #ffffff;
  --bg-alt: #f3f4f7;
  --white: #ffffff;

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

  --radius: 6px;
  --container: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 18px 40px -18px rgba(15, 18, 38, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.05; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1.1em; }
button, input, select, textarea { font: inherit; }

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

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--red); color: #fff; padding: 8px 14px; border-radius: var(--radius);
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--f-head); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: .95em 1.9em; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-family: var(--f-head); font-weight: 700; font-size: .95rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--red); }
.eyebrow--light { color: var(--red); }
.hero__content .eyebrow { color: #fff; }
.title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.title--light { color: var(--ink); }
.title::after {
  content: ""; display: block; width: 62px; height: 4px; background: var(--red);
  margin-top: clamp(14px, 2vw, 22px);
}
.section__head .title::after { margin-left: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background .3s, box-shadow .3s, height .3s;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: grid; grid-template-areas: "logo" "tag"; text-decoration: none; }
.header__logo .logo { grid-area: logo; width: 170px; height: auto; transition: opacity .3s; }
.header__tag {
  grid-area: tag; font-family: var(--f-head); font-weight: 700; font-style: italic;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: #fff;
  margin-top: 4px; white-space: nowrap; transition: color .3s;
}
.header.is-scrolled .header__tag { color: var(--indigo); }
.logo--white { opacity: 1; }
.logo--red { opacity: 0; }
.header.is-scrolled .logo--white { opacity: 0; }
.header.is-scrolled .logo--red { opacity: 1; }

.header.is-scrolled { background: #fff; box-shadow: 0 6px 24px -12px rgba(15,18,38,.25); height: 70px; }
.header.is-scrolled .nav__link { color: var(--ink); }

.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: block; padding: 10px 12px; text-decoration: none;
  font-family: var(--f-head); font-weight: 700; font-size: 1.02rem;
  letter-spacing: .08em; text-transform: uppercase; color: #fff; white-space: nowrap;
  position: relative; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link--cta { background: var(--red); color: #fff !important; border-radius: var(--radius); margin-left: 8px; padding: 10px 18px; }
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--red-dark); }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .3s, opacity .3s, background .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--ink); overflow: hidden; background: var(--ink);
}
.hero__slides, .hero__slide, .hero__overlay { position: absolute; inset: 0; }
.hero__slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  background:
    linear-gradient(180deg, rgba(15,18,38,.85) 0%, rgba(15,18,38,.15) 20%),
    linear-gradient(100deg, rgba(15,18,38,.7) 0%, rgba(15,18,38,.45) 28%, rgba(15,18,38,.12) 48%, rgba(15,18,38,0) 62%),
    linear-gradient(0deg, rgba(15,18,38,.88) 0%, rgba(15,18,38,.55) 26%, rgba(15,18,38,0) 50%);
}
.hero__content > * { animation: heroIn 1s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .12s; }
.hero__content > :nth-child(3) { animation-delay: .24s; }
.hero__content > :nth-child(4) { animation-delay: .36s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__content { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: 150px; }
.hero__title {
  font-size: clamp(3rem, 8.5vw, 7.2rem); font-weight: 800; text-transform: uppercase;
  color: #fff; line-height: .92; letter-spacing: -.005em; margin-bottom: .35em;
}
.hero__title span { color: var(--red); font-style: italic; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 560px; color: rgba(255,255,255,.88); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__dots { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.hero__dots button {
  width: auto; height: auto; border: 0; padding: 5px 12px; cursor: pointer; border-radius: 4px;
  background: rgba(15,18,38,.35); backdrop-filter: blur(2px);
  font-family: var(--f-head); font-weight: 800; font-size: .95rem; letter-spacing: .06em;
  color: rgba(255,255,255,.75); transition: background .3s, color .3s, transform .3s;
}
.hero__dots button[aria-selected="true"] { background: var(--red); color: #fff; transform: scale(1.08); }

.values { position: absolute; left: 0; right: 0; bottom: 0; background: var(--red); z-index: 2; }
.values__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px;
}
.values__item {
  font-family: var(--f-head); font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.7rem);
  letter-spacing: .22em; text-transform: uppercase; color: #fff;
}
.values__sep { width: 10px; height: 10px; background: #fff; transform: rotate(45deg); flex: none; }

/* ---------- Stats ---------- */
.stats { background: var(--bg-alt); color: var(--ink); padding: 52px 0; border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.stat { text-align: center; padding: 10px 16px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--f-head); font-weight: 800; font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1; color: var(--red); }
.stat__icon { height: clamp(2.8rem, 5vw, 4.2rem); display: flex; justify-content: center; color: var(--indigo); }
.stat__icon svg { height: 100%; width: auto; }
.stat__label {
  margin-top: 10px; font-family: var(--f-head); font-weight: 700; font-size: 1.1rem;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; color: var(--ink);
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.82); }
.section--dark .title { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__intro { font-size: 1.12rem; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split--top { align-items: start; }

/* Empresa */
.media-stack { position: relative; margin: 0; padding: 0 0 12% 0; }
.media-stack__main { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.media-stack__badge {
  position: absolute; left: 24px; bottom: 0;
  background: var(--red); color: #fff; padding: 18px 24px; border-radius: var(--radius);
  font-family: var(--f-head); text-transform: uppercase; box-shadow: var(--shadow);
}
.media-stack__badge strong { display: block; font-size: 3rem; line-height: 1; font-weight: 800; }
.media-stack__badge span { letter-spacing: .14em; font-weight: 700; font-size: .95rem; }

.sectors { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sector {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 3px solid var(--red); background: #fff;
}
.sector svg { width: 38px; height: 38px; color: var(--indigo); }
.sector span { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.service--w3 { grid-column: span 3; }
.service--w2 { grid-column: span 2; }
.service {
  position: relative; overflow: hidden; border-radius: var(--radius);
  display: flex; flex-direction: column; color: var(--text);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 30px -22px rgba(15,18,38,.3);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service:hover { transform: translateY(-5px); box-shadow: 0 20px 34px -18px rgba(15,18,38,.28); }
.service img {
  position: static; width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .8s var(--ease);
}
.service:hover img { transform: scale(1.06); }
.service__body { padding: 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.service__num {
  font-family: var(--f-head); font-weight: 800; font-size: 1rem; color: var(--red);
  display: inline-block; letter-spacing: .1em; margin-bottom: 4px;
}
.service h3 { color: var(--ink); font-size: clamp(1.3rem, 1.8vw, 1.6rem); text-transform: uppercase; font-weight: 800; margin-bottom: .3em; }
.service p { margin: 0; color: var(--muted); }
.service__body::after {
  content: "›"; align-self: flex-end; margin-top: auto; padding-top: 10px;
  color: var(--red); font-weight: 800; font-family: var(--f-head); font-size: 1.6rem; line-height: 1;
}

/* Flota */
.fleet-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 60px); align-items: center; margin-bottom: 40px; }
.fleet-head__text p:last-child { margin-bottom: 0; }
.fleet-head__intro .btn { margin-top: 10px; }
.fleet-head__media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow);
}
.fleet-types {
  list-style: none; margin: 0 0 40px; padding: 22px 0; display: flex; flex-wrap: wrap; gap: 10px 34px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fleet-types li {
  font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink); display: flex; align-items: center; gap: 12px;
}
.fleet-types li::before { content: ""; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  padding: 8px 18px; border-radius: 40px; cursor: pointer;
  font-family: var(--f-head); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem;
  transition: background .2s, border-color .2s, color .2s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.gallery { columns: 4 240px; column-gap: 14px; }
.gallery__item {
  display: block; margin-bottom: 14px; break-inside: avoid; overflow: hidden;
  border-radius: var(--radius); position: relative; cursor: zoom-in;
}
.gallery__item img { width: 100%; transition: transform .6s var(--ease), filter .4s; }
.gallery__item:hover img { transform: scale(1.05); filter: brightness(1.08); }
.gallery__item.is-hidden { display: none; }

/* Cobertura */
.coverage { background: var(--bg-alt); }
.coverage__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.coverage__list { list-style: none; padding: 0; margin: 24px 0 32px; }
.coverage__list li { padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); position: relative; }
.coverage__list li::before { content: ""; position: absolute; left: 0; top: 23px; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.coverage__list strong { display: block; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); }
.coverage__map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3.2; background: #fff; }
.coverage__map::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--red); }
.coverage__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Forms */
.card { background: #fff; border-radius: var(--radius); padding: clamp(26px, 3.5vw, 42px); box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.form__title { font-size: 1.9rem; text-transform: uppercase; font-weight: 800; margin-bottom: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #cfd3de; border-radius: var(--radius);
  background: #fafbfc; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(213,23,30,.15);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); background: #fff5f5; }
.field--file input { padding: 10px; background: #fff; }
.field--file input::file-selector-button {
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  border: 0; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 4px; margin-right: 12px; cursor: pointer;
}
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 14px 0 0; font-weight: 600; min-height: 1.4em; }
.form__status.is-ok { color: #16803c; }
.form__status.is-error { color: var(--red); }

/* Contacto */
.contact { background: var(--bg-alt); }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list svg { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--red); color: #fff; }
.contact__list strong { display: block; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .14em; color: var(--ink); font-size: .95rem; }
.contact__list a { color: var(--muted); text-decoration: none; font-size: 1.1rem; word-break: break-word; }
.contact__list a:hover { color: var(--ink); text-decoration: underline; }
.contact .card { color: var(--text); }

/* Footer */
.footer { background: #0a0c1b; color: rgba(255,255,255,.65); padding-top: 70px; font-size: .96rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer__brand img { width: 180px; margin-bottom: 18px; }
.footer__values { font-family: var(--f-head); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25); color: #fff; transition: background .2s, border-color .2s;
}
.footer__social a:hover { background: var(--red); border-color: var(--red); }
.footer__social svg { width: 17px; height: 17px; }
.footer h4 { color: #fff; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 16px; }
.footer__nav { display: flex; flex-direction: column; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .85rem; }

/* WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.45);
  transition: transform .25s var(--ease), opacity .3s, visibility .3s;
}
.wa-float:not(.is-shown) { opacity: 0; visibility: hidden; transform: translateY(20px); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8,10,22,.95);
  display: flex; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox__caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); margin: 0; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; line-height: 1; }
.lightbox__close { top: 14px; right: 22px; font-size: 3rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 4rem; padding: 10px 16px; }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .nav__link { padding: 10px 9px; font-size: .95rem; letter-spacing: .06em; }
  .nav__link::after { left: 9px; right: 9px; }
}

@media (max-width: 1200px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw);
    background: var(--ink); padding: 100px 28px 30px;
    transform: translateX(100%); transition: transform .35s var(--ease);
    box-shadow: -20px 0 40px rgba(0,0,0,.3);
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { color: #fff; font-size: 1.3rem; white-space: normal; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__link::after { display: none; }
  .nav__link--cta { margin: 18px 0 0; text-align: center; border-bottom: 0; }
  .burger { display: block; position: relative; z-index: 101; }
  .burger[aria-expanded="true"] span { background: #fff !important; } /* la X cae sobre el panel oscuro */
  .services { grid-template-columns: repeat(2, 1fr); }
  .service--w3, .service--w2 { grid-column: span 1; }
  .service:last-child:nth-child(odd) { grid-column: span 2; }
  /* Panel abierto: texto blanco aun con el header scrolleado (gana en especificidad a .header.is-scrolled .nav__link) */
  .nav.is-open .nav__link,
  .header.is-scrolled .nav.is-open .nav__link { color: #fff; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .split, .coverage__grid, .fleet-head { grid-template-columns: 1fr; }
  .fleet-head { gap: 30px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .stat:nth-child(3) { border-left: 0; grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .header__logo .logo { width: 140px; }
  .header__tag { font-size: .6rem; letter-spacing: .22em; }
  .hero__content { padding-bottom: 130px; }
  .hero__title { font-size: clamp(2.4rem, 11.5vw, 4rem); overflow-wrap: anywhere; }
  .eyebrow { letter-spacing: .12em; font-size: .82rem; }
  .eyebrow::before { width: 22px; flex: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__dots { display: none; }
  .values__inner { min-height: 62px; gap: 8px; }
  .values__inner { justify-content: center; }
  .values__item { letter-spacing: .06em; font-size: .88rem; }
  .values__sep { width: 6px; height: 6px; }
  .services { grid-template-columns: 1fr; }
  .service:last-child:nth-child(odd) { grid-column: span 1; }
  .sectors { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .sector { padding: 12px; }
  .sector span { font-size: .85rem; letter-spacing: .05em; }
  .form__row { grid-template-columns: 1fr; }
  .media-stack__badge { left: 0; }
  .media-stack__badge strong { font-size: 2.2rem; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery__item { margin-bottom: 10px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .lightbox { padding: 60px 10px; }
  .lightbox__nav { font-size: 3rem; padding: 6px; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

/* Barra de accesos mobile */
.mbar { display: none; }
@media (max-width: 900px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    display: flex; justify-content: space-around; align-items: center;
    background: var(--red); height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -6px 20px -8px rgba(0,0,0,.35); border-top: 1px solid rgba(255,255,255,.3);
  }
  .mbar a { flex: 1; height: 100%; display: grid; place-items: center; color: #fff; -webkit-tap-highlight-color: transparent; }
  .mbar a:active { background: var(--red-dark); }
  .mbar svg { width: 30px; height: 30px; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .hero { min-height: calc(100vh - 62px); min-height: calc(100svh - 62px - env(safe-area-inset-bottom)); }
  .wa-float { display: none; }
}

/* Portada mobile: la foto se muestra completa (16:9) y el texto va debajo */
@media (max-width: 640px) {
  .hero { min-height: 0; justify-content: flex-start; padding-top: var(--header-h); }
  .hero__slides { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; flex: none; }
  .hero__overlay { display: none; }
  .hero__content { padding-top: 26px; padding-bottom: 30px; }
  .values { position: static; }
}

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