/* Pymia landing — dirección C · Azul vivo */
:root {
  --bg: #ffffff;
  --surface: #f2f6fc;
  --text: #0d2452;
  --muted: #4a5878;
  --divider: rgba(13, 36, 82, .13);
  --accent: #0c88f0;
  --accent-600: #0a6fd0;
  --accent-700: #0a3871;
  --accent-100: #e7f3fe;
  --band-bg: #0d2452;
  --band-fg: #ffffff;
  --band-muted: #c5d3ec;
  --band-rule: rgba(255, 255, 255, .18);
  --band-accent: #5aaef6;
  --wa: #25d366;
  --wa-hover: #1ebe5b;

  --font: "Geist", system-ui, sans-serif;
  --radius-md: 4px;
  --radius-lg: 7px;
  --shadow-sm: 0 1px 2px rgba(45, 43, 43, .14);
  --shadow-md: 0 3px 10px rgba(45, 43, 43, .16);

  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(56px, 9vw, 112px);
  --band-y: clamp(64px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], footer[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent-700); text-underline-offset: 3px; }
a:hover { color: var(--accent-600); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

h1, h2, h3 { font-family: var(--font); font-weight: 600; margin: 0; }
h1, h2 { letter-spacing: -0.035em; }
h3, summary { letter-spacing: -0.015em; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }
p { margin: 0; }

.container { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.rule-top { border-top: 1px solid var(--divider); }
.rule-bottom { border-bottom: 1px solid var(--divider); }

.kicker {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-700); margin-bottom: 14px;
}
.h2 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.08; text-wrap: balance; }
.muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 320px)), 1fr)); }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font); font-weight: 600; font-size: 14px; line-height: 1.2;
  color: var(--text); background: transparent;
  border: 1px solid transparent; border-radius: var(--radius-md);
  padding: 9.2px 16.6px;
  transition: background-color .15s, border-color .15s;
}
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn-secondary { border-color: var(--divider); color: var(--text); }
.btn-secondary:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.btn-ghost { color: var(--accent-700); }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-700); }
.btn-lg { font-size: 18px; padding: 15px 28px; }

/* — header — */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--divider);
}
.site-header .container { display: flex; align-items: center; gap: 36px; padding-block: 16px; }
.brand { margin-right: auto; display: flex; align-items: center; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 32px; font-size: 14px; white-space: nowrap; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--accent-600); }
.site-header .btn { font-size: 15px; white-space: nowrap; flex: none; }
@media (max-width: 980px) { .nav { display: none; } }

/* — hero — */
.hero { padding-top: clamp(56px, 10vw, 128px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero .kicker { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(44px, 8.5vw, 112px); line-height: .98;
  max-width: 15ch; min-height: 2.94em; text-wrap: balance;
}
.hero h1.is-in { animation: heroIn .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero h1.is-in { animation: none; } }
.hero-foot {
  --min: 360px; gap: 24px clamp(32px, 6vw, 96px);
  margin-top: clamp(32px, 5vw, 56px); align-items: end;
}
.hero-foot p { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 44ch; text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn-ghost { padding-inline: 12px; }

.hero-visual-wrap { padding-bottom: var(--section-y); }
.hero-visual {
  position: relative; width: 100%; aspect-ratio: 21 / 8; min-height: 220px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(115deg, #0a5bb8 0%, #0a3871 38%, #0d2452 72%, #13306a 100%);
}
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* — desafíos — */
.challenges { --min: 320px; gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
@media (min-width: 720px) { .challenges .sticky { position: sticky; top: 100px; } }
.numbered { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.numbered li {
  display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px;
  padding: 26px 0; border-bottom: 1px solid var(--divider);
}
.numbered .num { font-size: 22px; color: var(--accent-700); font-feature-settings: 'tnum'; }
.numbered h3 { font-size: 26px; margin-bottom: 6px; line-height: 1.12; }
.numbered p { color: var(--muted); text-wrap: pretty; }

/* — capacidades — */
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end;
  gap: 16px 48px; margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head .h2 { max-width: 18ch; }
.section-head > p { max-width: 40ch; text-wrap: pretty; }
.cap-list { border-top: 1px solid var(--text); }
.cap-row {
  --min: 280px; gap: 16px clamp(24px, 4vw, 64px); align-items: start;
  padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--divider);
  text-decoration: none; color: var(--text); transition: background-color .2s;
}
.cap-row:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); color: var(--text); }
.cap-title { display: flex; gap: 18px; align-items: flex-start; }
.cap-title svg { flex: none; margin-top: 6px; }
.cap-title h3 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; }
.cap-benefit { font-size: 17px; text-wrap: pretty; }
.cap-detail { display: flex; justify-content: space-between; gap: 20px; }
.cap-detail ul {
  margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px;
  font-size: 15px; color: var(--muted);
}
.cap-arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--divider); display: grid; place-items: center;
  color: var(--accent-700); transition: transform .2s, border-color .2s;
}
.cap-row:hover .cap-arrow { transform: translateX(6px); border-color: var(--accent); }

