/* ===== RUMA Logística Landing Page ===== */
/* Design System: Modern Industrial Corporate */

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

/* --- Design Tokens --- */
:root {
  --primary: #0a192f;
  --primary-light: #0d1c32;
  --secondary: #334155;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --neutral: #f8fafc;
  --surface: #f7f9fb;
  --surface-container: #eceef0;
  --surface-container-low: #f2f4f6;
  --on-surface: #191c1e;
  --on-surface-variant: #44474d;
  --outline: #75777e;
  --outline-variant: #c5c6cd;
  --success: #10b981;
  --font-headline: 'Hanken Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container-max: 1280px;
  --gutter: 24px;
  --stack-xs: 4px;
  --stack-sm: 12px;
  --stack-md: 24px;
  --stack-lg: 48px;
  --stack-xl: 80px;
  --rounded-sm: 0.125rem;
  --rounded: 0.25rem;
  --rounded-md: 0.375rem;
  --rounded-lg: 0.5rem;
  --rounded-xl: 0.75rem;
  --shadow-soft: 0px 4px 12px rgba(10, 25, 47, 0.05);
  --shadow-medium: 0px 8px 24px rgba(10, 25, 47, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--on-surface);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.logo-grande {
  width: 380px;
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto 34px auto;
}

/* Footer logo */
.footer-logo-link {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo {
  height: 210px;
  width: auto;
  max-width: 310px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition);
}

.footer-logo:hover {
  transform: scale(1.04);
}

/* --- Typography --- */
.display-lg {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-family: var(--font-headline);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.headline-md {
  font-family: var(--font-headline);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.3;
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.75;
}

.body-md {
  font-size: 1rem;
  line-height: 1.5;
}

.label-md {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.43;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.label-sm {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.33;
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: var(--stack-xl) 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--rounded);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform var(--transition);
}

.btn:hover::after {
  transform: translateX(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--secondary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 249, 251, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(197, 198, 205, 0.3);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(247, 249, 251, 0.95);
  box-shadow: var(--shadow-soft);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 85px;
}

.navbar-logo img {
  height: 88px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition);
}

.navbar-logo:hover img {
  transform: scale(1.06);
}

.navbar-logo span {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: color var(--transition);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.navbar-links a:hover {
  color: var(--primary);
}

.navbar-links a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.92) 0%, rgba(10, 25, 47, 0.7) 50%, rgba(10, 25, 47, 0.4) 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(185, 199, 228, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 9999px;
  color: #ffb690;
  margin-bottom: var(--stack-md);
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--stack-md);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: var(--stack-lg);
  max-width: 520px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: var(--stack-xl);
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.hero-stat .number .accent {
  color: var(--accent);
  font-size: 1.5rem;
}

.hero-stat .label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ===== SERVICES ===== */
.services {
  background: var(--surface);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--stack-lg);
}

.section-label {
  display: inline-block;
  color: var(--accent);
  margin-bottom: var(--stack-sm);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-header h2 {
  color: var(--primary);
  margin-bottom: var(--stack-sm);
}

.section-header p {
  color: var(--on-surface-variant);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--stack-md);
}

.service-card {
  background: #fff;
  border: 1px solid var(--outline-variant);
  border-radius: var(--rounded-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--rounded-md);
  background: var(--surface-container-low);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--stack-md);
  font-size: 1.5rem;
  color: var(--primary);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
}

.service-card h3 {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--stack-sm);
}

.service-card p {
  color: var(--on-surface-variant);
  font-size: 0.9375rem;
}

/* ===== WHY RUMA ===== */
.why-ruma {
  background: var(--surface-container-low);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--stack-lg);
  align-items: center;
}

.why-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.why-img-item {
  border-radius: var(--rounded-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  height: 200px;
  position: relative;
}

.why-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.why-img-item:hover img {
  transform: scale(1.05);
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
}

.why-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: #fff;
  border-radius: var(--rounded-lg);
  border: 1px solid transparent;
  transition: all var(--transition);
}

.why-feature:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.why-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--rounded-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.why-feature-icon.blue {
  background: rgba(10, 25, 47, 0.08);
  color: var(--primary);
}

.why-feature-icon.orange {
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent);
}

.why-feature-icon.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.why-feature h4 {
  font-family: var(--font-headline);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.why-feature p {
  color: var(--on-surface-variant);
  font-size: 0.875rem;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--primary);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 50%, rgba(185, 199, 228, 0.05) 0%, transparent 50%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--stack-md);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-number .accent {
  color: var(--accent);
}

.stat-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* ===== TRACKING ===== */
.tracking {
  background: var(--surface);
}

.tracking-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--stack-lg);
  align-items: center;
}

.tracking-mockup {
  background: var(--primary);
  border-radius: var(--rounded-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.tracking-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(249, 115, 22, 0.12) 0%, transparent 60%);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.mockup-header h4 {
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 600;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 12px;
  border-radius: 9999px;
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 600;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.tracker-line {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tracker-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--outline);
  background: transparent;
}

.step-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

.step-dot.completed {
  background: var(--success);
  border-color: var(--success);
}

.step-line {
  width: 2px;
  height: 32px;
  background: var(--outline);
}

.step-line.completed {
  background: var(--success);
}

.step-info h5 {
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
}

.step-info p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  margin-top: 2px;
}

.tracking-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tracking-feature {
  display: flex;
  gap: 16px;
  align-items: center;
}

.tracking-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--rounded-md);
  background: var(--surface-container-low);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.tracking-feature h4 {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.tracking-feature p {
  color: var(--on-surface-variant);
  font-size: 0.875rem;
  margin-top: 2px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--surface-container-low);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--stack-md);
}

.testimonial-card {
  background: #fff;
  border-radius: var(--rounded-lg);
  padding: 32px;
  border: 1px solid var(--outline-variant);
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: transparent;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: var(--stack-md);
  font-style: italic;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9375rem;
}

.testimonial-role {
  color: var(--on-surface-variant);
  font-size: 0.8125rem;
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: var(--stack-xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.15) 0%, transparent 60%);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #fff;
  margin-bottom: var(--stack-sm);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  margin-bottom: var(--stack-lg);
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--stack-lg);
  margin-bottom: var(--stack-lg);
}

.footer-brand p {
  max-width: 330px;
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: var(--stack-sm);
}

.footer h5 {
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--stack-md);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {

  .why-grid,
  .tracking-content {
    grid-template-columns: 1fr;
  }

  .why-images-grid {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 56px 0;
  }

  .why-images-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .why-img-item {
    height: 180px;
  }

  .navbar-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .navbar-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(247, 249, 251, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--outline-variant);
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .hero-stat .number {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}