:root {
  --black: #111111;
  --dark: #1A1A1A;
  --card-bg: #262626;
  --orange: #FBBF24;
  --orange-bright: #FDE047;
  --orange-dark: #D97706;
  --gold: #EAB308;
  --white: #FFFFFF;
  --gray: #9CA3AF;
  --gray-light: #D1D5DB;
  --border: rgba(255, 255, 255, 0.1);
  --caution: repeating-linear-gradient(45deg, #FBBF24, #FBBF24 10px, #000000 10px, #000000 20px);
}

/* ══════════════════════════════════════════════════
   ── BASE ──
   ══════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  width: 100%;
  overflow-x: hidden;
}

body::before {
  content: "";
  display: block;
  height: 6px;
  background: var(--caution);
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 9999;
}

/* ══════════════════════════════════════════════════
   ── 1. NAVEGACIÓN ──
   ══════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 6px;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.logo-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 3px;
  color: var(--white);
}

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--gray-light);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange-bright); }

.nav-cta {
  background: var(--orange);
  color: #111111 !important;
  padding: 10px 24px;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  text-decoration: none;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--orange-bright) !important; color: #111111 !important; }

/* ── Overlay oscuro ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 98;
}
body.menu-open .nav-overlay { display: block; }

/* ── Hamburguesa ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 200;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════
   ── 2. HERO ──
   ══════════════════════════════════════════════════ */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 70%),
    linear-gradient(to top,   rgba(0,0,0,0.5)  0%, rgba(0,0,0,0.1) 60%);
}

.hero-content {
  position: relative;
  padding: 0 60px 0 80px;
  max-width: 780px;
  animation: fadeUp 1s ease both;
  z-index: 2;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}
.hero-eyebrow::before { content: ''; display: block; width: 40px; height: 2px; background: var(--gold); }

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 8vw, 110px);
  line-height: 0.92;
  letter-spacing: 2px;
  margin-bottom: 28px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 1px 4px rgba(0,0,0,0.9);
}
.hero h1 span { color: var(--orange); }

.hero-desc {
  font-size: clamp(14px, 2vw, 17px);
  line-height: 1.7;
  color: var(--gray-light);
  max-width: 500px;
  margin-bottom: 44px;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

.hero-buttons { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: #111111;
  padding: 16px 34px; font-size: 13px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--orange-bright); transform: translateX(3px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 2px solid var(--orange); color: var(--orange);
  padding: 14px 30px; font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--orange); color: #111111; }

/* ══════════════════════════════════════════════════
   ── 3. BASE DE SECCIONES ──
   ══════════════════════════════════════════════════ */
section { padding: 100px 60px; }

.section-label {
  font-size: 10px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::before { content: ''; display: block; width: 30px; height: 2px; background: var(--gold); }

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 5vw, 70px);
  letter-spacing: 2px; line-height: 1; margin-bottom: 20px;
}
.section-title span { color: var(--orange); }

/* ══════════════════════════════════════════════════
   ── 4. FLOTA Y CARRUSEL ──
   ══════════════════════════════════════════════════ */
.fleet { background: var(--dark); overflow: hidden; }

.fleet-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.carousel-btn { display: none; }

.fleet-carousel {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 30px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 20px 8px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Móvil: sin scrollbar */
  scrollbar-width: none;
  width: 100%;
  min-height: 440px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.fleet-carousel::-webkit-scrollbar { display: none; }

/* ── DESKTOP: scrollbar naranja inferior ── */
@media (min-width: 769px) {
  .fleet-carousel {
    scrollbar-width: thin;
    scrollbar-color: var(--orange) #333;
    padding-bottom: 20px;
  }
  .fleet-carousel::-webkit-scrollbar {
    display: block;
    height: 6px;
  }
  .fleet-carousel::-webkit-scrollbar-track {
    background: #333;
    border-radius: 3px;
  }
  .fleet-carousel::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 3px;
  }
  .fleet-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--orange-bright);
  }

  /* Sin overflow: ocultar scrollbar y deshabilitar arrastre */
  .fleet-carousel.no-scroll {
    scrollbar-width: none;
    overflow-x: hidden;
    cursor: default;
  }
  .fleet-carousel.no-scroll::-webkit-scrollbar { display: none; }
}

