/* =====================================================
   TMV TRANSPORTES — Estilos
   Paleta: rojo #F10202 · azul #3771BA · gris
   ===================================================== */

:root {
  --red: #F10202;
  --red-dark: #c40101;
  --blue: #3771BA;
  --blue-dark: #285587;
  --blue-soft: #e8f0fa;
  --gray-900: #1f2530;
  --gray-700: #4a5161;
  --gray-500: #7c8492;
  --gray-300: #d3d8e0;
  --gray-100: #f3f5f8;
  --gray-50:  #f9fafc;
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(31,37,48,.06);
  --shadow-md: 0 10px 30px rgba(31,37,48,.10);
  --shadow-lg: 0 20px 50px rgba(31,37,48,.16);
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 78px;
  --maxw: 1200px;
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: .35s cubic-bezier(.4,.2,.2,1);
}

/* -------- Reset / base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; color: var(--gray-900); }
p { margin: 0; }
button { font-family: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.text-red  { color: var(--red); }
.text-blue { color: var(--blue); }

/* =====================================================
   NAV  (menú iluminado)
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255,255,255,.98);
  box-shadow: 0 6px 22px rgba(31,37,48,.08);
  border-bottom-color: var(--gray-100);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav__brand {
  display: flex; align-items: center;
  position: relative;
  z-index: 2;
  padding: 4px 0;
}
.nav__brand img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: var(--transition);
  filter: drop-shadow(0 2px 6px rgba(31,37,48,.08));
}
.nav__brand:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 14px rgba(247,2,2,.35)) drop-shadow(0 0 10px rgba(55,113,186,.25));
}

.nav__menu ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0; padding: 0;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--gray-700);
  border-radius: 10px;
  transition: var(--transition);
  overflow: hidden;
}
.nav__link i { font-size: .92rem; opacity: .7; transition: var(--transition); }

/* Efecto iluminado al pasar / al estar activo */
.nav__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(247,2,2,.10), rgba(55,113,186,.10));
  opacity: 0;
  transform: scale(.85);
  transition: var(--transition);
  z-index: -1;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.4,.2,.2,1);
}
.nav__link:hover,
.nav__link.active { color: var(--gray-900); }
.nav__link:hover::before,
.nav__link.active::before { opacity: 1; transform: scale(1); }
.nav__link:hover::after,
.nav__link.active::after  { transform: scaleX(1); }
.nav__link:hover i,
.nav__link.active i { opacity: 1; color: var(--red); transform: translateY(-1px); filter: drop-shadow(0 0 6px rgba(247,2,2,.6)); }
.nav__link.active { box-shadow: 0 0 0 1px rgba(55,113,186,.18), 0 8px 20px rgba(55,113,186,.14); }

/* Toggle móvil */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  border-radius: 3px;
  transition: var(--transition);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__slider { position: absolute; inset: 0; z-index: -3; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease, transform 8s ease;
  filter: brightness(.88) saturate(1.05) contrast(1.05);
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(120deg, rgba(20,30,50,.78) 0%, rgba(40,85,135,.62) 50%, rgba(196,1,1,.55) 100%);
}
.hero__overlay::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 100%, rgba(0,0,0,.55), transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 60px) 22px 90px;
  width: 100%;
  max-width: 1200px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 30px;
  font-size: .8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.hero__title {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 22px 0 18px;
  max-width: 980px;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.45);
}
.hero__title .text-red  { color: #ff5d5d; text-shadow: 0 0 22px rgba(247,2,2,.5); }
.hero__title .text-blue { color: #8ec0f5; text-shadow: 0 0 22px rgba(55,113,186,.6); }

.hero__sub {
  max-width: 640px;
  font-size: 1.08rem;
  color: rgba(255,255,255,.92);
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }

.btn {
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 0;
  transition: var(--transition);
  letter-spacing: .3px;
}
.btn--primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: 0 10px 26px rgba(247,2,2,.4);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(247,2,2,.55);
}
.btn--ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
  transform: translateY(-3px);
}

