/* ==========================================================
   Arriendo Camionetas 4x4 — styles
   ========================================================== */

:root {
  --bg: #f6f3ee;
  --bg-alt: #ece7df;
  --paper: #fbf9f5;
  --ink: #1a1916;
  --ink-2: #3a3733;
  --muted: #7a766f;
  --line: #d9d3c8;
  --line-strong: #c2bcb0;
  --accent: oklch(0.66 0.16 55);
  --accent-ink: oklch(0.45 0.16 50);
  --accent-soft: oklch(0.94 0.05 70);
  --ok: oklch(0.6 0.12 145);
  --shadow-sm: 0 1px 0 rgba(26, 25, 22, 0.06), 0 1px 2px rgba(26, 25, 22, 0.04);
  --shadow-md: 0 2px 4px rgba(26, 25, 22, 0.06), 0 8px 24px rgba(26, 25, 22, 0.08);
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: "Archivo", "DM Sans", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); line-height: 0.98; letter-spacing: -0.035em; font-stretch: 90%; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.05; }
h3 { font-size: 1.15rem; line-height: 1.2; }

.mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Layout helpers */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap-tight { max-width: 1080px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--line-strong);
}

/* ============== HEADER ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
}

.logo-mark {
  width: 38px; height: 38px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.04em;
  font-stretch: 75%;
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: auto 6px 5px 6px;
  height: 2px;
  background: var(--accent);
}

.logo-meta { display: flex; flex-direction: column; gap: 4px; }
.logo-meta small {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.primary a {
  font-size: 0.92rem;
  color: var(--ink-2);
  font-weight: 500;
  position: relative;
}
nav.primary a:hover { color: var(--ink); }
nav.primary a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tel {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.005em;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1407;
}
.btn-accent:hover { background: oklch(0.7 0.16 55); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-alt); }

.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 22px; font-size: 0.95rem; }

.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ============== HERO ============== */
.hero {
  padding: 56px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: end;
}

.hero h1 .mark {
  display: inline-block;
  position: relative;
  white-space: nowrap;
}
.hero h1 .mark::after {
  content: "";
  position: absolute;
  left: -3%; right: -3%; bottom: 0.08em;
  height: 0.32em;
  background: var(--accent);
  z-index: -1;
  opacity: 0.55;
}

.hero-sub {
  margin-top: 28px;
  max-width: 38ch;
  font-size: 1.08rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.trust-item .num {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  font-stretch: 90%;
  letter-spacing: -0.02em;
  line-height: 1;
}
.trust-item .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* Hero image side */
.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
}

