/* =========================================================
   FM Transport RD — Hoja de estilos principal
   Paleta: navy de carretera nocturna + dorado de placa premium
   Tipografía: Oswald (señalización vial) + Inter (lectura)
   ========================================================= */

:root {
  --navy-900: #0a1830;
  --navy-800: #0f223f;
  --navy-700: #16304f;
  --navy-600: #1f4166;
  --gold-500: #c9a227;
  --gold-400: #ddbb4d;
  --gold-100: #f7edcd;
  --slate-900: #16202e;
  --slate-600: #56626f;
  --slate-400: #8993a1;
  --slate-100: #f4f6f8;
  --white: #ffffff;
  --green-wa: #25d366;
  --danger: #c0392b;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(10, 24, 48, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 24, 48, 0.14);
  --shadow-gold: 0 10px 24px rgba(201, 162, 39, 0.25);
  --container: 1180px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  color: var(--navy-900);
  line-height: 1.15;
}
p { margin: 0 0 1em; color: var(--slate-600); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold-500) 0 8px, transparent 8px 14px);
}

.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--navy { background: var(--navy-900); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy .eyebrow { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.72); }
.section--muted { background: var(--slate-100); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head em { font-style: normal; color: var(--gold-500); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-500); color: var(--navy-900); box-shadow: var(--shadow-gold); }
.btn-primary:hover { background: var(--gold-400); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-400); }
.btn-outline-navy { border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline-navy:hover { border-color: var(--gold-500); color: var(--navy-900); background: var(--gold-100); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--gold-400); }
.topbar__contact { display: flex; gap: 18px; align-items: center; }
.topbar__social { display: flex; gap: 14px; align-items: center; }
.topbar__badge { color: var(--gold-400); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 52px; width: auto; }
.brand-fallback {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--navy-900);
}
.brand-fallback strong { color: var(--gold-500); }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-900);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; gap: 6px; font-family: var(--font-display); font-size: 13px; }
.lang-switch span { padding: 2px 6px; cursor: pointer; color: var(--slate-400); }
.lang-switch span.active { color: var(--navy-900); font-weight: 700; }
.header-phone { font-family: var(--font-display); font-size: 15px; color: var(--navy-900); display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--navy-900); }

/* ---------- Hero ---------- */
/* ============ HERO ============ */
.hero {
  position: relative;  /* ← IMPORTANTE: el contenedor debe ser relativo */
  color: var(--white);
  overflow: hidden;
  padding: 90px 0 70px;
  min-height: 100vh;   /* ← Para que ocupe toda la pantalla */
}

.hero-bg {
  position: absolute;
  inset: 0;            /* ← Esto es top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: 0;          /* ← Capa inferior */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;          /* ← Capa intermedia (encima de la imagen) */
  background: linear-gradient(160deg, rgba(10,24,48,0.72) 0%, rgba(15,34,63,0.55) 50%, rgba(10,24,48,0.75) 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;          /* ← Capa superior (encima de todo) */
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
  min-height: 80vh;    /* ← Para que el contenido esté centrado */
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold-500); }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 18px; max-width: 520px; }
.hero-cta { display: flex; gap: 16px; margin: 30px 0 46px; flex-wrap: wrap; }

.gauge-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 560px; }
.gauge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
}
.gauge b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--gold-400); }
.gauge span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); }

/* ---------- Formulario tarjeta (hero + contacto) ---------- */
.form-card {
  background: var(--white);
  color: var(--slate-900);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.form-card h3 {
  font-size: 20px;
  border-bottom: 3px solid var(--gold-500);
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-600);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--white);
  color: var(--slate-900);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.18);
}
.field textarea { resize: vertical; min-height: 70px; }
.radio-group { display: flex; gap: 18px; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--slate-900); text-transform: none; font-weight: 500; }
.form-msg { font-size: 13px; margin-top: 10px; padding: 10px 12px; border-radius: 8px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #e6f7ee; color: #1d7a45; }
.form-msg.error { background: #fdecea; color: var(--danger); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid #eceff2;
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.service-card .icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card p { font-size: 14px; margin: 0; }

/* ---------- Flota ---------- */
.fleet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.fleet-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid #eceff2;
}
.fleet-card figure { position: relative; margin: 0; height: 170px; overflow: hidden; }
.fleet-card img { width: 100%; height: 100%; object-fit: cover; }
.fleet-card .badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--gold-500); color: var(--navy-900);
  font-family: var(--font-display); font-size: 12px;
  padding: 4px 10px; border-radius: 999px;
}
.fleet-card .body { padding: 18px 20px 22px; }
.fleet-card h3 { font-size: 17px; margin-bottom: 6px; }
.fleet-card p { font-size: 13.5px; margin: 0; }

