/* ═══════════════════════════════════════════════
   CORREKAMINOS LOGISTICA — Premium Styles
   Vibe: Editorial Luxury + Soft Structuralism
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  /* ── Brand Palette ── */
  --teal: #0fb5ba;
  --teal-dark: #0a8f93;
  --teal-deeper: #076d70;
  --teal-muted: rgba(15, 181, 186, .12);

  /* ── Neutrals ── */
  --slate-950: #0a0f1a;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --warm-white: #fafaf9;
  --off-white: #f5f5f4;

  /* ── System ── */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-ambient: 0 20px 40px -15px rgba(0,0,0,.05);
  --shadow-elevation: 0 12px 48px rgba(0,0,0,.08);
  --shadow-hover: 0 24px 56px rgba(0,0,0,.12);
  --transition: .5s cubic-bezier(.32,.72,0,1);
  --transition-fast: .3s cubic-bezier(.32,.72,0,1);
  --ease-out-expo: cubic-bezier(.16,1,.3,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--slate-700);
  background: var(--warm-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }

.container {
  width: min(1280px, 88%);
  margin-inline: auto;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--slate-950);
  line-height: 1.1;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 400; }
h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.section-label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-muted);
  padding: .4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

/* ─── NAVIGATION ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  background: rgba(10,15,26,.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10,15,26,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: .7rem 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo img {
  height: 60px;
  width: auto;
  filter: brightness(1.15);
  transition: var(--transition-fast);
}
.navbar.scrolled .navbar-logo img { height: 48px; }
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1.5px;
  background: var(--teal);
  transition: var(--transition-fast);
}
.nav-links a:hover { color: var(--warm-white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--teal) !important;
  color: var(--slate-950) !important;
  padding: .55rem 1.5rem;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: .8rem !important;
  letter-spacing: .01em;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--teal-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15,181,186,.25);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--warm-white);
  transition: var(--transition-fast);
  transform-origin: center;
}

/* ─── HERO VIDEO SCROLL ─── */
.hero {
  position: relative;
  height: 300vh;
}
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video-wrap .hero-fallback {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,15,26,.82) 0%,
    rgba(10,15,26,.45) 45%,
    rgba(10,15,26,.65) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: var(--warm-white);
  max-width: 720px;
  padding: 0 2rem;
  margin-right: auto;
  margin-left: 8%;
}
.hero-content h1 {
  color: var(--warm-white);
  margin-bottom: 1.25rem;
  line-height: 1.05;
}
.hero-content h1 span {
  color: var(--teal);
}
.hero-content p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,.7);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.7;
  font-weight: 300;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.45);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  animation: float 2.5s cubic-bezier(.4,0,.2,1) infinite;
}
.hero-scroll-hint .arrow {
  width: 16px;
  height: 16px;
  border-right: 1.5px solid rgba(255,255,255,.35);
  border-bottom: 1.5px solid rgba(255,255,255,.35);
  transform: rotate(45deg);
}

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

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 2.2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .88rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: .01em;
}
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--teal);
  color: var(--slate-950);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15,181,186,.3);
}

.btn-outline {
  background: transparent;
  color: var(--warm-white);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.06);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--warm-white);
}
.btn-whatsapp:hover {
  background: #20b858;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,.3);
}

/* Dark section button variants */
.btn-outline-dark {
  background: transparent;
  color: var(--slate-700);
  border: 1.5px solid var(--slate-200);
}
.btn-outline-dark:hover {
  border-color: var(--teal);
  color: var(--teal-deeper);
  background: var(--teal-muted);
}

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--slate-950);
  padding: 4rem 0;
  position: relative;
  z-index: 10;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item h3 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--teal);
  margin-bottom: .35rem;
  letter-spacing: -.03em;
}
.stat-item p {
  color: var(--slate-400);
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .02em;
}

/* ─── SECTIONS ─── */
section { padding: 6rem 0; }
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}
.section-header p {
  color: var(--slate-500);
  font-size: 1.05rem;
  margin-top: 1rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ─── SERVICES GRID ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
/* Double-Bezel Card Architecture */
.service-card {
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--radius-xl);
  padding: 2px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card-inner {
  background: var(--warm-white);
  border-radius: calc(var(--radius-xl) - 2px);
  padding: 2.5rem;
  height: 100%;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.8);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-muted);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--teal-deeper);
}
.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--teal-deeper);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 { margin-bottom: .6rem; }
.service-card p { color: var(--slate-500); font-size: .92rem; line-height: 1.7; font-weight: 300; }
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.25rem;
  color: var(--teal-deeper);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .01em;
}
.service-card .card-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-fast);
}
.service-card:hover .card-link svg {
  transform: translateX(4px);
}