/* Botón "Ver video" */
.btn--video {
  background: transparent;
  color: #fff;
  padding: 10px 22px 10px 12px;
  border: 1.5px solid rgba(255,255,255,.45);
  cursor: pointer;
  font-family: inherit;
}
.btn--video:hover {
  border-color: #fff;
  transform: translateY(-3px);
}
.btn--video__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: .85rem;
  box-shadow: 0 6px 18px rgba(247,2,2,.55);
  position: relative;
}
.btn--video__icon::before,
.btn--video__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(247,2,2,.55);
  animation: video-pulse 2.2s ease-out infinite;
}
.btn--video__icon::after { animation-delay: 1.1s; }
.btn--video__icon i { transform: translateX(1px); }
.btn--video:hover .btn--video__icon { transform: scale(1.06); }
@keyframes video-pulse {
  0%   { transform: scale(1);   opacity: .9; }
  100% { transform: scale(1.9); opacity: 0;  }
}

.hero__stats {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.22);
  max-width: 720px;
}
.hero__stats > div { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #cfe1f7);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__stats span {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,.82);
  margin-top: 4px;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%; transform: translateX(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  backdrop-filter: blur(8px);
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translate(-50%, 0); }
  50%     { transform: translate(-50%, 10px); }
}

/* =====================================================
   SECCIONES
   ===================================================== */
.section { padding: 55px 0 95px; position: relative; }
.section--light { background: var(--white); }
.section--gray  { background: linear-gradient(180deg, var(--gray-50), var(--white)); }
.section--cover { padding: 80px 0 110px; color: var(--white); overflow: hidden; }
.section--contact { background: linear-gradient(180deg, var(--white), var(--gray-50)); }

.section__head { text-align: center; max-width: 800px; margin: 0 auto 55px; }
.section__head--sub { margin-top: 60px; margin-bottom: 36px; }
.section__head--light * { color: var(--white) !important; }
.section__tag {
  display: inline-block;
  padding: 6px 18px;
  background: linear-gradient(135deg, rgba(247,2,2,.10), rgba(55,113,186,.10));
  color: var(--blue-dark);
  border-radius: 30px;
  font-size: .78rem;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(55,113,186,.18);
}
.section__tag--light { background: rgba(255,255,255,.15); color: var(--white) !important; border-color: rgba(255,255,255,.3); }
.section__title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section__subtitle {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
}
.section__lead { font-size: 1.05rem; color: var(--gray-700); }

/* =====================================================
   NOSOTROS  —  Misión / Visión / Valores
   ===================================================== */
.card-mv {
  background: var(--white);
  padding: 44px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--gray-300);
  transition: var(--transition);
}
.card-mv::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  opacity: .07;
  transition: var(--transition);
}
.card-mv--red       { border-top-color: var(--red); }
.card-mv--red::before { background: var(--red); }
.card-mv--blue      { border-top-color: var(--blue); }
.card-mv--blue::before { background: var(--blue); }
.card-mv:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-mv:hover::before { transform: scale(1.4); }

.card-mv__icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 20px;
}
.card-mv--red .card-mv__icon  { background: linear-gradient(135deg, var(--red), var(--red-dark)); box-shadow: 0 10px 24px rgba(247,2,2,.3); }
.card-mv--blue .card-mv__icon { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: 0 10px 24px rgba(55,113,186,.3); }
.card-mv h3 { font-size: 1.5rem; margin-bottom: 12px; }
.card-mv p  { color: var(--gray-700); }

/* -------- About split (Misión / Visión + foto) -------- */
.about-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-split__media {
  position: relative;
  height: 540px;
}
.about-split__photo {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform .6s cubic-bezier(.2,.6,.2,1);
  filter: saturate(1.08) contrast(1.04);
}
.about-split__photo--main {
  top: 0; left: 0;
  width: 78%; height: 70%;
  z-index: 1;
}
.about-split__photo--sm {
  bottom: 0; right: 0;
  width: 60%; height: 50%;
  z-index: 2;
  border: 6px solid var(--white);
}
.about-split__photo--xs {
  top: 35%; right: 6%;
  width: 36%; height: 34%;
  z-index: 3;
  border: 5px solid var(--white);
  transform: rotate(-2deg);
}
.about-split__media:hover .about-split__photo--main { transform: translateY(-6px); }
.about-split__media:hover .about-split__photo--sm   { transform: translateY(-4px); }
.about-split__media:hover .about-split__photo--xs   { transform: rotate(0deg) scale(1.04); }

