/* ============================================================
   TRANSPORTES JUNIOR — Shared Stylesheet
   Adapted from San Lorenzo Transport design system.
   Warmer palette (cream surface), family-focused vibe.
   ============================================================ */

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

:root {
  /* ── Colors (San Lorenzo + warmer cream surface for warmth) ── */
  --navy-900:   #061827;
  --navy-800:   #0B2A4A;
  --navy-700:   #0E3560;
  --navy-600:   #1A4A80;
  --blue-500:   #1565D8;
  --blue-100:   #D6E6FA;
  --orange-700: #B55A08;
  --orange-600: #D4680F;
  --orange-500: #F47C20;
  --orange-400: #F79547;
  --orange-100: #FDE8D2;
  --cream-100:  #FBF6EE;   /* warm cream — new for family vibe */
  --cream-200:  #F3EADA;
  --cream-300:  #E7D9C0;
  --neutral-900:#0D1B2A;
  --neutral-700:#2A3C4D;
  --neutral-600:#4A6073;
  --neutral-400:#8AA3B8;
  --neutral-200:#C8D8E4;
  --neutral-100:#D8E2EC;
  --neutral-50: #EFF4F9;
  --surface:    #F5F7FA;
  --white:      #FFFFFF;

  /* Semantic */
  --brand-primary: var(--navy-800);
  --brand-accent:  var(--orange-500);
  --text-primary:  var(--neutral-900);
  --text-secondary:var(--neutral-600);

  /* Type */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  /* Layout */
  --max-width: 1240px;
  --nav-height: 80px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* La nav es sticky → se superpone al padding-top de cada sección, así el título queda
   justo debajo de la barra (los 80-112 px de padding interno hacen de respiro natural). */
section[data-section] { scroll-margin-top: 0; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ────────────────────────────────────────────
   NAVIGATION (shared across all pages)
   ──────────────────────────────────────────── */
.tj-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(11,42,74,0.06);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.tj-nav.hidden { transform: translateY(-100%); }
.tj-nav.transparent {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.tj-nav.transparent .tj-nav-link { color: rgba(255,255,255,0.92); }
.tj-nav.transparent .tj-nav-brand-name { color: #fff; }
.tj-nav.transparent .tj-nav-brand-sub { color: rgba(255,255,255,0.6); }
.tj-nav.transparent .tj-nav-tel { color: rgba(255,255,255,0.85); }
.tj-nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 rgba(11,42,74,0.06), 0 6px 24px rgba(11,42,74,0.06);
  border-bottom-color: transparent;
}
.tj-nav-logo { display: flex; align-items: center; gap: 12px; }
.tj-nav-mono {
  width: 48px; height: 48px; background: var(--orange-500); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900;
  font-size: 17px; color: #fff; letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(244,124,32,0.32);
}
.tj-nav-logo-img {
  height: 48px; width: auto; display: block;
  object-fit: contain;
}
.tj-nav-brand { line-height: 1.05; }
.tj-nav-brand-name {
  font-family: var(--font-display); font-weight: 900;
  font-size: 18px; color: var(--navy-800); letter-spacing: 0.01em;
}
.tj-nav-brand-sub {
  font-size: 10px; font-weight: 700; color: var(--orange-500);
  letter-spacing: 0.32em; text-transform: uppercase; margin-top: 2px;
}
.tj-nav-links {
  display: flex; align-items: center; gap: 32px;
}
.tj-nav-link {
  font-size: 15px; font-weight: 600; color: var(--neutral-700);
  transition: color 0.2s;
  position: relative;
}
.tj-nav-link:hover { color: var(--orange-500); }
.tj-nav-link.active { color: var(--navy-800); }
.tj-nav-link.active::after {
  content: ''; position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; background: var(--orange-500); border-radius: 2px;
}
.tj-nav-tel {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--neutral-700);
  padding: 0 14px 0 0;
  border-right: 1px solid var(--neutral-100);
}
.tj-nav-tel svg { width: 16px; height: 16px; stroke: var(--orange-500); }
.tj-nav-cta {
  background: var(--orange-500); color: #fff; border: none;
  padding: 12px 22px; border-radius: 9999px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  box-shadow: 0 6px 18px rgba(244,124,32,0.40);
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.tj-nav-cta:hover { background: var(--orange-600); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(244,124,32,0.48); }
.tj-nav-cta svg { width: 14px; height: 14px; stroke: #fff; }

/* ────────────────────────────────────────────
   BUTTONS
   ──────────────────────────────────────────── */
.tj-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 9999px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  border: none; transition: all 0.2s;
  text-decoration: none;
}
.tj-btn-primary {
  background: var(--orange-500); color: #fff;
  box-shadow: 0 6px 18px rgba(244,124,32,0.40);
}
.tj-btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(244,124,32,0.48); }
.tj-btn-dark {
  background: var(--navy-800); color: #fff;
}
.tj-btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.tj-btn-outline {
  background: transparent; color: var(--navy-800);
  border: 1.5px solid var(--neutral-100);
}
.tj-btn-outline:hover { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.tj-btn-outline-light {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.tj-btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.tj-btn-lg { padding: 18px 32px; font-size: 16px; }
.tj-btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.tj-btn:hover svg { transform: translateX(3px); }

/* ────────────────────────────────────────────
   FOOTER (shared)
   ──────────────────────────────────────────── */
.tj-footer {
  background: var(--navy-900); color: rgba(255,255,255,0.65);
  padding: 80px 48px 32px;
}
.tj-footer-inner { max-width: var(--max-width); margin: 0 auto; }
.tj-footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 56px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tj-footer-brand-desc {
  font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5);
  margin-top: 20px; max-width: 320px;
}
.tj-footer-social {
  display: flex; gap: 10px; margin-top: 20px;
}
.tj-footer-social a {
  width: 36px; height: 36px; border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.tj-footer-social a:hover { background: var(--orange-500); }
.tj-footer-social svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.7); }
.tj-footer-social a:hover svg { stroke: #fff; }
.tj-footer-col-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.18em;
  color: #fff; margin-bottom: 20px;
}
.tj-footer-links { display: flex; flex-direction: column; gap: 12px; }
.tj-footer-link {
  font-size: 14px; color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.tj-footer-link:hover { color: var(--orange-400); }
.tj-footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.4);
  flex-wrap: wrap; gap: 12px;
}
.tj-footer-tagline {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: 0.15em; color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.tj-footer-legal {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 12px;
}
.tj-footer-legal a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.tj-footer-legal a:hover { color: var(--orange-400); }

/* ────────────────────────────────────────────
   COMMON SECTION ELEMENTS
   ──────────────────────────────────────────── */
.tj-section { padding: 112px 48px; }
.tj-section-narrow { padding: 80px 48px; }
.tj-section-inner { max-width: var(--max-width); margin: 0 auto; }

.tj-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--orange-500);
  margin-bottom: 16px;
}
.tj-eyebrow::before {
  content: ''; width: 24px; height: 2px; background: var(--orange-500);
}
.tj-eyebrow.centered { justify-content: center; }

