/* ============================================================
   TEAM CARGO PERÚ — Estilos personalizados
   Sistema de diseño sobre Bootstrap 5
   Paleta: navy corporativo + acento azul JAS
   ============================================================ */

:root {
  --tc-navy:      #0a2540;
  --tc-navy-2:    #103257;
  --tc-navy-3:    #16406e;
  --tc-header:    #1e2b4d;   /* navy azulado JAS para navbar y footer */
  --tc-accent:    #3d6cb5;   /* azul JAS */
  --tc-accent-2:  #5f84c6;
  --tc-blue:      #1b6ef3;
  --tc-light:     #f5f8fc;
  --tc-grey:      #64748b;
  --tc-line:      #e2e8f0;
  --tc-white:     #ffffff;
  --tc-shadow:    0 10px 30px rgba(10, 37, 64, .10);
  --tc-shadow-lg: 0 20px 50px rgba(10, 37, 64, .18);
  --tc-radius:    14px;
  --tc-font:      'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { scroll-behavior: smooth; }

body {
  font-family: var(--tc-font);
  color: #1e293b;
  background: var(--tc-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3 {
  font-weight: 700;
  color: var(--tc-navy);
  letter-spacing: -.02em;
}

.text-accent { color: var(--tc-accent) !important; }
.bg-navy     { background: var(--tc-navy) !important; }
.bg-navy-2   { background: var(--tc-navy-2) !important; }
.bg-light-2  { background: var(--tc-light) !important; }

a { text-decoration: none; }

/* ---------- Section helpers ---------- */
.section        { padding: 96px 0; }
.section-sm     { padding: 64px 0; }
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tc-accent);
  margin-bottom: .6rem;
}
.section-title  { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1rem; }
.section-lead   { color: var(--tc-grey); font-size: 1.06rem; max-width: 640px; }
.divider-accent {
  width: 64px; height: 4px; border-radius: 4px;
  background: var(--tc-accent); margin: 0 0 1.4rem;
}
.text-center .divider-accent { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 10px; padding: .68rem 1.5rem; transition: .25s; }
.btn-accent {
  background: var(--tc-accent); border: none; color: #fff;
  box-shadow: 0 8px 20px rgba(61, 108, 181, .35);
}
.btn-accent:hover { background: var(--tc-accent-2); color: #fff; transform: translateY(-2px); }
.btn-navy { background: var(--tc-navy); border: none; color: #fff; }
.btn-navy:hover { background: var(--tc-navy-3); color: #fff; transform: translateY(-2px); }
.btn-outline-light-2 { border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline-light-2:hover { background: #fff; color: var(--tc-navy); }
.btn-lg { padding: .9rem 2rem; font-size: 1.02rem; }

/* ---------- Navbar ---------- */
.navbar {
  transition: .3s ease; padding: 1rem 0;
  background: transparent;
}
.navbar.scrolled {
  background: var(--tc-header);
  box-shadow: 0 6px 24px rgba(10, 37, 64, .25);
  padding: .55rem 0;
}
.navbar-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; }
.navbar-brand .brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent-2));
  display: grid; place-items: center; color: #fff; font-size: 1.35rem;
  box-shadow: 0 6px 16px rgba(61,108,181,.4);
}
.navbar-brand .brand-text { line-height: 1; color: #fff; }
.navbar-brand .brand-text b { font-size: 1.15rem; letter-spacing: .02em; }
.navbar-brand .brand-text span { font-size: .66rem; letter-spacing: .22em; opacity: .8; font-weight: 500; }
/* Logo en imagen (reemplaza el mark + texto) */
.navbar-brand .brand-logo { height: 66px; width: auto; display: block; transition: height .3s ease; }
.navbar.scrolled .brand-logo { height: 52px; }
@media (max-width: 991.98px) { .navbar-brand .brand-logo { height: 48px; } }
.navbar .nav-link {
  color: rgba(255,255,255,.85) !important; font-weight: 500;
  margin: 0 .35rem; position: relative;
}
.navbar .nav-link::after {
  content: ''; position: absolute; left: .6rem; right: .6rem; bottom: .1rem;
  height: 2px; background: var(--tc-accent); transform: scaleX(0);
  transform-origin: left; transition: .25s;
}
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link.active { color: #fff !important; }
.navbar-toggler { border-color: rgba(255,255,255,.4); }
.navbar-toggler:focus { box-shadow: none; }

/* language switch */
.lang-switch { display: flex; align-items: center; gap: 2px; margin: 0 .6rem; }
.lang-switch button {
  background: none; border: none; color: rgba(255,255,255,.6);
  font-weight: 600; font-size: .82rem; padding: 3px 7px; border-radius: 6px; cursor: pointer;
}
.lang-switch button.active { color: #fff; background: rgba(255,255,255,.15); }
.lang-switch .sep { color: rgba(255,255,255,.3); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero .hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(8,28,50,.92) 0%, rgba(9,30,54,.78) 42%, rgba(10,37,64,.48) 100%),
    url('../img/02_banner.jpg') center center / cover no-repeat,
    var(--tc-navy);
  z-index: 0;
}
/* patrón sutil de puntos, muy tenue sobre la foto */
.hero .hero-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .05;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 28px 28px;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  color: #fff; font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.05;
  margin-bottom: 1.2rem;
}
.hero h1 .hl { color: var(--tc-accent); }
.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 560px; margin-bottom: 1.8rem; }
.hero .badge-soft {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: .45rem 1rem; border-radius: 40px; font-size: .84rem; margin-bottom: 1.4rem;
}
.hero .badge-soft i { color: var(--tc-accent); }

/* Track & Trace box */
.track-box {
  background: rgba(255,255,255,.97); color: var(--tc-navy);
  border-radius: var(--tc-radius); padding: 1.6rem; box-shadow: var(--tc-shadow-lg);
}
.track-box h5 { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.track-box h5 i { color: var(--tc-accent); }
.track-box .form-control { border-radius: 10px; padding: .7rem 1rem; border: 1px solid var(--tc-line); }
.track-box .form-control:focus { border-color: var(--tc-accent); box-shadow: 0 0 0 .2rem rgba(61,108,181,.15); }
.track-note { font-size: .8rem; color: var(--tc-grey); margin-top: .7rem; margin-bottom: 0; }
.track-result { margin-top: 1rem; font-size: .9rem; display: none; }

/* ---------- Stats ---------- */
.stats-band { background: var(--tc-navy); color: #fff; }
.stat-item { text-align: center; padding: .5rem; }
.stat-item .num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: #fff; line-height: 1; }
.stat-item .num .plus { color: var(--tc-accent); }
.stat-item .label { color: rgba(255,255,255,.7); font-size: .92rem; margin-top: .4rem; letter-spacing: .03em; }
.stat-item i { font-size: 1.6rem; color: var(--tc-accent); margin-bottom: .5rem; display: block; }

/* ---------- Service cards ---------- */
.service-card {
  background: #fff; border: 1px solid var(--tc-line); border-radius: var(--tc-radius);
  padding: 2rem 1.6rem; height: 100%; transition: .3s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--tc-accent); transform: scaleX(0); transform-origin: left; transition: .3s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--tc-shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon {
  width: 62px; height: 62px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(61,108,181,.13), rgba(27,110,243,.12));
  color: var(--tc-accent); font-size: 1.7rem; margin-bottom: 1.2rem;
}
.service-card h4 { font-size: 1.2rem; margin-bottom: .6rem; }
.service-card p { color: var(--tc-grey); font-size: .95rem; margin-bottom: 1rem; }
.service-card .more { color: var(--tc-accent); font-weight: 600; font-size: .9rem; }
.service-card .more i { transition: .25s; }
.service-card:hover .more i { transform: translateX(4px); }

/* ---------- Image placeholders ---------- */
.img-ph {
  position: relative; border-radius: var(--tc-radius); overflow: hidden;
  background: linear-gradient(135deg, var(--tc-navy) 0%, var(--tc-navy-3) 100%);
  display: grid; place-items: center; color: rgba(255,255,255,.85); min-height: 260px;
  border: 2px dashed rgba(255,255,255,.25);
}
.img-ph .ph-inner { text-align: center; padding: 1rem; }
.img-ph i { font-size: 2.4rem; display: block; margin-bottom: .5rem; color: var(--tc-accent); }
.img-ph small { display: block; opacity: .7; font-size: .72rem; letter-spacing: .06em; margin-top: .3rem; }
.img-ph.tall { min-height: 420px; }
.img-ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Certificaciones ---------- */
.cert-card {
  background: #fff; border: 1px solid var(--tc-line); border-radius: var(--tc-radius);
  padding: 1.7rem 1.4rem; text-align: center; height: 100%; transition: .3s;
}
.cert-card:hover { transform: translateY(-6px); box-shadow: var(--tc-shadow-lg); border-color: transparent; }
.cert-ico {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center;
  background: rgba(61,108,181,.10); color: var(--tc-accent); font-size: 2rem;
}
.cert-code { font-weight: 800; color: var(--tc-navy); font-size: 1.15rem; letter-spacing: -.01em; }
.cert-name { color: var(--tc-grey); font-size: .9rem; margin-top: .3rem; line-height: 1.4; }
.cert-meta {
  margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--tc-line);
  font-size: .8rem; color: #94a3b8; line-height: 1.6;
}
.cert-meta b { color: var(--tc-navy-3); font-weight: 600; }
.cert-cc-line {
  display: inline-flex; align-items: center; gap: .5rem; background: #fff;
  border: 1px solid var(--tc-line); border-radius: 40px; padding: .6rem 1.4rem;
  color: var(--tc-navy); font-weight: 500; font-size: .95rem;
}
.cert-cc-line i { color: var(--tc-accent); font-size: 1.2rem; }

/* ---------- Why / features ---------- */
.feature-row { display: flex; gap: 1rem; margin-bottom: 1.6rem; }
.feature-row .fi {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 12px;
  background: rgba(61,108,181,.12); color: var(--tc-accent);
  display: grid; place-items: center; font-size: 1.3rem;
}
.feature-row h5 { margin-bottom: .25rem; font-size: 1.08rem; }
.feature-row p { color: var(--tc-grey); font-size: .93rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--tc-accent), var(--tc-accent-2));
  color: #fff; border-radius: 20px; padding: 3rem; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band .btn-light { color: var(--tc-navy); font-weight: 700; }

/* ---------- Page hero (subpáginas) ---------- */
.page-hero {
  background: linear-gradient(120deg, rgba(10,37,64,.95), rgba(16,50,87,.85)), var(--tc-navy);
  color: #fff; padding: 160px 0 70px; position: relative;
}
.page-hero::after {
  content:''; position:absolute; inset:0; opacity:.1;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 26px 26px;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); }