.about-split__badge {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 4;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 30px;
  box-shadow: 0 8px 22px rgba(247,2,2,.5);
}
.about-split__badge i { margin-right: 6px; }

.about-split__stat {
  position: absolute;
  left: -10px; bottom: -20px;
  z-index: 4;
  background: var(--white);
  padding: 18px 26px;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--blue);
  display: flex; flex-direction: column;
  text-align: left;
}
.about-split__stat strong {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1;
}
.about-split__stat span {
  font-size: .78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: 4px;
}

.about-split__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about-split__content .card-mv {
  padding: 30px 30px;
}

.values {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.value {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  text-align: left;
}
.value:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.value i {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--red));
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(55,113,186,.25);
}
.value h4 { font-size: 1.1rem; margin-bottom: 8px; }
.value p  { color: var(--gray-700); font-size: .94rem; }

/* =====================================================
   SERVICIOS
   ===================================================== */
.services {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.svc {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.svc:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.svc__img {
  position: relative;
  height: 230px;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) contrast(1.04);
  overflow: hidden;
}
.svc:hover .svc__img { transform: scale(1.02); }
.svc__img::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.0) 35%, rgba(10,18,32,.55) 65%, rgba(10,18,32,.96) 100%);
}
.svc__img::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s;
}
.svc:hover .svc__img::after { transform: scaleX(1); }
.svc__overlay {
  position: absolute;
  bottom: 18px; left: 22px; right: 22px;
  color: #ffffff;
  display: flex; align-items: center; gap: 14px;
  z-index: 2;
}
.svc__overlay i {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-radius: 12px;
  font-size: 1.15rem;
  box-shadow: 0 10px 22px rgba(247,2,2,.55), 0 0 0 2px rgba(255,255,255,.18);
  flex-shrink: 0;
}
.svc__overlay h3 {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: .3px;
  text-shadow:
    0 2px 4px rgba(0,0,0,.85),
    0 1px 12px rgba(0,0,0,.6);
}
.svc__body { padding: 22px 24px 26px; }
.svc__body p { color: var(--gray-700); font-size: .95rem; }

/* =====================================================
   FLOTA — Gallery (con overlays)
   ===================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 18px;
}
.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  grid-column: span 2;
  grid-row: span 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.gallery__item--big  { grid-column: span 4; grid-row: span 2; }
.gallery__item--wide { grid-column: span 6; grid-row: span 1; }

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
  filter: saturate(1.1) contrast(1.05) brightness(1.02);
}
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 35%, rgba(10,18,32,.55) 65%, rgba(10,18,32,.96) 100%);
  transition: var(--transition);
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after {
  background:
    linear-gradient(180deg, rgba(40,85,135,.2) 0%, rgba(10,18,32,.55) 55%, rgba(10,18,32,.97) 100%);
}
.gallery__item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 24px 24px;
  color: #ffffff;
  z-index: 2;
  transform: translateY(8px);
  transition: var(--transition);
}
.gallery__item:hover figcaption { transform: translateY(0); }
.gallery__item figcaption h3 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 10px 0 4px;
  letter-spacing: .3px;
  text-shadow:
    0 2px 6px rgba(0,0,0,.9),
    0 1px 14px rgba(0,0,0,.55);
}
.gallery__item figcaption p {
  color: #ffffff;
  font-size: .94rem;
  opacity: 0;
  max-height: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,.85);
  transition: var(--transition);
}
.gallery__item:hover figcaption p { opacity: 1; max-height: 80px; }
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: .72rem;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(247,2,2,.55), 0 0 0 1.5px rgba(255,255,255,.25);
}
.badge--blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 6px 16px rgba(55,113,186,.55), 0 0 0 1.5px rgba(255,255,255,.25);
}

/* =====================================================
   COBERTURA
   ===================================================== */
