/* Importland · Página de links — sistema de diseño Importland (tema oscuro) */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("./fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 900; font-display: swap; src: url("./fonts/montserrat-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("./fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/caveat-latin-600-normal.woff2") format("woff2"); }
:root {
  --bg: #0B0B0C; --bg-subtle: #151517; --surface: #1C1C1E; --line: #2C2C2F;
  --ink: #FFFFFF; --muted: #A1A1A6;
  --violeta: #A68BFF; --violeta-soft: #231A3D; --violeta-ink: #C9B8FF;
  --verde: #4ADE80; --verde-soft: #0F2A1B; --verde-ink: #86EFAC;
  --naranja: #FF8A4C; --amarillo: #FFD34D;
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Caveat", "Bradley Hand", cursive;
  --resorte: cubic-bezier(0.32, 0.72, 0, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body.trabada { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--violeta); outline-offset: 2px; }
svg { flex-shrink: 0; }

.pagina { max-width: 440px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  padding: max(28px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); }

/* ---------- encabezado ---------- */
.cabeza { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.avatar { width: 96px; height: 96px; border-radius: 999px; background: var(--bg-subtle); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.avatar img.logo { width: 76px; height: auto; }
.avatar img.foto { width: 100%; height: 100%; object-fit: cover; }
.cabeza h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; line-height: 1.15; }
.cabeza p { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.resenas { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; min-height: 36px; }
.resenas .estrellas { display: flex; gap: 2px; }
.resenas b { font-weight: 600; }
.resenas span.m { color: var(--muted); }

.botones { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.boton-red { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; background: var(--surface); min-height: 44px; font-size: 12px; font-weight: 600; transition: transform .15s, background .15s; }
.boton-red:active { transform: scale(0.96); background: var(--line); }

.subtitulo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.subtitulo h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.subtitulo span { font-family: var(--script); font-weight: 600; font-size: 22px; color: var(--violeta-ink); white-space: nowrap; }

/* ---------- tarjetas apiladas ---------- */
.pila { display: flex; flex-direction: column; }
.tarjeta { position: relative; display: flex; flex-direction: column; gap: 14px; width: 100%; text-align: left; border: 0; border-radius: 28px; padding: 20px 20px 76px;
  background: var(--c); color: var(--on); box-shadow: 0 -6px 16px rgba(0,0,0,0.35);
  transition: transform .35s var(--resorte); }
.tarjeta + .tarjeta { margin-top: -56px; }
.tarjeta:first-child { box-shadow: none; }
.tarjeta:last-child { padding-bottom: 20px; }
.tarjeta:active { transform: translateY(-4px) scale(0.99); }
.tarjeta .fila { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tarjeta .eti { display: block; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: .85; }
.tarjeta .tit { display: block; margin-top: 4px; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1.08; }
.tarjeta .flecha { width: 48px; height: 48px; border-radius: 999px; background: var(--flecha-bg); color: var(--flecha); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tarjeta .extra { display: none; align-items: center; justify-content: space-between; gap: 8px; border-radius: 999px; padding: 6px 6px 6px 14px; background: var(--extra-bg); }
.tarjeta:last-child .extra { display: flex; }
.tarjeta .extra span { font-size: 13px; opacity: .8; }
.tarjeta .extra b { font-size: 13px; font-weight: 600; background: var(--flecha-bg); color: var(--flecha); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }

.c-violeta { --c: var(--violeta); --on: #0B0B0C; --flecha-bg: #0B0B0C; --flecha: var(--violeta); --extra-bg: rgba(11,11,12,.12); }
.c-verde { --c: var(--verde); --on: #0B0B0C; --flecha-bg: #0B0B0C; --flecha: var(--verde); --extra-bg: rgba(11,11,12,.12); }
.c-naranja { --c: var(--naranja); --on: #0B0B0C; --flecha-bg: #0B0B0C; --flecha: var(--naranja); --extra-bg: rgba(11,11,12,.12); }
.c-amarillo { --c: var(--amarillo); --on: #0B0B0C; --flecha-bg: #0B0B0C; --flecha: var(--amarillo); --extra-bg: rgba(11,11,12,.12); }
.c-gris { --c: #2C2C2F; --on: #FFFFFF; --flecha-bg: #FFFFFF; --flecha: #0B0B0C; --extra-bg: rgba(255,255,255,.08); }
.c-blanco { --c: #FFFFFF; --on: #0B0B0C; --flecha-bg: #0B0B0C; --flecha: #FFFFFF; --extra-bg: #F4F4F5; }

.pie { margin-top: auto; padding-top: 24px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ---------- hoja que sube ---------- */
.hoja-capa { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .3s; z-index: 20; }
.hoja-capa.abierta { opacity: 1; }
.hoja { position: fixed; left: 0; right: 0; bottom: 0; top: max(56px, env(safe-area-inset-top)); z-index: 21; max-width: 440px; margin: 0 auto;
  background: var(--c); color: var(--on); border-radius: 32px 32px 0 0; padding: 8px 8px 0; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .45s var(--resorte); will-change: transform; }
.hoja.abierta { transform: translateY(0); }
.hoja.arrastrando { transition: none; }
.manija { display: flex; justify-content: center; padding: 4px 0 0; touch-action: none; cursor: grab; }
.manija span { width: 40px; height: 4px; border-radius: 999px; background: rgba(11,11,12,.35); }
.hoja-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 14px 18px; touch-action: none; }
.hoja-cab .eti { font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.hoja-cab h2 { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; line-height: 1.08; }
.hoja-cab p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; }
.cerrar { width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--flecha-bg); color: var(--flecha); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hoja-cuerpo { flex: 1; min-height: 0; background: var(--bg-subtle); color: var(--ink); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.hoja-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 20px 16px 16px; display: flex; flex-direction: column; gap: 20px; }
.hoja-pie { padding: 12px 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; background: var(--bg-subtle); }

.paso { display: flex; flex-direction: column; gap: 10px; }
.paso > .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.envolver { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
/* En compu (mouse) no se puede deslizar de costado: los chips bajan de renglón y se ven todos */
@media (hover: hover) and (pointer: fine) {
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}
.chip { flex-shrink: 0; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.chip[aria-pressed="true"] { background: var(--acento); border-color: var(--acento); color: #0B0B0C; font-weight: 700; }
.hoja.c-violeta { --acento: var(--violeta); --acento-soft: var(--violeta-soft); --acento-ink: var(--violeta-ink); }
.hoja.c-verde { --acento: var(--verde); --acento-soft: var(--verde-soft); --acento-ink: var(--verde-ink); }
.hoja.c-naranja { --acento: var(--naranja); --acento-soft: #2E1A10; --acento-ink: #FDBA8C; }
.hoja.c-amarillo { --acento: var(--amarillo); --acento-soft: #2B2410; --acento-ink: #FDE68A; }

.servicio { display: flex; flex-direction: column; gap: 8px; }
.desplegar { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); }
.desplegar .txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.desplegar .nom { font-size: 15px; font-weight: 600; }
.desplegar .det { font-size: 12px; color: var(--muted); line-height: 1.4; }
.desplegar.con-sel { border-color: var(--acento); background: var(--acento-soft); }
.desplegar.con-sel .det { color: var(--acento-ink); }
.desplegar .chev { color: var(--muted); transition: transform .25s var(--resorte); display: flex; }
.servicio.abierto .desplegar .chev { transform: rotate(180deg); }
.servicio.abierto .opcion { margin-left: 12px; width: calc(100% - 12px); }
.servicio h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.servicio h3 small { font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--muted); }
.opcion { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); transition: background .15s, border-color .15s; }
.opcion[aria-pressed="true"] { background: var(--acento-soft); border-color: var(--acento); }
.opcion .tilde { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #0B0B0C; }
.opcion[aria-pressed="true"] .tilde { background: var(--acento); border-color: var(--acento); }
.opcion .txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.opcion .nom { font-size: 15px; font-weight: 600; }
.opcion .det { font-size: 12px; color: var(--muted); line-height: 1.4; }
.opcion[aria-pressed="true"] .det { color: var(--acento-ink); }
.opcion .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.tag { font-size: 10.5px; font-weight: 600; padding: 3px 7px; white-space: nowrap; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--ink); }
.opcion .precio, .precios-total { text-align: right; display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.opcion .precio small.lbl, .precios-total small.lbl { font-size: 10.5px; font-weight: 500; color: var(--muted); white-space: nowrap; line-height: 1.3; }
.opcion .precio b + small.lbl, .precios-total b + small.lbl { margin-top: 5px; }
.opcion .precio b.b2 { font-size: 13px; font-weight: 700; }
.opcion .precio b.en-tarjeta, .precios-total b.en-tarjeta { color: var(--acento-ink); }
.precios-total b { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.01em; line-height: 1.1; }
.precios-total b.b2 { font-size: 17px; }
.opcion .precio b { font-family: var(--display); font-weight: 800; font-size: 15px; white-space: nowrap; }
.opcion .precio small { font-size: 11px; color: var(--muted); white-space: nowrap; }

.total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 4px; }
.total span { font-size: 14px; color: var(--muted); }
.total b { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.01em; }
.total small { display: block; text-align: right; font-size: 12px; color: var(--muted); margin-top: 2px; }
.cta { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 999px; background: #FFFFFF; color: #0B0B0C; font-size: 16px; font-weight: 600; border: 0; width: 100%; transition: transform .15s; }
.cta:active { transform: scale(0.98); }
.nota { margin: 0; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.4; }

.vacio { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.buscar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.buscar input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 16px var(--sans); outline: none; }
.buscar input::placeholder { color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); }
.seg button { height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--acento); color: #0B0B0C; font-weight: 700; }
.equipo { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 20px; background: var(--surface); }
.equipo .img { width: 64px; height: 76px; border-radius: 14px; background: #0B0B0C; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; color: #5E5E64; }
.equipo .img img { width: 100%; height: 100%; object-fit: contain; }
.equipo .txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.equipo h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.25; }
.equipo .det { font-size: 12px; color: var(--acento-ink); }
.equipo .pr { font-family: var(--display); font-weight: 800; font-size: 17px; }
.equipo .ars { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.equipo .ars .nw { white-space: nowrap; }
.equipo .ars b { color: var(--ink); font-weight: 600; }
.equipo .pr small { font-family: var(--sans); font-weight: 500; font-size: 11px; color: var(--muted); }
.equipo .wa { width: 44px; height: 44px; border-radius: 999px; background: var(--acento-soft); color: var(--acento); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mas { align-self: center; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; }

/* ---------- carga ---------- */
.cargando { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sk { background: var(--surface); border-radius: 14px; animation: titila 1.2s ease-in-out infinite alternate; }
.sk-foto { width: 96px; height: 96px; border-radius: 999px; }
.sk-linea { width: 160px; height: 18px; }
.sk-linea.corta { width: 110px; }
.sk-tarjeta { width: 100%; height: 110px; border-radius: 28px; margin-top: 4px; }
.cargando .sk-tarjeta:first-of-type { margin-top: 36px; }
.spinner { width: 22px; height: 22px; border-radius: 999px; border: 2.5px solid var(--line); border-top-color: var(--acento, #fff); animation: gira .8s linear infinite; }
@keyframes titila { from { opacity: .45; } to { opacity: 1; } }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- entrada ---------- */
.entra { animation: entra .6s var(--resorte) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes entra { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (min-width: 600px) {
  .pagina { padding-top: 56px; }
  .hoja { bottom: 24px; top: 48px; border-radius: 32px; }
  .hoja-cuerpo { border-radius: 26px; margin-bottom: 8px; }
}