.page-hero .breadcrumb a { color: var(--tc-accent-2); }
.page-hero .breadcrumb .active { color: rgba(255,255,255,.8); }

/* ---------- Contact ---------- */
.contact-card {
  background: #fff; border: 1px solid var(--tc-line); border-radius: var(--tc-radius);
  padding: 1.6rem; display: flex; gap: 1rem; align-items: flex-start; height: 100%;
}
.contact-card .ci {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px;
  background: var(--tc-navy); color: #fff; display: grid; place-items: center; font-size: 1.4rem;
}
.contact-card h6 { margin-bottom: .2rem; }
.contact-card p, .contact-card a { color: var(--tc-grey); font-size: .95rem; margin: 0; }
.contact-card a:hover { color: var(--tc-accent); }
.form-floating > .form-control:focus { border-color: var(--tc-accent); box-shadow: 0 0 0 .2rem rgba(61,108,181,.15); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--tc-header); color: rgba(255,255,255,.7); padding: 72px 0 0; }
footer.site-footer h6 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: .02em; }
footer.site-footer a { color: rgba(255,255,255,.7); transition: .2s; }
footer.site-footer a:hover { color: var(--tc-accent); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer ul li { margin-bottom: .6rem; }
footer .foot-brand b { color: #fff; font-size: 1.2rem; }
footer .social a {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: inline-grid; place-items: center; color: #fff; margin-right: .5rem; font-size: 1.05rem;
}
footer .social a:hover { background: var(--tc-accent); color: #fff; }
footer .foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding: 22px 0; font-size: .85rem; }

/* ---------- WhatsApp floating ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37,211,102,.5); animation: wa-pulse 2.4s infinite;
}
.wa-float:hover { color: #fff; transform: scale(1.08); transition: .2s; }
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Reveal on scroll ---------- */
/* Solo se ocultan si el JS está activo (html.js); si no, todo queda visible. */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: .7s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--tc-header); border-radius: 12px; padding: 1rem 1.2rem; margin-top: .6rem;
  }
  .navbar .nav-link { margin: .2rem 0; }
  .lang-switch { justify-content: flex-start; margin: .6rem 0; }
  .hero { min-height: auto; padding: 130px 0 70px; }
  .section { padding: 68px 0; }
  .cta-band { padding: 2rem; text-align: center; }
}
