/* Encargo: portal público (ruta /). Todo va bajo .portal: no afecta al login ni a la app.
 * Concepto: cada pedido es un pase de abordar. Bloques planos de color, tipografía grande. */

@font-face {
  font-family: "Outfit Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../vendor/outfit-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Outfit Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../vendor/outfit-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../vendor/work-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Work Sans Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../vendor/work-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.portal {
  --tinta: #17122b;
  --tinta-2: #2a2342;
  --papel: #f6f2e9;
  --blanco: #ffffff;
  --violeta: #5a22d6;
  --violeta-osc: #4416ad;
  --lila: #e6dcff;
  --lima: #c6f24c;
  --lima-osc: #b1dd33;
  --menta: #d6f6e0;
  --ambar: #ffc247;
  --crema: #ffefc9;
  --coral: #ff7a59;
  --durazno: #ffe2d9;
  --celeste: #cfeaff;
  --gris: #57526b;
  --linea: rgba(23, 18, 43, .14);
  --radio-g: 28px;
  --radio-m: 20px;
  --titulos: "Outfit Variable", system-ui, sans-serif;
  --muesca: var(--papel);
  background: var(--papel);
  color: var(--tinta);
  font-family: "Work Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: clip;
}
.portal h1, .portal h2, .portal h3 { font-family: var(--titulos); color: inherit; letter-spacing: -.025em; margin: 0; }
.portal p { margin: 0; }
.portal ul, .portal ol { list-style: none; margin: 0; padding: 0; }
.portal :focus-visible { outline: 3px solid var(--violeta); outline-offset: 3px; }
.p-oscuro :focus-visible, .p-hero :focus-visible, .p-final :focus-visible { outline-color: var(--lima); }
.p-ancho { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Botones */
.p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .6rem 1.35rem; border: 2px solid transparent; border-radius: 999px;
  font-family: var(--titulos); font-weight: 600; font-size: 1rem; line-height: 1.1; cursor: pointer;
  background: transparent; color: inherit; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.p-btn:active { transform: scale(.97); }
.p-btn-lima { background: var(--lima); color: var(--tinta); }
.p-btn-lima:hover { background: var(--lima-osc); color: var(--tinta); }
.p-btn-tinta { background: var(--tinta); color: #fff; }
.p-btn-tinta:hover { background: var(--violeta); color: #fff; }
.p-btn-violeta { background: var(--violeta); color: #fff; }
.p-btn-violeta:hover { background: var(--violeta-osc); color: #fff; }
.p-btn-borde { border-color: currentColor; color: inherit; }
.p-btn-borde:hover { background: rgba(255, 255, 255, .14); color: inherit; }
.p-btn-grande { min-height: 56px; padding: .75rem 1.75rem; font-size: 1.08rem; }
.p-btn .bi-arrow-right { transition: transform .18s ease; }
.p-btn:hover .bi-arrow-right { transform: translateX(3px); }

/* Navegación */
.p-nav { position: sticky; top: 0; z-index: 30; background: var(--violeta); color: #fff; }
.p-nav .p-ancho { display: flex; align-items: center; gap: .5rem; min-height: 68px; }
.p-marca { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-family: var(--titulos); font-weight: 700; font-size: 1.35rem; letter-spacing: -.03em; color: #fff; }
.p-marca:hover { color: #fff; }
.p-marca i { width: 34px; height: 34px; border-radius: 11px; background: var(--lima); color: var(--tinta); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; transform: rotate(45deg); }
.p-nav-enlaces { display: none; margin-left: 1.75rem; gap: .25rem; }
.p-enlace { min-height: 44px; padding: .4rem .85rem; border: 0; border-radius: 999px; background: transparent; color: #fff; font-weight: 500; cursor: pointer; transition: background-color .18s ease; }
.p-enlace:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.p-nav-acciones { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.p-nav-acciones .p-btn { min-height: 44px; padding: .45rem 1rem; font-size: .95rem; }
.p-nav-acciones .p-enlace { display: inline-flex; align-items: center; padding: .4rem .7rem; }

/* Hero */
.p-hero { position: relative; background: var(--violeta); color: #fff; --muesca: var(--violeta); padding: 1.5rem 0 3.5rem; overflow: hidden; }
.p-hero::before { content: ""; position: absolute; right: -180px; top: -140px; width: 560px; height: 560px; border-radius: 50%; background: var(--violeta-osc); }
.p-hero .p-ancho { position: relative; display: grid; gap: 2.75rem; }
.p-sello { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; background: var(--tinta); color: var(--lima); font-size: .82rem; font-weight: 600; }
.p-hero h1 { margin: 1.1rem 0; font-size: clamp(2.7rem, 11.5vw, 5.4rem); line-height: .98; font-weight: 700; letter-spacing: -.04em; }
.p-hero h1 em { font-style: normal; color: var(--lima); }
.p-hero-sub { max-width: 34rem; font-size: 1.12rem; line-height: 1.55; color: #f0eaff; }
.p-hero-botones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.p-hero-botones .p-btn { flex: 1 1 auto; }

/* Pase de abordar */
.p-boleto { position: relative; max-width: 440px; width: 100%; margin: 0 auto; background: var(--blanco); color: var(--tinta); border-radius: var(--radio-g); }
.p-hero .p-boleto { transform: rotate(-2.5deg); }
.p-boleto-cab { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: 1.2rem 1.4rem .4rem; font-size: .8rem; font-weight: 600; color: var(--gris); }
.p-estado { padding: .2rem .7rem; border-radius: 999px; background: var(--ambar); color: var(--tinta); font-weight: 700; font-size: .78rem; white-space: nowrap; }
.p-ruta { display: flex; align-items: center; gap: .85rem; padding: .35rem 1.4rem .9rem; }
.p-ruta-punto b { display: block; font-family: var(--titulos); font-size: clamp(2.3rem, 10vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.p-ruta-punto small { color: var(--gris); font-size: .85rem; }
.p-ruta-punto:last-child { text-align: right; }
.p-ruta-linea { position: relative; flex: 1; min-width: 40px; height: 0; border-top: 2px dashed var(--linea); }
.p-ruta-linea i { position: absolute; top: -13px; left: 0; color: var(--violeta); font-size: 1.3rem; transform: rotate(90deg); animation: p-vuelo 5s ease-in-out infinite alternate; }
@keyframes p-vuelo { from { left: 4%; } to { left: calc(96% - 20px); } }
.p-boleto-datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; padding: 0 1.4rem 1.2rem; }
.p-dato small { display: block; color: var(--gris); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.p-dato strong { display: block; font-size: .98rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.p-boleto-corte { position: relative; border-top: 2px dashed var(--linea); margin: 0 16px; }
.p-boleto-corte::before, .p-boleto-corte::after { content: ""; position: absolute; top: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--muesca); }
.p-boleto-corte::before { left: -29px; }
.p-boleto-corte::after { right: -29px; }
.p-boleto-pie { padding: 1rem 1.4rem 1.3rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .75rem; }
.p-boleto-pie small { display: block; margin-bottom: .35rem; color: var(--gris); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.p-retenido { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: var(--menta); color: #0d5a2e; font-size: .8rem; font-weight: 700; }

/* Tablero de aeropuerto */
.p-flap { display: inline-flex; gap: 3px; font-family: var(--titulos); font-variant-numeric: tabular-nums; }
.p-flap span { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 1.45em; height: 1.85em; border-radius: 6px; background: var(--tinta); color: var(--lima); font-size: 1.25rem; font-weight: 700; }
.p-flap span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, .28); }
.p-flap span:nth-child(3) { margin-right: .35em; }

/* Franja */
.p-franja { background: var(--lima); color: var(--tinta); overflow: hidden; border-block: 2px solid var(--tinta); }
.p-franja-pista { display: flex; width: max-content; animation: p-franja 38s linear infinite; }
.p-franja ul { display: flex; flex: none; }
.p-franja li { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.5rem; font-family: var(--titulos); font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
@keyframes p-franja { to { transform: translateX(-50%); } }

/* Secciones */
.p-seccion { padding: 4rem 0; }
.p-cabecera { max-width: 46rem; margin-bottom: 2.25rem; }
.p-antetitulo { display: block; margin-bottom: .6rem; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violeta); }
.p-oscuro .p-antetitulo { color: var(--lima); }
.p-cabecera h2 { font-size: clamp(2.1rem, 7vw, 3.6rem); line-height: 1.02; font-weight: 700; }
.p-cabecera p { margin-top: .85rem; font-size: 1.08rem; color: var(--gris); }
.p-oscuro .p-cabecera p { color: #d8d3e8; }
.p-ejemplo { display: inline-flex; align-items: center; padding: .12rem .6rem; border-radius: 999px; background: var(--ambar); color: var(--tinta); font-size: .76rem; font-weight: 700; }

/* Dos caminos */
.p-caminos { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.p-camino { display: flex; flex-direction: column; align-items: flex-start; min-height: 420px; padding: 1.75rem; border-radius: var(--radio-g); }
.p-camino-pedir { background: var(--tinta); color: #fff; }
.p-camino-viajar { background: var(--coral); color: var(--tinta); }
.p-camino > i { font-size: 2.5rem; line-height: 1; }
.p-camino-pedir > i { color: var(--lima); }
.p-camino h3 { margin: 1.25rem 0 .6rem; font-size: clamp(2.2rem, 8vw, 3.1rem); line-height: 1; font-weight: 700; }
.p-camino p { font-size: 1.08rem; }
.p-camino ul { display: grid; gap: .6rem; margin: 1.25rem 0 1.75rem; }
.p-camino li { display: flex; gap: .6rem; font-weight: 500; }
.p-camino li i { flex: none; }
.p-camino-pedir li i { color: var(--lima); }
.p-camino .p-btn { margin-top: auto; }

/* Cómo funciona: escalas de un vuelo */
.p-escalas { position: relative; display: grid; gap: 1.75rem; }
.p-escalas::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; border-left: 3px dashed var(--linea); }
.p-escala { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1rem; }
.p-escala-num { width: 56px; height: 56px; border-radius: 50%; background: var(--violeta); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--titulos); font-size: 1.4rem; font-weight: 700; }
.p-escala:last-child .p-escala-num { background: var(--lima); color: var(--tinta); }
.p-escala h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: .3rem; }
.p-escala p { color: var(--gris); }

.p-entregas { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin-top: 3rem; }
.p-entrega { background: var(--blanco); border-radius: var(--radio-g); overflow: hidden; }
.p-entrega-cab { display: flex; align-items: center; gap: .75rem; padding: 1.25rem 1.5rem; background: var(--lila); }
.p-entrega:last-child .p-entrega-cab { background: var(--crema); }
.p-entrega-cab i { font-size: 1.5rem; }
.p-entrega-cab h3 { font-size: 1.45rem; font-weight: 700; }
.p-entrega ol { padding: 1.25rem 1.5rem 1.5rem; display: grid; gap: .7rem; }
.p-entrega li { display: flex; gap: .65rem; align-items: flex-start; }
.p-entrega li i { flex: none; color: var(--violeta); margin-top: .1rem; }

/* Vitrina */
.p-vitrina-seccion { background: var(--blanco); --muesca: var(--blanco); }
.p-vitrina { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.p-pedido { display: flex; flex-direction: column; min-width: 0; border-radius: var(--radio-m); background: var(--tono); color: var(--tinta); transition: transform .18s ease; }
.p-pedido:hover { transform: translateY(-3px); }
.p-pedido-arriba { flex: 1; padding: 1.2rem 1.25rem 1rem; }
.p-pedido-cat { display: flex; align-items: center; gap: .5rem; font-size: .84rem; font-weight: 600; }
.p-pedido-cat i { font-size: 1.15rem; }
.p-pedido h3 { margin-top: .85rem; font-size: 1.3rem; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; }
.p-pedido .p-boleto-corte { border-top-color: rgba(23, 18, 43, .28); margin: 0 12px; }
.p-pedido .p-boleto-corte::before { left: -25px; }
.p-pedido .p-boleto-corte::after { right: -25px; }
.p-pedido-abajo { display: flex; justify-content: space-between; gap: .75rem; padding: .85rem 1.25rem 1.1rem; }
.p-pedido-abajo small { display: block; font-size: .74rem; font-weight: 600; }
.p-pedido-abajo strong { font-family: var(--titulos); font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.t-lila { --tono: var(--lila); } .t-lima { --tono: #e7f9ab; } .t-crema { --tono: var(--crema); } .t-durazno { --tono: var(--durazno); } .t-celeste { --tono: var(--celeste); }

/* Confianza */
.p-oscuro { background: var(--tinta); color: #fff; }
.p-bento { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.p-celda { min-width: 0; padding: 1.6rem; border-radius: var(--radio-g); background: var(--tinta-2); }
.p-celda > i { font-size: 2rem; line-height: 1; color: var(--lima); }
.p-celda h3 { margin: .9rem 0 .4rem; font-size: 1.55rem; font-weight: 700; }
.p-celda p { color: #d8d3e8; }
.p-celda-pago { background: var(--lima); color: var(--tinta); }
.p-celda-pago > i { color: var(--tinta); }
.p-celda-pago h3 { font-size: clamp(2rem, 7vw, 2.9rem); line-height: 1.02; }
.p-celda-pago p { color: var(--tinta); font-size: 1.08rem; }
.p-celda .p-flap { margin-top: 1rem; }
.p-celda .p-flap span { background: var(--tinta); }
.p-tablero { margin-top: 1rem; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.p-tablero li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem .8rem; background: var(--tinta); font-size: .92rem; }
.p-tablero li:first-child { border-radius: 10px 10px 0 0; }
.p-tablero li:last-child { border-radius: 0 0 10px 10px; }
.p-tablero i { color: var(--lima); }

/* Testimonios */
.p-voces { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.p-voz { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 1.6rem; border-radius: var(--radio-g); background: var(--blanco); }
.p-voz blockquote { margin: 0; font-family: var(--titulos); font-size: 1.35rem; font-weight: 500; line-height: 1.25; letter-spacing: -.015em; }
.p-voz figcaption { margin-top: auto; color: var(--gris); font-size: .95rem; }
.p-voz figcaption strong { color: var(--tinta); }

/* Preguntas */
.p-preguntas-grid { display: grid; gap: 1.5rem; }
.p-preguntas { border-top: 2px solid var(--tinta); }
.p-pregunta { border-bottom: 2px solid var(--tinta); }
.p-pregunta summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; padding: .75rem 0; list-style: none; cursor: pointer; font-family: var(--titulos); font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.p-pregunta summary::-webkit-details-marker { display: none; }
.p-pregunta summary::after { content: "\f4fe"; flex: none; font-family: "bootstrap-icons"; font-size: 1.4rem; transition: transform .2s ease; }
.p-pregunta[open] summary::after { transform: rotate(45deg); }
.p-pregunta p { padding: 0 2rem 1.25rem 0; color: var(--gris); }

/* Cierre */
.p-final { background: var(--violeta); color: #fff; text-align: center; padding: 4.5rem 0; }
.p-final h2 { font-size: clamp(2.6rem, 10vw, 5rem); line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.p-final p { max-width: 34rem; margin: 1rem auto 0; font-size: 1.1rem; color: #f0eaff; }
.p-final .p-hero-botones { justify-content: center; }
.p-pie { background: var(--tinta); color: #d8d3e8; padding: 2rem 0 2.5rem; font-size: .92rem; }
.p-pie .p-ancho { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; align-items: center; }
.p-pie .p-marca { font-size: 1.15rem; }

/* Entrada suave de las secciones (solo si hay JS y no se pidió reducir movimiento). */
.p-animar .p-revela { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.p-animar .p-revela.visible { opacity: 1; transform: none; }

@media (min-width: 576px) {
  .p-ancho { padding: 0 24px; }
  .p-hero-botones .p-btn { flex: 0 0 auto; }
  .p-vitrina { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-flap span { font-size: 1.45rem; }
}
@media (min-width: 768px) {
  .p-caminos, .p-entregas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-voces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-celda-pago, .p-celda-historial { grid-column: span 2; }
  .p-seccion { padding: 5.5rem 0; }
}
@media (min-width: 992px) {
  .p-nav-enlaces { display: flex; }
  .p-hero { padding: 3.5rem 0 5rem; }
  .p-hero .p-ancho { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 3rem; }
  .p-vitrina { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-escalas { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
  .p-escalas::before { left: 28px; right: 12%; top: 27px; bottom: auto; border-left: 0; border-top: 3px dashed var(--linea); }
  .p-escala { grid-template-columns: minmax(0, 1fr); }
  .p-bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .p-celda-pago { grid-column: span 5; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; }
  .p-celda-verif, .p-celda-codigo { grid-column: span 3; }
  .p-celda-codigo { grid-column: span 4; }
  .p-celda-historial { grid-column: span 7; }
  .p-tablero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-tablero li, .p-tablero li:first-child, .p-tablero li:last-child { border-radius: 8px; }
  .p-preguntas-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; }
  .p-preguntas-grid .p-cabecera { margin-bottom: 0; }
}
@media (min-width: 1200px) {
  .p-vitrina { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .p-vitrina li:nth-child(n+9) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .p-ruta-linea i { left: 46%; }
  .p-franja-pista { width: auto; flex-wrap: wrap; justify-content: center; }
  .p-franja ul[aria-hidden] { display: none; }
  .p-franja ul { flex-wrap: wrap; justify-content: center; }
  .p-animar .p-revela { opacity: 1; transform: none; }
}