.fleet-carousel.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* ── Hint "deslizá" — solo móvil ── */
.carousel-hint {
  text-align: center;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 14px;
  opacity: 1;
  transition: opacity 0.4s;
}
.carousel-hint.hidden { opacity: 0; pointer-events: none; }
.carousel-hint span { display: inline-flex; align-items: center; gap: 8px; }
.carousel-hint svg  { flex-shrink: 0; }

@media (min-width: 769px) {
  .carousel-hint { display: none; }
}

/* ── Tarjetas ── */
.machine-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
  flex: 0 0 320px;
  width: 320px;
  height: 400px;
  min-height: 400px;
  scroll-snap-align: start;
  transform: translateZ(0);
  will-change: transform;
}
.machine-card:hover { border-color: var(--orange); }

/* Skeleton */
.skeleton-card { flex: 0 0 320px; height: 400px; border-radius: 6px; border: 1px solid var(--border); }
.skeleton-img  {
  width: 100%; height: 100%;
  background: linear-gradient(90deg, #262626 25%, #333 50%, #262626 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.machine-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-color: var(--dark);
}

.machine-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.9) 0%, transparent 70%);
}

.machine-tag {
  position: absolute; top: 15px; left: 15px; background: var(--orange); color: #111111;
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 800;
  padding: 5px 10px; z-index: 5;
}

.machine-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; z-index: 5; }
.machine-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20px, 5vw, 28px);
  margin-bottom: 5px; color: #FFFFFF;
}
.machine-model { font-size: 13px; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }

.badge-dispo {
  position: absolute; top: 15px; right: 15px; padding: 4px 8px; border-radius: 4px;
  font-size: 10px; font-weight: bold; text-transform: uppercase; z-index: 5;
}
.dispo-disponible { background: #10b981; color: white; }
.dispo-faena      { background: #f59e0b; color: white; }
.dispo-mantencion { background: #ef4444; color: white; }

/* ══════════════════════════════════════════════════
   ── 5. POR QUÉ NOSOTROS ──
   ══════════════════════════════════════════════════ */
.why { background: var(--black); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
  margin-top: 60px;
}

.why-visual { position: relative; border-radius: 12px; }

.why-corner {
  position: absolute; top: -15px; left: -15px; width: 60px; height: 60px;
  border-top: 4px solid var(--gold); border-left: 4px solid var(--gold); z-index: 5;
}

.multimedia-container {
  width: 100%; height: 100%;
  min-height: 400px;
  background: #111;
  border-radius: 12px;
  overflow: hidden; position: relative; z-index: 10;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Imagen completa sin zoom ni recorte en desktop */
.single-why-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #111;
  display: block;
}

.reasons { display: flex; flex-direction: column; gap: 30px; justify-content: center; }
.reason {
  display: flex; gap: 20px; padding-bottom: 25px; border-bottom: 1px solid var(--border);
}
.reason:last-child { border-bottom: none; padding-bottom: 0; }

.reason-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 40px;
  color: rgba(251, 191, 36, 0.2); line-height: 1; flex-shrink: 0;
}
.reason:hover .reason-num { color: var(--orange); transition: color 0.3s; }

.reason-content h3 {
  font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700;
  text-transform: uppercase; margin-bottom: 5px; color: var(--white);
}
.reason-content p { font-size: 14px; line-height: 1.6; color: var(--gray); }

/* ══════════════════════════════════════════════════
   ── 7. CONTACTO ──
   ══════════════════════════════════════════════════ */
.contacto { background: var(--black); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; margin-top: 60px;
}
.contact-info { display: flex; flex-direction: column; gap: 25px; }

.contact-item {
  display: flex; gap: 15px; align-items: flex-start; padding: 20px;
  background: var(--dark); border: 1px solid var(--border);
}
.contact-item:hover { border-color: var(--gold); transition: border-color 0.3s; }

.contact-icon { color: var(--orange); font-size: 18px; margin-top: 2px; }
.contact-label { font-size: 10px; text-transform: uppercase; color: var(--orange-dark); font-weight: 700; margin-bottom: 4px; }
.contact-value { font-size: 15px; color: var(--white); text-decoration: none; }
.contact-value:hover { color: var(--orange); }

.social-strip { display: flex; gap: 10px; margin-top: 10px; }
.social-btn {
  flex: 1; text-align: center; padding: 10px; border: 1px solid var(--border);
  background: var(--dark); color: var(--gray); text-decoration: none;
  font-size: 11px; text-transform: uppercase; font-weight: 700;
}
.social-btn:hover { color: var(--white); border-color: var(--white); transition: all 0.3s; }

.contact-cta-box {
  background: var(--dark); border: 1px solid var(--border); padding: 40px; border-radius: 8px;
}
.cta-heading { font-family: 'Bebas Neue', sans-serif; font-size: 40px; line-height: 1; margin-bottom: 10px; color: var(--white); }
.cta-heading span { color: var(--orange); }
.cta-desc { font-size: 14px; color: var(--gray); line-height: 1.5; margin-bottom: 30px; }

.quote-form { display: flex; flex-direction: column; gap: 15px; }
.form-row { display: flex; gap: 15px; }
.input-group { display: flex; flex-direction: column; flex: 1; gap: 5px; }
.input-group label { font-size: 11px; text-transform: uppercase; color: var(--orange-dark); font-weight: 700; }
.input-group input,
.input-group textarea {
  width: 100%; padding: 12px; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 4px; color: var(--white);
  font-size: max(16px, 13px); /* evita zoom automático iOS */
}
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--orange); }

