/* ==========================================================================
   Yurrebaso Diesel Inyección — Paleta Bosch oficial
   Secundario: azul (navbar + botones) · Terciario: rojo (acentos puntuales)
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F5F5F5;
  --surface: #FAFAFA;
  --border: #E3E3E3;

  --secondary: #006EAD;
  --secondary-dark: #003253;
  --tertiary: #E2001A;
  --on-brand: #FFFFFF;

  --text: #1A1A1A;
  --text-muted: #6B6B6B;

  --font-head: "Barlow Condensed", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1160px;
  --radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

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

.eyebrow {
  display: inline-block;
  color: var(--secondary);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 720px;
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--secondary);
  color: var(--on-brand);
}

.btn--primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

/* ==========================================================================
   NAV
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 50, 83, 0.96);
  backdrop-filter: blur(8px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--on-brand);
}

.nav__logo span {
  color: var(--on-brand);
  opacity: 0.85;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.nav__links a:hover {
  color: var(--on-brand);
  text-decoration-color: var(--tertiary);
}

.nav__cta {
  padding: 10px 22px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--on-brand);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  padding: 160px 0 100px;
  background:
    radial-gradient(circle at 80% 20%, rgba(0, 110, 173, 0.07), transparent 55%),
    var(--bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero__badges {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}

.hero__desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-image: url(/img/yurrebasos.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ==========================================================================
   STATS
   ========================================================================== */

.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 40px 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  border-left: 1px solid var(--border);
  padding: 0 12px;
}

.stat:first-child {
  border-left: none;
}

.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--secondary);
}

.stat__label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */

.servicios {
  padding: 100px 0;
}

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--secondary);
  transform: translateY(-3px);
}

.card__icon {
  color: var(--tertiary);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   NOSOTROS
   ========================================================================== */

.nosotros {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.nosotros__inner {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.nosotros__text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 560px;
}

.nosotros__list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nosotros__list li {
  position: relative;
  padding-left: 24px;
  font-weight: 500;
}

.nosotros__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--tertiary);
}

.nosotros__visual {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    repeating-linear-gradient(45deg, rgba(0, 110, 173, 0.06) 0 2px, transparent 2px 18px),
    var(--surface);
}

/* ==========================================================================
   INFRAESTRUCTURA
   ========================================================================== */

.infraestructura {
  padding: 100px 0;
}

.infraestructura__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.equipo {
  border: 1px solid var(--border);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius);
  padding: 24px 28px;
  background: var(--surface);
}

.equipo h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.equipo p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */

.contacto {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.contacto__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 560px;
}

.contacto__info > p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.contacto__datos {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.contacto__datos li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.contacto__datos strong {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--secondary);
}

.contacto__cta {
  margin-top: 32px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.footer__logo span {
  color: var(--secondary);
}

.footer__brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--secondary);
}

.footer__copy {
  width: 100%;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 8px;
}

/* ==========================================================================
   WHATSAPP FLOAT
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--tertiary);
  color: var(--on-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 90;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .hero__inner,
  .nosotros__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual,
  .nosotros__visual {
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .servicios__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .infraestructura__grid {
    grid-template-columns: 1fr;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }

  .stat {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-top: none;
  }
}

@media (max-width: 760px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--secondary-dark);
    padding: 20px 24px;
    gap: 18px;
  }

  .servicios__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 120px 0 64px;
  }
}
