/* ============================================================
   Customs NET SAS — Comercio exterior
   Paleta: azul marino + celeste
   ============================================================ */

:root {
  /* Navy */
  --navy-900: #061730;
  --navy-850: #08203f;
  --navy-800: #0a2745;
  --navy-700: #0e3257;
  --navy-600: #16406b;
  --navy-500: #1f5184;

  /* Celeste */
  --celeste:        #5bbce4;
  --celeste-bright: #74cdf0;
  --celeste-soft:   #a9def2;
  --celeste-deep:   #2f9fcf;

  /* Light surfaces */
  --paper:   #f5f9fc;
  --paper-2: #eaf2f8;
  --white:   #ffffff;

  /* Text */
  --ink:        #0b2240;   /* dark text on light */
  --ink-soft:   #3a516e;
  --ink-mute:   #6a7e95;
  --cream:      #e9f1f8;   /* light text on dark (never pure white) */
  --cream-soft: #b9cbdd;
  --cream-mute: #7e93aa;

  --line:        rgba(11, 34, 64, 0.12);
  --line-dark:   rgba(233, 241, 248, 0.14);

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1200px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-sm: 0 2px 10px rgba(6, 23, 48, 0.06);
  --shadow-md: 0 18px 40px -18px rgba(6, 23, 48, 0.28);
  --shadow-lg: 0 40px 80px -30px rgba(6, 23, 48, 0.45);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .brand-name, .slogan-text {
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              box-shadow 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--celeste);
  color: var(--navy-900);
  box-shadow: 0 10px 26px -10px rgba(91, 188, 228, 0.7);
}
.btn-primary:hover {
  background: var(--celeste-bright);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(91, 188, 228, 0.85);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-dark);
}
.btn-ghost:hover { border-color: var(--celeste); color: var(--celeste-bright); }
.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--celeste-deep);
  margin-bottom: 0.9rem;
}
.section-head { max-width: 640px; margin-bottom: 3.2rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--ink); }
.section-lead, .section-head .section-lead {
  margin-top: 1rem; color: var(--ink-soft); font-size: 1.08rem;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav.is-scrolled {
  background: rgba(6, 23, 48, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--cream); }
.brand-mark { color: var(--cream); flex: none; }
.brand-logo { height: 50px; width: auto; display: block; }
.brand--footer .brand-logo { height: 56px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-size: 1.18rem; letter-spacing: -0.01em; color: var(--cream);
}
.brand-name strong { color: var(--celeste); font-weight: 800; }
.brand-name sup { font-size: 0.5em; font-weight: 600; color: var(--cream-soft); margin-left: 2px; top: -0.7em; }
.brand-tag {
  font-family: "Inter", sans-serif;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream-mute); margin-top: 4px; font-weight: 500;
}

/* Nav links */
.nav-links { display: flex; gap: 2rem; margin-left: auto; }
.nav-links a {
  position: relative;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cream-soft);
  padding: 0.3rem 0;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--celeste);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.is-active { color: var(--cream); }
.nav-links a.is-active::after { width: 100%; }
.nav-cta { flex: none; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--cream); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.6rem;
  background: rgba(6, 23, 48, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  font-family: "Manrope", sans-serif; font-weight: 600;
  color: var(--cream-soft); padding: 0.7rem 0.2rem;
  border-bottom: 1px solid var(--line-dark);
}
.nav-mobile a:last-child { border: none; margin-top: 0.6rem; text-align: center; color: var(--navy-900); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-img {
  width: 100%; height: 120%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.03);
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 23, 48, 0.55) 0%, rgba(6, 23, 48, 0.4) 35%, rgba(6, 23, 48, 0.82) 100%),
    linear-gradient(105deg, rgba(6, 23, 48, 0.85) 0%, rgba(6, 23, 48, 0.35) 55%, rgba(8, 32, 63, 0.2) 100%);
}
.hero-content {
  position: relative;
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
  padding: 7rem clamp(1.25rem, 4vw, 2.5rem) 6rem;
}
.hero-kicker {
  font-family: "Manrope", sans-serif; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--celeste-bright); margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  color: var(--cream);
  max-width: 16ch;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 1.6rem;
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--cream-soft);
}
.hero-actions { margin-top: 2.4rem; }

/* Scroll hint */
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--cream-mute); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 7px;
}
.hero-scroll span {
  width: 4px; height: 8px; background: var(--celeste); border-radius: 3px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(-4px); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(12px); }
}

/* ============================================================
   PILARES
   ============================================================ */
