/* ================================================
   TG LOGISTICS — Estilos principales
   www.tglogis.com
   ================================================ */

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

:root {
  --blue:         #1a4a8a;
  --blue-dark:    #0f2d5c;
  --blue-light:   #2563b0;
  --gold:         #e8a800;
  --gold-light:   #f5c842;
  --gold-dark:    #b88000;
  --silver:       #8c9db5;
  --silver-light: #c8d4e0;
  --silver-pale:  #eef2f7;
  --white:        #ffffff;
  --text-dark:    #0f1e35;
  --text-mid:     #3a4f6a;
  --text-light:   #6b7f96;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  background: #fff;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  background: var(--blue-dark);
  border-bottom: 3px solid var(--gold);
  height: 72px;
}
.nav-logo img { height: 44px; width: auto; background: #fff; border-radius: 6px; padding: 4px 10px; }
.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links li a {
  display: block; color: rgba(255,255,255,0.82); text-decoration: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0 1.1rem; height: 72px; line-height: 72px;
  transition: all 0.2s; border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.nav-links li a:hover { color: #fff; border-bottom-color: var(--gold); }
.nav-cta {
  background: var(--gold) !important; color: var(--blue-dark) !important;
  padding: 0 1.4rem !important; font-weight: 700 !important;
  border-bottom: none !important; margin-left: 1rem;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* ── HERO ────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    linear-gradient(160deg, rgba(10,20,40,0.72) 0%, rgba(15,45,92,0.65) 50%, rgba(10,20,40,0.78) 100%),
    url('../img/hero-bg.png') center center / cover no-repeat;
  position: relative; overflow: hidden; padding-top: 72px;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 40px);
}
.hero-accent  { position: absolute; bottom: -80px; right: -80px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(232,168,0,0.15) 0%, transparent 70%); }
.hero-accent2 { position: absolute; top: -60px; left: -60px; width: 350px; height: 350px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%); }
.hero-content {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 4rem 2rem 3rem; position: relative; z-index: 2;
}
.hero-logo { margin-bottom: 2.5rem; }
.hero-logo img { height: 90px; width: auto; background: #fff; border-radius: 10px; padding: 8px 20px; box-shadow: 0 4px 30px rgba(0,0,0,0.35); }
.hero-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; color: #fff;
  line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase;
  margin-bottom: 1rem; text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-tagline span { color: var(--gold); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.92); max-width: 560px; line-height: 1.7; margin-bottom: 2.5rem; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn-gold {
  background: var(--gold); color: var(--blue-dark);
  padding: 0.8rem 2rem; border-radius: 4px;
  font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer; border: none; font-family: inherit; transition: all 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: #fff; padding: 0.8rem 2rem; border-radius: 4px;
  font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  cursor: pointer; border: 2px solid rgba(255,255,255,0.35); font-family: inherit;
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ── STATS BAR ───────────────────────────────── */
.stats-bar {
  background: var(--blue-dark); border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.stat-item { flex: 1; min-width: 160px; padding: 1.8rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.08); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── SECCIONES ───────────────────────────────── */
.section { padding: 5rem 2.5rem; max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.75rem;
}
.section-label::before { content: ''; display: block; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; }
.section-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; color: var(--text-dark); line-height: 1.05; margin-bottom: 0.75rem; }
.section-sub { color: var(--text-light); font-size: 1rem; line-height: 1.75; max-width: 520px; margin-bottom: 3rem; }

/* ── SERVICIOS ───────────────────────────────── */
.services-bg { background: var(--silver-pale); }
.services-wrap { padding: 5rem 2.5rem; max-width: 1200px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.scard { position: relative; overflow: hidden; border-radius: 4px; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; cursor: default; transition: transform 0.3s, box-shadow 0.3s; }
.scard:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.35); }
.scard-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.scard:hover .scard-bg { transform: scale(1.05); }
.scard-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,15,35,0.92) 0%, rgba(5,15,35,0.55) 55%, rgba(5,15,35,0.2) 100%); transition: background 0.3s; }
.scard:hover .scard-overlay { background: linear-gradient(to top, rgba(5,15,35,0.96) 0%, rgba(5,15,35,0.65) 55%, rgba(5,15,35,0.25) 100%); }
.scard-content { position: relative; z-index: 2; padding: 1.75rem; }
.scard-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: #fff; margin-bottom: 0.6rem; text-shadow: 0 1px 4px rgba(0,0,0,0.5); line-height: 1.15; }
.scard-desc { font-size: 0.825rem; color: rgba(255,255,255,0.88); line-height: 1.65; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.eco-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(34,197,94,0.2); border: 1px solid rgba(34,197,94,0.5); border-radius: 100px; padding: 3px 10px; font-size: 0.7rem; font-weight: 700; color: #86efac; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.6rem; width: fit-content; }

/* ── MISIÓN / VISIÓN / VALORES ───────────────── */
.mv-section { background: var(--blue-dark); padding: 5rem 2.5rem; }
.mv-inner { max-width: 1200px; margin: 0 auto; }
.mv-label { color: var(--gold-light); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }
.mv-label::before { content: ''; display: block; width: 28px; height: 3px; background: var(--gold); }
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.mv-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-top: 3px solid var(--gold); border-radius: 2px; padding: 2rem; }
.mv-card-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--gold); margin-bottom: 1rem; }
.mv-card-text { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.75; }
.valores-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.valor-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-left: 3px solid var(--gold); padding: 1.25rem 1.25rem 1.25rem 1.5rem; border-radius: 0 2px 2px 0; }
.valor-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; text-transform: uppercase; color: #fff; letter-spacing: 0.05em; margin-bottom: 0.35rem; }
.valor-desc { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.6; }

