/* ===== Transportes RM — prototipo ===== */

:root {
  --blue-900: #0a1a3c;
  --blue-800: #0f2557;
  --blue-700: #14318f;
  --blue-600: #1a42c7;
  --red-600: #e01e26;
  --red-700: #c01319;
  --ink: #14181f;
  --gray-700: #4a5164;
  --gray-500: #6b7280;
  --gray-200: #e6e8ee;
  --gray-100: #f3f4f8;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 26, 60, 0.12);
  --ff-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-head: 'Barlow Condensed', 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

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

h1, h2, h3 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--blue-900); }
h3 { font-size: 1.35rem; color: var(--blue-900); }
p { line-height: 1.7; color: var(--gray-700); margin: 0 0 1em; }

.tag {
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-600);
  font-size: .85rem;
  margin-bottom: .6em;
}
.tag.center, h2.center { text-align: center; }
.tag.center { display: block; }

.section { padding: 88px 0; }
@media (max-width: 720px) { .section { padding: 56px 0; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red-600), var(--red-700));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(224, 30, 38, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(224, 30, 38, .42); }
.btn-ghost {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.55);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(10, 26, 60, .96);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand-logo { height: 46px; width: auto; }
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red-600);
  transition: width .2s ease;
}
.nav a:hover::after { width: 100%; }
.nav-cta { margin-left: 8px; padding: 11px 22px; font-size: .88rem; white-space: nowrap; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.12);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--blue-900);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .3s ease;
    margin-left: 0;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.15rem; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(6,14,34,.92) 10%, rgba(6,14,34,.72) 45%, rgba(10,26,60,.5) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 60px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .82rem;
  font-weight: 700;
  color: #ff8b8f;
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  max-width: 780px;
  margin-bottom: 20px;
}
.hero-sub {
  color: #d6dcf0;
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 28px;
  max-width: 760px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: var(--ff-head); font-size: 1.8rem; color: var(--white); }
.hero-stats span { font-size: .82rem; color: #b9c1dc; }
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* Partners strip */
.partners { background: var(--blue-900); color: var(--white); padding: 22px 0; }
.partners .container { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.partners p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: #9aa4c4;
  font-weight: 700;
}
.partners-list { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-weight: 600; color: #e7eaf7; }
.partners .divider { width: 4px; height: 4px; border-radius: 50%; background: var(--red-600); }

/* Split layout (Nosotros / Equipamiento) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
}

.nosotros { background: var(--gray-100); }

/* Mission / Vision / Values */
.mvv { background: var(--white); }
.mvv-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.mvv-card {
  background: var(--blue-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.mvv-card::before {
  content: '';
  position: absolute;
  top: -30%; right: -30%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(224,30,38,.25), transparent 70%);
}
.mvv-num {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: 2.2rem;
  color: var(--red-600);
  font-weight: 700;
  margin-bottom: 6px;
}
.mvv-card h3 { color: var(--white); }
.mvv-card p { color: #cdd4ea; margin-bottom: 0; }
.values-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.values-list li {
  padding: 10px 14px;
  background: rgba(255,255,255,.06);
  border-left: 3px solid var(--red-600);
  border-radius: 6px;
  font-weight: 600;
  color: #e7eaf7;
}
@media (max-width: 880px) { .mvv-grid { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { background: var(--white); }
.gallery-masonry {
  column-count: 4;
  column-gap: 14px;
  margin-top: 32px;
}
.gallery-masonry img {
  width: 100%;
  display: block;
  margin-bottom: 14px;
  border-radius: 10px;
  break-inside: avoid;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 1;
  filter: saturate(1);
  transition: transform .3s ease, opacity .3s ease, filter .3s ease, box-shadow .3s ease;
}
/* Resalta la imagen bajo el cursor y atenúa el resto para que destaque */
.gallery-masonry:hover img { opacity: .55; filter: saturate(.7); }
.gallery-masonry img:hover {
  opacity: 1;
  filter: saturate(1.1);
  transform: scale(1.045);
  box-shadow: 0 16px 34px rgba(10, 26, 60, .28);
  position: relative;
  z-index: 2;
}
@media (max-width: 960px) { .gallery-masonry { column-count: 3; } }
@media (max-width: 680px) { .gallery-masonry { column-count: 2; } }
@media (max-width: 420px) { .gallery-masonry { column-count: 1; } }

/* Equipamiento */
.equipamiento { background: var(--gray-100); }
.feature-list { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature-icon {
  flex: none;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-900);
  border-radius: 12px;
  font-size: 1.4rem;
}
.feature h3 { margin-bottom: 4px; font-size: 1.15rem; }
.feature p { margin-bottom: 0; }

/* Contact */
.contacto { background: var(--blue-900); color: var(--white); }
.contacto h2 { color: var(--white); }
.contacto-single {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.contacto-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 560px;
  width: 100%;
}
.contacto-card h3 { color: var(--white); margin-bottom: 20px; text-align: center; }
.contacto-card dl { display: flex; flex-direction: column; gap: 16px; margin: 0 0 28px; }
.contacto-card dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #9aa4c4; margin-bottom: 4px; }
.contacto-card dd { margin: 0; color: #e7eaf7; font-weight: 500; line-height: 1.5; }
.contacto-card a { color: #fff; }
.contacto-card a:hover, .contacto-card dd a:hover { color: #ff8b8f; }
.contacto-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 480px) { .contacto-card { padding: 28px 22px; } }

/* Footer */
.site-footer { background: var(--blue-900); border-top: 1px solid rgba(255,255,255,.08); padding: 28px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: #9aa4c4;
  font-size: .85rem;
}
.footer-logo { height: 32px; opacity: .9; }
.footer-inner p { margin: 0; flex: 1; min-width: 220px; color: #9aa4c4; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: #c7cee5; font-weight: 600; font-size: .85rem; }
.footer-links a:hover { color: var(--white); }

/* WhatsApp float button */
.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
  z-index: 200;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
