/* =========================================================
   Importadora Patzi — sistema de diseño provisto por el
   cliente: gris azulado oscuro + superficies planas + rojo
   como único acento, reservado para lo crítico (CTAs, estados
   activos). Sin degradado azul/cyan — énfasis tipográfico via
   peso, no color.
   ========================================================= */

:root{
  --bg: #1a1d24;
  --bg-soft: rgba(255,255,255,.02);
  --card: #252932;
  --card-strong: #2b303a;
  --line: rgba(161,167,179,.18);

  --red: #d31034;
  --red-deep: #a80d2a;
  /* a brighter tint for red used AS TEXT/borders on the dark bg — #D31034
     itself only reaches ~3:1 there, enough for a fill with white text on
     top, not enough for small text or thin UI borders */
  --red-text: #ff6374;

  /* the logo's other two hexagon colors, used sparingly as callbacks to the
     mark (process steps, social icons, section eyebrows) — not a general
     palette color, the rest of the site stays red-only per above */
  --logo-blue: #0c4779;
  /* raw --logo-blue only reaches ~1.8:1 as text on --bg; this tint keeps the
     same hue bright enough to pass 4.5:1 */
  --logo-blue-text: #4f9dea;
  --logo-cyan: #17a9c6;

  --text: #ffffff;
  --text-soft: #a1a7b3;
  --text-faint: rgba(161,167,179,.6);

  --font-display: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 14px;
  --wrap: 1180px;

  /* motion */
  --ease-out: cubic-bezier(.23,1,.32,1);
  --ease-in-out: cubic-bezier(.77,0,.175,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  /* stop infinite decorative motion outright, but let one-shot opacity/color
     transitions (reveal fades, hover states) keep a short, non-jarring feel
     instead of snapping to zero across the board */
  *, *::before, *::after{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal{ transition: opacity .3s ease !important; transform: none !important; }
  .btn, .btn::after, .stat-tile, .service-icon, .wa-float, .social-row a, .accordion-panel{ transition-duration: .01ms !important; }
}

/* deliberate keyboard focus ring, on-brand instead of the browser default */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline: 2px solid var(--red-text);
  outline-offset: 3px;
  border-radius: 2px;
}
.wa-float:focus-visible,
.social-row a:focus-visible,
.nav-toggle:focus-visible,
.service-icon:focus-visible{
  border-radius: 50%;
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-family: var(--font-display); margin: 0; line-height: 1.14; color: var(--text); font-weight: 700; }
p{ margin: 0; }
ul,ol{ margin: 0; padding: 0; list-style: none; }
button{ font: inherit; cursor: pointer; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* emphasis inside headings now reads through weight, not color —
   kept as a hook (no longer a literal gradient) so existing markup
   doesn't need to change */
.grad{ color: var(--text); }

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
}
.skip-link:focus{ left: 12px; top: 12px; }

/* ---------- scroll progress ---------- */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--red);
  z-index: 100;
  transition: width .08s linear;
}

/* ---------- reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.reveal.visible{ opacity: 1; transform: translateY(0); }

/* ---------- buttons ---------- */
.btn{
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 160ms var(--ease-out), box-shadow .5s ease, background-color .5s ease, border-color .5s ease;
  white-space: nowrap;
}
.btn::after{
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(0) skewX(-20deg);
  transition: transform .5s var(--ease-out);
}
/* press feedback wins over hover regardless of source order or device */
.btn:active{ transform: scale(.97); }
.btn-lg{ padding: 16px 28px; font-size: 1.02rem; }
.btn-block{ width: 100%; justify-content: center; }

.btn-primary{
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(211,16,52,.55);
}

.btn-outline{
  background: transparent;
  border-color: rgba(255,255,255,.28);
  color: #fff;
}

.btn-ghost{
  background: transparent;
  color: var(--text-soft);
  padding: 8px 14px;
  font-weight: 600;
}