.submit-btn {
  background: var(--orange); color: #111111; border: none; padding: 15px;
  font-size: 13px; font-weight: 800; text-transform: uppercase;
  cursor: pointer; border-radius: 4px; margin-top: 10px;
  width: 100%;
}
.submit-btn:hover { background: var(--orange-bright); transition: background 0.3s; }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Mensaje de confirmación del formulario */
.form-success {
  background: #10b981;
  color: white;
  padding: 16px;
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  display: none;
}
.form-success.visible { display: block; }

/* ══════════════════════════════════════════════════
   ── 8. FOOTER Y WHATSAPP ──
   ══════════════════════════════════════════════════ */
footer {
  background: var(--dark); 
  border-top: 1px solid var(--border);
  padding: 30px 60px; 
  text-align: center;
}

/* Tu texto base en blanco plomizo (var(--gray)) */
.footer-copy { 
  font-size: 12px; 
  color: var(--gray); 
}

/* INTEGRACIÓN DE XDOMIUS */
.xdomius-link {
  color: var(--gray);         /* Usa tu misma variable de gris/plomizo */
  text-decoration: none;      /* Adiós al subrayado azul */
  font-weight: 600;           /* Un poco más grueso para resaltar tu marca */
  transition: color 0.3s ease; /* Transición suave para el efecto de luz */
}

/* Efecto Hover: se ilumina a blanco puro */
.xdomius-link:hover {
  color: var(--white);        /* Usa tu variable de blanco puro */
}


/* --- Tu código de WhatsApp se mantiene intacto aquí abajo --- */
.wsp-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.wsp-bubble {
  background: var(--card-bg); color: var(--white); border: 1px solid var(--border);
  font-size: 12px; padding: 8px 12px; border-radius: 4px;
  opacity: 0; transform: translateX(10px); transition: all 0.3s ease;
}
.wsp-float:hover .wsp-bubble { opacity: 1; transform: translateX(0); }