/* — bandas navy — */
.band { background: var(--band-bg); color: var(--band-fg); }
.band .container { padding-block: var(--band-y); }
.band .kicker { color: var(--band-accent); margin-bottom: 20px; }
.band h2 em { color: var(--band-accent); }
.band a { color: #fff; }
.approach h2 {
  font-size: clamp(36px, 6vw, 76px); line-height: 1.02;
  margin-bottom: clamp(40px, 6vw, 72px); max-width: 17ch; text-wrap: balance;
}
.approach-grid { --min: 340px; gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.approach-copy p { font-size: 18px; text-align: justify; hyphens: auto; color: var(--band-muted); }
.approach-copy p + p { margin-top: 16px; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.pillars > div { border-top: 1px solid var(--band-rule); padding: 20px 0 28px; }
.pillars h3 { font-size: 23px; margin-bottom: 6px; line-height: 1.12; }
.pillars p { font-size: 15px; color: var(--band-muted); }

/* — equipo — */
.team { background: var(--surface); }
.team-head { --min: 340px; gap: 24px clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.team-head > p { font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.label-sm { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.logos { gap: clamp(16px, 2vw, 24px); }
.logo-tile {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--divider);
  height: clamp(140px, 16vw, 180px); display: flex; align-items: center; justify-content: center;
  background: #fff;
}
.logo-tile img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.logo-tile.walmart { background: #131e45; padding: 12px 24px; }
.logo-tile.maersk { padding: clamp(36px, 4.5vw, 52px) 32px; }

/* — proceso — */
.process h2 { max-width: 22ch; margin-bottom: clamp(36px, 5vw, 64px); }
.steps {
  --min: 200px; list-style: none; margin: 0; padding: 0; gap: 0;
  border-top: 1px solid var(--text);
}
.steps li {
  padding: 24px 20px 28px; border-right: 1px solid var(--divider);
  display: flex; flex-direction: column; gap: 8px;
}
.steps li:first-child { padding-left: 0; }
.steps li:last-child { border-right: 0; }
.steps .num { font-size: 44px; line-height: 1; color: var(--accent-700); font-feature-settings: 'tnum'; }
.steps h3 { font-size: 22px; margin-top: 8px; line-height: 1.12; }
.steps p { font-size: 15px; color: var(--muted); }
.steps .when {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-700); margin-top: auto; padding-top: 8px;
}
@media (max-width: 640px) {
  .steps li { padding-left: 0; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--divider); }
}

/* — perspectivas — */
.articles { --min: 300px; gap: clamp(24px, 3vw, 40px); }
.article { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 14px; }
.article:hover { color: var(--text); }
.article:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.article-img {
  aspect-ratio: 3 / 2; width: 100%; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--divider);
  display: grid; place-items: center; overflow: hidden;
}
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-img span { font-size: 13px; color: var(--muted); }
.article .meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-700); }
.article h3 { font-size: 26px; line-height: 1.15; }

/* — faq — */
.faq { --min: 320px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .h2 { margin-bottom: 16px; }
.accordion { border-top: 1px solid var(--text); }
.accordion details { border-bottom: 1px solid var(--divider); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  padding: 22px 0; font-size: 23px; font-weight: 600; line-height: 1.25;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion .plus { color: var(--accent); font-weight: 400; transition: transform .2s; flex: none; }
.accordion details[open] .plus { transform: rotate(45deg); }
.accordion details p { margin: 0 0 22px; color: var(--muted); max-width: 60ch; }

/* — contacto — */
.contact { --min: 360px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .kicker { margin-bottom: 18px; }
.contact h2 { font-size: clamp(38px, 5.5vw, 68px); line-height: 1.02; margin-bottom: 22px; text-wrap: balance; }
.contact-copy p { font-size: 18px; color: var(--band-muted); max-width: 42ch; }
.form-card {
  border: 1px solid var(--band-rule); border-radius: var(--radius-md);
  padding: clamp(22px, 3vw, 36px); background: var(--bg); color: var(--text);
}
.form-card a { color: var(--accent-700); }
.form { --min: 200px; gap: 18px; }
.field > label {
  display: block; font-size: 13px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--text) 70%, transparent);
}
.input {
  width: 100%; min-height: 48px; padding: 6px 10px; font: inherit; font-size: 16px;
  color: var(--text); caret-color: var(--accent); background: transparent;
  border: 1px solid var(--divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.input:focus-visible { border-color: var(--accent); outline-offset: 0; }
textarea.input { min-height: 90px; padding-top: 10px; resize: vertical; }
.full { grid-column: 1 / -1; }
.form-actions { display: flex; flex-direction: column; gap: 12px; }
.form-actions .btn { font-size: 18px; padding: 14px 24px; width: 100%; }
.legal { font-size: 12px; color: var(--muted); text-align: center; }
.form-error {
  font-size: 14px; color: #a1261b; background: #fdecea;
  border-radius: var(--radius-md); padding: 10px 12px;
}
.form-sent {
  padding: 24px 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.form-sent h3 { font-size: 28px; }
.form-sent p { color: var(--muted); max-width: 34ch; }
[hidden] { display: none !important; }

/* — footer — */
.site-footer .container { padding-top: clamp(48px, 7vw, 80px); padding-bottom: 104px; }
.footer-cols {
  --min: 200px; gap: 32px; font-size: 15px;
  padding-bottom: 40px; border-bottom: 1px solid var(--divider);
}
.footer-cols > div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols .brand-col { gap: 0; }
.footer-cols .brand-col img { height: 56px; width: auto; margin-left: -6px; }
.footer-cols .brand-col p { margin-top: 12px; color: var(--muted); max-width: 28ch; }
.col-head { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 20px; font-size: 13px; color: var(--muted);
}

/* — WhatsApp flotante — */
.wa-float {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 30;
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px;
  border-radius: 28px; background: var(--wa); border: 1px solid var(--wa); color: #fff;
  text-decoration: none; box-shadow: var(--shadow-md);
  font-size: 18px; font-weight: 600; transition: background-color .15s, border-color .15s;
}
.wa-float:hover { background: var(--wa-hover); border-color: var(--wa-hover); color: #fff; }
