/* =========================================================
   JM Gestoría Vehicular — Landing
   Para cambiar colores o letras, edita las variables de :root
   ========================================================= */

:root {
  --ink: #0d0f12;          /* fondo oscuro principal */
  --ink-2: #15181d;        /* fondo oscuro secundario */
  --ink-3: #1d2128;        /* tarjetas oscuras */
  --paper: #f4f2ee;        /* fondo claro */
  --paper-2: #ffffff;
  --silver: #c9ccd1;       /* plata (como el logo) */
  --muted: #8e939b;
  --muted-dark: #5b6068;
  --gold: #c9a45c;         /* acento */
  --gold-2: #ddbd7c;
  --wa: #25d366;
  --line: rgba(201, 204, 209, 0.14);
  --line-dark: rgba(13, 15, 18, 0.1);
  --radius: 18px;
  --f-head: 'Sora', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--f-head); color: #fff; margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.ic {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-line { border-color: var(--line); color: #fff; }
.btn-line:hover { border-color: var(--silver); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.9375rem; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.0625rem; }

/* ---------- Encabezado ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1rem 0;
  transition: background-color .3s ease, padding .3s ease, box-shadow .3s ease;
}
.hdr.scrolled {
  background: rgba(13, 15, 18, 0.9);
  backdrop-filter: blur(12px);
  padding: 0.6rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.brand-name small {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { color: var(--silver); font-weight: 500; font-size: 0.9375rem; transition: color .2s; }
.nav a:not(.btn):hover { color: #fff; }

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #fff;
  padding: 0.5rem;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hdr { background: rgba(13, 15, 18, 0.92); backdrop-filter: blur(12px); padding: 0.7rem 0; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(13, 15, 18, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  padding: 8.5rem 0 3.5rem;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(201, 164, 92, 0.09), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 3rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--silver);
  margin-bottom: 1.5rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.18); }

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: normal; color: var(--gold); }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.25rem; }

.hero-points { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.hero-points li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; color: var(--silver); }
.hero-points .ic { color: var(--gold); }

.hero-art { position: relative; }
.hero-svg { width: 100%; height: auto; display: block; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(29, 33, 40, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; color: #fff; font-size: 0.875rem; font-weight: 600; }
.float-card small { display: block; color: var(--muted); font-size: 0.75rem; }
.fc-ic {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(201, 164, 92, 0.16);
  color: var(--gold);
}
.fc-ic.wa { background: rgba(37, 211, 102, 0.16); color: var(--wa); }
.fc-ok { color: var(--wa); stroke-width: 2.4; }
.fc-1 { top: 6%; left: -4%; }
.fc-2 { bottom: 12%; right: -2%; animation-delay: -3s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(21, 24, 29, 0.6);
}
.trust li { padding: 1.4rem 1.5rem; border-right: 1px solid var(--line); }
.trust li:last-child { border-right: 0; }
.trust strong { display: block; font-family: var(--f-head); font-size: 1.6rem; color: #fff; }
.trust span { font-size: 0.875rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero { padding-top: 7rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { max-width: 520px; margin-inline: auto; width: 100%; }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust li:nth-child(2) { border-right: 0; }
  .trust li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .float-card { padding: 0.55rem 0.75rem; }
  .float-card small { display: none; }
  .trust li { padding: 1.1rem 1rem; }
  .trust strong { font-size: 1.3rem; }
}

/* ---------- Secciones ---------- */
.sec { padding: 6rem 0; }
.sec-light { background: var(--paper); color: var(--muted-dark); }
.sec-light h2, .sec-light h3 { color: var(--ink); }
.sec-panel { background: var(--ink-2); border-block: 1px solid var(--line); }

.sec-head { max-width: 40rem; margin-bottom: 3rem; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; margin-bottom: 0.9rem; }
.sec-head p { font-size: 1.0625rem; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.sec-light .kicker { color: #9a7a3a; }

/* ---------- Servicios ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.svc {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--paper-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(13, 15, 18, 0.1); border-color: rgba(201, 164, 92, 0.6); }

.svc-ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: var(--gold);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}
.svc h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.svc p { font-size: 0.975rem; margin-bottom: 1.25rem; }
.svc-link { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--ink); font-size: 0.9375rem; }
.svc:hover .svc-link .ic { transform: translateX(4px); }
.svc-link .ic { transition: transform .2s; }

@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; counter-reset: s; }
.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px);
  opacity: 0.5;
}
.steps li { position: relative; text-align: center; padding: 0 1rem; }
.step-n {
  width: 56px; height: 56px;
  margin: 0 auto 1.25rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.3rem;
  position: relative;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.steps p { color: var(--muted); }

@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps::before { top: 28px; bottom: 28px; left: 50%; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--gold) 0 10px, transparent 10px 18px); }
  .steps li { background: var(--ink); padding: 0.5rem 1rem; }
}

/* ---------- Por qué JM ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.why-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1rem; }
.why-copy p { color: var(--muted); font-size: 1.0625rem; margin-bottom: 2rem; }

.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.why-list li {
  display: flex;
  gap: 0.9rem;
  padding: 1.4rem;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.why-list .ic { color: var(--gold); font-size: 1.35rem; margin-top: 0.1rem; }
.why-list strong { display: block; color: #fff; font-family: var(--f-head); font-weight: 600; margin-bottom: 0.2rem; }
.why-list span { font-size: 0.9375rem; color: var(--muted); }

@media (max-width: 900px) { .why { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 520px) { .why-list { grid-template-columns: 1fr; } }

/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-list details {
  background: var(--paper-2);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 0 1.4rem;
  transition: border-color .2s;
}
.faq-list details[open] { border-color: rgba(201, 164, 92, 0.7); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.025rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { color: #9a7a3a; transition: transform .25s; }
.faq-list details[open] summary .ic { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 1.25rem; }

@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-card {
  padding: 2.75rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(201, 164, 92, 0.14), transparent 60%),
    var(--ink-2);
}
.contact-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 0.8rem; }
.contact-card > p { color: var(--muted); margin-bottom: 1.75rem; }
.contact-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.contact-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.975rem; }
.contact-list .ic { color: var(--gold); margin-top: 0.15rem; }
.contact-list a:hover { color: #fff; }

.map { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--ink-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(0.6) contrast(1.05); }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact-card { padding: 2rem 1.5rem; }
  .contact-card .btn { width: 100%; white-space: normal; }
}

/* ---------- Pie ---------- */
.ftr { padding: 3.5rem 0 2.5rem; border-top: 1px solid var(--line); background: var(--ink); }
.ftr-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; }
.ftr-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.ftr-nav a { color: var(--muted); font-size: 0.9375rem; }
.ftr-nav a:hover { color: #fff; }
.disclaimer {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(142, 147, 155, 0.8);
  padding: 1.5rem 0;
  border-block: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.copy { font-size: 0.875rem; color: var(--muted); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa);
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-card { animation: none; }
  .btn, .svc, .wa-float { transition: none; }
}