.pillars {
  background: var(--navy-900);
  color: var(--cream);
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.pillar { position: relative; padding-left: 0; }
.pillar-num {
  font-family: "Manrope", sans-serif; font-weight: 800;
  font-size: 1.05rem; color: var(--celeste);
  display: inline-block; margin-bottom: 1rem;
  padding-bottom: 0.6rem; border-bottom: 2px solid var(--line-dark);
}
.pillar h2 { font-size: 1.4rem; color: var(--cream); margin-bottom: 0.7rem; }
.pillar p { color: var(--cream-soft); font-size: 1rem; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--paper); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.2rem);
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.service-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.service-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,23,48,0) 40%, rgba(6,23,48,0.25) 100%);
}
.service-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
.service-body { padding: 1.7rem 1.7rem 2rem; }
.service-body h3 {
  font-size: 1.32rem; color: var(--ink); margin-bottom: 0.6rem;
  position: relative; padding-bottom: 0.9rem;
}
.service-body h3::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 38px; height: 3px; background: var(--celeste); border-radius: 3px;
  transition: width 0.4s var(--ease);
}
.service-body p { color: var(--ink-soft); font-size: 1rem; }

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(91, 188, 228, 0.5);
  }
  .service-card:hover .service-media img { transform: scale(1.06); filter: saturate(1.12); }
  .service-card:hover .service-body h3::after { width: 64px; }
}

/* ============================================================
   NOSOTROS
   ============================================================ */
.about { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}
.about-media::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
  background: linear-gradient(160deg, rgba(91,188,228,0.12), transparent 50%);
}
.about-media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.about-text .section-title { margin-bottom: 1.2rem; }
.about-text p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about-list { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.about-list li {
  position: relative; padding-left: 1.8rem; color: var(--ink);
  font-weight: 500;
}
.about-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--celeste); box-shadow: 0 0 0 4px rgba(91,188,228,0.18);
}

/* ============================================================
   ESLOGAN
   ============================================================ */
.slogan {
  background: linear-gradient(120deg, var(--navy-850), var(--navy-700));
  color: var(--cream);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.slogan::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 120%;
  background: radial-gradient(50% 60% at 50% 0%, rgba(91,188,228,0.22), transparent 70%);
  pointer-events: none;
}
.slogan-text {
  position: relative;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  max-width: 18ch; margin-inline: auto; text-wrap: balance;
}
.slogan-text span { color: var(--celeste-bright); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-lead { color: var(--ink-soft); margin-bottom: 2rem; }
.contact-list { list-style: none; display: grid; gap: 1.4rem; }
.contact-list li { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-label {
  font-family: "Manrope", sans-serif; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute);
}
.contact-list a, .contact-list span[data-location] {
  font-size: 1.15rem; font-weight: 600; color: var(--ink);
  transition: color 0.25s var(--ease); width: fit-content;
}
.contact-list a:hover { color: var(--celeste-deep); }

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: 0.45rem; }
.field label {
  font-family: "Manrope", sans-serif; font-weight: 600;
  font-size: 0.85rem; color: var(--ink);
}
.field input, .field textarea {
  font-family: "Inter", sans-serif; font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--celeste);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(91, 188, 228, 0.16);
}
.field input:user-invalid, .field textarea:user-invalid {
  border-color: #d9544f;
}
.form-note { font-size: 0.92rem; min-height: 1.2em; margin-top: 0.2rem; }
.form-note.is-ok { color: #1f8f5f; }
.form-note.is-error { color: #d9544f; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); color: var(--cream-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
}
.brand--footer { margin-bottom: 1.1rem; }
.footer-desc { max-width: 40ch; color: var(--cream-mute); font-size: 0.96rem; }
.footer-h {
  display: block;
  font-family: "Manrope", sans-serif; font-weight: 700;
  font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream); margin-bottom: 1.1rem;
}
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav a, .footer-contact a, .footer-contact span {
  color: var(--cream-soft); font-size: 0.98rem; width: fit-content;
  transition: color 0.25s var(--ease);
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--celeste-bright); }
.footer-bottom { border-top: 1px solid var(--line-dark); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.4rem clamp(1.25rem, 4vw, 2.5rem);
  font-size: 0.85rem; color: var(--cream-mute);
}
.footer-credits a { color: var(--cream-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer-credits a:hover { color: var(--celeste-bright); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25d366; z-index: -1;
  animation: waPulse 2.4s ease-out infinite;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.75); }
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  70%, 100% { transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
  .hero-scroll span { animation: none; }
}

/* ============================================================
   REVEAL (JS-enriched, defensive defaults)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
/* If JS fails entirely, never hide content permanently */
.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .pillars-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pillar { padding-left: 0; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 0.4rem; }
  .brand-tag { display: none; }
  .brand-logo { height: 42px; }
  .brand--footer .brand-logo { height: 48px; }
  .hero-content { padding-top: 6rem; }
}