/* ---------- Por qué elegirnos ---------- */
.why-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.quote {
  border-left: 3px solid var(--gold-500);
  padding-left: 20px;
  margin: 26px 0;
  font-style: italic;
  color: rgba(255,255,255,0.85);
}
.quote cite { display: block; margin-top: 10px; font-style: normal; color: var(--gold-400); font-family: var(--font-display); font-size: 13px; letter-spacing: 0.05em; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-item { display: flex; gap: 14px; }
.why-item .dot {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(201,162,39,0.15); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.why-item h4 { font-size: 14.5px; margin-bottom: 4px; color: var(--white); text-transform: none; letter-spacing: 0; }
.why-item p { font-size: 13px; margin: 0; color: rgba(255,255,255,0.65); }

/* ---------- Cotizador ---------- */
.quote-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: start; }
.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  border: 1px solid #eceff2;
}
.calc-card h3 { font-size: 18px; margin-bottom: 18px; }
.calc-route {
  display: flex; align-items: center; gap: 10px;
  background: var(--slate-100); border-radius: 8px; padding: 12px 14px;
  font-family: var(--font-display); font-size: 14px; color: var(--navy-900);
  margin: 16px 0;
}
.calc-route .arrow { color: var(--gold-500); font-size: 18px; }
.calc-result {
  text-align: center;
  background: var(--navy-900); color: var(--white);
  border-radius: var(--radius); padding: 20px; margin: 18px 0;
}
.calc-result .amount { font-family: var(--font-display); font-size: 34px; color: var(--gold-400); }
.calc-result small { display: block; font-size: 11.5px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.calc-note { font-size: 12px; color: var(--slate-400); text-align: center; }

.rates-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rates-table {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid #eceff2; overflow: hidden; box-shadow: var(--shadow-sm);
}
.rates-table h4 {
  background: var(--navy-900); color: var(--white);
  font-size: 14px; padding: 12px 18px; margin: 0;
}
.rates-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rates-table td { padding: 10px 18px; border-bottom: 1px solid #f0f2f4; color: var(--slate-600); }
.rates-table tr:last-child td { border-bottom: none; }
.rates-table td.price { text-align: right; font-weight: 700; color: var(--navy-900); }
.rates-footnote { grid-column: 1 / -1; font-size: 12px; color: var(--slate-400); margin-top: 4px; }

/* ---------- CTA franja ---------- */
.cta-strip {
  background: var(--gold-500);
  color: var(--navy-900);
  text-align: center;
  padding: 46px 0;
}
.cta-strip h2 { color: var(--navy-900); margin-bottom: 6px; }
.cta-strip .actions { display: flex; gap: 16px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.cta-strip .btn-outline-navy { background: transparent; }

/* ---------- Contacto ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; }
.contact-info-list { margin-top: 22px; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; }
.contact-info-list .dot {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy-900); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-list b { display: block; font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy-900); }
.contact-info-list span, .contact-info-list a { font-size: 14px; color: var(--slate-600); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-grid h5 { color: var(--white); font-family: var(--font-display); font-size: 14px; margin-bottom: 16px; letter-spacing: 0.05em; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; }
.footer-grid ul a:hover { color: var(--gold-400); }
.footer-brand img { height: 44px; margin-bottom: 14px; }
.footer-social { display: flex; gap: 14px; margin-top: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; color: rgba(255,255,255,0.5);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  background: var(--green-wa); color: var(--white);
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 8px 20px rgba(37,211,102,0.45);
  animation: pulse-wa 2.4s infinite;
}
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .why-wrap, .quote-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .services-grid, .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .rates-tables { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav, .header-phone, .topbar__contact span:last-child { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column; padding: 18px 24px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open ul { flex-direction: column; gap: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .services-grid, .fleet-grid { grid-template-columns: 1fr; }
  .gauge-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