/* ─── PROCESS / ABOUT CARDS ─── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
/* Double-Bezel for about-cards */
.about-card {
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--radius-xl);
  padding: 2px;
  transition: var(--transition);
}
.about-card-inner {
  background: var(--warm-white);
  border-radius: calc(var(--radius-xl) - 2px);
  padding: 2.5rem;
  height: 100%;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.8);
}
.about-card:hover {
  box-shadow: var(--shadow-elevation);
  transform: translateY(-2px);
}
.about-card h3 { margin-bottom: .75rem; }
.about-card p { color: var(--slate-500); line-height: 1.7; font-weight: 300; }

/* ── Step number styling ── */
.step-number {
  width: 48px;
  height: 48px;
  background: var(--teal-muted);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--teal-deeper);
  margin-bottom: 1.25rem;
}

/* ─── CTA BANNER ─── */
.cta-section {
  background: var(--slate-950);
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,181,186,.08) 0%, transparent 70%);
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,181,186,.05) 0%, transparent 70%);
}
.cta-section h2 { color: var(--warm-white); margin-bottom: 1rem; }
.cta-section p { color: var(--slate-400); margin-bottom: 2.5rem; font-size: 1.1rem; font-weight: 300; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Double-bezel contact info */
.contact-info-card {
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--radius-xl);
  padding: 2px;
}
.contact-info-inner {
  background: var(--warm-white);
  border-radius: calc(var(--radius-xl) - 2px);
  padding: 2.5rem;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.8);
}
.contact-info-inner h3 { margin-bottom: 2rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.contact-detail .icon {
  width: 44px;
  height: 44px;
  background: var(--teal-muted);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-deeper);
  flex-shrink: 0;
}
.contact-detail .icon svg {
  width: 20px;
  height: 20px;
}
.contact-detail h4 { margin-bottom: .2rem; color: var(--slate-950); }
.contact-detail p { color: var(--slate-500); font-size: .92rem; font-weight: 300; }

/* Double-bezel form */
.contact-form {
  background: var(--off-white);
  border: 1px solid rgba(0,0,0,.04);
  border-radius: var(--radius-xl);
  padding: 2px;
}
.contact-form-inner {
  background: var(--warm-white);
  border-radius: calc(var(--radius-xl) - 2px);
  padding: 2.5rem;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.8);
}
.contact-form-inner h3 { margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: .5rem;
  letter-spacing: .02em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .85rem 1.15rem;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  font-family: inherit;
  font-size: .92rem;
  transition: var(--transition-fast);
  background: var(--slate-50);
  color: var(--slate-700);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-muted);
  background: var(--warm-white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── FOOTER ─── */
.footer {
  background: var(--slate-950);
  color: var(--slate-400);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand p {
  margin-top: 1rem;
  font-size: .9rem;
  line-height: 1.8;
  font-weight: 300;
}
.footer-brand img {
  height: 56px;
  filter: brightness(1.15);
}
.footer h4 {
  color: var(--warm-white);
  margin-bottom: 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer ul li { margin-bottom: .6rem; }
.footer ul a {
  color: var(--slate-400);
  font-size: .88rem;
  font-weight: 300;
}
.footer ul a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  font-weight: 300;
}
.footer-social {
  display: flex;
  gap: 1rem;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  transition: var(--transition-fast);
}
.footer-social a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--slate-950);
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition:
    opacity .8s var(--ease-out-expo),
    transform .8s var(--ease-out-expo),
    filter .8s var(--ease-out-expo);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ─── PAGE HEADER (inner pages) ─── */
.page-header {
  background: var(--slate-950);
  padding: 9rem 0 5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,181,186,.08) 0%, transparent 70%);
}
.page-header h1 {
  color: var(--warm-white);
  margin-bottom: .75rem;
}
.page-header p {
  color: var(--slate-400);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 520px;
}
.page-header .breadcrumb {
  margin-top: 1.25rem;
  font-size: .8rem;
  color: var(--slate-500);
  font-weight: 400;
}
.page-header .breadcrumb a { color: var(--teal); }
.page-header .breadcrumb a:hover { text-decoration: underline; }

/* ─── TIMELINE (nosotros) ─── */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0; bottom: 0;
  width: 1.5px;
  background: var(--slate-200);
}
.timeline-item {
  padding-left: 64px;
  margin-bottom: 2.5rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--warm-white);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline-item h4 { color: var(--teal-deeper); margin-bottom: .25rem; }
.timeline-item p { color: var(--slate-500); font-size: .95rem; font-weight: 300; }

/* ─── OFFICES GRID ─── */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ─── NOISE OVERLAY (subtle grain for physicality) ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,15,26,.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; font-weight: 400; }
  .hamburger { display: flex; }

  section { padding: 4rem 0; }
  .section-header { margin-bottom: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero { height: 250vh; }
  .hero-content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-content p { margin-inline: auto; }
  .page-header { text-align: center; padding: 8rem 0 3.5rem; }
  .page-header p { margin-inline: auto; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
}
