/* ═══════════════════════════════════════════════
   LOGÍSTICA CAUDAS FELIZES — Shared Styles
═══════════════════════════════════════════════ */

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

:root {
  --navy:        #0d1b2e;
  --navy-mid:    #132040;
  --navy-light:  #1c3058;
  --amber:       #e8a020;
  --amber-light: #f5c150;
  --amber-pale:  #fef3d8;
  --white:       #ffffff;
  --off:         #f5f3ee;
  --g50:         #f8f7f4;
  --g100:        #eae8e2;
  --g200:        #d4d0c8;
  --g400:        #9d9890;
  --g600:        #5e5a54;
  --g800:        #2a2724;
  --green:       #15803d;
  --green-bg:    rgba(21,128,61,.1);
  --red:         #b91c1c;
  --red-bg:      rgba(185,28,28,.1);
  --blue:        #1d4ed8;
  --blue-bg:     rgba(29,78,216,.08);

  --fd: 'Barlow Condensed', sans-serif;
  --fb: 'Instrument Sans', sans-serif;
  --nav: 72px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);

  --radius: 4px;
  --radius-lg: 8px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--fb);
  background: var(--off);
  color: var(--g800);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--fb); }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: var(--navy);
  height: var(--nav);
  display: flex; align-items: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  border-bottom: 2.5px solid var(--amber);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-lg); }

.nav-inner {
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--fd); font-weight: 800; font-size: 1.5rem;
  color: var(--white); letter-spacing: .02em;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--amber);
  clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%, 20% 50%);
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 16px; height: 16px; }
.nav-logo span { color: var(--amber); }

.nav-links {
  display: flex; align-items: center; gap: .1rem;
  flex: 1; justify-content: center;
}
.nav-link {
  font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.65);
  padding: .45rem .9rem; border-radius: var(--radius);
  border: none; background: none;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-link.active { color: var(--amber); }

.nav-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.btn-nav-cta {
  background: var(--amber); color: var(--navy);
  font-family: var(--fd); font-weight: 700; font-size: .9rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .5rem 1.3rem; border: none; border-radius: var(--radius);
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--amber-light); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; padding: .5rem;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed; top: var(--nav); left: 0; right: 0; z-index: 899;
  background: var(--navy-mid);
  border-bottom: 2px solid var(--amber);
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column; gap: .25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link {
  font-size: 1rem; padding: .75rem 1rem;
  border-radius: var(--radius);
  display: block;
}
.nav-mobile .btn-nav-cta { margin-top: .5rem; text-align: center; padding: .85rem; font-size: 1rem; }

/* ── COMMON SECTION STYLES ── */
.section-label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: .6rem;
  display: inline-block;
}
.section-title {
  font-family: var(--fd);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; line-height: 1.0;
  color: var(--navy); text-transform: uppercase;
  letter-spacing: .01em;
}
.section-title.light { color: var(--white); }
.section-sub {
  font-size: 1rem; color: var(--g600);
  line-height: 1.75; max-width: 560px;
  margin-top: .9rem; font-weight: 400;
}
.section-sub.light { color: rgba(255,255,255,.65); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fd); font-weight: 700; font-size: .95rem;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .85rem 2rem; border: none; border-radius: var(--radius);
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-primary {
  background: var(--amber); color: var(--navy);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  padding-right: 2.2rem;
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-navy {
  background: var(--navy); color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-1px); }

/* ── STATUS BADGES ── */
.status-badge {
  display: inline-block;
  font-family: var(--fd); font-size: .8rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: var(--radius);
}
.s-pending   { background: rgba(100,116,139,.12); color: #475569; }
.s-collected { background: var(--blue-bg); color: #1d4ed8; }
.s-transit   { background: rgba(217,119,6,.12); color: #b45309; }
.s-depot     { background: rgba(124,58,237,.1); color: #7c3aed; }
.s-delivered { background: var(--green-bg); color: #15803d; }
.s-cancelled { background: var(--red-bg); color: #b91c1c; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  border-top: 2.5px solid var(--amber);
  padding: 4rem clamp(1rem,4vw,2.5rem) 2rem;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer-col h4 {
  font-family: var(--fd); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.1rem;
}
.footer-col a {
  display: block; font-size: .875rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .6rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1280px; margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
  font-size: .8rem; color: rgba(255,255,255,.3);
}

/* ── WHATSAPP FAB ── */
.whatsapp-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 800;
  background: #25D366; color: var(--white);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}
.whatsapp-fab:hover {
  background: #20BA5A;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37,211,102,0.35);
}
.whatsapp-fab:active {
  transform: scale(0.95);
}
.whatsapp-fab svg { width: 28px; height: 28px; fill: currentColor; }

/* ── ADMIN FAB (deprecated) ── */
.admin-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 800;
  background: var(--navy); color: var(--amber);
  font-family: var(--fd); font-weight: 700; font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .55rem 1.1rem;
  border: 1.5px solid var(--amber);
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 6px;
  box-shadow: var(--shadow-md);
  transition: background .2s;
}
.admin-fab:hover { background: var(--navy-light); }
.admin-fab svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy); color: var(--white);
  font-size: .875rem; font-weight: 500;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--amber);
  z-index: 9999; opacity: 0;
  transition: all .3s;
  pointer-events: none; max-width: 360px;
  text-align: center; white-space: nowrap;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.t-success { border-left-color: var(--green); }
.toast.t-error   { border-left-color: var(--red); }

/* ── SUPPORT NOTIFICATION ── */
.support-notification {
  position: fixed; bottom: 6rem; right: 1.5rem; z-index: 790;
  animation: slideInRight .4s ease forwards;
}
.support-notification-content {
  background: linear-gradient(135deg, var(--white) 0%, #fafbfc 100%);
  border: 1.5px solid var(--g100);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  display: flex; align-items: center; gap: 1rem;
  max-width: 380px;
  backdrop-filter: blur(8px);
  position: relative;
}
.support-notification-icon {
  font-size: 1.8rem; flex-shrink: 0;
}
.support-notification-text {
  flex: 1; min-width: 0;
}
.support-notification-text strong {
  display: block; font-size: .9rem; font-weight: 700;
  color: var(--navy); margin-bottom: .3rem;
}
.support-notification-text p {
  font-size: .8rem; color: var(--g500);
  margin: 0; line-height: 1.4;
}
.support-notification-btn {
  background: #25D366; color: var(--white);
  font-family: var(--fd); font-weight: 700; font-size: .75rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .5rem .95rem;
  border: none; border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
  transition: all .2s;
  white-space: nowrap; flex-shrink: 0;
}
.support-notification-btn:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}
.support-notification-close {
  background: none; border: none;
  color: var(--g400); font-size: 1.2rem;
  cursor: pointer; padding: 0;
  transition: color .2s;
  position: absolute; top: .6rem; right: .6rem;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.support-notification-close:hover { color: var(--navy); }

/* ── ANIMATIONS ── */
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
@keyframes shimmer { to{background-position:200% center} }
@keyframes slideInRight { from{opacity:0;transform:translateX(24px)} to{opacity:1;transform:translateX(0)} }

.fade-up { animation: fadeUp .4s ease forwards; }

/* ── RESPONSIVE HELPERS ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