.wsp-icon {
  width: 55px; height: 55px; background: #25D366; border-radius: 50%; color: white;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wsp-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}



/* ══════════════════════════════════════════════════════════════════
   ── 9. RESPONSIVE TABLET (601px – 900px) ──
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) and (min-width: 601px) {
  nav { padding: 12px 24px; }

  .hero-content { padding: 0 40px; }
  .hero h1 { font-size: clamp(52px, 7vw, 80px); }

  section { padding: 70px 40px; }

  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-visual { order: -1; }
  .multimedia-container { min-height: 320px; height: 320px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════════
   ── 10. RESPONSIVE MÓVIL (≤ 600px) ──
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  body::before { height: 4px; }

  /* ── NAV ── */
  nav {
    padding: 12px 16px;
    flex-wrap: nowrap;
    gap: 12px;
  }

  .logo-main { font-size: 18px; letter-spacing: 2px; }

  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-toggle { display: flex; }

  /* Menú lateral deslizable */
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 80vw);
    height: 100dvh;
    background: #1A1A1A;
    border-left: 2px solid var(--orange);
    padding: 100px 32px 40px;
    gap: 32px;
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
  }
  body.menu-open .nav-links { transform: translateX(0); }
  .nav-links li { border-bottom: 1px solid var(--border); padding-bottom: 20px; }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    font-size: 18px !important;
    letter-spacing: 3px;
    color: var(--white) !important;
    display: block;
  }
  .nav-links a:hover { color: var(--orange-bright) !important; }

  .nav-mobile-cta {
    margin-top: auto;
    background: var(--orange);
    color: #111 !important;
    text-align: center;
    padding: 14px 20px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px !important;
    text-decoration: none;
    display: block;
    border: none;
  }

  /* ── HERO ── */
  .hero { height: 100svh; min-height: 560px; }

  .hero-content {
    padding: 80px 20px 0;
    text-align: center;
    max-width: 100%;
  }

  .hero-eyebrow { justify-content: center; font-size: 9px; letter-spacing: 3px; }

  .hero h1 {
    font-size: clamp(38px, 11vw, 56px);
    margin-bottom: 16px;
    line-height: 1;
  }

  .hero-desc { font-size: 14px; margin-bottom: 30px; max-width: 100%; }

  .hero-buttons { flex-direction: column; width: 100%; gap: 10px; }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  }

  /* ── SECCIONES ── */
  section { padding: 50px 16px; border-bottom: 1px solid var(--border); }

  .section-label { justify-content: center; }
  .section-title { text-align: center; }

  /* ── CARRUSEL ── */
  .fleet { overflow: visible; overflow-x: clip; }

  .fleet-carousel-wrapper {
    padding: 0;
    margin: 0 -16px;
    overflow: visible;
  }

  .fleet-carousel {
    gap: 12px;
    padding: 16px 16px;
    padding-right: 40px;
    min-height: 392px;
  }

  .machine-card {
    flex: 0 0 78vw;
    width: 78vw;
    max-width: 300px;
    height: 360px;
    min-height: 360px;
    contain: layout size;
  }

  .machine-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    background-color: var(--card-bg);
  }

  /* ── POR QUÉ NOSOTROS ── */
  .why-grid { display: flex; flex-direction: column; gap: 24px; margin-top: 30px; }
  .why-visual { order: -1; }
  .why-corner { display: none; }

  .multimedia-container {
    min-height: 240px;
    height: 240px;
    border: 2px solid var(--orange);
    border-radius: 8px;
  }

  .reason {
    padding: 14px;
    background: var(--dark);
    border-left: 3px solid var(--orange);
    border-bottom: none;
    margin-bottom: 0;
    border-radius: 0 4px 4px 0;
  }

  .reason-num { font-size: 30px; }
  .reason-content h3 { font-size: 16px; }
  .reason-content p  { font-size: 13px; }

  /* ── CONTACTO ── */
  .contact-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 30px; }
  .contact-cta-box { padding: 24px 16px; }
  .cta-heading { font-size: 32px; }
  .form-row { flex-direction: column; gap: 15px; }
  .contact-item { border-left: 3px solid var(--gold); }

  /* ── FOOTER ── */
  footer { padding: 24px 16px; }

  /* ── WHATSAPP ── */
  .wsp-float { bottom: 16px; right: 16px; }
  .wsp-icon  { width: 48px; height: 48px; }
}