.icon-sm{ width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10,11,20,.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.scrolled{ border-color: var(--line); background: rgba(10,11,20,.92); }

.header-inner{
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand{ display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark{ width: 40px; height: 40px; object-fit: contain; }
.brand-name{ font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; }
.brand-name em{ font-style: normal; color: #fff; }

.main-nav{ display: flex; gap: 28px; }
.main-nav a{ font-weight: 600; font-size: .93rem; color: var(--text-soft); position: relative; padding: 6px 0; }
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transition: transform .5s var(--ease-out);
}

.header-actions{ display: flex; align-items: center; gap: 10px; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 8px;
}
.nav-toggle span{ display: block; height: 2px; background: #fff; margin: 0 8px; }

/* ---------- hero ---------- */
.hero{
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}
.hero-bg{ position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-wave{ position: absolute; top: 0; left: -5%; width: 110%; height: 60%; animation: waveDrift 16s ease-in-out infinite alternate; }
@keyframes waveDrift{ from{ transform: translateX(0); } to{ transform: translateX(-30px); } }

.hero-glow{ position: absolute; width: 460px; height: 460px; border-radius: 50%; filter: blur(90px); opacity: .3; animation: driftGlow 14s ease-in-out infinite alternate; }
.hero-glow-1{ background: var(--text-soft); top: -140px; left: -60px; }
.hero-glow-2{ background: var(--text-soft); bottom: -180px; right: -60px; animation-delay: -6s; }
@keyframes driftGlow{ 0%{ transform: translate(0,0) scale(1); } 100%{ transform: translate(24px,-18px) scale(1.1); } }

.hero-scene{
  position: absolute;
  top: 50%;
  right: -6%;
  width: 68%;
  max-width: 780px;
  height: auto;
  opacity: .4;
  transform: translateY(-50%);
  animation: floatSlow 9s ease-in-out infinite;
}
.hero-scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(10,11,20,.8) 32%, rgba(10,11,20,.35) 58%, rgba(10,11,20,.1) 80%);
}

.hero-grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
  padding-top: 40px;
}

.hero-copy{ max-width: 640px; }

.hero-illustration{ animation: floatSlow 8s ease-in-out infinite; }
.hero-illustration img{ width: 100%; height: auto; max-width: 460px; margin: 0 auto; display: block; }
/* real photo, not a transparent illustration — dissolve its edges into the
   hero background instead of framing it. it's already a night shot, so the
   grade only needs a light touch (a daylight version of this photo would
   need heavier darkening/desaturation to match the dark theme) */
.hero-illustration-photo img{
  border: none;
  -webkit-mask-image: radial-gradient(ellipse 68% 68% at 50% 50%, #000 55%, transparent 96%);
  mask-image: radial-gradient(ellipse 68% 68% at 50% 50%, #000 55%, transparent 96%);
  filter: saturate(.88) brightness(1.05) contrast(1.08) drop-shadow(0 24px 40px rgba(0,0,0,.5));
}

.eyebrow{
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--text-soft);
  font-weight: 700;
  margin: 0 0 16px;
}

/* section eyebrows cycle through the logo's three hexagon colors, in the
   order the sections appear on the page — 10 labels, 3 colors repeating.
   raw blue/red fail contrast as small text on --bg, so they use the
   brighter text-safe tints (--logo-blue-text, --red-text) instead of the
   raw swatches used for borders elsewhere; cyan already passes as-is. */
.hero-copy .eyebrow{ color: var(--logo-blue-text); }
.import-copy .eyebrow{ color: var(--logo-cyan); }
.routes-copy .eyebrow{ color: var(--red-text); }
.services .section-eyebrow{ color: var(--logo-blue-text); }
.process .section-eyebrow{ color: var(--logo-cyan); }
.about-copy .section-eyebrow{ color: var(--red-text); }
.testimonials .section-eyebrow{ color: var(--logo-blue-text); }
.contact-intro .section-eyebrow{ color: var(--logo-cyan); }
.catalog-copy .section-eyebrow{ color: var(--red-text); }
.branches .section-eyebrow{ color: var(--logo-blue-text); }

.hero h1{
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  margin-bottom: 20px;
}

.hero-lead{
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-ctas{ display: flex; flex-wrap: wrap; gap: 14px; }

@keyframes floatSlow{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }

/* ---------- trust / stats / ticker ---------- */
.trust-bar{ background: var(--bg-soft); padding-top: 10px; }
.stats-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-bottom: 26px;
}
.stat-tile{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform .5s ease, background-color .5s ease, border-color .5s ease;
}
.stat-num{
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: #fff;
}
.stat-label{
  display: block;
  margin-top: 6px;
  font-size: .8rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.trust-chips{ display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding-bottom: 26px; }
.trust-chip{
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
}

.ticker{ border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 12px 0; }
.ticker-track{
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  color: var(--text-soft);
  animation: tickerScroll 26s linear infinite;
}
.ticker-track span{ margin: 0 10px; }
.ticker-dot{ color: var(--red-text); }
@keyframes tickerScroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ---------- routes / globe ---------- */
.routes{ padding: 100px 0; }
.routes-grid{ display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.globe-wrap{ display: flex; justify-content: center; }
.route-map-img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.routes-copy h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.routes-lead{ font-size: 1.03rem; line-height: 1.65; max-width: 52ch; }

/* ---------- section headings ---------- */
.section-eyebrow{
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  color: var(--text-soft);
  font-weight: 700;
  margin: 0 0 12px;
}
.section-title{
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  max-width: 34ch;
  margin-bottom: 50px;
}

/* ---------- services ---------- */
.services{ padding: 40px 0 100px; }
.services-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.services-grid .service-col:nth-child(1){ transition-delay: 0ms; }
.services-grid .service-col:nth-child(2){ transition-delay: 70ms; }
.services-grid .service-col:nth-child(3){ transition-delay: 140ms; }
.services-grid .service-col:nth-child(4){ transition-delay: 210ms; }
.service-col{ text-align: left; }
.service-icon{
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
  transition: transform .5s ease, background-color .5s ease;
}
.service-icon svg{ width: 32px; height: 32px; }
.service-col h3{ font-size: 1.08rem; margin-bottom: 10px; }
.service-col p{ font-size: .92rem; line-height: 1.6; color: var(--text-soft); }

/* ---------- process ---------- */
.process{ padding: 20px 0 100px; }
.process-grid{ position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 10px; }
/* .process-line is the grid's first child, so the steps land on 2-5 */
.process-grid .process-step:nth-child(2){ transition-delay: 0ms; }
.process-grid .process-step:nth-child(3){ transition-delay: 70ms; }
.process-grid .process-step:nth-child(4){ transition-delay: 140ms; }
.process-grid .process-step:nth-child(5){ transition-delay: 210ms; }
.process-line{
  position: absolute;
  top: 27px;
  left: 6%; right: 6%;
  height: 2px;
  background: var(--text-soft);
  opacity: .35;
}
.process-step{ position: relative; z-index: 1; }
.process-num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 18px;
}
/* borders cycle through the logo's three hexagon colors (azul, cian, rojo) */
.process-grid .process-step:nth-child(2) .process-num{ border-color: #0c4779; }
.process-grid .process-step:nth-child(3) .process-num{ border-color: #17a9c6; }
.process-grid .process-step:nth-child(4) .process-num{ border-color: var(--red); }
.process-grid .process-step:nth-child(5) .process-num{ border-color: #0c4779; }
.process-step h3{ font-size: 1.02rem; margin-bottom: 8px; }
.process-step p{ font-size: .9rem; line-height: 1.6; color: var(--text-soft); max-width: 30ch; }

/* ---------- import categories ---------- */
.import-cats{
  padding: 100px 0 0;
  background: radial-gradient(60% 60% at 82% 10%, rgba(211,16,52,.08), transparent 60%);
}
.import-grid{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; margin-bottom: 90px; }

.import-methods{ padding: 70px 0 90px; }
.import-methods .section-title{ text-align: center; margin: 0 auto 46px; }
.methods-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.method-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
}
.method-icon{
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.method-icon svg{ width: 32px; height: 32px; }
.method-caption{ font-size: .96rem; line-height: 1.65; color: var(--text-soft); max-width: 42ch; margin: 0 auto; }

/* photo variant: real photo replaces the small line-icon, so it needs to
   bleed to the card's edges instead of sitting inside the icon padding */
.method-card-photo{ padding: 0 0 32px; overflow: hidden; }
.method-photo{ margin-bottom: 22px; }
.method-photo img{ width: 100%; height: auto; display: block; }
.method-card-photo .method-caption{ padding: 0 28px; }
.import-copy h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.import-lead{ font-size: 1.03rem; line-height: 1.65; max-width: 50ch; }
.crate-wrap{ display: flex; justify-content: center; animation: floatSlow 9s ease-in-out infinite; }
.crate-svg{ width: 100%; max-width: 300px; }

.crate-lid{
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: crateLid 4.5s var(--ease-in-out) infinite;
}
@keyframes crateLid{
  0%, 12%{ transform: translateY(0) rotate(0deg); }
  42%, 60%{ transform: translateY(-26px) rotate(-3deg); }
  90%, 100%{ transform: translateY(0) rotate(0deg); }
}

.crate-glow{
  opacity: 0;
  animation: crateGlow 4.5s var(--ease-in-out) infinite;
}
@keyframes crateGlow{
  0%, 12%{ opacity: 0; }
  42%, 60%{ opacity: .85; }
  90%, 100%{ opacity: 0; }
}

.import-lower{ display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; padding-bottom: 100px; align-items: start; }

.orbit-caption{ font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff; text-align: center; margin-bottom: 20px; }
.orbit-1{
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: var(--red);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  margin: 0 4px;
}
.orbit-stage{ position: relative; width: 100%; max-width: 280px; margin: 0 auto; aspect-ratio: 1 / 1; }
.forklift-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: floatSlow 8s ease-in-out infinite;
}

.accordion-note{ font-size: .92rem; color: var(--text-faint); margin-bottom: 20px; line-height: 1.6; }
.accordion-item{ border-bottom: 1px solid var(--line); }
.accordion-item:first-child{ border-top: 1px solid var(--line); }
.accordion-trigger{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 18px 2px;
  text-align: left;
}
.accordion-chevron{ width: 20px; height: 20px; flex-shrink: 0; color: var(--text-soft); transition: transform .3s var(--ease-out); }
.accordion-item.is-open .accordion-chevron{ transform: rotate(180deg); }

/* grid-rows trick: animates to the panel's real content height instead of
   a guessed max-height, without measuring anything in JS */
.accordion-panel{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms var(--ease-out);
}
.accordion-item.is-open .accordion-panel{
  grid-template-rows: 1fr;
  transition: grid-template-rows 380ms var(--ease-bounce);
}
.accordion-panel-inner{ overflow: hidden; min-height: 0; }
.accordion-panel p{ font-size: .92rem; line-height: 1.6; color: var(--text-soft); padding: 0 2px 18px; max-width: 46ch; }

/* ---------- about ---------- */
.about{ padding: 20px 0 100px; }
.about-grid{ display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.about-copy p{ font-size: 1rem; line-height: 1.7; color: var(--text-soft); margin-bottom: 18px; }
.about-copy p:last-child{ margin-bottom: 0; }
.about-copy .section-title{ margin-bottom: 26px; }

.about-plaque{ display: flex; justify-content: center; }
.plaque{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  max-width: 300px;
  backdrop-filter: blur(8px);
}
.plaque-logo{ width: 84px; height: 84px; object-fit: contain; margin: 0 auto 20px; border-radius: 16px; border: 1px solid var(--line); }
.plaque-icon{
  width: 84px; height: 84px;
  margin: 0 auto 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.plaque-icon svg{ width: 42px; height: 42px; }
.plaque-title{ font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 10px; line-height: 1.4; }
.plaque-sub{ font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red-text); font-weight: 700; }

/* ---------- catalog cta ---------- */
.catalog-cta{ padding: 20px 0 110px; }
.catalog-grid{ display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.catalog-copy .section-title{ margin-bottom: 22px; }
.catalog-copy p{ font-size: 1rem; line-height: 1.7; color: var(--text-soft); margin-bottom: 28px; max-width: 52ch; }
.catalog-plaque{ display: flex; justify-content: center; }
.catalog-image{
  width: 100%;
  max-width: 380px;
  height: auto;
  animation: floatSlow 8s ease-in-out infinite;
}

/* ---------- branches ---------- */
.branches{ padding: 20px 0 110px; }
.branches-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 10px; }
.branch-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.branch-map{ width: 100%; aspect-ratio: 16 / 10; background: var(--bg-soft); }
.branch-map iframe{
  width: 100%; height: 100%; border: 0; display: block;
  /* fakes a dark map (no API key needed) so it doesn't sit as a bright
     rectangle against the rest of the page */
  filter: invert(90%) hue-rotate(180deg) contrast(90%) brightness(95%);
}
.branch-info{ padding: 24px; }
.branch-info h3{ font-size: 1.1rem; margin-bottom: 8px; }
.branch-info p{ font-size: .92rem; color: var(--text-soft); margin-bottom: 18px; }
.branch-info .btn{ width: 100%; justify-content: center; }

/* ---------- cta band ---------- */
.cta-band{
  padding: 90px 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(211,16,52,.12), transparent 65%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-inner{ text-align: center; max-width: 700px; margin: 0 auto; }
.cta-inner h2{ font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 16px; }
.cta-inner p{ font-size: 1.05rem; color: var(--text-soft); margin-bottom: 30px; }
.cta-ctas{ justify-content: center; }

/* ---------- testimonials ---------- */
.testimonials{ padding: 100px 0; text-align: center; }
.testimonials .section-title{ margin: 0 auto 18px; }
.testimonials-note{ max-width: 56ch; margin: 0 auto 44px; color: var(--text-soft); line-height: 1.6; }
.testimonial-slots{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-photo{
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  text-align: left;
}
.testimonial-photo img{ width: 100%; height: auto; display: block; }
.testimonial-photo figcaption{
  padding: 16px 18px;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--text-soft);
}

/* ---------- contact ---------- */
.contact{ padding: 20px 0 40px; }
.contact-grid{ display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.contact-intro .section-title{ margin-bottom: 20px; }
.contact-intro p{ color: var(--text-soft); line-height: 1.6; margin-bottom: 28px; max-width: 42ch; }

.contact-list{ display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.contact-list li{ display: flex; align-items: center; gap: 12px; font-weight: 600; color: #fff; }
.contact-list .icon-sm{ color: var(--text-soft); }

.social-row{ display: flex; gap: 12px; }
.social-row a{
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background-color .5s ease, transform .5s ease, border-color .5s ease;
}
/* same logo-color cycle as .process-num: azul, cian */
.social-row a:nth-child(1){ border-color: #0c4779; }
.social-row a:nth-child(2){ border-color: #17a9c6; }

.contact-form{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(8px);
}
.form-row{ margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-row label{ font-weight: 700; font-size: .86rem; color: #fff; }
.form-row input, .form-row textarea{
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: #fff;
  resize: vertical;
}
.form-row input::placeholder, .form-row textarea::placeholder{ color: var(--text-faint); }
.form-row input:focus, .form-row textarea:focus{
  outline: none;
  border-color: var(--red-text);
  box-shadow: 0 0 0 3px rgba(255,99,116,.2);
}
.form-note{ margin-top: 14px; font-size: .8rem; color: var(--text-faint); text-align: center; }

/* ---------- footer ---------- */
.site-footer{ background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-inner{ display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand{ display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark{ width: 36px; height: 36px; }
.footer-brand .brand-name{ font-size: 1.05rem; }

.footer-nav{ display: flex; flex-direction: column; gap: 10px; }
.footer-nav a{ color: var(--text-soft); font-size: .93rem; }

.footer-contact{ display: flex; flex-direction: column; gap: 8px; font-size: .93rem; color: var(--text-soft); }
.footer-contact p{ color: var(--text-faint); font-size: .82rem; margin-top: 6px; }

.footer-bottom{ padding: 20px 24px; text-align: center; font-size: .8rem; color: var(--text-faint); }

/* ---------- floating whatsapp ---------- */
.wa-float{
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -12px rgba(211,16,52,.6);
  z-index: 70;
  transition: transform .5s var(--ease-bounce);
}
.wa-float:active{ transform: scale(.94); transition-duration: 120ms; }
.wa-float svg{ width: 28px; height: 28px; position: relative; z-index: 1; }
.wa-pulse{
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--red);
  opacity: .55;
  animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse{ 0%{ transform: scale(1); opacity: .55; } 100%{ transform: scale(1.9); opacity: 0; } }

/* ---------- hover states, gated to devices that actually hover ---------- */
/* touch taps trigger :hover on tap-and-hold otherwise, leaving the state
   visually "stuck" until the user taps elsewhere */
@media (hover: hover) and (pointer: fine){
  .btn:hover:not(:active){ transform: translateY(-1px); transition-duration: .5s; }
  .btn:hover::after{ transform: translateX(475%) skewX(-20deg); }
  .btn-primary:hover{ box-shadow: 0 18px 36px -14px rgba(211,16,52,.6); }
  .btn-outline:hover{ background: rgba(255,255,255,.08); border-color: #fff; }
  .btn-ghost:hover{ color: #fff; }

  .main-nav a:hover{ color: #fff; }
  .main-nav a:hover::after{ transform: scaleX(1); }

  .stat-tile:hover{ transform: translateY(-4px); border-color: var(--red-text); background: var(--card-strong); }
  .service-col:hover .service-icon{ transform: translateY(-4px); background: var(--card-strong); border-color: var(--red-text); }

  .contact-list a:hover{ color: var(--red-text); }
  .social-row a:hover{ background: var(--red); border-color: transparent; transform: translateY(-3px); }
  .footer-nav a:hover{ color: var(--red-text); }
  .footer-contact a:hover{ color: var(--red-text); }

  .wa-float:hover{ transform: scale(1.08); }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .process-grid{ grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .process-line{ display: none; }
  .hero-scene{ width: 85%; opacity: .3; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-illustration{ order: -1; max-width: 300px; margin: 0 auto; }
  .stats-row{ grid-template-columns: repeat(2, 1fr); }
  .routes-grid{ grid-template-columns: 1fr; text-align: center; }
  .routes-copy{ margin: 0 auto; }
  .routes-lead{ margin: 0 auto; }
  .import-grid{ grid-template-columns: 1fr; text-align: center; }
  .import-copy{ order: 1; }
  .import-lead{ margin: 0 auto; }
  .crate-wrap{ order: 0; }
  .import-lower{ grid-template-columns: 1fr; }
  .methods-grid{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .about-plaque{ order: -1; }
  .catalog-grid{ grid-template-columns: 1fr; text-align: center; }
  .catalog-plaque{ order: -1; }
  .catalog-copy p{ margin-left: auto; margin-right: auto; }
  .branches-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; text-align: center; }
  .footer-brand{ justify-content: center; }
  .social-row{ justify-content: center; }
}

@media (max-width: 1080px){
  .main-nav{
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: rgba(10,11,20,.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    transform: translateY(-140%);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
  }
  .main-nav.open{ transform: translateY(0); opacity: 1; }
  .nav-toggle{ display: flex; }
  .header-call span{ display: none; }
  .header-wa span{ display: none; }
  .header-wa, .header-call{ padding: 10px; border-radius: 50%; }
}

@media (max-width: 760px){
  .testimonial-slots{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: 1fr; }
  .process-grid{ grid-template-columns: 1fr; }
  .stats-row{ grid-template-columns: 1fr 1fr; }
  .hero-scene{ width: 130%; opacity: .2; }
}

@media (max-width: 480px){
  .stats-row{ grid-template-columns: 1fr; }
}
