/* Soul Courier — la página es la guía de envío */

:root {
  --navy: #101c5c;      /* ground de las piezas oscuras, del logo */
  --navy-deep: #0a1240;
  --ink: #0d1850;       /* texto */
  --paper: #ffffff;
  --sky: #3d9df4;       /* azul del ícono: la acción */
  --sky-press: #2a8ae3;
  --field: #e8f2fe;     /* paso de tono */
  --field-2: #f3f7fc;
  --muted: #3c4677;

  --font: "Montserrat", system-ui, sans-serif;
  --m: clamp(16px, 3vw, 32px);           /* margen */
  --gap-section: clamp(96px, 12vw, 200px);
  --t-body: clamp(16px, 1.15vw, 18px);
  --t-h2: clamp(30px, 3.6vw, 52px);
  --t-code: clamp(44px, 5vw, 76px);
  --t-h3: clamp(22px, 2.1vw, 30px);
  --t-small: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
::selection { background: var(--sky); color: var(--ink); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 0;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), transform .15s var(--ease), color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--accent { background: var(--sky); color: var(--ink); }
.btn--accent:hover { background: var(--sky-press); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--navy-deep); }

/* ---------- navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 32px;
  height: 72px; padding: 0 var(--m);
  background: var(--paper);
}
.nav__brand img { width: 210px; height: 42px; object-fit: cover; }
.nav__links { display: flex; gap: 36px; margin: 0 auto; }
.nav__links a { font-weight: 500; font-size: 16px; text-decoration: none; padding: 6px 0; transition: color .2s; }
.nav__links a:hover { color: var(--sky-press); }
.nav__actions { display: flex; gap: 10px; }
.nav__cta, .nav__login { min-height: 44px; padding: 0 18px; gap: 8px; }
.wa-icon { width: 20px; height: 20px; flex: none; }
.nav__login-short { display: none; }
.nav__cta, .nav__login { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav__login-long { display: none; }
  .nav__login-short { display: inline; }
}

/* ícono del logo, recortado al círculo */
.label__title { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: var(--t-small); letter-spacing: -0.01em; }
.label__icon { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; }
.label__icon img { width: 50px; height: 50px; max-width: none; margin: -7px; }