.hero-art image-slot {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.hero-art .ticket {
  position: absolute;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}
.ticket .ttl {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticket .val {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ticket.t1 { top: 28px; left: -32px; }
.ticket.t2 { bottom: 36px; right: -28px; }
.ticket.t3 { bottom: 36%; left: -40px; }

/* ============== STRIP ============== */
.strip {
  background: var(--ink);
  color: var(--bg);
  padding: 18px 0;
  overflow: hidden;
}
.strip-track {
  display: flex;
  gap: 56px;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
}
.strip-item {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.strip-item::after {
  content: "✦";
  color: var(--accent);
  font-size: 0.7rem;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============== SECTION ============== */
section { padding: 96px 0; }
section.compact { padding: 64px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head p {
  color: var(--ink-2);
  max-width: 50ch;
  margin: 0;
}
.section-head .head-meta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ============== FLOTA ============== */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.vehicle {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.vehicle:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.vehicle-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.vehicle-img image-slot {
  width: 100%;
  height: 100%;
}
.vehicle-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ink);
  color: var(--bg);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 3px;
  z-index: 2;
}
.vehicle-badge.accent { background: var(--accent); color: #1a1407; }

.vehicle-body { padding: 22px 22px 22px; display: flex; flex-direction: column; gap: 18px; }

.vehicle-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.vehicle-title h3 {
  font-size: 1.25rem;
  line-height: 1.1;
}
.vehicle-title .sku {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec .k {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec .v {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}

.pricing {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.price-row .lbl {
  font-size: 0.85rem;
  color: var(--muted);
}
.price-row .val {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.price-row.month .val { font-size: 1rem; color: var(--ink-2); font-weight: 600; }
.price-row .ext {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.vehicle .btn { margin-top: 4px; }

/* ============== COTIZADOR ============== */
.cotiz {
  background: var(--ink);
  color: var(--bg);
}
.cotiz .eyebrow { color: oklch(0.74 0.04 80); }
.cotiz .eyebrow::before { background: oklch(0.6 0.04 80); }
.cotiz h2 { color: var(--bg); }
.cotiz .section-head p { color: oklch(0.82 0.02 80); }

.cotiz-panel {
  background: oklch(0.22 0.012 70);
  border: 1px solid oklch(0.32 0.012 70);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  overflow: hidden;
}

.cotiz-form {
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.74 0.04 80);
}
.field select,
.field input {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  background: oklch(0.16 0.01 70);
  border: 1px solid oklch(0.32 0.012 70);
  color: var(--bg);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s ease;
}
.field select:focus,
.field input:focus { border-color: var(--accent); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.days-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  background: oklch(0.16 0.01 70);
  border: 1px solid oklch(0.32 0.012 70);
  border-radius: var(--radius);
  overflow: hidden;
}
.days-stepper button {
  background: transparent;
  border: 0;
  color: var(--bg);
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  transition: background 0.15s ease;
}
.days-stepper button:hover { background: oklch(0.26 0.01 70); }
.days-stepper input {
  flex: 1;
  background: transparent;
  border: 0;
  text-align: center;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--bg);
  letter-spacing: -0.01em;
  -moz-appearance: textfield;
}
.days-stepper input::-webkit-outer-spin-button,
.days-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cotiz-result {
  background: oklch(0.18 0.01 70);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 1px solid oklch(0.32 0.012 70);
}
.cotiz-result .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.92rem;
  color: oklch(0.82 0.02 80);
}
.cotiz-result .row .v { color: var(--bg); font-weight: 500; font-family: "JetBrains Mono", monospace; }
.cotiz-result hr { border: 0; border-top: 1px solid oklch(0.32 0.012 70); margin: 4px 0; }
.cotiz-result .total {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
}
.cotiz-result .total .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.74 0.04 80);
}
.cotiz-result .total .v {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: -0.025em;
  color: var(--accent);
  line-height: 1;
}
.cotiz-result .total .note {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: oklch(0.7 0.02 80);
  margin-top: 4px;
}
.cotiz-result .cta { margin-top: auto; padding-top: 14px; }

/* ============== SERVICIOS ============== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.service {
  background: var(--bg);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.15s ease;
}
.service:hover { background: var(--paper); }
.service .num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-ink);
}
.service h3 { font-size: 1.15rem; }
.service p { color: var(--ink-2); margin: 0; font-size: 0.95rem; line-height: 1.55; }
.service .glyph {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  margin-bottom: 6px;
  color: var(--accent-ink);
}

/* ============== PROCESO ============== */
.proceso {
  background: var(--bg-alt);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  position: absolute;
  top: -2px; left: 0;
  background: var(--ink);
  color: var(--bg);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  transform: translateY(-100%);
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 0.92rem; margin: 0; }

/* ============== CONTACTO ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-card .k {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-card .v {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.info-card a.v:hover { color: var(--accent-ink); }
.info-card .meta { font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s ease;
  resize: vertical;
}
.contact-form .field label {
  color: var(--muted);
}
.contact-form .field input:focus,
.contact-form .field select:focus,
.contact-form .field textarea:focus { border-color: var(--accent); }

/* ============== FOOTER ============== */
.site-footer {
  background: var(--ink);
  color: oklch(0.8 0.01 70);
  padding: 72px 0 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid oklch(0.3 0.01 70);
}
.foot-logo {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 36ch;
}
.foot-logo .logo { color: var(--bg); }
.foot-logo .logo .logo-meta small { color: oklch(0.6 0.02 80); }
.foot-logo p { color: oklch(0.74 0.01 70); font-size: 0.92rem; line-height: 1.5; margin: 0; }

.foot-col h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.62 0.02 80);
  margin-bottom: 16px;
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 0.92rem; color: oklch(0.86 0.01 70); }
.foot-col a:hover { color: var(--accent); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: oklch(0.55 0.01 70);
}

/* ============== WHATSAPP FLOAT ============== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px; height: 56px;
  background: oklch(0.65 0.18 145);
  color: white;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 100;
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }

/* ============== UTILS ============== */
.hidden { display: none !important; }

@media (max-width: 980px) {
  nav.primary { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: 4/3; }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cotiz-panel { grid-template-columns: 1fr; }
  .cotiz-result { border-left: 0; border-top: 1px solid oklch(0.32 0.012 70); }
  .section-head { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .header-cta .tel { display: none; }
}

@media (max-width: 600px) {
  section { padding: 64px 0; }
  .fleet-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-trust { flex-wrap: wrap; gap: 20px 32px; }
  .ticket.t1, .ticket.t3 { left: -12px; }
  .ticket.t2 { right: -12px; }
}


/* ============== PROD IMAGES (replaces image-slot) ============== */
.hero-art .slot-img,
.vehicle-img .slot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.hero-art { position: relative; }
.hero-art .slot-img { border-radius: var(--radius); border: 1px solid var(--line); }
