/* =========================================================
   OPLOGISTICS ECUADOR - Hoja de estilos principal
   Paleta: cyan bajo · blanco · plomo
   ========================================================= */
:root {
  --cyan-50:  #effafb;
  --cyan-100: #d6f1f4;
  --cyan-200: #ade3ea;
  --cyan-300: #7fd1dc;
  --cyan-400: #4fbccb;
  --cyan-500: #2ea3b3;   /* principal */
  --cyan-600: #1b8a9a;
  --cyan-700: #156f7c;

  --white: #ffffff;
  --gray-50:  #f5f7f8;
  --gray-100: #eceff1;
  --gray-200: #d9dee2;
  --gray-300: #b9c1c7;
  --gray-500: #78848c;
  --gray-600: #5b666e;
  --gray-700: #434d54;
  --gray-800: #2e363c;   /* plomo oscuro */
  --gray-900: #1c2226;

  --text: var(--gray-700);
  --heading: var(--gray-900);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(28, 34, 38, .06);
  --shadow:    0 12px 40px rgba(28, 34, 38, .10);
  --shadow-lg: 0 24px 60px rgba(28, 34, 38, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 78px;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.18em; }

.text-accent { color: var(--cyan-600); }
.text-gradient {
  background: linear-gradient(90deg, var(--cyan-200), var(--cyan-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.5em; border-radius: 50px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: all .35s var(--ease); position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--lg { padding: 1em 1.9em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600));
  color: var(--white); box-shadow: 0 8px 22px rgba(27, 138, 154, .32);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(27, 138, 154, .42); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(100%); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: var(--white); color: var(--gray-900); }
.btn--light { background: var(--white); color: var(--cyan-700); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--wa { background: #25d366; color: #fff; }
.btn--wa:hover { background: #1ebe5b; transform: translateY(-2px); }
.btn--wa .ico { width: 1.3em; height: 1.3em; }

/* ---------- Etiquetas y títulos ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--cyan-200); }

.section { padding: 110px 0; position: relative; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section__head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; margin-bottom: 18px; letter-spacing: -.01em; }
.section__sub { font-size: 1.08rem; color: var(--gray-600); }
.section__head--light .section__title { color: var(--white); }
.section__head--light .section__sub { color: var(--gray-200); }

/* ---------- Precargador ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--white);
  display: grid; place-content: center; justify-items: center; gap: 18px;
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader span { font-family: var(--font-head); font-weight: 800; letter-spacing: .3em; color: var(--gray-700); font-size: .9rem; }
.preloader__ring {
  width: 54px; height: 54px; border-radius: 50%;
  border: 4px solid var(--cyan-100); border-top-color: var(--cyan-500);
  animation: spin 1s linear infinite;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Barra superior ---------- */
.topbar { background: var(--gray-800); color: var(--gray-200); font-size: .84rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; gap: 16px; }
.topbar__info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__info a, .topbar__info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar__info a:hover { color: var(--cyan-300); }
.topbar .ico { color: var(--cyan-400); }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), border-color .35s, height .35s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--gray-100); height: 68px; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand__text strong { font-size: 1.25rem; font-weight: 800; color: var(--gray-800); letter-spacing: .02em; }
.brand__text small { font-size: .68rem; font-weight: 600; letter-spacing: .42em; color: var(--cyan-600); margin-top: 4px; }
.brand--light .brand__text strong { color: var(--white); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 6px; }
.nav__link {
  position: relative; display: block; padding: 8px 12px;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--gray-700);
  transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--cyan-500); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--cyan-600); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--cyan-50); border-radius: 12px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: all .35s var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h) - 38px); min-height: calc(100svh - var(--header-h) - 38px);
  display: flex; align-items: center; color: var(--white); overflow: hidden; padding: 90px 0 120px;
  background: var(--gray-900);
}
.hero__slides, .hero__slide, .hero__overlay, .hero__canvas { position: absolute; inset: 0; }
.hero__slide {
  background-size: cover; background-position: center; opacity: 0; transform: scale(1.12);
  transition: opacity 1.4s var(--ease), transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  background:
    linear-gradient(100deg, rgba(20, 30, 36, .92) 0%, rgba(20, 40, 48, .72) 45%, rgba(21, 111, 124, .35) 100%),
    linear-gradient(0deg, rgba(20,30,36,.6), transparent 40%);
}
.hero__canvas { width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero__content { position: relative; z-index: 2; }
.hero__title { color: var(--white); font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 22px; max-width: 820px; }
#heroWord { display: inline-block; transition: opacity .4s, transform .4s var(--ease); }
#heroWord.is-out { opacity: 0; transform: translateY(14px); }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--gray-200); max-width: 620px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero__modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 860px; }
.mode {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm); backdrop-filter: blur(10px);
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.25;
  transition: background .35s, transform .35s var(--ease), border-color .35s;
}
.mode small { font-family: var(--font-body); font-weight: 400; font-size: .78rem; color: var(--gray-300); }
.mode .ico { width: 30px; height: 30px; color: var(--cyan-300); }
.mode:hover { background: rgba(46,163,179,.22); border-color: var(--cyan-400); transform: translateY(-4px); }