.tj-h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(48px, 6vw, 80px); line-height: 0.98;
  letter-spacing: -0.02em; color: var(--navy-800);
  text-wrap: balance;
}
.tj-h1 em { font-style: normal; color: var(--orange-500); }

.tj-h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(36px, 4.5vw, 56px); line-height: 1.02;
  letter-spacing: -0.02em; color: var(--navy-800);
  text-wrap: balance;
}
.tj-h2 em { font-style: normal; color: var(--orange-500); }

.tj-h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 28px; line-height: 1.15;
  color: var(--navy-800);
}

.tj-lead {
  font-size: 19px; line-height: 1.6; color: var(--neutral-600);
  max-width: 580px; font-weight: 400;
}
.tj-section-head { margin-bottom: 64px; }
.tj-section-head.centered { text-align: center; }
.tj-section-head.centered .tj-lead { margin: 0 auto; }

/* ────────────────────────────────────────────
   FADE-UP ANIMATIONS
   ──────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.08s; }
.fade-up.d2 { transition-delay: 0.16s; }
.fade-up.d3 { transition-delay: 0.24s; }
.fade-up.d4 { transition-delay: 0.32s; }
.fade-up.d5 { transition-delay: 0.40s; }

/* ────────────────────────────────────────────
   IMAGE-SLOT styling helpers
   ──────────────────────────────────────────── */