.section--cover .cover__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.45) saturate(1.1);
  z-index: -2;
}
.section--cover .cover__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,30,50,.85), rgba(40,85,135,.7) 60%, rgba(196,1,1,.5));
  z-index: -1;
}
.cover__grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.cover__card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px 24px;
  border-radius: var(--radius);
  color: var(--white);
  text-align: center;
  transition: var(--transition);
}
.cover__card:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-6px);
  border-color: var(--white);
}
.cover__card i {
  font-size: 2rem;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ff7d7d, #8ec0f5);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cover__card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 8px; }
.cover__card p  { color: rgba(255,255,255,.85); font-size: .92rem; }

/* =====================================================
   CLIENTES
   ===================================================== */
.clientes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
  align-items: center;
}
.cliente {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 32px 26px;
  height: 170px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(31,37,48,.07);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  overflow: hidden;
}
.cliente::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(247,2,2,.04) 0%, rgba(55,113,186,.04) 100%);
  opacity: 0;
  transition: var(--transition);
}
.cliente::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  border-radius: 3px 3px 0 0;
  transition: transform .4s cubic-bezier(.4,.2,.2,1);
}
.cliente img {
  max-height: 92px;
  max-width: 88%;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: var(--transition);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.08));
}
.cliente:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(31,37,48,.14);
  border-color: transparent;
}
.cliente:hover::before { opacity: 1; }
.cliente:hover::after  { transform: translateX(-50%) scaleX(1); }
.cliente:hover img     { transform: scale(1.06); filter: drop-shadow(0 6px 12px rgba(0,0,0,.15)); }

/* =====================================================
   CONTACTO
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
}
.contact-info { display: flex; flex-direction: column; gap: 14px; }

.contact-card {
  display: flex; align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
a.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.contact-card__icon {
  flex: 0 0 50px;
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}
.contact-card__icon--red  { background: linear-gradient(135deg, var(--red), var(--red-dark));   box-shadow: 0 6px 16px rgba(247,2,2,.3); }
.contact-card__icon--blue { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: 0 6px 16px rgba(55,113,186,.3); }
.contact-card small  { display: block; color: var(--gray-500); font-size: .78rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.contact-card strong { color: var(--gray-900); font-weight: 600; font-size: 1rem; line-height: 1.45; }

.contact-social { display: flex; gap: 12px; margin-top: 10px; }
.contact-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
  font-size: 1rem;
  transition: var(--transition);
}
.contact-social a:hover {
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(55,113,186,.3);
}
.contact-social a.social-fb:hover {
  background: #1877F2;
  box-shadow: 0 10px 22px rgba(24,119,242,.45);
}
.contact-social a.social-wa:hover {
  background: #25D366;
  box-shadow: 0 10px 22px rgba(37,211,102,.45);
}

.contact-map__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
  outline: 1px solid var(--gray-100);
  height: 100%;
  min-height: 460px;
}
#leafletMap {
  width: 100%;
  height: 100%;
  min-height: 460px;
  background: #1a2332; /* azul oscuro como océano satelital mientras cargan los tiles */
}
.contact-map__open {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,.96);
  color: var(--gray-900);
  font-size: .82rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(31,37,48,.18);
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.contact-map__open i { color: var(--red); font-size: .78rem; }
.contact-map__open:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(247,2,2,.45);
}
.contact-map__open:hover i { color: #fff; }

.contact-map__hint {
  margin-top: 12px;
  font-size: .85rem;
  color: var(--gray-500);
  text-align: center;
}
.contact-map__hint i { color: var(--red); margin-right: 6px; }

/* -------- Pin TMV personalizado -------- */
.tmv-marker { background: transparent; border: 0; }
.tmv-marker__pulse {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 4px);
  width: 36px; height: 14px;
  background: radial-gradient(ellipse at center, rgba(247,2,2,.45), transparent 70%);
  border-radius: 50%;
  animation: tmv-pulse 1.8s ease-in-out infinite;
}
.tmv-marker__pin {
  position: relative;
  width: 46px; height: 46px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(247,2,2,.55), 0 0 0 4px rgba(255,255,255,.85);
  font-size: 1rem;
}
.tmv-marker__pin i { transform: rotate(45deg); }
.tmv-marker__pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50% 50% 50% 0;
  border: 2px solid rgba(255,255,255,.35);
}

@keyframes tmv-pulse {
  0%, 100% { transform: translate(-50%, 4px) scale(.7); opacity: .9; }
  50%      { transform: translate(-50%, 4px) scale(1.25); opacity: .25; }
}

