/* ==========================================================
   Fleet Heavy Parts — réplica estática del sitio WordPress
   (Blocksy + Elementor). Colores y medidas tomados del backup.
   ========================================================== */

:root {
  --yellow: #EEAF10;          /* palette-color-1 */
  --black: #000000;           /* palette-color-2 */
  --text: #3f4245;            /* palette-color-3 */
  --heading: #020404;         /* palette-color-4 */
  --white: #ffffff;
  --light-bg: #F1F1F1;
  --dark-section: #0e0c08;    /* #000 + overlay #100D09 al 90% */
  --btn-dark: #4C4845;
  --btn-dark-hover: #5c544d;
  --footer-bg: #2f2a23;
  --footer-text: #979591;
  --field-bg: #f7f5f4;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-heading: "Anton", sans-serif;
  --font-number: "Source Serif Pro", "Source Serif 4", Georgia, serif;

  --container: 1290px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

a { color: var(--yellow); text-decoration: none; transition: color .2s, background-color .2s; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.5;
  margin: 0;
}

p { margin: 0; }

.container {
  width: min(var(--container), 90vw);
  margin-inline: auto;
}

.center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 30px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn-primary { background: var(--yellow); }
.btn-primary:hover { background: var(--heading); color: var(--white); }
.btn-dark { background: var(--btn-dark); }
.btn-dark:hover { background: var(--btn-dark-hover); color: var(--white); }
.btn-lg { padding: 20px 40px; font-weight: 600; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
}
.header-row {
  height: 182px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.logo img { max-height: 151px; width: auto; }

.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 50px;
}
.main-nav a {
  position: relative;
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  padding: 8px 0;
  color: var(--white);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform .25s;
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  justify-self: end;
  width: 40px; height: 40px;
  padding: 10px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-toggle span {
  display: block;
  height: 2px; width: 100%;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
}

/* Off-canvas móvil */
.offcanvas {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 21, 25, .98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.offcanvas.open { opacity: 1; visibility: visible; }
.offcanvas-close {
  position: absolute;
  top: 25px; right: 25px;
  background: none; border: none;
  color: rgba(255,255,255,.8);
  font-size: 26px;
  cursor: pointer;
}
.offcanvas-logo { max-height: 35px; width: auto; }
.offcanvas ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.offcanvas li + li { margin-top: 20px; }
.offcanvas a { color: var(--white); font-size: 20px; font-weight: 700; }
.offcanvas a:hover { color: var(--yellow); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: url("../img/hero.jpg") center center / cover no-repeat;
  padding: 280px 0 70px;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
}
.hero-inner { position: relative; }
.hero-content { width: 50%; }
.hero h1 {
  color: var(--white);
  font-size: 46px;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-content p { font-size: 17px; color: var(--white); }
.hero-buttons { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; }

.hero-features {
  display: flex;
  margin-top: 70px;
  padding-top: 70px;
  border-top: 1px solid #A0876E30;
}
.feature {
  width: 33.333%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.feature-icon {
  flex: none;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.feature h5 { color: var(--white); font-size: 20px; }

/* ---------- Secciones divididas (gris) ---------- */
.split { background: var(--light-bg); padding: 70px 0; }
.split-intro { margin-bottom: 130px; }
.split-inner { display: flex; align-items: center; gap: 100px; }
.split-left { width: 45%; flex: none; }
.split-right { flex: 1; }
.split h2 { line-height: 1.2; }
.split-intro h2 { font-size: 38px; }
.split-intro p { font-size: 18px; }
.split-cajas h2 { font-size: 50px; }
.split-cajas p { font-size: 22px; }

/* ---------- Servicios ---------- */
.services { margin-bottom: 130px; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  row-gap: 70px;
}
.service { display: flex; gap: 30px; align-items: flex-start; }
.service > i { font-size: 30px; color: var(--heading); width: 30px; text-align: center; line-height: 1.25; flex: none; }
.service h4 { font-size: 25px; margin-bottom: 17px; line-height: 1.2; }

/* ---------- Contadores ---------- */
.counters { position: relative; z-index: 1; }
.counters-box {
  background: var(--black);
  border-radius: 12px;
  padding: 80px 80px 70px;
  display: flex;
  justify-content: space-between;
  text-align: center;
  color: var(--white);
}
.counter-number {
  font-family: var(--font-number);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}
.counter-title { font-size: 20px; font-weight: 600; line-height: 2.5; }

/* ---------- Productos ---------- */
.products {
  background: var(--dark-section);
  margin-top: -140px;
  padding: 200px 0 60px;
  text-align: center;
}
.divider {
  display: block;
  width: 100px; height: 5px;
  margin: 2px auto;
  background: var(--yellow);
}
.products h2 {
  color: var(--white);
  font-size: 50px;
  text-transform: uppercase;
  margin: 30px 0;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px 70px;
}
.product i { font-size: 36px; color: var(--yellow); margin-bottom: 15px; }
.product h3 { color: var(--white); font-size: 20px; font-weight: 700; line-height: 1.5; }
.products-img { width: 100%; max-width: 1024px; margin: 40px auto 0; }
.products .btn { margin-top: 0; }

/* ---------- Flota ---------- */
.fleet {
  background: var(--black);
  padding: 70px 0 60px;
  text-align: center;
}
.fleet h2 {
  color: var(--yellow);
  font-size: 50px;
  line-height: 1.2;
  padding-left: 55px;
}
.fleet-list {
  margin-top: 20px;
  padding-left: 65px;
  background: url("../img/quote.svg") left top no-repeat;
}
.fleet-list p { color: var(--white); font-size: 20px; line-height: 1.65; }
.fleet img { margin: 60px auto 0; }

/* ---------- Marcas ---------- */
.brands { padding: 80px 0; background: var(--white); }
.brands img { width: 90%; max-width: 1024px; margin: 0 auto; }

/* ---------- Contacto ---------- */
.contact {
  position: relative;
  background: url("../img/contacto-bg.webp") center center / cover no-repeat;
  padding: 130px 0;
}
.contact::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.8);
}
.contact-inner { position: relative; display: flex; gap: 70px; align-items: center; }
.contact-info { width: 45%; flex: none; }
.contact-info h2 { color: var(--white); font-size: 50px; line-height: 1.2; margin-bottom: 70px; }
.contact-item { display: flex; gap: 30px; }
.contact-item > i { font-size: 30px; color: var(--yellow); line-height: 1.2; }
.contact-item h4 { color: var(--white); font-size: 25px; line-height: 1.2; margin-bottom: 10px; }
.contact-item a { color: var(--white); font-size: 18px; }
.contact-item a:hover { color: var(--yellow); }

.contact-card {
  flex: 1;
  background: var(--white);
  border-radius: 12px;
  padding: 50px;
}
.field { margin-bottom: 20px; }
.field-medium { width: 60%; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: rgba(0,0,0,.85);
  margin-bottom: 10px;
  line-height: 1.3;
}
.field .req { color: #d63637; font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  height: 50px;
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--field-bg);
  border: 2px solid var(--field-bg);
  border-radius: 8px;
  outline: none;
  transition: border-color .2s;
}
.field textarea { height: 120px; padding: 10px 12px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--yellow); }
.field.invalid input,
.field.invalid textarea { border-color: #d63637; }
.form-status { font-size: 14px; margin-bottom: 15px; padding: 12px 15px; border-radius: 8px; }
.form-status.is-error { color: #d63637; background: #fbeaea; }
.form-status.is-success { color: #1e6b34; background: #e6f4ea; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form .btn[disabled] { opacity: .7; cursor: wait; }
.contact-form .btn { font-size: 15px; font-weight: 500; padding: 17px 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); }
.footer-middle {
  padding: 37px 0;
  text-align: center;
  font-size: 15px;
}
.footer-logo { width: 235px; margin: 0 auto 12px; }
.footer-bottom {
  padding: 40px 0 60px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-bottom h5 { color: var(--white); font-size: 16px; margin-bottom: 12px; }
.footer-btn {
  display: inline-block;
  background: #3a352e;
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 8px;
}
.footer-btn:hover { background: var(--yellow); color: var(--white); }

/* ==========================================================
   Tablet (≤ 1024px)
   ========================================================== */
@media (max-width: 1024px) {
  .hero-content { width: 100%; text-align: center; }
  .hero h1 { font-size: 60px; }
  .hero-buttons { justify-content: center; }

  .split-inner { gap: 50px; }
  .split-left { width: 50%; }
  .split-intro h2 { font-size: 35px; }
  .split-intro p, .split-cajas p { font-size: 16px; }
  .split-cajas h2 { font-size: 35px; }

  .services-grid { column-gap: 50px; }
  .service { gap: 20px; }
  .service h4 { font-size: 20px; }

  .counters-box { padding: 60px 40px 50px; }
  .counter-number { font-size: 35px; }
  .counter-title { font-size: 17px; }

  .products h2 { font-size: 35px; }
  .products-grid { gap: 40px; }

  .fleet h2 { font-size: 35px; }
  .fleet-list p { font-size: 25px; }

  .contact-inner { flex-wrap: wrap; }
  .contact-info { width: 100%; text-align: center; }
  .contact-info h2 { font-size: 35px; }
  .contact-item { justify-content: center; gap: 20px; text-align: left; }
  .contact-card { flex-basis: 100%; }
}

/* Menú hamburguesa (Blocksy cambia a móvil en < 1000px) */
@media (max-width: 999.98px) {
  .header-row { grid-template-columns: 1fr auto; padding: 0 4vw; width: 100%; }
  .logo img { max-height: 112px; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
}

/* ==========================================================
   Móvil (≤ 767px)
   ========================================================== */
@media (max-width: 767px) {
  .header-row { height: 138px; padding: 0 5vw; }

  .hero { padding: 200px 0 70px; background-position: 60% center; }
  .hero h1 { font-size: 45px; }
  .hero-content p { font-size: 16px; }
  .hero-features { display: none; }

  .split-inner { flex-direction: column; gap: 50px; text-align: center; }
  .split-left { width: 100%; }

  .services-grid { grid-template-columns: 1fr; row-gap: 50px; }
  .service { gap: 10px; }

  .counters-box { flex-direction: column; gap: 30px; }

  .products-grid { grid-template-columns: 1fr; gap: 50px; }

  .fleet h2, .fleet-list { padding-left: 0; }
  .fleet-list { padding-left: 0; background-size: 70px; }
  .fleet-list p { font-size: 16px; }
  .fleet img { width: 90%; }

  .contact-item { gap: 10px; }
  .contact-card { padding: 30px; }
  .field-medium { width: 100%; }
}
