/* ===========================
   carruca — Estilos Principales
   Paleta: Carruca S.A.S (Rojo / Azul / Blanco)
   =========================== */
 
:root {
  --red:         #D0021B;
  --red-dark:    #A80015;
  --red-light:   #ff1b31;
  --blue:        #1A1FCC;
  --blue-dark:   #0d1298;
  --blue-mid:    #2832E0; 
  --white:       #FFFFFF;
  --blue2:      #3b31c098; 
  --off-white:   #F5F5F0;
  --gray-light:  #E8E8E0;
  --gray:        #9A9A8A;
  --black:       #0A0A0A;
 
  /* Mapeo sobre variables originales para mínima fricción */
  --gold:        var(--red);
  --gold-light:  var(--red-light);
  --dark:        var(--blue-dark);
  --dark-2:      #0F1580;   /* azul navy medio */
  --dark-3:      #162099;   /* azul navy claro */
  --white-dim:   rgba(245, 245, 240, 0.70);
  --white-faint: rgba(245, 245, 240, 0.08);
 
  --font-display:    'Bebas Neue', sans-serif;
  --font-condensed:  'Barlow Condensed', sans-serif;
  --font-body:       'Barlow', sans-serif;
}
 
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
 
html { scroll-behavior: smooth; }
 
body {
  background-color: var(--blue-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
 
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
 
.accent { color: var(--red-light); }
 
/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
 
.nav-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.3em;
  color: var(--blue-dark);
}
 
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
 
.nav-links a {
  font-family: var(--font-condensed);
  font-size: 1.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blue-dark);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}
 
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
 
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { transform: scaleX(1); }
 
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blue-dark);
  font-size: 1.5rem;
  cursor: pointer;
}
 
/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 5rem 4rem;
  overflow: hidden;
  background: var(--blue-dark);
}
 
/* Patrón de grilla sutil en el hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px);
  pointer-events: none;
}
 
.hero-bg-text {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(10rem, 22vw, 22rem);
  line-height: 1;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.02em;
  animation: carruca-shimmer 8s ease-in-out infinite;
}

@keyframes carruca-shimmer {
  0%, 100% { color: rgba(255, 255, 255, 0.04); }
  50%       { color: rgba(255, 255, 255, 0.10); }
}

/* ===== ENGRANAJES HERO ===== */
.hero-gear {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.hero-gear-1 {
  width: 300px;
  height: 300px;
  right: 2%;
  bottom: -60px;
  color: rgba(255, 255, 255, 0.05);
  animation: gear-cw 20s linear infinite;
}

.hero-gear-2 {
  width: 160px;
  height: 160px;
  right: 20%;
  bottom: 22%;
  color: rgba(208, 2, 27, 0.10);
  animation: gear-ccw 12s linear infinite;
}

.hero-gear-3 {
  width: 90px;
  height: 90px;
  right: 10%;
  top: 18%;
  color: rgba(255, 255, 255, 0.04);
  animation: gear-cw 7s linear infinite;
}

@keyframes gear-cw  { to { transform: rotate(360deg);  } }
@keyframes gear-ccw { to { transform: rotate(-360deg); } }
 
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-logos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.hero-logo-Dafer {
  height: 180px;
  background: white;
  width: auto;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.3));
}

.hero-logo-Fermarautos {
  height: 170px;
  background: white;
  padding: 6px 10px;
  border-radius: 4px;
}

.hero-logos a {
  cursor: pointer;
  transition: transform 0.2s;
  display: block;
}

.hero-logos a:hover {
  transform: scale(1.06);
}
.hero-tag {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 0.45rem 1rem;
  margin-bottom: 2rem;
}
 
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  color: var(--white);
}
 
.hero-title em {
  font-style: normal;
  color: var(--red-light);
}
 
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--white-dim);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
 
.btn-primary {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--red);
  padding: 1rem 2.5rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
 
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(208, 2, 27, 0.45);
}
 
.hero-stripe {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-light) 40%, transparent 80%);
}
 
/* ===== SECTION COMMONS ===== */
.section-label {
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 1.5rem;
}
 
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 2.5rem;
}
 
/* ===== ABOUT ===== */
.about {
  padding: 8rem 0;
  background: #0F1580;  /* navy medio */
  border-top: 1px solid rgba(255,255,255,0.06);
}
 
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
 
.about-text p {
  color: var(--white-dim);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
}
 
.about-text strong {
  color: var(--red-light);
  font-weight: 600;
}
 
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
 
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(208, 2, 27, 0.25);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-radius: 2px;
  transition: border-color 0.3s, background 0.3s;
}
 
.stat-card:hover {
  border-color: var(--red);
  background: rgba(208, 2, 27, 0.1);
}
 
.stat-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--red-light);
  line-height: 1;
}
 
.stat-label {
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
}
 
/* ===== BRANDS ===== */
.brands {
  padding: 8rem 0;
  background: var(--blue-dark);
}
 
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: rgba(208, 2, 27, 0.12);
  border: 1px solid rgba(208, 2, 27, 0.15);
}
 