/* Drop animation cuando el marcador aterriza */
.tmv-marker.is-dropping {
  animation: tmv-drop .9s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes tmv-drop {
  0%   { transform: translate3d(0, -120px, 0) scale(.6); opacity: 0; }
  60%  { transform: translate3d(0, 8px, 0) scale(1.08); opacity: 1; }
  80%  { transform: translate3d(0, -4px, 0) scale(.98); }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

/* Popup TMV */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 12px 30px rgba(31,37,48,.18) !important;
  border: 2px solid var(--red);
  padding: 4px 6px;
}
.leaflet-popup-content { margin: 12px 16px; font-family: var(--font-body); }
.leaflet-popup-tip { background: var(--red) !important; }
.tmv-popup { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--gray-700); line-height: 1.45; }
.tmv-popup strong { color: var(--red); font-family: var(--font-head); font-weight: 800; font-size: .98rem; letter-spacing: .3px; }

/* Círculo de cobertura suave */
.tmv-circle { animation: tmv-circle-in .8s ease-out both; }
@keyframes tmv-circle-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Control de zoom: estilo coherente con el sitio */
.leaflet-control-zoom a {
  background: #fff !important;
  color: var(--gray-700) !important;
  border-color: var(--gray-100) !important;
  font-weight: 700;
}
.leaflet-control-zoom a:hover {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--red) !important;
}
.leaflet-bar {
  box-shadow: 0 6px 18px rgba(31,37,48,.18) !important;
  border-radius: 10px !important;
  overflow: hidden;
}
.leaflet-control-attribution {
  font-size: .68rem !important;
  background: rgba(255,255,255,.85) !important;
  padding: 2px 8px !important;
}

/* =====================================================
   SLOGAN / COMPROMISO  (banda parallax)
   ===================================================== */
.slogan {
  position: relative;
  padding: 120px 0;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.slogan__bg {
  position: absolute;
  inset: -10% 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(.42) saturate(1.15) contrast(1.05);
  z-index: -2;
  transform: scale(1.05);
}
.slogan__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(20,30,50,.78) 0%, rgba(40,85,135,.6) 50%, rgba(196,1,1,.55) 100%);
}
.slogan__overlay::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,0,0,.35), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,.35), transparent 60%);
}

.slogan__content { max-width: 980px; }