image-slot {
  background: linear-gradient(135deg, var(--cream-200), var(--cream-300));
  --slot-empty-color: var(--neutral-600);
}

/* ────────────────────────────────────────────
   FLOATING WHATSAPP BUTTON
   ──────────────────────────────────────────── */
.tj-whatsapp-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,0.42), 0 4px 12px rgba(0,0,0,0.18);
  z-index: 90;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.25s ease;
}
.tj-whatsapp-fab svg { width: 30px; height: 30px; display: block; }
.tj-whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(37,211,102,0.55), 0 6px 16px rgba(0,0,0,0.22);
}
.tj-whatsapp-fab::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.6;
  animation: tj-wa-pulse 2.4s infinite ease-out;
  pointer-events: none;
}
@keyframes tj-wa-pulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.45); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tj-whatsapp-fab::after { animation: none; }
}

/* ────────────────────────────────────────────
   BOTÓN HAMBURGUESA (oculto en desktop)
   ──────────────────────────────────────────── */
.tj-nav-burger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  padding: 0;
  align-items: center; justify-content: center;
  position: relative;
  z-index: 110;
}
.tj-nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1), opacity 0.2s ease;
  position: absolute;
  left: 50%; margin-left: -11px;
}
.tj-nav-burger span:nth-child(1) { transform: translateY(-6px); }
.tj-nav-burger span:nth-child(2) { transform: translateY(0); }
.tj-nav-burger span:nth-child(3) { transform: translateY(6px); }
.tj-nav.menu-open .tj-nav-burger span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.tj-nav.menu-open .tj-nav-burger span:nth-child(2) { opacity: 0; }
.tj-nav.menu-open .tj-nav-burger span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

/* ────────────────────────────────────────────
   MOBILE / TABLET
   ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tj-section { padding: 80px 24px; }
  .tj-footer { padding: 64px 24px 28px; }
  .tj-footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .tj-nav { padding: 0 20px; height: 68px; }
  .tj-nav-logo-img { height: 40px; }
  .tj-nav-brand { display: none; }
  .tj-nav-burger { display: inline-flex; }

  /* Overlay menú hamburguesa */
  .tj-nav-links {
    position: fixed; inset: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--cream-100);
    padding: 88px 24px 32px;
    z-index: 105;
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.2,0.8,0.2,1);
    overflow-y: auto;
  }
  .tj-nav.menu-open .tj-nav-links {
    transform: translateX(0);
  }
  .tj-nav-link {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    color: var(--navy-800);
    padding: 16px 4px;
    border-bottom: 1px solid var(--cream-300);
    letter-spacing: -0.01em;
  }
  .tj-nav-link.active::after { display: none; }
  .tj-nav-tel {
    margin-top: 28px;
    border-right: none;
    padding: 14px 4px;
    font-size: 16px;
    color: var(--neutral-700);
  }
  .tj-nav-cta {
    margin-top: 12px;
    padding: 16px 24px;
    font-size: 15px;
    justify-content: center;
    align-self: stretch;
  }

  /* Variables nav transparente reset */
  .tj-nav.transparent { background: rgba(255,255,255,0.92); backdrop-filter: saturate(140%) blur(12px); }
}

@media (max-width: 600px) {
  .tj-footer-top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
  .tj-footer { padding: 48px 20px 24px; }
  .tj-footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tj-footer-legal { gap: 16px; }
}

/* WhatsApp FAB un poco más pequeño y separado en mobile */
@media (max-width: 600px) {
  .tj-whatsapp-fab { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .tj-whatsapp-fab svg { width: 26px; height: 26px; }
}
