@font-face {
  font-family: Manrope;
  src: url("manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #14251c;
  background: #f0f3ed;
  --ink: #14251c;
  --muted: #25362d;
  --surface: #fff;
  --line: #d5ded4;
  --field-fill: #e8f0e9;
  --field-border: #7c9483;
  --forest: #10281c;
  --green: #286346;
  --mint: #eaf3e9;
  --shalom: #ee2a2f;
  --shalom-ink: #a82029;
  --shalom-wash: #fff3f2;
  --error: #a32938;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  line-height: 1.55;
  background-image: radial-gradient(#546b5822 .62px, transparent .72px),
    linear-gradient(180deg, #eaf0e6 0, #f5f7f2 min(39rem, 85vh));
  background-size: 15px 15px, 100% 100%;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled {
  cursor: default;
  color: #34473c;
  background: #eaf1e9;
  border-color: #a9b9a9;
  box-shadow: none;
}
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid #327850; outline-offset: 3px; }

.container { width: min(100% - 3.5rem, 70rem); margin-inline: auto; }
.site-header {
  background: #fcfef9;
  border-bottom: 1px solid #dce5d9;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.4rem; }
.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand img { display: block; object-fit: contain; border-radius: .7rem; border: 1px solid #e3ebdc; }
.brand strong { font-size: 1.13rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.brand span { font-weight: 680; }
.header-channel { display: inline-flex; align-items: center; gap: .46rem; min-height: 2.75rem; padding: .42rem .65rem; border: 1px solid #cedecf; border-radius: .65rem; background: #eef6ed; color: var(--forest); font-size: .87rem; font-weight: 750; text-decoration: none; }
.header-channel:hover { background: #e0f0e3; text-decoration: underline; text-underline-offset: .18em; }

main { padding-block: 1.8rem 3rem; }
.site-credit { padding: 0 1rem 1.25rem; color: var(--muted); text-align: center; font-size: 0.78rem; }
.site-credit a { color: var(--forest); font-weight: 750; text-underline-offset: 0.19em; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 17.75rem;
  border: 1px solid #263f30;
  border-radius: 1.5rem;
  background: var(--forest);
  color: #f9fcf3;
  box-shadow: 0 15px 40px #132c1b26;
  margin-bottom: 1.45rem;
}
.hero-image {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  z-index: -1;
}
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 66% 51%; }
.hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--forest), #10281cbd 9%, #10281c51 20%, transparent 34%);
}
.hero-content { position: relative; width: 57%; padding: 2rem clamp(1.7rem, 4.2vw, 3rem) 2.15rem; }
.hero-carrier {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: .44rem .64rem;
  margin-bottom: 1.05rem;
  padding: .43rem .75rem .43rem .65rem;
  border: 1px solid #fff;
  border-left: 3px solid var(--shalom);
  border-radius: .46rem;
  background: #fffdf8;
  box-shadow: 0 3px 13px #09140d42;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 790;
}
.hero-carrier img { display: block; width: 7.5rem; height: auto; }
.hero-carrier span { padding-left: .64rem; border-left: 1px solid #dddcd6; }
.hero h1 { font-size: clamp(2.45rem, 4.8vw, 4.1rem); font-weight: 790; line-height: 1.02; letter-spacing: -.061em; word-spacing: .042em; }
.hero p { max-width: 24rem; margin-top: .8rem; color: #f2f8f1; font-weight: 550; line-height: 1.6; }

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.15rem;
}
.card {
  padding: clamp(1.15rem, 2.5vw, 1.65rem);
  border: 1px solid #dce4d9;
  border-radius: 1.2rem;
  background: var(--surface);
  box-shadow: 0 4px 8px #21382306, 0 14px 34px #21382309;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: .72rem;
  margin-bottom: 1.15rem;
}
.card-icon {
  display: grid;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  color: var(--green);
  background: var(--mint);
  border: 1px solid #dceadd;
  border-radius: .75rem;
}
.card-heading h2 { font-size: clamp(1.13rem, 2vw, 1.46rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.18; }
.carrier-card .card-icon { color: var(--shalom-ink); background: var(--shalom-wash); border-color: #f2dbd9; }
.fields { display: grid; gap: 1rem; }
.fields-inline { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); gap: .77rem; }
label { display: block; margin-bottom: .37rem; font-size: .9rem; font-weight: 760; }

input {
  display: block;
  width: 100%;
  min-height: 3.05rem;
  padding: .67rem .84rem;
  color: var(--ink);
  background: var(--field-fill);
  border: 1px solid var(--field-border);
  border-radius: .64rem;
  box-shadow: inset 0 1px 2px #14251c0b;
}
input::placeholder { color: var(--muted); font-weight: 620; opacity: 1; }
input:focus { border-color: #387250; background: #f1f7f2; }
input:user-invalid { border-color: var(--error); }
.field-control { position: relative; }
.field-control input { padding-inline-end: 2.55rem; }
.field-control:has(.field-check:not([hidden])) input { border-color: #6a9978; background: #e8f4eb; }
.field-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.search-field { position: relative; }
.search-field > .icon { position: absolute; inset: .97rem auto auto .95rem; color: var(--shalom-ink); pointer-events: none; }
.search-field input { padding-left: 2.62rem; }
.search-field input:focus-visible { outline-color: var(--shalom-ink); border-color: #aa5d63; }
.hint { margin-top: .4rem; font-size: .84rem; color: var(--muted); font-weight: 580; overflow-wrap: anywhere; }
.error { color: var(--error); }
.search-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .65rem; margin-top: .63rem; }
.search-meta .hint { margin: 0; }
.scroll-hint { font-size: .81rem; font-weight: 710; color: var(--shalom-ink); }

.agency-results {
  max-height: 15rem;
  margin: .68rem 0 0;
  padding: .24rem;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #ad7574 #f8eeea;
  scrollbar-gutter: stable;
  border: 1px solid #dce6da;
  border-radius: .72rem;
  background: #fcfaf8;
}
.agency-results li + li { border-top: 1px solid #ece4df; }
.agency-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: .8rem;
  width: 100%;
  min-height: 3.95rem;
  padding: .57rem .66rem;
  color: inherit;
  text-align: left;
  border: 0;
  border-radius: .48rem;
  background: transparent;
}
.agency-option:hover, .agency-option:focus-visible { background: var(--shalom-wash); }
.agency-option:focus-visible { outline-color: var(--shalom-ink); outline-offset: -2px; }
.agency-option strong, .agency-option span { grid-column: 1; overflow-wrap: anywhere; }
.agency-option strong { font-size: .91rem; font-weight: 790; line-height: 1.3; }
.agency-option .agency-address { font-size: .82rem; line-height: 1.4; }
.agency-option::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 3;
  width: .86rem;
  height: .86rem;
  border: 1px solid #a0807e;
  border-radius: 50%;
}
.agency-option:hover::after, .agency-option:focus-visible::after {
  background: var(--shalom-ink);
  box-shadow: inset 0 0 0 2px var(--shalom-wash);
}

.selected-agency {
  padding: 1rem 1.05rem .4rem;
  border: 1px solid #b9d9c1;
  border-radius: .8rem;
  background: linear-gradient(125deg, #e4f2e8, #f2f8f2);
}
.selected-details { display: flex; gap: .65rem; }
.selected-marker, .field-check {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}
.selected-marker { flex: 0 0 1.35rem; margin-top: .06rem; }
.field-check {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: .75rem;
  transform: translateY(-50%);
  pointer-events: none;
}
.selected-marker::before, .field-check::before {
  content: "";
  width: .55rem;
  height: .31rem;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: translateY(-.06rem) rotate(-45deg);
}
.selected-name { font-weight: 800; overflow-wrap: anywhere; }
.agency-location { margin-top: .16rem; font-size: .82rem; font-weight: 760; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.agency-address { margin-top: .15rem; font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.agency-address strong { display: block; color: var(--forest); font-size: .77rem; }
.agency-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .9rem; }
.agency-actions .text-button { font-size: .86rem; }
.agency-actions button { color: var(--shalom-ink); }
.map-link { display: inline-flex; align-items: center; }

.form-actions { border-top: 1px solid #e6ece3; margin-top: 1.2rem; padding-top: 1.05rem; }

.primary-button, .text-button { min-height: 2.75rem; border-radius: .63rem; font-weight: 800; }
.primary-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  gap: .52rem;
  padding: .6rem 1.04rem;
  color: #f8fbfa;
  border: 1px solid #42504c;
  background: linear-gradient(125deg, #34413e, #17211e 78%);
  box-shadow: inset 0 1px 0 #ffffff19, 0 .2rem .6rem #111d182e;
}
.primary-button:hover:enabled, .primary-button:focus-visible { border-color: #6a8278; box-shadow: inset 0 1px 0 #ffffff24, 0 .4rem .9rem #17262336; }
.card .primary-button { width: 100%; }
.text-button { padding: .45rem .15rem; color: var(--green); border: 0; background: transparent; text-underline-offset: .2em; }
.text-button:hover { text-decoration: underline; }

dialog {
  width: min(100% - 1.5rem, 36rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.16rem;
  box-shadow: 0 1rem 3.5rem #101c14a0;
}
dialog::backdrop { background: #10271dc9; backdrop-filter: blur(3px); }
.review-content { padding: clamp(.95rem, 4vw, 1.55rem); }
.review-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .8rem; margin-bottom: .85rem; }
.review-header h2 { font-size: clamp(1.28rem, 4.6vw, 1.65rem); font-weight: 800; line-height: 1.18; letter-spacing: -.045em; }
.review-header img { display: block; width: 5.75rem; height: auto; }
.review-details { display: grid; gap: .62rem; }
.review-panel { min-width: 0; padding: .74rem .88rem; border: 1px solid #dce7df; border-radius: .78rem; background: #f8faf8; }
.review-destination { background: linear-gradient(140deg, #e9f4eb, #f6faf6); border-color: #cce0d0; }
.review-panel h3 { display: flex; align-items: center; gap: .4rem; margin: 0 0 .35rem; color: var(--muted); font-size: .79rem; font-weight: 780; }
.review-panel h3 .icon { color: var(--green); }
.review-value { font-size: 1rem; font-weight: 800; line-height: 1.32; overflow-wrap: anywhere; }
.review-list { display: grid; gap: .42rem; margin: .53rem 0 0; }
.review-list dt { color: var(--muted); font-size: .77rem; font-weight: 780; }
.review-list dd { margin: 0; font-size: .88rem; line-height: 1.4; overflow-wrap: anywhere; }
.review-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.review-contact dd { font-variant-numeric: tabular-nums; }
.review-footer { margin-top: .78rem; }
.review-note { color: var(--muted); font-size: .83rem; font-weight: 580; line-height: 1.45; }
#estado-pedido { margin-top: .45rem; }
#estado-pedido.error { color: var(--error); }
.review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .85rem; margin-top: .63rem; }
.review-actions .primary-button { flex: 1 0 auto; text-decoration: none; }
.notice { padding: 1rem; color: var(--error); border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); }

@media (min-width: 34rem) {
  .review-details { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .primary-button { transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease; }
  .primary-button:hover:enabled { transform: translateY(-1px); }
  .primary-button:active:enabled { transform: translateY(1px) scale(.985); }
  .primary-button::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(110deg, transparent 27%, #e7ffed24 50%, transparent 73%);
    transform: translateX(-110%);
  }
  .primary-button:hover:enabled::after { transform: translateX(110%); transition: transform .74s ease; }
  dialog[open] .review-content { animation: resumen-entrada .23s ease-out both; }
  dialog[open] .primary-button::after { animation: luz-boton .82s .16s ease both; }
  @keyframes resumen-entrada {
    from { opacity: 0; transform: translateY(.3rem); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes luz-boton {
    from { transform: translateX(-110%); }
    to { transform: translateX(110%); }
  }
}

.icon { position: relative; display: inline-block; flex: none; width: 1.12rem; height: 1.12rem; }
.icon::before, .icon::after { position: absolute; content: ""; }
.icon-pin::before {
  top: .03rem;
  left: .17rem;
  width: .59rem;
  height: .59rem;
  border: 1.5px solid currentColor;
  border-radius: 70% 70% 4% 70%;
  transform: rotate(45deg);
}
.icon-pin::after { top: .28rem; left: .43rem; width: .18rem; height: .18rem; border-radius: 50%; background: currentColor; }
.icon-search::before { width: .59rem; height: .59rem; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-search::after { top: .68rem; left: .68rem; width: .37rem; height: 1.5px; border-radius: 1px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.icon-person::before { inset: 0 auto auto .36rem; width: .39rem; height: .39rem; border-radius: 50%; border: 1.5px solid currentColor; }
.icon-person::after { inset: auto .075rem .04rem; height: .45rem; border: 1.5px solid currentColor; border-radius: 55% 55% 21% 21%; }
.icon-chat::before { inset: .1rem .02rem .18rem; border: 1.5px solid currentColor; border-radius: .35rem; }
.icon-chat::after { width: .27rem; height: .25rem; left: .24rem; bottom: .07rem; border-left: 1.5px solid currentColor; transform: skew(-24deg) rotate(-27deg); }
.icon-document::before { inset: .05rem .17rem; border: 1.5px solid currentColor; border-radius: .2rem; }
.icon-document::after { inset: .38rem .36rem auto; height: .22rem; border-block: 1.4px solid currentColor; }

@media (max-width: 46rem) {
  .container { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.75rem; }
  .brand img { width: 36px; height: 36px; }
  .brand strong { font-size: 1rem; }
  .header-channel { font-size: .77rem; gap: .3rem; }
  main { padding-top: 1rem; }
  .hero { min-height: 12.75rem; border-radius: 1.13rem; margin-bottom: 1rem; }
  .hero-content { width: 100%; padding: 1.02rem 1.1rem 1.15rem; }
  .hero h1, .hero p { max-width: 58%; }
  .hero h1 { font-size: clamp(1.85rem, 5.4vw, 2.85rem); }
  .hero-carrier { margin-bottom: .62rem; font-size: .76rem; }
  .hero-carrier img { width: 6.4rem; }
  .hero p { margin-top: .53rem; font-size: .89rem; line-height: 1.46; }
  .hero-image {
    inset: auto 0 0 auto;
    width: min(47%, 14rem);
    aspect-ratio: 9 / 8;
    overflow: hidden;
  }
  .hero-image img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 134%;
    height: auto;
  }
  .hero-image::after {
    background: linear-gradient(180deg, var(--forest), #10281c82 5%, transparent 11%),
      linear-gradient(90deg, var(--forest), #10281c68 7%, transparent 15%);
  }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: .92rem; }
}

@media (max-width: 21.5rem) {
  .header-channel { max-width: 8.4rem; line-height: 1.17; }
  .hero-carrier img { width: 5.72rem; }
  .fields-inline { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 26rem) {
  .review-actions { display: grid; gap: .1rem; }
}