.slogan__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  font-size: .78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 32px;
}
.slogan__eyebrow i {
  font-size: .8rem;
  background: linear-gradient(135deg, #ff8a8a, #9fc7f7);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slogan__quote {
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 4.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.5px;
  margin: 0 0 40px;
  text-shadow: 0 4px 22px rgba(0,0,0,.45);
  quotes: none;
}
.slogan__quote::before, .slogan__quote::after { content: none; }
.slogan__line { display: block; }
.slogan__hl { position: relative; display: inline-block; }
.slogan__hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 4px;
  border-radius: 4px;
  background: currentColor;
  opacity: .5;
}
.slogan__hl--red  { color: #ffb0b0; text-shadow: 0 0 22px rgba(247,2,2,.55), 0 4px 22px rgba(0,0,0,.45); }
.slogan__hl--blue { color: #a9cdf7; text-shadow: 0 0 22px rgba(55,113,186,.65), 0 4px 22px rgba(0,0,0,.45); }

.slogan__pills {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.slogan__pills li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 30px;
  font-size: .92rem;
  font-weight: 500;
  color: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}
.slogan__pills li:hover {
  background: rgba(255,255,255,.20);
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.5);
}
.slogan__pills i {
  background: linear-gradient(135deg, #ff8a8a, #9fc7f7);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 860px) {
  .slogan { padding: 90px 0; }
  .slogan__bg { background-attachment: scroll; }
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: linear-gradient(180deg, var(--gray-900) 0%, #131722 100%);
  color: rgba(255,255,255,.78);
  padding: 60px 0 28px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer__brand img {
  height: 72px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  background: rgba(255,255,255,.96);
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.footer__brand small {
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  letter-spacing: .5px;
}
.footer__links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 28px;
}
.footer__links a { color: rgba(255,255,255,.7); font-size: .9rem; transition: var(--transition); }
.footer__links a:hover { color: var(--white); text-shadow: 0 0 12px rgba(55,113,186,.6); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  width: 100%;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: rgba(255,255,255,.42);
  letter-spacing: .3px;
}
.footer__credit i {
  font-size: .72rem;
  background: linear-gradient(135deg, #ff5d5d, #8ec0f5);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer__credit a {
  color: rgba(255,255,255,.78);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-bottom: 1px;
  background-image: linear-gradient(90deg, var(--red), var(--blue));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: var(--transition);
}
.footer__credit a:hover {
  color: #ffffff;
  background-size: 100% 1.5px;
  text-shadow: 0 0 12px rgba(55,113,186,.5);
}

/* =====================================================
   FAB Whatsapp
   ===================================================== */
.fab {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 12px 28px rgba(37,211,102,.55);
  z-index: 90;
  animation: pulse 2.4s ease-in-out infinite;
  transition: var(--transition);
}
.fab:hover { transform: scale(1.08); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(37,211,102,.55), 0 0 0 0 rgba(37,211,102,.5); }
  50%      { box-shadow: 0 12px 28px rgba(37,211,102,.55), 0 0 0 16px rgba(37,211,102,0); }
}

/* =====================================================
   MODAL DE VIDEO
   ===================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.video-modal[hidden] { display: none; }
.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 32, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.video-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 1024px;
  background: #0e1422;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
  transform: scale(.92) translateY(20px);
  transition: transform .4s cubic-bezier(.34, 1.4, .64, 1);
}
.video-modal.is-open .video-modal__dialog { transform: scale(1) translateY(0); }
.video-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(247,2,2,.08), rgba(55,113,186,.08));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.video-modal__head h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.video-modal__head h3 i { color: var(--red); font-size: 1.2rem; }
.video-modal__close {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}
.video-modal__close:hover {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(90deg);
}
.video-modal__body {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  width: 100%;
}
.video-modal__body video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

body.no-scroll { overflow: hidden; }

@media (max-width: 640px) {
  .video-modal { padding: 12px; }
  .video-modal__head h3 { font-size: .92rem; }
  .video-modal__close { width: 34px; height: 34px; }
}

/* =====================================================
   REVEAL animations
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.4,.2,.2,1), transform .8s cubic-bezier(.4,.2,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery__item--big  { grid-column: span 4; }
  .gallery__item--wide { grid-column: span 4; }
  .gallery__item { grid-column: span 2; }

  .about-split { grid-template-columns: 1fr; gap: 70px; }
  .about-split__media { height: 460px; max-width: 560px; margin: 0 auto; width: 100%; }
}

@media (max-width: 640px) {
  .about-split__media { height: 380px; }
  .about-split__photo--main { width: 82%; height: 68%; }
  .about-split__photo--sm   { width: 62%; height: 48%; border-width: 4px; }
  .about-split__photo--xs   { display: none; }
  .about-split__stat { padding: 14px 20px; left: 0; bottom: -16px; }
  .about-split__stat strong { font-size: 1.6rem; }
}

@media (max-width: 860px) {
  :root { --nav-h: 68px; }
  .section { padding: 40px 0 70px; }
  .section__head { margin-bottom: 40px; }

  .nav__brand img { height: 42px; max-width: 170px; }
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 16px 32px rgba(0,0,0,.10);
    border-top: 1px solid var(--gray-100);
    transform: translateX(100%);
    transition: var(--transition);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu ul {
    flex-direction: column;
    padding: 18px;
    gap: 4px;
  }
  .nav__link {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1rem;
  }
  .nav__link::after { left: 18px; right: 18px; bottom: 8px; }

  .hero { min-height: 90vh; }
  .hero__stats { gap: 28px; }
  .hero__stats strong { font-size: 1.7rem; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item, .gallery__item--big, .gallery__item--wide { grid-column: span 2; grid-row: span 1; }

  .footer__brand { flex-direction: column; text-align: center; }
  .footer__brand > div { text-align: center; }
}

@media (max-width: 540px) {
  .hero__content { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 70px; }
  .hero__title { font-size: 2rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: 22px; }

  .card-mv { padding: 32px 26px; }
  .services { gap: 22px; }
  .svc__img { height: 200px; }

  .fab { width: 54px; height: 54px; font-size: 1.5rem; right: 18px; bottom: 18px; }
}

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .hero__slide { transform: none !important; }
}
