/* ================================================================
   LOGISTICS GV QUERÉTARO — Global Stylesheet
   Tema: Industrial Premium | Dark + Amber
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Barlow+Condensed:wght@400;600;700&display=swap');

/* ─── Variables ─── */
:root {
  --bg:         #0a0c10;
  --bg-card:    #111318;
  --bg-nav:     rgba(10,12,16,0.97);
  --border:     #1e2229;
  --accent:     #f59e0b;
  --accent-dk:  #d97706;
  --text:       #e8eaf0;
  --muted:      #7a8394;
  --white:      #ffffff;
  --font-d:     'Bebas Neue', sans-serif;
  --font-b:     'DM Sans', sans-serif;
  --font-a:     'Barlow Condensed', sans-serif;
  --max-w:      1200px;
  --r:          8px;
  --r-lg:       16px;
  --nav-h:      72px;
  --t:          0.3s ease;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }

/* ─── Utility ─── */
.container { width: min(var(--max-w), 100% - 2rem); margin-inline: auto; }
.section    { padding-block: 90px; }
.accent     { color: var(--accent); }

/* ================================================================
   NAVEGACIÓN
================================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--font-a);
  font-size: 1rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  transition: color var(--t); position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent); transform: scaleX(0);
  transition: transform var(--t); transform-origin: left;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; transition: var(--t); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-nav); backdrop-filter: blur(16px);
    flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden;
    border-bottom: 1px solid var(--border);
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1);
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 1rem 1.5rem; font-size: 1.1rem; }
  .nav-links a::after { display: none; }
}

/* ================================================================
   BOTONES
================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: var(--r);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: var(--t); border: none;
}
.btn-primary {
  background: var(--accent); color: #000;
}
.btn-primary:hover {
  background: var(--accent-dk); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.3);
}
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-dark {
  background: #0a0c10; color: var(--white);
  border: none; font-size: 1.05rem; padding: 1rem 2.5rem;
}
.btn-dark:hover { background: #1a1c20; transform: translateY(-2px); }

/* ================================================================
   HERO (solo index)
================================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(10,12,16,0.92) 0%,
    rgba(10,12,16,0.7) 55%,
    rgba(10,12,16,0.3) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px; padding-top: var(--nav-h);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3);
  color: var(--accent); padding: 0.4rem 1rem; border-radius: 100px;
  font-family: var(--font-a); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.75rem;
}
.hero h1 {
  font-family: var(--font-d);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.92; letter-spacing: 0.01em;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.1rem; color: #9aa3b5; max-width: 480px;
  margin-bottom: 2.5rem; line-height: 1.75;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--muted); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  animation: bounce 2.2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ================================================================
   PAGE HERO (servicios, nosotros, contacto)
================================================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px); padding-bottom: 80px;
  background: linear-gradient(140deg, #0a0c10 0%, #0f1218 100%);
  border-bottom: 1px solid var(--border); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -30%; right: -5%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .section-tag { display: block; text-align: left; }
.page-hero h1 {
  font-family: var(--font-d);
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  text-transform: uppercase; color: var(--white);
  line-height: 0.92; margin-bottom: 1.5rem;
}
.page-hero h1 span { color: var(--accent); }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 540px; line-height: 1.75; }

/* ================================================================
   SECTION HEADER
================================================================ */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block;
  font-family: var(--font-a); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  text-transform: uppercase; color: var(--white); line-height: 0.95;
}
.section-title span { color: var(--accent); }
.section-subtitle {
  color: var(--muted); font-size: 1.05rem;
  max-width: 540px; margin: 1.25rem auto 0; line-height: 1.75;
}

/* ================================================================
   STATS
================================================================ */
.stats {
  background: var(--bg-card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding-block: 52px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem; text-align: center;
}
.stat-value {
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
  margin-bottom: 0.5rem;
}
.stat-num {
  font-family: var(--font-d); font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--accent); line-height: 1;
}
.stat-sfx {
  font-family: var(--font-d); font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--accent); line-height: 1;
}
.stat-label {
  font-family: var(--font-a); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}

/* ================================================================
   SERVICES CARDS
================================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; transition: var(--t);
}
.service-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.service-card-img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-card-img { transform: scale(1.05); }
.service-card-img-wrap { overflow: hidden; }
.service-card-body { padding: 1.75rem; }
.service-icon {
  width: 44px; height: 44px; background: rgba(245,158,11,0.12);
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--accent);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-family: var(--font-a); font-size: 1.2rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--white);
  margin-bottom: 0.75rem;
}
.service-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

/* ================================================================
   TESTIMONIALS
================================================================ */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2rem; transition: var(--t);
}
.testimonial-card:hover { border-color: rgba(245,158,11,0.3); }
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 1rem; }
.testimonial-text {
  color: #9aa3b5; font-size: 0.95rem; line-height: 1.75;
  margin-bottom: 1.5rem; font-style: italic;
}
.t-author { display: flex; align-items: center; gap: 0.75rem; }
.t-author-ava {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  background: var(--border);
}
.t-author-name { font-weight: 600; font-size: 0.9rem; color: var(--white); }
.t-author-role { font-size: 0.78rem; color: var(--muted); }

