/* ============================================================
   MOTORNOW CARGO — style.css
   Paleta: fondo #1f1c1c | principal #c4c5c5 | secundario #b5282b | texto #e2e8f0
   Tipografía: Aldrich (Google Fonts)
   ============================================================ */

:root {
  --bg:        #1f1c1c;
  --principal: #c4c5c5;
  --accent:    #b5282b;
  --text:      #e2e8f0;
  --dark:      #141212;
  --mid:       #2a2626;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Aldrich', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── TIPOGRAFÍA ── */
h1, h2, h3, h4 {
  font-family: 'Aldrich', sans-serif;
  color: var(--principal);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

p { line-height: 1.7; color: var(--text); }

/* ── NAVBAR ── */
.navbar {
  background: rgba(20, 18, 18, 0.96) !important;
  border-bottom: 2px solid var(--accent);
  padding: 0.6rem 1.5rem;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Corrección de dimensiones para imágenes del logo SVG */
.navbar-brand img { 
  height: 48px; 
  width: auto; 
  object-fit: contain; 
}

.navbar-brand .brand-text {
  font-family: 'Aldrich', sans-serif;
  font-size: 1.15rem;
  color: var(--principal) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
}

.navbar-brand .brand-sub {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
}

.nav-link {
  color: var(--text) !important;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--accent) !important; }

.navbar-toggler { border-color: var(--accent); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23b5282b' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/1782628343_3.png');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.22) saturate(0.6);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(31,28,28,0.88) 0%,
    rgba(31,28,28,0.55) 50%,
    rgba(173,151,5,0.08) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 0 4rem;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  text-transform: uppercase;
  border-left: 3px solid var(--accent);
  padding-left: 0.8rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--text);
  line-height: 1.0;
  margin-bottom: 0.3rem;
}
.hero-title .accent-word { color: var(--accent); }
.hero-title .principal-word { color: var(--principal); }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--principal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(226,232,240,0.8);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.btn-primary-custom {
  background: var(--accent);
  color: #ffffff;
  font-family: 'Aldrich', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  padding: 0.85rem 2rem;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
}
.btn-primary-custom:hover {
  background: #d63236;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-custom {
  background: transparent;
  color: var(--principal);
  font-family: 'Aldrich', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--principal);
  padding: 0.84rem 2rem;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-outline-custom:hover {
  background: var(--principal);
  color: var(--dark);
}

/* Hero stats bar */
.hero-stats {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(154,136,106,0.25);
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat-item .stat-num {
  font-size: 2rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-item .stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(226,232,240,0.5);
}

/* Hero image panel */
.hero-img-panel {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-img-panel img {
  max-width: 100%;
  max-height: 550px;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(181, 40, 43, 0.3));
}
.hero-img-panel::before {
  content: '';
  position: absolute;
  inset: 10% 5%;
  border: 1px solid rgba(181, 40, 43, 0.15);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  pointer-events: none;
}

/* ── SECCIONES GENERALES ── */
section { padding: 5rem 0; }
section:nth-child(even) { background: var(--mid); }

.section-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}
.section-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 1.5rem;
}

/* ── SOBRE NOSOTROS ── */
#about .about-img {
  border: 2px solid rgba(181, 40, 43, 0.2);
  clip-path: polygon(16px 0%, 100% 0%, calc(100% - 16px) 100%, 0% 100%);
  overflow: hidden;
}
#about .about-img img { width: 100%; height: auto; display: block; }

/* ── SERVICIOS ── */
.service-card {
  background: var(--dark);
  border: 1px solid rgba(154,136,106,0.15);
  padding: 2rem 1.5rem;
  height: 100%;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.service-card .service-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.service-card h4 { font-size: 1rem; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.9rem; color: rgba(226,232,240,0.7); }
.service-badge {
  position: absolute;
  top: -1px;
  left: 10px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  font-weight: 700;
}

/* ── DIFERENCIADORES ── */
#why .diff-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.diff-icon {
  width: 48px;
  height: 48px;
  background: rgba(181, 40, 43, 0.1);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--accent);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.diff-item h5 {
  font-size: 0.85rem;
  color: var(--principal);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.diff-item p { font-size: 0.88rem; color: rgba(226,232,240,0.7); line-height: 1.6; }

/* ── GALERÍA / IMÁGENES ── */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(154,136,106,0.15);
  transition: filter 0.3s, transform 0.3s;
}
.gallery-grid img:hover { filter: brightness(1.1); transform: scale(1.02); }

/* ── TESTIMONIOS ── */
#testimonios { background: var(--dark); }
.testimonial-card {
  background: var(--mid);
  border: 1px solid rgba(181, 40, 43, 0.2);
  padding: 2.5rem;
  position: relative;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -1rem;
  left: 2rem;
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.15;
  font-family: serif;
  line-height: 1;
}
.testimonial-text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(226,232,240,0.85);
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 700;
  flex-shrink: 0;
  font-family: 'Aldrich', sans-serif;
}
.testimonial-name { font-size: 0.85rem; color: var(--principal); font-family: 'Aldrich', sans-serif; text-transform: uppercase; letter-spacing: 0.1em; }
.testimonial-role { font-size: 0.7rem; color: rgba(226,232,240,0.5); letter-spacing: 0.1em; text-transform: uppercase; }
.stars { color: var(--accent); font-size: 0.9rem; margin-bottom: 0.5rem; }

/* ── CTA BAND ── */
#cta {
  background: linear-gradient(135deg, #141212 0%, #2a2626 100%);
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  padding: 4rem 0;
  text-align: center;
}
#cta h2 { color: var(--text); font-size: clamp(1.6rem, 4vw, 2.4rem); }
#cta p { color: rgba(226,232,240,0.7); max-width: 520px; margin: 1rem auto 2rem; }

/* ── CONTACTO ── */
#contacto .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(181, 40, 43, 0.1);
  border: 1px solid rgba(181, 40, 43, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
}
.contact-label { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(226,232,240,0.4); }
.contact-val { font-size: 0.9rem; color: var(--text); }
.contact-val a { color: var(--text); text-decoration: none; }
.contact-val a:hover { color: var(--accent); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 2px solid rgba(154,136,106,0.2);
  padding: 3rem 0 1.5rem;
}

.footer-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-brand .brand-text { color: var(--principal); font-size: 1rem; }
.footer-brand .brand-sub { color: var(--accent); }
footer p { font-size: 0.8rem; color: rgba(226,232,240,0.4); }
.footer-links a { color: rgba(226,232,240,0.5); font-size: 0.78rem; text-decoration: none; margin-right: 1.2rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(154,136,106,0.25);
  color: rgba(226,232,240,0.5);
  text-decoration: none;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  transition: all 0.2s;
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ── WHATSAPP FLOTANTE ── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: waPulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); color: #fff; }

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,0.65); }
}

/* ── UTILS ── */
.text-accent { color: var(--accent); }
.text-principal { color: var(--principal); }
.border-accent { border-color: var(--accent) !important; }

/* ── VISIBILIDAD GSAP (Soporte asegurado) ── */
.gsap-fade { 
  opacity: 1; 
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-content { padding: 5rem 0 3rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-img-panel { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
}