.hero__dots { position: absolute; z-index: 3; right: 40px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: all .4s var(--ease); }
.hero__dots button.is-active { height: 32px; background: var(--cyan-400); }

.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--white); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Cifras ---------- */
.stats { position: relative; z-index: 5; margin-top: -60px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 34px 20px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--gray-200); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--cyan-600); line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--gray-600); font-weight: 500; }

/* ---------- Nosotros ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: center; }
.about__media { position: relative; padding: 0 40px 60px 0; }
.about__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__img:hover img { transform: scale(1.06); }
.about__img--main { aspect-ratio: 5 / 6; }
.about__img--sub { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 4 / 3; border: 8px solid var(--white); }
.about__badge {
  position: absolute; left: -20px; top: 40px; background: linear-gradient(135deg, var(--cyan-500), var(--cyan-700));
  color: var(--white); padding: 20px 24px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px; animation: float 5s ease-in-out infinite;
}
.about__badge strong { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.about__badge span { font-size: .85rem; line-height: 1.35; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.about__text > p { margin-bottom: 16px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0 24px; }
.mv__card { padding: 24px; border-radius: var(--radius); background: var(--gray-50); border: 1px solid var(--gray-100); transition: all .4s var(--ease); }
.mv__card:hover { background: var(--white); box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--cyan-100); }
.mv__card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.mv__card p { font-size: .92rem; }
.mv__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--cyan-100); color: var(--cyan-700); margin-bottom: 14px; }
.mv__icon .ico { width: 24px; height: 24px; }
.values { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.values li { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: var(--gray-800); }
.values .ico { color: var(--cyan-500); }

/* ---------- Servicios ---------- */
.services { background: linear-gradient(180deg, var(--gray-50), var(--white)); }
.services::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(var(--gray-200) 1px, transparent 1px); background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
}
.services .container { position: relative; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  position: relative; padding: 36px 30px; background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(150deg, var(--cyan-600), var(--gray-800));
  opacity: 0; transition: opacity .45s var(--ease);
}
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card:hover h3, .card:hover p, .card:hover .card__link { color: var(--white); }
.card:hover .card__icon { background: rgba(255,255,255,.15); color: var(--white); transform: rotate(-8deg) scale(1.05); }
.card__icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--cyan-50); color: var(--cyan-600); transition: all .45s var(--ease);
}
.card__icon .ico { width: 30px; height: 30px; }
.card h3 { font-size: 1.18rem; margin-bottom: 12px; transition: color .3s; }
.card p { font-size: .95rem; margin-bottom: 20px; transition: color .3s; }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--cyan-600); transition: color .3s; }
.card__link:hover .ico { transform: translateX(4px); }
.card__link .ico { transition: transform .3s; }

/* ---------- Transporte ---------- */
.tabs {
  display: flex; justify-content: center; gap: 8px; margin: 0 auto 46px; padding: 6px;
  background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: 60px; width: fit-content; max-width: 100%;
}
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border: 0; border-radius: 50px;
  background: transparent; cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--gray-600);
  transition: all .35s var(--ease);
}
.tab .ico { width: 20px; height: 20px; }
.tab:hover { color: var(--cyan-600); }
.tab.is-active { background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600)); color: var(--white); box-shadow: 0 6px 18px rgba(27,138,154,.3); }

.panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.panel[hidden] { display: none; }
.panel.is-active { animation: panelIn .7s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.panel__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 10 / 7; position: relative; }
.panel__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(21,111,124,.25), transparent 50%); }
.panel__img img { width: 100%; height: 100%; object-fit: cover; }
.panel__text h3 { font-size: 1.8rem; margin-bottom: 14px; }
.panel__text > p { margin-bottom: 20px; }
.checklist { display: grid; gap: 10px; margin-bottom: 28px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--cyan-100); color: var(--cyan-700); margin-top: 2px; }

/* ---------- Importaciones / Exportaciones ---------- */
.trade { color: var(--gray-200); overflow: hidden; background: var(--gray-900); }
.trade__bg { position: absolute; inset: -60px 0; background-size: cover; background-position: center; opacity: .18; will-change: transform; }
.trade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(28,34,38,.6), rgba(21,111,124,.55)); pointer-events: none; }
.trade__inner { position: relative; z-index: 1; }
.trade__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.trade__card {
  padding: 40px 36px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px);
}
.trade__card h3 { display: flex; align-items: center; gap: 12px; color: var(--white); font-size: 1.5rem; margin-bottom: 28px; }
.trade__card h3 .ico { width: 34px; height: 34px; color: var(--cyan-300); }
.steps { display: grid; gap: 6px; position: relative; }
.steps li { display: flex; gap: 18px; position: relative; padding-bottom: 18px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 42px; bottom: 0; width: 2px; background: linear-gradient(var(--cyan-400), rgba(79,188,203,.15)); }
.steps span {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(79,188,203,.18); border: 2px solid var(--cyan-400); color: var(--white);
  font-family: var(--font-head); font-weight: 700; transition: all .35s var(--ease);
}
.steps li:hover span { background: var(--cyan-400); transform: scale(1.1); }
.steps strong { display: block; color: var(--white); font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 2px; }
.steps p { font-size: .92rem; color: var(--gray-300); }

/* ---------- Por qué elegirnos ---------- */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why__item { text-align: center; padding: 34px 24px; border-radius: var(--radius); transition: all .4s var(--ease); }
.why__item:hover { background: var(--gray-50); transform: translateY(-6px); }
.why__icon {
  width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan-50), var(--cyan-100)); color: var(--cyan-600);
  box-shadow: 0 0 0 10px var(--cyan-50); transition: all .4s var(--ease);
}
.why__item:hover .why__icon { background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600)); color: var(--white); }
.why__icon .ico { width: 32px; height: 32px; }
.why__item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why__item p { font-size: .93rem; }

/* ---------- Cotización ---------- */
.quote { background: linear-gradient(180deg, var(--white), var(--cyan-50)); }
.quote__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.quote__info { position: sticky; top: calc(var(--header-h) + 30px); }
.quote__info > p { margin-bottom: 24px; }
.quote__wa { padding: 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); }
.quote__wa p { font-family: var(--font-head); font-weight: 700; color: var(--gray-800); margin-bottom: 12px; }

.form { background: var(--white); padding: 44px 40px; border-radius: 22px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--cyan-500); }
.form__title { font-size: 1.35rem; margin-bottom: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__row--3 { grid-template-columns: 1.4fr 1fr 1fr; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .84rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--gray-50); font-size: .95rem; outline: none; transition: all .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378848c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-300); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan-400); background: var(--white); box-shadow: 0 0 0 4px rgba(79,188,203,.18); }
.field.has-error input, .field.has-error select { border-color: #e05a5a; background: #fff6f6; }
.field .error-msg { font-size: .78rem; color: #d04545; margin-top: 4px; display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--gray-600); margin: 4px 0 22px; cursor: pointer; }
.consent input { width: 18px; height: 18px; accent-color: var(--cyan-600); margin-top: 3px; flex-shrink: 0; }
.consent.has-error span { color: #d04545; }
.btn__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.form__status { margin-top: 16px; font-size: .92rem; text-align: center; min-height: 1.4em; }
.form__status.ok { color: var(--cyan-700); font-weight: 600; padding: 14px; background: var(--cyan-50); border-radius: var(--radius-sm); }
.form__status.err { color: #c03c3c; padding: 14px; background: #fff3f3; border-radius: var(--radius-sm); }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 30px; }
.contact__cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact__card {
  display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); transition: all .4s var(--ease);
}
a.contact__card:hover, .contact__card:hover { transform: translateX(6px); border-color: var(--cyan-200); box-shadow: var(--shadow); }
.contact__card h3 { font-size: 1rem; margin-bottom: 2px; }
.contact__card p { font-size: .93rem; color: var(--gray-600); line-height: 1.5; }
.contact__icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600)); color: var(--white); }
.contact__icon .ico { width: 24px; height: 24px; }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; background: var(--gray-100); }
.contact__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 110px; }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 56px 60px; border-radius: 24px; color: var(--white); position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--cyan-600), var(--gray-800));
}
.cta__inner::before, .cta__inner::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); }
.cta__inner::before { width: 320px; height: 320px; right: -80px; top: -140px; }
.cta__inner::after { width: 200px; height: 200px; right: 120px; bottom: -120px; }
.cta__inner > * { position: relative; z-index: 1; }
.cta h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 6px; }
.cta p { color: var(--cyan-100); }

