/*
Theme Name: MexiGlobal Logistics
Theme URI: https://mexigloballogistics.com
Author: MexiGlobal Logistics
Description: Tema profesional para MexiGlobal Logistics — International Trade & Logistics Solutions
Version: 1.0
License: Private
Text Domain: mexiglobal
*/

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: #1A1A1A;
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── BRAND TOKENS ── */
:root {
  --navy:      #0B1E3D;
  --navy-mid:  #162B50;
  --red:       #C0181E;
  --red-dark:  #961014;
  --white:     #FFFFFF;
  --off:       #F5F6F8;
  --gray:      #64748B;
  --line:      #E2E8F0;
  --text:      #1A1A1A;
  --sidebar-w: 280px;
}

/* ═══════════════════════════════════════════════════════
   SIDEBAR NAVIGATION (left fixed panel — brand style)
═══════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--navy);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo img {
  width: 100%;
  max-width: 200px;
  filter: brightness(0) invert(1);
}
.sidebar-logo .logo-name {
  display: none;
}
.sidebar-nav {
  flex: 1;
  padding: 20px 0;
  overflow-y: auto;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.03em;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-left-color: var(--red);
}
.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 1100;
  background: var(--navy);
  border: none;
  border-radius: 6px;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════════════════════════════════════════════════
   MAIN CONTENT AREA
═══════════════════════════════════════════════════════ */
.site-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,30,61,0.92) 40%, rgba(11,30,61,0.65));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 72px;
  max-width: 820px;
}
.hero-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 2px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--red); }
.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stat strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat strong span { color: var(--red); }
.hero-stat p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  line-height: 1.3;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(192,24,30,0.3); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════
   SECTION COMMON
═══════════════════════════════════════════════════════ */
.section { padding: 96px 72px; }
.section.bg-off { background: var(--off); }
.section.bg-navy { background: var(--navy); }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-tag.light { color: rgba(255,255,255,0.6); }

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-title.light { color: #fff; }
.title-line {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
}
.title-line .line-navy { width: 40px; height: 4px; background: var(--navy); }
.title-line .line-red  { width: 20px; height: 4px; background: var(--red); }
.title-line.light .line-navy { background: #fff; }

.section-lead {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  max-width: 580px;
}
.section-lead.light { color: rgba(255,255,255,0.72); }

/* ═══════════════════════════════════════════════════════
   SOBRE NOSOTROS (image left / text right)
═══════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}
.about-img {
  position: relative;
  overflow: hidden;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.06;
}
.about-watermark img {
  width: 80%;
  filter: invert(1) brightness(2);
}
.about-text {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-body p {
  color: var(--gray);
  margin-bottom: 18px;
  font-size: 0.98rem;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════
   NUESTRO ENFOQUE (numbered list + image right)
═══════════════════════════════════════════════════════ */
.enfoque-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}
.enfoque-text {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.enfoque-img {
  position: relative;
  overflow: hidden;
}
.enfoque-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.enfoque-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 100%;
}
.enfoque-img-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.numbered-list { margin-top: 28px; }
.num-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}
.num-item:last-child { margin-bottom: 0; }
.num-badge {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
}
.num-badge.red { color: var(--red); }
.num-badge.navy { color: var(--navy); }
.num-item-body p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}
.enfoque-quote {
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 4px solid var(--red);
  background: var(--off);
  border-radius: 0 8px 8px 0;
}
.enfoque-quote p {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   VISIÓN
═══════════════════════════════════════════════════════ */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 560px;
}
.vision-img {
  overflow: hidden;
}
.vision-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vision-text {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

/* ═══════════════════════════════════════════════════════
   MISIÓN
═══════════════════════════════════════════════════════ */
.mision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 560px;
}
.mision-text {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mision-num-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 24px;
}
.mision-img {
  overflow: hidden;
}
.mision-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════
   VALORES
═══════════════════════════════════════════════════════ */
.valores-section {
  background: var(--off);
}
.valores-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin-bottom: 0;
  height: 340px;
  overflow: hidden;
}
.valores-img-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.valores-body {
  padding: 64px 72px;
}
.valores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.valor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.25s;
  position: relative;
}
.valor-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: var(--red);
  border-radius: 0 0 3px 3px;
}
.valor-card:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 24px rgba(11,30,61,0.08);
  transform: translateY(-3px);
}
.valor-card span {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  display: block;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════
   SERVICIOS
═══════════════════════════════════════════════════════ */
.services-header {
  text-align: center;
  margin-bottom: 56px;
  padding: 0 40px;
}
.services-header .section-title { max-width: 100%; }
.services-header .title-line { justify-content: center; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.3s;
}
.service-card:hover {
  box-shadow: 0 16px 40px rgba(11,30,61,0.1);
  transform: translateY(-4px);
  border-color: var(--navy);
}
.service-card-img {
  height: 180px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body {
  padding: 24px 22px;
}
.service-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  text-align: center;
}
.service-card-list li {
  font-size: 0.85rem;
  color: var(--gray);
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.4;
}
.service-card-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}

