/* Páginas de destino (envios.php). Usa los tokens y componentes de site.css; los botones son los
   mismos del resto del sitio (.btn .btn-verde / .btn-claro / .btn-borde, tamaño normal). */

.dst-hero h1, .dst-sec h2, .dst-sec .sub-sec, .dst-copete, .dst-cierre h2, .dst-cierre p { text-wrap: balance; }

/* ---------- Hero: texto + ilustración ---------- */
.dst-hero { padding: 32px 0 80px; background: radial-gradient(60% 90% at 90% 0%, rgba(12, 157, 217, .32), transparent 65%), radial-gradient(50% 80% at 0% 100%, rgba(21, 156, 70, .3), transparent 65%), #0B1030; }
.dst-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 20px 20px; }
@media (min-width: 1024px) { .dst-hero { padding: 44px 0 96px; } }
.dst-hero-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .dst-hero-in { grid-template-columns: 1fr 1.05fr; gap: 48px; } }
.dst-hero-txt { text-align: center; }
@media (min-width: 1024px) { .dst-hero-txt { text-align: left; } .dst-hero .migas { justify-content: flex-start; } }
.dst-hero h1 { margin-bottom: 14px; font-size: 2.3rem; line-height: .95; }
.dst-hero h1 .acento-grad { display: block; font-size: 1.3em; line-height: .95; }
@media (min-width: 768px) { .dst-hero h1 { font-size: 3rem; } }
@media (min-width: 1280px) { .dst-hero h1 { font-size: 3.4rem; } }
.dst-copete { max-width: 34rem; margin: 0 auto 16px; color: rgba(255, 255, 255, .8); font-size: .9375rem; line-height: 1.6; }
@media (min-width: 768px) { .dst-copete { font-size: 1.0625rem; } }
@media (min-width: 1024px) { .dst-copete { margin-left: 0; } }
.dst-hero-suc { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 0 0 22px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); font-size: var(--t-sm); color: rgba(255, 255, 255, .8); text-decoration: none; text-align: left; transition: border-color .2s, background-color .2s; }
.dst-hero-suc:hover { color: #fff; border-color: var(--verde-luz); background: rgba(255, 255, 255, .1); }
.dst-hero-suc b { display: block; color: #fff; line-height: 1.3; }
.dst-hero-suc small { display: block; font-size: var(--t-xs); line-height: 1.3; color: rgba(255, 255, 255, .7); }
.dst-hero-suc .ic { flex: none; width: 18px; height: 18px; color: var(--verde-luz); }
.dst-hero-btns { justify-content: center; }
@media (min-width: 1024px) { .dst-hero-btns { justify-content: flex-start; } }
@media (max-width: 479px) { .dst-hero-btns .btn { flex: 1 1 100%; } }

.dst-hero-graf { position: relative; width: 100%; max-width: 560px; margin: 0 auto; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .12); background: linear-gradient(180deg, rgba(0, 40, 85, .5), rgba(0, 20, 42, .75)); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); }
@media (min-width: 1024px) { .dst-hero-graf { margin: 0 0 0 auto; } }
.gd { width: 100%; height: auto; border-radius: 28px; }
.gd-linea { stroke: rgba(255, 255, 255, .4); stroke-width: 3; stroke-dasharray: 26 18; animation: gd-ruta .6s linear infinite; }
@keyframes gd-ruta { to { stroke-dashoffset: 44; } }
.gd-ciudad { animation: gd-ciudad 16s linear infinite; }
@keyframes gd-ciudad { to { transform: translateX(-520px); } }
.gd-camion { animation: gd-traqueteo .45s ease-in-out infinite alternate; }
@keyframes gd-traqueteo { to { transform: translateY(-1.2px); } }
.gd-rueda { transform-box: fill-box; transform-origin: center; animation: giro .6s linear infinite; }
.gd-viento line { stroke: rgba(92, 203, 245, .7); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 40 60; animation: gd-viento 1s linear infinite; }
.gd-viento line:nth-child(2) { animation-delay: -.35s; } .gd-viento line:nth-child(3) { animation-delay: -.7s; }
@keyframes gd-viento { from { stroke-dashoffset: 100; opacity: 0; } 30% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 0; } }
.dst-flota { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 14px; background: #fff; box-shadow: var(--sombra-3); font-size: var(--t-xs); font-weight: 600; color: var(--tx-2); white-space: nowrap; animation: dst-flota 4s ease-in-out infinite; }
.dst-flota b { font: italic 800 1.25rem/1 var(--f-titulo); color: #002855; }
.dst-flota .ic { width: 18px; height: 18px; color: var(--verde); }
/* Las dos tarjetas van arriba, sobre el cielo de la ilustración (nunca tapan el camión). */
.dst-flota-1 { left: -12px; top: 16px; }
.dst-flota-2 { right: -12px; top: 16px; animation-delay: -2s; }
.dst-flota-2 .ic { color: var(--cian); }
@media (max-width: 1100px) { .dst-flota-1 { left: 10px; top: 10px; } .dst-flota-2 { right: 10px; top: 10px; } }
@media (max-width: 559px) { .dst-flota { gap: 5px; font-size: 10.5px; padding: 5px 9px; border-radius: 10px; } .dst-flota b { font-size: 1rem; } .dst-flota .ic { width: 15px; height: 15px; } }
@keyframes dst-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Cifras sobre el borde del hero ---------- */
.dst-cifras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; padding: 10px; list-style: none; background: #fff; border: 1px solid var(--borde); border-radius: 24px; box-shadow: var(--sombra-3); }
@media (min-width: 768px) { .dst-cifras { grid-template-columns: repeat(4, 1fr); padding: 12px; } }
.dst-cifras li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: var(--t-b); }
.dst-cifra-ic { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--t-f); box-shadow: var(--sombra-1); }
.dst-cifra-ic .ic { width: 20px; height: 20px; }
.dst-cifras b { font: italic 800 1.9rem/1 var(--f-titulo); color: var(--t-c, #002855); }
.dst-cifras li > span:last-child { font-size: 11px; font-weight: 700; line-height: 1.25; color: var(--tx-2); text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Secciones ---------- */
.dst-sec { padding: 40px 0; }
@media (min-width: 1024px) { .dst-sec { padding: 56px 0; } }
.dst-sec-gris { background: #fff; border-block: 1px solid #F1F3F7; }
.dst-sec .cabecera-sec { margin-bottom: 24px; }
.dst-sec .cabecera-sec .t-sec { color: #002855; margin-bottom: 8px; }
.dst-sec .t-sec { font-size: 2rem; }
@media (min-width: 768px) { .dst-sec .t-sec { font-size: 2.6rem; } }

/* ---------- Cómo viaja tu carga: ruta con paradas y camión ---------- */
.dst-ruta { position: relative; padding: 24px 20px; border-radius: 28px; color: #fff; background: radial-gradient(40rem 20rem at 0 0, rgba(6, 182, 212, .2), transparent 70%), radial-gradient(40rem 20rem at 100% 100%, rgba(21, 156, 70, .25), transparent 70%), #0B1030; box-shadow: var(--sombra-3); overflow: hidden; }
.dst-ruta-via { position: absolute; left: 33px; top: 24px; bottom: 24px; width: 44px; border-radius: 22px; background: #1B2150 linear-gradient(180deg, rgba(255, 255, 255, .55) 50%, transparent 50%) center / 3px 22px repeat-y; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.dst-ruta-camion { position: absolute; left: 50%; top: 0; display: grid; place-content: center; width: 34px; height: 34px; margin-left: -17px; border-radius: 10px; background: var(--verde-luz); color: #0B1030; box-shadow: 0 0 0 6px rgba(59, 214, 116, .2), 0 8px 18px -6px rgba(59, 214, 116, .8); animation: dst-camion-v 7s ease-in-out infinite; }
.dst-ruta-camion .ic { width: 20px; height: 20px; transform: rotate(90deg); }
@keyframes dst-camion-v { 0% { top: 0; } 92%, 100% { top: calc(100% - 34px); } }
.dst-ruta-paradas { position: relative; z-index: 1; display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.dst-ruta-paradas li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: center; }
.dst-parada-ic { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 50%; background: #fff; color: #002855; border: 5px solid #0B1030; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.dst-parada-ic .ic { width: 28px; height: 28px; }
.dst-parada-ic i { position: absolute; top: -4px; right: -4px; display: grid; place-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--verde); color: #fff; font: italic 800 13px/1 var(--f-titulo); }
.dst-ruta-paradas li:last-child .dst-parada-ic { background: var(--verde); color: #fff; }
.dst-ruta-paradas li:last-child .dst-parada-ic i { background: #fff; color: var(--verde-2); }
.dst-ruta h3 { margin: 0 0 4px; font: italic 800 1.45rem/1 var(--f-titulo); text-transform: uppercase; color: #fff; }
.dst-ruta p { margin: 0; font-size: var(--t-sm); line-height: 1.5; color: rgba(255, 255, 255, .72); }
@media (min-width: 900px) {
  .dst-ruta { padding: 28px 28px 32px; }
  .dst-ruta-via { left: 28px; right: 28px; top: 41px; bottom: auto; width: auto; height: 44px; background: #1B2150 linear-gradient(90deg, rgba(255, 255, 255, .55) 50%, transparent 50%) center / 22px 3px repeat-x; }
  .dst-ruta-camion { left: 0; top: 50%; margin: -17px 0 0; animation-name: dst-camion-h; }
  .dst-ruta-camion .ic { transform: none; }
  @keyframes dst-camion-h { 0% { left: 0; } 92%, 100% { left: calc(100% - 34px); } }
  .dst-ruta-paradas { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .dst-ruta-paradas li { grid-template-columns: 1fr; gap: 14px; justify-items: center; align-items: start; text-align: center; }
  .dst-parada-ic { width: 78px; height: 78px; }
  .dst-parada-ic .ic { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .gd-ciudad, .gd-camion, .gd-rueda, .gd-linea, .gd-viento line, .dst-flota, .dst-ruta-camion { animation: none !important; } }

/* ---------- Localidades: buscador + acordeón por zona ---------- */
.dst-cob { max-width: 920px; margin: 0 auto; padding: 16px; border-radius: 28px; background: var(--fondo); border: 1px solid var(--borde); }
@media (min-width: 768px) { .dst-cob { padding: 24px; } }
.dst-buscar { position: relative; }
.dst-buscar > .ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--verde); pointer-events: none; }
.dst-buscar .control { min-height: 54px; padding-left: 50px; border-radius: 14px; border-color: var(--borde); box-shadow: var(--sombra-1); font-weight: 600; }
.dst-buscar .control:focus { border-color: var(--verde); outline: none; box-shadow: 0 0 0 4px rgba(21, 156, 70, .15); }
.dst-buscar-res { min-height: 1.3em; margin: 8px 4px; font-size: var(--t-sm); font-weight: 700; color: var(--verde-2); }
.dst-zonas { display: grid; gap: 10px; }
.dst-zona { border-radius: 18px; background: #fff; border: 1px solid var(--borde); box-shadow: var(--sombra-1); overflow: hidden; }
.dst-zona summary { display: flex; align-items: center; gap: 14px; padding: 12px 14px; cursor: pointer; list-style: none; }
.dst-zona summary::-webkit-details-marker { display: none; }
.dst-zona summary:hover { background: #FAFBFD; }
.dst-zona-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(145deg, var(--verde), #0E7A35); color: #fff; }
.dst-zona:nth-child(2n) .dst-zona-ic { background: linear-gradient(145deg, var(--cian), #0A6E99); }
.dst-zona-ic .ic { width: 22px; height: 22px; }
.dst-zona-nom { display: flex; flex-direction: column; min-width: 0; }
.dst-zona-nom b { font: italic 800 1.4rem/1.05 var(--f-titulo); text-transform: uppercase; color: #002855; }
.dst-zona-nom small { margin-top: 3px; font-size: var(--t-xs); font-weight: 700; color: var(--tx-3); }
.dst-zona-fl { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--fondo-2); color: #002855; transition: transform .3s var(--curva), background-color .2s; }
.dst-zona[open] .dst-zona-fl { transform: rotate(180deg); background: #E4F6EA; color: var(--verde-2); }
.dst-locs { columns: 2; column-gap: 20px; margin: 0; padding: 4px 16px 16px; list-style: none; border-top: 1px solid #F1F3F7; }
@media (min-width: 640px) { .dst-locs { columns: 3; } }
@media (min-width: 900px) { .dst-locs { columns: 4; } }
.dst-locs li { display: flex; align-items: flex-start; gap: 7px; padding: 8px 0; border-bottom: 1px dashed var(--borde); break-inside: avoid; font-size: var(--t-sm); font-weight: 600; line-height: 1.3; color: var(--azul-2); }
.dst-locs .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--verde); stroke-width: 3; }
.dst-locs li.dst-hit { color: var(--verde-2); }
.dst-locs li.dst-hit .ic { color: #fff; background: var(--verde); border-radius: 50%; padding: 2px; }
.dst-nada { margin-top: 12px; }
.dst-cob-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 16px 20px; border-radius: 18px; background: linear-gradient(135deg, #002855, #0B1030); color: rgba(255, 255, 255, .8); }
.dst-cob-cta p { margin: 0; font-size: var(--t-sm); }
.dst-cob-cta b { color: #fff; font-size: var(--t-base); }
@media (max-width: 559px) { .dst-cob-cta { flex-direction: column; align-items: stretch; text-align: center; } .dst-cob-cta .grupo-btns .btn { flex: 1 1 100%; } }
.dst-cob-pie { margin: 14px 0 0; text-align: center; font-size: var(--t-sm); font-weight: 700; }
.dst-cob-pie a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

/* ---------- Servicios ---------- */
.dst-servs { display: grid; gap: 12px; }
@media (min-width: 640px) { .dst-servs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dst-servs { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.dst-serv { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 20px; border-radius: 22px; background: linear-gradient(160deg, var(--t-b), #fff 58%); border: 1px solid var(--t-borde, var(--borde)); box-shadow: var(--sombra-1); text-decoration: none; color: var(--tx); overflow: hidden; transition: transform .25s var(--curva), box-shadow .25s; }
.dst-serv::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--t-f); opacity: .07; transition: transform .4s var(--curva); }
.dst-serv:hover { transform: translateY(-4px); box-shadow: 0 25px 50px -20px rgba(21, 25, 53, .25); color: var(--tx); }
.dst-serv:hover::after { transform: scale(1.5); }
.dst-serv-ic { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin-bottom: 12px; border-radius: 15px; background: var(--t-f); color: #fff; box-shadow: 0 12px 22px -10px var(--t-f); }
.dst-serv-ic .ic { width: 24px; height: 24px; }
.dst-serv b { font: italic 800 1.4rem/1 var(--f-titulo); text-transform: uppercase; color: #002855; }
.dst-serv small { margin: 6px 0 12px; font-size: var(--t-sm); font-weight: 500; line-height: 1.45; color: var(--tx-2); }
.dst-serv-mas { margin-top: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 800; color: var(--t-f); }
.dst-serv-mas .ic { width: 15px; height: 15px; transition: transform .2s var(--curva); }
.dst-serv:hover .dst-serv-mas .ic { transform: translateX(3px); }

/* ---------- Sucursal ---------- */
.dst-suc { display: grid; overflow: hidden; border-radius: 28px; background: #fff; border: 1px solid var(--borde); box-shadow: var(--sombra-2); }
@media (min-width: 900px) { .dst-suc { grid-template-columns: 160px 1.3fr 1fr; align-items: stretch; } }
.dst-suc-vis { position: relative; display: grid; place-content: center; min-height: 120px; overflow: hidden; background: radial-gradient(circle at 50% 50%, rgba(59, 214, 116, .35), transparent 60%), linear-gradient(160deg, #002855, #0B1030); }
.dst-suc-vis::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; }
.dst-suc-pin { position: relative; display: grid; place-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--verde); color: #fff; box-shadow: 0 0 0 10px rgba(21, 156, 70, .25), 0 0 0 22px rgba(21, 156, 70, .12); }
.dst-suc-pin .ic { width: 28px; height: 28px; }
.dst-suc-txt { padding: 22px 22px 6px; }
@media (min-width: 900px) { .dst-suc-txt { padding: 28px; } }
.dst-suc h2 { margin: 0 0 6px; font-size: 1.9rem; line-height: 1; color: #002855; text-wrap: balance; }
.dst-suc-nota { margin: 0 0 12px; font-size: var(--t-sm); font-weight: 700; color: var(--verde-2); }
.dst-suc-datos { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; font-size: var(--t-sm); color: var(--tx-2); }
.dst-suc-datos li { display: flex; gap: 10px; align-items: flex-start; }
.dst-suc-datos .ic { margin-top: 2px; color: var(--verde); }
.dst-suc-datos b { color: #002855; }
.dst-suc-btns { display: grid; gap: 10px; align-content: center; padding: 16px 22px 22px; }
@media (min-width: 900px) { .dst-suc-btns { padding: 28px 28px 28px 0; } }

.dst-faq { margin-top: 0; }

/* ---------- Cierre (llamado a la acción final) ---------- */
.dst-cierre { display: grid; gap: 20px; align-items: center; padding: 28px 22px; border-radius: 32px; text-align: center; color: #fff; background: radial-gradient(40rem 30rem at 0 0, rgba(6, 182, 212, .28), transparent 70%), radial-gradient(40rem 30rem at 100% 100%, rgba(21, 156, 70, .35), transparent 70%), #0B1030; box-shadow: var(--sombra-3); }
@media (min-width: 1024px) { .dst-cierre { grid-template-columns: 1.4fr 1fr; padding: 44px 48px; text-align: left; } }
.dst-cierre h2 { margin: 0 0 10px; font-size: 2rem; line-height: .95; color: #fff; }
@media (min-width: 768px) { .dst-cierre h2 { font-size: 2.6rem; } }
.dst-cierre h2 .acento-grad { display: block; }
.dst-cierre p { margin: 0; color: rgba(255, 255, 255, .78); font-weight: 500; }
.dst-cierre-btns { justify-content: center; }
@media (min-width: 1024px) { .dst-cierre-btns { justify-content: flex-end; } }
@media (max-width: 479px) { .dst-cierre-btns .btn { flex: 1 1 100%; } }

/* Red: el título puede ser largo */
.dst-red .red-l2 { white-space: normal; }

/* ---------- Otras sucursales (enlaces internos) ---------- */
.dst-otros { margin-top: 32px; }
.dst-otros-tit { margin: 0 0 12px; text-align: center; font: 700 var(--t-xs)/1.3 var(--f-texto); letter-spacing: .12em; text-transform: uppercase; color: var(--tx-3); }
.dst-otros ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dst-otros a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--borde); font-size: var(--t-sm); font-weight: 700; color: #002855; text-decoration: none; transition: border-color .2s, color .2s; }
.dst-otros a:hover { border-color: var(--verde); color: var(--verde-2); }
.dst-otros .ic { width: 15px; height: 15px; color: var(--verde); }

/* ---------- Barra fija de conversión (celular) ---------- */
.dst-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--borde); box-shadow: 0 -10px 30px -12px rgba(21, 25, 53, .25); backdrop-filter: blur(8px); transform: translateY(110%); transition: transform .35s var(--curva); }
.dst-barra.visible { transform: none; }
.dst-barra .btn-verde { flex: 1; }
.dst-barra .btn-borde { color: var(--verde); padding-inline: 16px; }
@media (min-width: 768px) { .dst-barra { display: none !important; } }
@media (max-width: 767px) { body:has(.dst-barra) .fab-wa { display: none; } }