/* ---------- Pie ---------- */
.footer { background: var(--gray-900); color: var(--gray-300); padding-top: 80px; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer__brand p { margin-top: 18px; max-width: 320px; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--cyan-400); }
.footer ul { display: grid; gap: 9px; }
.footer ul a { transition: color .3s, padding .3s; }
.footer ul a:hover { color: var(--cyan-300); padding-left: 4px; }
.footer__contact li { display: flex; gap: 10px; align-items: center; }
.footer__contact .ico { color: var(--cyan-400); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .85rem; text-align: center; color: var(--gray-500); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 1100; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.45);
  transition: transform .35s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: pulse 2.2s infinite; }
.wa-float:hover { transform: scale(1.08); }
.wa-float__tip {
  position: absolute; right: 74px; white-space: nowrap; background: var(--white); color: var(--gray-800);
  padding: 9px 15px; border-radius: 10px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(10px); pointer-events: none; transition: all .35s var(--ease);
}
.wa-float:hover .wa-float__tip, .wa-float.show-tip .wa-float__tip { opacity: 1; transform: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }

.to-top {
  position: fixed; right: 30px; bottom: 98px; z-index: 1099; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--gray-800); color: var(--white); display: grid; place-items: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--cyan-600); }

/* ---------- Animaciones al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal--left { transform: translateX(-50px); }
.js .reveal--right { transform: translateX(50px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
html:not(.js) .preloader { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 14px; }
  .nav__link { padding: 8px 9px; font-size: .88rem; }
  .about__grid { gap: 50px; }
}

@media (max-width: 992px) {
  :root { --header-h: 70px; }
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(340px, 86vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px;
    padding: 100px 28px 30px; background: var(--white); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .45s var(--ease); overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--gray-100); }
  .nav__link::after { display: none; }
  .header__inner::after {
    content: ""; position: fixed; inset: 0; background: rgba(28,34,38,.45); opacity: 0; visibility: hidden;
    transition: all .4s; z-index: -1;
  }
  .header.menu-open .header__inner::after { opacity: 1; visibility: visible; }
  .header { backdrop-filter: none; background: rgba(255,255,255,.97); }

  .hero__modes { grid-template-columns: repeat(2, 1fr); }
  .hero__dots { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--gray-100); }
  .about__grid, .panel, .quote__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .trade__cols { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .quote__info { position: static; }
  .panel { gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 42px; }
  .topbar__inner > .topbar__info:last-child { display: none; }
  .topbar__info { gap: 14px; font-size: .78rem; }
  .topbar__info a:last-child { display: none; }
  .brand__text strong { font-size: 1.08rem; }
  .nav__cta { width: 100%; }
  .hero { padding: 70px 0 110px; }
  .hero__actions .btn { width: 100%; }
  .mode { padding: 12px; gap: 10px; font-size: .85rem; }
  .mode .ico { width: 24px; height: 24px; }
  .stat { padding: 24px 12px; }
  .about__media { padding: 0 20px 40px 0; }
  .about__badge { left: -6px; top: 20px; padding: 14px 16px; }
  .about__badge strong { font-size: 1.8rem; }
  .mv, .services__grid, .why__grid, .form__row, .form__row--3, .footer__grid { grid-template-columns: 1fr; }
  .form__row { gap: 0; }
  .form { padding: 30px 22px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 11px 8px; font-size: .85rem; justify-content: center; }
  .trade__card { padding: 30px 22px; }
  .cta__inner { padding: 40px 26px; }
  .cta__inner .btn { width: 100%; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .wa-float__tip { display: none; }
  .to-top { right: 21px; bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