/* Second row of services */
.services-grid-2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}

/* ═══════════════════════════════════════════════════════
   POR QUÉ MEXIGLOBAL
═══════════════════════════════════════════════════════ */
.why-section {
  background: var(--navy);
  padding: 96px 72px;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 72px;
  align-items: center;
}
.why-nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.why-num .num { font-size: 3.5rem; font-weight: 900; color: var(--red); line-height: 1; }
.why-num p { font-size: 0.88rem; color: rgba(255,255,255,0.7); margin-top: 6px; }
.why-img-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  height: 320px;
  margin-top: 40px;
  border-radius: 8px;
  overflow: hidden;
}
.why-img-strip img { width: 100%; height: 100%; object-fit: cover; }
.why-quote {
  margin-top: 32px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red);
  text-align: center;
  padding: 20px;
  border: 1px solid rgba(192,24,30,0.3);
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════
   CONTACTO
═══════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}
.contact-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
}
.contact-imgs img { width: 100%; height: 100%; object-fit: cover; }
.contact-info h2 { font-size: clamp(1.8rem, 2.5vw, 2.4rem); font-weight: 800; color: var(--navy); margin-bottom: 36px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-item .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-item .icon.red { background: var(--red); color: #fff; }
.contact-item .icon.navy { background: var(--navy); color: #fff; }
.contact-item strong { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 3px; }
.contact-item a, .contact-item span { font-size: 1rem; color: var(--navy); font-weight: 500; }

/* ── CONTACT FORM ── */
.contact-form-wrap {
  background: var(--off);
  border-radius: 12px;
  padding: 40px;
}
.contact-form-wrap h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.94rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,30,61,0.08);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%; padding: 15px;
  background: var(--red); color: #fff;
  border: none; border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: background 0.2s;
  letter-spacing: 0.02em;
}
.form-submit:hover { background: var(--red-dark); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-result {
  display: none; margin-top: 16px; padding: 12px 16px;
  border-radius: 6px; font-size: 0.92rem; font-weight: 500; text-align: center;
}
.form-result.success { background: #E3F2E5; color: #2A6B33; border: 1px solid #A8D9AE; }
.form-result.error   { background: #FBEAEA; color: #A23B3B; border: 1px solid #ECBCBC; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.site-footer {
  background: #060E1C;
  color: rgba(255,255,255,0.6);
  padding: 48px 72px 28px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo img {
  height: 48px;
  filter: brightness(0) invert(1);
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════
   PAGE NUMBER BADGE (decorative, from portafolio)
═══════════════════════════════════════════════════════ */
.page-badge {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: #fff;
  z-index: 900;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  :root { --sidebar-w: 240px; }
  .services-grid,
  .services-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  :root { --sidebar-w: 0px; }
  .sidebar {
    transform: translateX(-280px);
    width: 280px;
    transition: transform 0.3s;
  }
  .sidebar.open { transform: translateX(0); }
  .site-main { margin-left: 0; }
  .hamburger { display: flex; }
  .section { padding: 72px 36px; }
  .hero-content { padding: 80px 36px; }
  .about-grid, .enfoque-grid, .vision-grid, .mision-grid { grid-template-columns: 1fr; }
  .about-img, .enfoque-img, .vision-img, .mision-img { height: 400px; }
  .about-text, .enfoque-text, .vision-text, .mision-text { padding: 48px 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-imgs { height: 320px; }
  .valores-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer { padding: 48px 36px 28px; }
  .mision-num-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 24px; }
  .services-grid, .services-grid-2 { grid-template-columns: 1fr; }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
  .valores-img-grid { grid-template-columns: 1fr; height: auto; }
  .valores-img-grid img:nth-child(2),
  .valores-img-grid img:nth-child(3) { display: none; }
  .valores-img-grid img:first-child { height: 260px; }
  .form-row { grid-template-columns: 1fr; }
  .why-nums { grid-template-columns: 1fr 1fr; }
}
</style>
