/*
  Millenium Express Landing — Custom Styles
  Brand colors from webapp:
    Primary (orange): #f18732
    Dark (navy):      #344767
    Text gray:        #67748e
    BG light:         #f8f9fa
    Border:           #e9ecef
*/

/* ============================
   KEYFRAMES
============================ */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(241, 135, 50, 0.4); }
  50%       { box-shadow: 0 0 0 14px rgba(241, 135, 50, 0); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   BASE
============================ */
html {
  scroll-behavior: smooth;
}

/* ============================
   TYPOGRAPHY UTILITIES
============================ */
.section-label {
  display: inline-block;
  color: #f18732;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 900;
  color: #344767;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: #67748e;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-top: 0.5rem;
}

/* ============================
   BUTTONS
============================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: #f18732;
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background-color: #d97220;
  transform: translateY(-2px);
}

/* ============================
   NAVBAR
============================ */
.nav-link {
  color: #67748e;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #f18732;
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(52, 71, 103, 0.1);
}

/* ============================
   HERO SECTION
============================ */
.hero-bg {
  background-image: url('../img/background-slider1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,42,66,0.88) 0%, rgba(52,71,103,0.82) 60%, rgba(45,32,22,0.88) 100%);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 72% 50%, rgba(241, 135, 50, 0.13) 0%, transparent 55%);
  pointer-events: none;
}

/* ============================
   BROWSER MOCKUP
============================ */
.browser-mockup {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0,0,0,0.06);
  overflow: hidden;
}

.browser-mockup::before {
  content: '';
  display: block;
  height: 40px;
  background: #f1f3f5;
  border-bottom: 1px solid #e9ecef;
  background-image:
    radial-gradient(circle at 16px 50%, #fc5c57 6px, transparent 6px),
    radial-gradient(circle at 34px 50%, #febc2e 6px, transparent 6px),
    radial-gradient(circle at 52px 50%, #28c840 6px, transparent 6px);
  flex-shrink: 0;
}

/* ============================
   APP PLACEHOLDER (when no screenshot)
============================ */
.app-placeholder {
  display: none;
  padding: 0;
}

.app-placeholder-inner {
  display: flex;
  height: 340px;
  background: #f8f9fa;
}

.app-mock-sidebar {
  width: 72px;
  flex-shrink: 0;
  background: #344767;
  opacity: 0.12;
  border-right: 1px solid #e9ecef;
}

.app-mock-content {
  flex: 1;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.app-mock-header {
  height: 28px;
  background: #e9ecef;
  border-radius: 6px;
  width: 50%;
}

.app-mock-row {
  height: 14px;
  background: #e9ecef;
  border-radius: 4px;
  opacity: 0.7;
}

.app-mock-row.short {
  width: 65%;
}

.app-mock-cards {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.app-mock-card {
  flex: 1;
  height: 64px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.app-mock-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.app-mock-table-row {
  height: 32px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

.app-mock-table-row.alt {
  background: #f8f9fa;
}

/* ============================
   FADE-IN ANIMATION
============================ */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay {
  transition-delay: 0.18s;
}

/* ============================
   SERVICE CARDS
============================ */
.service-card {
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: rgba(241, 135, 50, 0.35);
  box-shadow: 0 8px 28px rgba(241, 135, 50, 0.1), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.icon-box {
  width: 56px;
  height: 56px;
  background: rgba(241, 135, 50, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.service-card:hover .icon-box {
  background: rgba(241, 135, 50, 0.18);
}

/* ============================
   FEATURE CHECKLIST
============================ */
.feature-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #67748e;
  font-size: 0.9375rem;
}

.feature-check::before {
  content: '';
  display: inline-flex;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(241, 135, 50, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23f18732'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* ============================
   DARK SECTIONS (hero, ML, contact)
============================ */
.dark-section {
  background: linear-gradient(135deg, #1a2a42 0%, #344767 100%);
  position: relative;
}

.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(241, 135, 50, 0.07) 0%, transparent 50%);
  pointer-events: none;
}

/* ============================
   ML SECTION — brand badges
============================ */
.brand-badge {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ============================
   STEP CARDS (ML section)
============================ */
.step-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(241, 135, 50, 0.4);
}

.step-number {
  width: 48px;
  height: 48px;
  background: #f18732;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 6px 20px rgba(241, 135, 50, 0.4);
}

/* ============================
   PRICING TABLE
============================ */
.price-row-featured {
  background: #fff7f4;
  border-left: 4px solid #f18732;
}

.price-row-featured:hover {
  background: #fff0ea !important;
}

.price-row-normal {
  border-left: 4px solid transparent;
  border-bottom: 1px solid #e9ecef;
  transition: background 0.15s ease;
}

.price-row-normal:hover {
  background: #f8f9fa;
}

/* ============================
   HOW IT WORKS
============================ */
.how-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(52, 71, 103, 0.07);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.how-card:hover {
  box-shadow: 0 8px 32px rgba(52, 71, 103, 0.13);
  transform: translateY(-4px);
}

.how-icon-wrap {
  width: 56px;
  height: 56px;
  background: #f18732;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(241, 135, 50, 0.35);
}

.how-connector {
  position: absolute;
  top: 28px;
  left: calc(33.33% - 20px);
  right: calc(33.33% - 20px);
  height: 2px;
  background: linear-gradient(90deg, #e9ecef 0%, #f18732 50%, #e9ecef 100%);
  opacity: 0.5;
  z-index: 0;
}

/* ============================
   CONTACT FORM
============================ */
.contact-form-card {
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.form-label {
  display: block;
  color: #67748e;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.375rem;
}

.contact-input {
  width: 100%;
  border: 1.5px solid #e9ecef;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: #344767;
  font-family: "Nunito Sans", sans-serif;
  background: #fafafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.contact-input:focus {
  border-color: #f18732;
  box-shadow: 0 0 0 3px rgba(241, 135, 50, 0.12);
  background: #fff;
}

.contact-input::placeholder {
  color: #adb5bd;
}

select.contact-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2367748e' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.contact-icon-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(241, 135, 50, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================
   FOOTER
============================ */
.footer-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
  background: #f18732;
  color: #fff;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .how-connector {
    display: none;
  }

  .contact-form-card {
    padding: 1.5rem;
  }
}

/* ============================
   PARALLAX — MercadoLibre section
============================ */
.ml-parallax-bg {
  position: absolute;
  inset: -20% 0;            /* 140% height to have room to move */
  background-image: url('../img/mercadolibre_wallpaper.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.05s linear;
  z-index: 0;
}

/* The ::before overlay sits on top of the parallax bg */
.dark-section::before { z-index: 1; }
.dark-section::after  { z-index: 1; }

/* ============================
   HERO — floating mockup
============================ */
.browser-mockup-float {
  animation: floatY 5s ease-in-out infinite;
}

/* ============================
   SECTION TITLE — animated underline accent
============================ */
.section-title-accent {
  position: relative;
  display: inline-block;
}
.section-title-accent::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 3px;
  background: linear-gradient(90deg, #f18732, #d97220);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-title-accent.visible::after { width: 100%; }

/* ============================
   CTA BUTTON — pulse glow on hover
============================ */
.btn-primary:hover {
  animation: pulseGlow 1.2s ease-out;
}

/* ============================
   GRADIENT HERO HEADING
============================ */
.hero-heading-gradient {
  background: linear-gradient(135deg, #fff 30%, #f18732 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================
   STATS — count-up animation trigger
============================ */
.stat-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   SECTION LABELS — slide-in
============================ */
.section-label {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.section-label.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================
   STEP CARDS — lift on hover
============================ */
.step-card {
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.step-card:hover {
  transform: translateY(-6px);
}