/* ---------- hero: la guía ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 72px);
  display: flex; align-items: center;
  padding: clamp(24px, 3vw, 48px) var(--m);
  background: var(--navy);
}
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%;
  animation: drift 24s var(--ease) both;
}
@keyframes drift { from { transform: scale(1.12); } to { transform: scale(1); } }

.label {
  position: relative;
  width: min(720px, 100%);
  background: var(--paper);
  --notch: 18px;
  /* muescas laterales a la altura del talón: máscara de forma, no relleno */
  -webkit-mask: radial-gradient(circle var(--notch) at 0 calc(100% - 132px), #0000 98%, #000) left / 51% 100% no-repeat, /* taste-skill-ignore */
                radial-gradient(circle var(--notch) at 100% calc(100% - 132px), #0000 98%, #000) right / 51% 100% no-repeat; /* taste-skill-ignore */
          mask: radial-gradient(circle var(--notch) at 0 calc(100% - 132px), #0000 98%, #000) left / 51% 100% no-repeat, /* taste-skill-ignore */
                radial-gradient(circle var(--notch) at 100% calc(100% - 132px), #0000 98%, #000) right / 51% 100% no-repeat; /* taste-skill-ignore */
}
.label__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 28px;
}
.label__clocks { display: flex; gap: 16px; font-size: var(--t-small); color: var(--muted); }
.label__clocks b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.label__route { display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--field); }
.label__field { padding: 16px 28px 20px; display: grid; }
.label__field--alt { background: var(--field-2); }
.label__field--to { background: var(--sky); }
.label__key { font-size: var(--t-small); font-weight: 600; color: var(--muted); }
.label__code { font-size: var(--t-code); font-weight: 800; letter-spacing: -0.05em; line-height: .95; white-space: nowrap; }
.label__note { margin-top: 4px; font-size: var(--t-small); font-weight: 600; }

.label__body { padding: 28px 28px 30px; }
.label__body h1 { font-size: clamp(34px, 4.2vw, 58px); max-width: 13ch; }
.label__lede { margin-top: 18px; max-width: 46ch; }
.label__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.label__stub {
  height: 132px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 28px; background: var(--ink); color: var(--paper);
}
.label__stub .label__key { color: #b9c6f2; display: block; margin-top: 6px; }
.label__service { display: block; font-size: var(--t-h2); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.label__barcode { height: 64px; flex: 0 1 260px; }
.label__barcode svg { width: 100%; height: 100%; }

/* ---------- ALL IN ---------- */
.allin {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(80px, 9vw, 140px) var(--m);
  background: var(--field);
}
.allin h2 { font-size: var(--t-h2); max-width: 14ch; }
.allin__intro p { margin-top: 24px; max-width: 44ch; }

.compare__switch { display: inline-flex; background: var(--ink); padding: 6px; }
.compare__switch button {
  font: 600 16px/1 var(--font); color: var(--paper); background: transparent;
  border: 0; padding: 14px 20px; cursor: pointer; transition: background-color .25s var(--ease), color .25s;
}
.compare__switch button[aria-selected="true"] { background: var(--sky); color: var(--ink); }
.compare__switch button:hover:not([aria-selected="true"]) { background: #1e2a72; }

.ticket {
  margin-top: 20px; background: var(--paper);
  /* borde troquelado del ticket: máscara de forma, no relleno */
  -webkit-mask: radial-gradient(circle 7px at 50% 0, #0000 96%, #000) 0 0 / 22px 100% repeat-x; /* taste-skill-ignore */
          mask: radial-gradient(circle 7px at 50% 0, #0000 96%, #000) 0 0 / 22px 100% repeat-x; /* taste-skill-ignore */
}
.ticket__lines { list-style: none; margin: 0; padding: 28px 0 0; }
.ticket__lines li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 28px; }
.ticket__lines li:nth-child(even) { background: var(--field-2); }
.ticket__lines b { font-weight: 600; text-align: right; transition: color .3s; }
.ticket__lines b.is-out { color: #b4281e; }
.ticket__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-top: 12px; padding: 24px 28px 28px; background: var(--ink); color: var(--paper);
}
.ticket__total b { font-size: var(--t-h3); font-weight: 800; letter-spacing: -0.02em; }
.ticket.is-swapping .ticket__total b, .ticket.is-swapping .ticket__lines b { opacity: 0; transform: translateY(6px); }
.ticket__total b, .ticket__lines b { transition: opacity .2s, transform .2s var(--ease), color .3s; }
.compare__note { margin-top: 20px; max-width: 48ch; }

/* ---------- orígenes ---------- */
.origins { padding: var(--gap-section) var(--m) 0; }
.origins__title { font-size: var(--t-h2); max-width: 22ch; margin-bottom: clamp(48px, 6vw, 96px); }
.origin {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: end;
  margin-bottom: clamp(72px, 9vw, 140px);
}
.origin--can { grid-template-columns: 1fr 1.5fr; }
.origin--can .origin__photo { order: 2; }
.origin__photo { margin: 0 calc(-1 * var(--m)) 0 calc(-1 * var(--m)); overflow: hidden; }
.origin--mia .origin__photo { margin-right: 0; }
.origin--can .origin__photo { margin-left: 0; }
.origin__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.origin:hover .origin__photo img { transform: scale(1.03); }
.origin__code { font-size: clamp(88px, 13vw, 200px); font-weight: 800; letter-spacing: -0.06em; line-height: .8; color: var(--sky); }
.origin h3 { font-size: var(--t-h3); margin: 20px 0 14px; }
.origin__text > p:not(.origin__code) { max-width: 40ch; }
.origin__facts { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.origin__facts span { background: var(--field); padding: 8px 14px; font-weight: 600; font-size: var(--t-small); }
.origin__note { margin-top: 10px; font-size: var(--t-small); color: var(--muted); }

/* ---------- recorrido ---------- */
.track {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px);
  padding: var(--gap-section) var(--m);
  background: var(--navy); color: var(--paper);
}
.track h2 { font-size: var(--t-h2); max-width: 16ch; }
.track__head p { margin-top: 24px; max-width: 38ch; color: #d6def8; }
.track__list { list-style: none; margin: 0; padding: 0; }
.track__list li {
  position: relative; display: grid; gap: 4px;
  padding: 0 0 36px 52px;
}
.track__list li::before { /* el punto de cada evento */
  content: ""; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--sky);
}
.track__list li:not(:last-child)::after { /* el tramo hasta el siguiente */
  content: ""; position: absolute; left: 8px; top: 28px; bottom: 2px;
  width: 6px; background: #2a3a8f;
}
.track__list b { font-size: var(--t-h3); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.track__list span { color: #d6def8; max-width: 46ch; }
.track__done::before { background: var(--paper) !important; border: 6px solid var(--sky); }

/* ---------- foto ancha ---------- */
.wide { margin: 0; }
.wide img { width: 100%; height: min(48vh, 440px); object-fit: cover; object-position: 45% 80%; }
.wide figcaption { padding: 24px var(--m) 0; max-width: calc(46ch + 2 * var(--m)); color: var(--ink); }
.wide figcaption b { display: block; margin-bottom: 6px; font-size: var(--t-h3); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }

/* ---------- servicios ---------- */
.services { padding: var(--gap-section) var(--m); }
.services h2 { font-size: var(--t-h2); max-width: 16ch; margin-bottom: clamp(40px, 5vw, 72px); }
.services__list { margin: 0; }
.services__list > div {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px 48px; align-items: baseline;
  padding: 28px 24px;
  transition: background-color .3s var(--ease);
}
.services__list > div:nth-child(odd) { background: var(--field-2); }
.services__list > div:hover { background: var(--field); }
.services__list dt { font-size: var(--t-h3); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.services__list dd { margin: 0; max-width: 50ch; }

/* ---------- atención ---------- */
.care {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch;
  background: var(--sky);
}
.care__photo { margin: 0; overflow: hidden; }
.care__photo img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: 50% 40%; }
.care__text { padding: clamp(48px, 7vw, 120px) var(--m); align-self: center; }
.care h2 { font-size: clamp(28px, 3.2vw, 46px); max-width: 21ch; }
.care .care__statement { margin: 10px 0 0; font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.care p { margin: 24px 0 32px; max-width: 42ch; }
.care .btn--accent { background: var(--ink); color: var(--paper); }
.care .btn--accent:hover { background: var(--navy-deep); }

/* ---------- preguntas frecuentes ---------- */
.faq { padding: var(--gap-section) var(--m); }
.faq h2 { font-size: var(--t-h2); margin-bottom: clamp(32px, 4vw, 56px); }
.faq__list { max-width: 980px; }
.faq details { background: var(--field-2); transition: background-color .3s var(--ease); }
.faq details:nth-child(even) { background: var(--paper); }
.faq details[open], .faq details:hover { background: var(--field); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px; cursor: pointer; list-style: none;
  font-size: clamp(17px, 1.3vw, 20px); font-weight: 600; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 22px; font-weight: 600;
  transition: transform .3s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sky); color: var(--ink); }
.faq details p { padding: 0 24px 26px; max-width: 64ch; }

/* ---------- calculadora ---------- */
.calc {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: var(--gap-section) var(--m);
  background: var(--field);
}
.calc h2 { font-size: var(--t-h2); }
.calc__text p { margin-top: 20px; max-width: 36ch; }
.calc__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  padding: 32px 28px; background: var(--paper);
}
.calc__form label { display: grid; gap: 8px; font-size: var(--t-small); font-weight: 600; }
.calc__form select, .calc__form input {
  font: 500 16px var(--font); color: var(--ink);
  min-height: 52px; padding: 0 14px; border: 0; border-radius: 0; background: var(--field-2);
  transition: background-color .2s;
}
.calc__form select:hover, .calc__form input:hover { background: var(--field); }
.calc__wide { grid-column: 1 / -1; }

/* ---------- footer: el dorso ---------- */
.foot { background: var(--navy-deep); color: var(--paper); overflow: hidden; }
.foot__stage {
  position: relative; overflow: hidden;
  min-height: clamp(320px, 38vw, 560px);
  display: flex; flex-direction: column; align-items: flex-end; text-align: right;
  padding: clamp(32px, 4vw, 64px) var(--m);
}
.foot__photo { /* el cielo despejado queda a la derecha, detrás del texto */
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 100% 100%;
}
.foot__name, .foot__arrival { position: relative; }
.foot__name {
  font-size: clamp(40px, 7.4vw, 128px); font-weight: 800; letter-spacing: -0.04em; line-height: .9;
  white-space: nowrap; color: var(--paper);
}
.foot__arrival { margin-top: 14px; font-size: var(--t-h3); font-weight: 600; color: var(--paper); }
.foot__inner { padding: 40px var(--m) 32px; }
.foot__cols { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.foot__cols a { text-decoration: none; font-weight: 600; }
.foot__cols a:hover { color: var(--sky); }
.foot__credits { margin-top: 48px; font-size: var(--t-small); color: #9aa6d6; max-width: 75ch; }

/* ---------- movimiento ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.label { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: opacity .3s; }
  .label { animation: none; }
  .origin:hover .origin__photo img { transform: none; }
}

/* ---------- tablet y teléfono ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .allin, .track, .calc, .care { grid-template-columns: 1fr; }
  .origin, .origin--can { grid-template-columns: 1fr; }
  .origin--can .origin__photo { order: 0; }
  .origin__photo, .origin--mia .origin__photo, .origin--can .origin__photo { margin: 0 calc(-1 * var(--m)); }
  .care__photo img { min-height: 320px; max-height: 480px; }
}
@media (max-width: 600px) {
  .nav { gap: 12px; }
  .nav__brand img { width: 150px; height: 30px; }
  .nav__cta { width: 44px; padding: 0; }
  .nav__cta-text, .nav__login-long { display: none; }
  .nav__login-short { display: inline; }
  .nav__login { padding: 0 14px; }
  .hero { padding: 16px 12px 40px; align-items: flex-start; }
  .label__head, .label__field, .label__body, .label__stub { padding-left: 20px; padding-right: 20px; }
  .label__route .label__field { padding: 12px 14px 14px; }
  .label__code { font-size: 36px; }
  .label__code { line-height: 1; }
  .label__note { line-height: 1.3; }
  .label__note > span { display: block; }
  .label__clocks { gap: 10px; }
  .label__barcode { flex-basis: 120px; }
  .label__actions .btn { flex: 1 1 100%; }
  .services__list > div { grid-template-columns: 1fr; padding: 24px 16px; }
  .faq summary { padding: 20px 16px; }
  .faq details p { padding: 0 16px 22px; }
  .calc__form { grid-template-columns: 1fr; padding: 24px 20px; }
  .compare__switch { display: flex; }
  .compare__switch button { flex: 1; padding: 14px 10px; }
  .ticket__lines li { padding: 14px 20px; }
  .ticket__total { padding: 22px 20px 24px; }
}