/* ================================================================
   GALLERY
================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: 12px;
}
.gallery-item { overflow: hidden; border-radius: var(--r); cursor: zoom-in; }
.gallery-item:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.07); }
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery-item:first-child { grid-column: 1 / 3; grid-row: auto; }
  .gallery-item img { height: 200px; }
}

/* ================================================================
   CTA STRIP
================================================================ */
.cta-strip {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
  padding-block: 64px;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cta-inner h2 {
  font-family: var(--font-d); font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase; color: #000; line-height: 0.95;
}
.cta-inner p { color: rgba(0,0,0,0.65); margin-top: 0.6rem; font-size: 1rem; }

/* ================================================================
   ABOUT PAGE
================================================================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 3rem; } }
.about-img-wrap { position: relative; }
.about-img-main { border-radius: var(--r-lg); width: 100%; height: 480px; object-fit: cover; }
.about-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--accent); color: #000;
  border-radius: var(--r-lg); padding: 1.5rem 1.75rem; text-align: center;
  box-shadow: 0 12px 40px rgba(245,158,11,0.35);
}
.about-badge .num {
  font-family: var(--font-d); font-size: 3.5rem; line-height: 1; display: block;
}
.about-badge .lbl {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.about-text h2 {
  font-family: var(--font-d); font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  text-transform: uppercase; color: var(--white); line-height: 0.95; margin-bottom: 1.5rem;
}
.about-text h2 span { color: var(--accent); }
.about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1.25rem; font-size: 0.97rem; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-top: 2rem; }
.value-item {
  display: flex; align-items: center; gap: 0.65rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 0.75rem 1rem;
  font-size: 0.88rem; font-weight: 600; color: var(--text);
}
.value-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }

/* ================================================================
   CONTACT PAGE
================================================================ */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 5rem; align-items: start;
}
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; gap: 3rem; } }
.contact-info h2 {
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase; color: var(--white); line-height: 0.95; margin-bottom: 1.5rem;
}
.contact-info h2 span { color: var(--accent); }
.contact-info .lead { color: var(--muted); line-height: 1.75; margin-bottom: 2.5rem; font-size: 0.97rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon {
  width: 44px; height: 44px; background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--accent);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item-lbl {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.2rem;
}
.contact-item-val { color: var(--text); font-size: 0.95rem; }

/* ─── Form ─── */
.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 2.5rem;
}
.contact-form h3 {
  font-family: var(--font-a); font-size: 1.4rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--white);
  margin-bottom: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); padding: 0.875rem 1rem;
  color: var(--text); font-size: 0.95rem;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none; resize: vertical;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.form-control::placeholder { color: var(--muted); }
textarea.form-control { min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.btn-submit {
  width: 100%; padding: 1rem; background: var(--accent); color: #000;
  border: none; border-radius: var(--r); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: var(--t);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--accent-dk); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,0.3); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 0.75rem; }

/* Success/Error messages */
.form-message {
  display: none; padding: 1rem 1.25rem; border-radius: var(--r);
  margin-top: 1rem; font-size: 0.9rem; font-weight: 500;
  text-align: center;
}
.form-message.success { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); color: #4ade80; }
.form-message.error   { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: #f87171; }

/* ================================================================
   FOOTER
================================================================ */
footer {
  background: #060709; border-top: 1px solid var(--border);
  padding-top: 64px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
@media (max-width: 900px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 34px; margin-bottom: 1.25rem; }
.footer-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-family: var(--font-a); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a, .footer-links li {
  color: var(--muted); font-size: 0.88rem; transition: color var(--t);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
  color: var(--muted); font-size: 0.82rem;
}

/* ================================================================
   WHATSAPP BUTTON
================================================================ */
.wa-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--t), box-shadow var(--t);
  text-decoration: none;
}
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.55); }
.wa-btn svg { width: 30px; height: 30px; }

/* ================================================================
   FADE-UP ANIMATION ON SCROLL
================================================================ */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.in { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }

/* ================================================================
   DIVIDER LINE
================================================================ */
.divider {
  height: 1px; background: var(--border);
  margin-block: 0;
}

/* ================================================================
   MAP
================================================================ */
.map-wrap {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); margin-top: 3rem;
}
.map-wrap iframe { display: block; width: 100%; height: 360px; border: none; filter: invert(0.85) hue-rotate(180deg); }