.brand-card {
  background: var(--blue2); /*======color de cajas de marcas======*/ 
  padding: 2.5rem 2rem;
  transition: background 0.3s, transform 0.25s;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.brands-grid a {
  text-decoration: none;
  color: inherit;
  display: contents;
}
 
.brand-card:hover {
  background: #0F1580;
  border-bottom-color: var(--red);
  transform: translateY(-3px);
}
 
.brand-logo {
  height: 60px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.brand-logo--bg {
  filter: none;
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
}

.brand-dots {
  height: 60px;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 4rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}

.brand-card--more p {
  font-size: 1.05rem;
  color: var(--white);
}
 
.brand-card h3 {
  font-family: var(--font-condensed);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.6rem;
}
 
.brand-card p {
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.6;
}
 
/* ===== WHY US ===== */
.why-us {
  padding: 8rem 0;
  background: #0F1580;
  border-top: 1px solid rgba(255,255,255,0.06);
}
 
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
 
.feature {
  padding: 2rem 0;
  border-top: 3px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s;
}
 
.feature:hover {
  border-color: var(--red);
}
 
.feature-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(208, 2, 27, 0.2);
  line-height: 1;
  margin-bottom: 1rem;
}
 
.feature h3 {
  font-family: var(--font-condensed);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: var(--white);
}
 
.feature p {
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.7;
}
 
/* ===== CONTACT ===== */
.contact {
  padding: 8rem 0;
  background: var(--blue-dark);
}
 
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
 
.contact-desc {
  font-size: 1rem;
  color: var(--white-dim);
  line-height: 1.8;
  margin-bottom: 2rem;
}
 
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
 
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--white-dim);
}
 
.contact-icon { font-size: 1.2rem; }
 
.social-links h3 {
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 1.5rem;
}
 
.social-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  margin-bottom: 0.8rem;
  text-decoration: none;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-condensed);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.25s;
  background: rgba(255,255,255,0.04);
  border-radius: 2px;
}
 
.social-btn:hover {
  border-color: var(--red);
  background: rgba(208, 2, 27, 0.15);
  transform: translateX(5px);
}
 
.social-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  color: var(--red-light);
}
 
.social-arrow {
  margin-left: auto;
  color: var(--red-light);
  opacity: 0;
  transition: opacity 0.25s;
}
 
.social-btn:hover .social-arrow { opacity: 1; }
 
/* ===== MAP ===== */
.map-section {
  padding: 8rem 0 0;
  background: #0F1580;
  border-top: 1px solid rgba(255,255,255,0.06);
}
 
.map-address {
  font-size: 1rem;
  color: var(--white-dim);
  margin-bottom: 3rem;
}
 
.map-wrapper {
  position: relative;
  width: 100%;
  border-top: 4px solid var(--red);
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.3s;
}
 
.map-wrapper:hover {
  filter: grayscale(0%) contrast(1);
}
 /* ===== LOCATION GRID (mapa + foto) ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.location-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.local-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.local-photo-caption {
  background: #0A0A0A;
  color: #9A9A8A;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 780px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
  .local-photo {
    height: 250px;
  }
}

/* ===== FOTO TOP MAPA ===== */
.location-photo-top {
  margin-bottom: 2rem;
}

.location-photo-top .local-photo {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-top: 4px solid var(--red);
  display: block;
}

.location-photo-top .local-photo-caption {
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-top: 0.8rem;
  text-align: center;
}

/* Label nombre empresa sobre mapa */
.map-label {
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.8rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--red);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--blue-dark);
  border-top: 3px solid var(--red);
  padding: 3rem 0;
}
 
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
 
.footer-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.4em;
  color: var(--white);
  margin-bottom: 0.5rem;
}
 
.footer-copy {
  font-size: 0.85rem;
  color: var(--white-dim);
}
 
.footer-tagline {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-light);
  opacity: 0.7;
}
 /* ===== BOTÓN COTIZAR (navbar) ===== */
.nav-cta {
  font-family: var(--font-condensed);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white) !important;
  background: var(--red);
  padding: 0.7rem 1.7rem;
  border-radius: 2px;
  border: 2px solid var(--red);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
  border-color: var(--red-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(208, 2, 27, 0.4);
}

/* Ocultar en móvil (el menú hamburguesa lo reemplaza) */
@media (max-width: 600px) {
  .nav-cta { display: none; }
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 50px;
  font-family: var(--font-condensed);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  animation: wa-pulse 2.5s ease infinite;
}

.wa-float:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55);
}

.wa-icon { font-size: 1.3rem; line-height: 1; }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45); }
  50%       { box-shadow: 0 8px 44px rgba(37, 211, 102, 0.70); }
}

/* En móvil, solo mostrar el ícono */
@media (max-width: 600px) {
  .wa-float {
    bottom: 20px;
    right: 20px;
    padding: 14px;
    border-radius: 50%;
  }
  .wa-float span:last-of-type { display: none; }
}
/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
 
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
 
  .brands-grid {
    grid-template-columns: 1fr 1fr;
  }
}
 
@media (max-width: 600px) {
  .navbar {
    padding: 0.8rem 1.5rem;
  }
 
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    background: var(--blue-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 99;
  }
 
  .nav-links.open { display: flex; }
 
  .nav-links a {
    font-size: 1.2rem;
    color: var(--white);
  }
 
  .nav-toggle {
    display: block;
    z-index: 101;
    color: var(--blue-dark);
  }
 
  .hero {
    flex-direction: column;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    gap: 3rem;
  }

  .hero-logos {
    flex-direction: row;
    justify-content: center;
  }
 
  .hero-bg-text {
    font-size: 45vw;
    opacity: 0.5;
  }
 
  .features-grid { grid-template-columns: 1fr; }
  .brands-grid   { grid-template-columns: 1fr; }
 
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
 
  .container { padding: 0 1.5rem; }
 
  .about,
  .brands,
  .why-us,
  .contact {
    padding: 5rem 0;
  }
}
 