/* ── PROCESO ─────────────────────────────────── */
.proceso-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin-top: 3rem; border: 1px solid var(--silver-light); border-radius: 4px; overflow: hidden; }
.proceso-step { background: #fff; padding: 2rem 1.5rem; border-right: 1px solid var(--silver-light); transition: background 0.2s; }
.proceso-step:last-child { border-right: none; }
.proceso-step:hover { background: var(--silver-pale); }
.paso-num { font-family: 'Barlow Condensed', sans-serif; font-size: 3rem; font-weight: 800; color: var(--silver-light); line-height: 1; margin-bottom: 0.75rem; }
.paso-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.05rem; font-weight: 700; text-transform: uppercase; color: var(--blue); margin-bottom: 0.5rem; letter-spacing: 0.04em; }
.paso-text { font-size: 0.825rem; color: var(--text-light); line-height: 1.65; }

/* ── CONTACTO ────────────────────────────────── */
.contacto-bg { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%); padding: 5rem 2.5rem; }
.contacto-inner { max-width: 1100px; margin: 0 auto; }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contacto-label { color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; }
.contacto-label::before { content: ''; display: block; width: 28px; height: 3px; background: var(--gold); }
.contacto-title { font-family: 'Barlow Condensed', sans-serif; font-size: 2.4rem; font-weight: 800; text-transform: uppercase; color: #fff; line-height: 1.05; margin-bottom: 1rem; letter-spacing: -0.01em; }
.contacto-sub { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.7; margin-bottom: 2.5rem; }
.info-block { margin-bottom: 1.75rem; }
.info-block-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.info-block-text { font-size: 0.875rem; color: rgba(255,255,255,0.8); line-height: 1.6; }
.info-block a { color: rgba(255,255,255,0.8); text-decoration: none; }
.info-block a:hover { color: var(--gold); }
.contacto-form { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; padding: 2rem; }
.form-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 700; text-transform: uppercase; color: #fff; margin-bottom: 1.5rem; letter-spacing: 0.03em; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 3px; padding: 0.7rem 0.85rem; color: #fff; font-family: inherit; font-size: 0.875rem; outline: none; transition: border-color 0.2s; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--blue-dark); color: #fff; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── FOOTER ──────────────────────────────────── */
footer { background: var(--text-dark); padding: 2.5rem 2.5rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo img { height: 36px; width: auto; background: #fff; border-radius: 5px; padding: 3px 8px; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.8rem; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-domain { font-size: 0.78rem; color: var(--gold); font-weight: 600; }

/* ── ANIMACIONES ─────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; animation: fadeUp 0.65s ease forwards; }
.d1 { animation-delay: 0.1s; } .d2 { animation-delay: 0.25s; }
.d3 { animation-delay: 0.4s; } .d4 { animation-delay: 0.55s; } .d5 { animation-delay: 0.7s; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .services-grid { grid-template-columns: 1fr !important; }
  .contacto-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section, .services-wrap, .contacto-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
}
