/* =====================================================================
   PUEBLER — Perfil, pasaporte, pasebordo, logros, resumen anual y ajustes.
   A pantalla completa, sin tarjetas flotantes y sin degradados.
   ===================================================================== */

/* ---------- Cabecera del perfil ---------- */
.pf-head { background: var(--puebler-surface); border-bottom: 1px solid var(--puebler-border); }
.pf-cover { height: clamp(150px, 26vh, 240px); background-size: cover; background-position: center; position: relative; background-color: #16253B; }
.pf-cover-shade { position: absolute; inset: 0; background: rgba(22, 37, 59, 0.28); }
.pf-head-body { padding: 0 28px 18px; }
.pf-avatar-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -66px; position: relative; gap: 12px; }
.pf-avatar-wrap .pb-avatar-img { border: 5px solid var(--puebler-surface); box-shadow: var(--puebler-shadow-md); width: clamp(104px, 14vw, 136px) !important; height: clamp(104px, 14vw, 136px) !important; }
.pf-avatar-wrap .pb-rank { right: 6px; bottom: 8px; width: 38px !important; height: 38px !important; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.pf-actions { display: flex; gap: 8px; padding-bottom: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pf-actions .pb-btn-ghost { background: var(--puebler-surface); }
.pf-identity { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; margin-top: 12px; }
.pf-name { font-size: 1.7rem; font-weight: 700; margin: 0 0 2px; letter-spacing: -.4px; }
.pf-handle { color: var(--puebler-text-muted); font-size: .9rem; }
.pf-affil { font-size: .86rem; margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-affil img { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; }
.pf-bio { font-size: .98rem; line-height: 1.55; max-width: 720px; margin: 12px 0; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-side { display: flex; flex-direction: column; gap: 14px; }
.pf-rank { padding: 12px 0 0; border-top: 1px solid var(--puebler-border); font-size: .86rem; }

/* Teaser del pasaporte (libreta) */
.pf-passport-teaser { display: flex; gap: 14px; align-items: center; color: var(--puebler-text); }
.pf-passport-teaser:hover { color: var(--puebler-text); }
.pf-pt-cover {
  --leather: #1B4332;
  width: 74px; height: 100px; border-radius: 4px 10px 10px 4px; flex-shrink: 0; position: relative;
  background-color: var(--leather);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  box-shadow: 0 6px 16px rgba(30, 20, 10, .35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-left: 7px solid rgba(0,0,0,.35); transition: transform .2s ease;
}
.pf-passport-teaser:hover .pf-pt-cover { transform: rotate(-3deg) translateY(-2px); }
.pf-pt-frame { position: absolute; inset: 6px; border: 1px solid rgba(226, 190, 98, .6); border-radius: 2px 6px 6px 2px; }
.pf-pt-name { color: #E2BE62; font-family: var(--font-serif); font-weight: 800; font-size: .52rem; letter-spacing: .08em; text-align: center; padding: 0 6px; position: relative; }
.pf-pt-sub { color: #E2BE62; font-size: .4rem; font-weight: 700; letter-spacing: .12em; position: relative; }
.pf-pt-info { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; }
.pf-pt-info strong { font-family: var(--font-serif); font-size: 1.15rem; }
.pf-pt-open { color: var(--puebler-red); font-weight: 600; font-size: .82rem; }

.pf-stats { display: flex; border-top: 1px solid var(--puebler-border); overflow-x: auto; scrollbar-width: none; }
.pf-stats::-webkit-scrollbar { display: none; }
.pf-stats > * { flex: 1 0 auto; min-width: 112px; padding: 14px 20px; border-right: 1px solid var(--puebler-border); color: var(--puebler-text); display: flex; flex-direction: column; }
.pf-stats > *:last-child { border-right: 0; }
.pf-stats > a:hover { background: var(--puebler-surface-2); color: var(--puebler-text); }
.pf-stats strong { font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.pf-stats span { font-size: .7rem; color: var(--puebler-text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pf-tabs { border-bottom: 0; border-top: 1px solid var(--puebler-border); }

.pf-content { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.pf-content-single { grid-template-columns: minmax(0, 1fr); }
.pf-main { min-width: 0; background: var(--puebler-surface); border-right: 1px solid var(--puebler-border); min-height: 300px; }
.pf-content-single .pf-main { border-right: 0; }
.pf-aside { position: sticky; top: var(--topbar-h); max-height: calc(100dvh - var(--topbar-h)); overflow-y: auto; scrollbar-width: thin; }
.pf-aside-block { padding: 20px 22px; border-bottom: 1px solid var(--puebler-border); }
.pf-aside-block h3 { font-size: .96rem; font-weight: 700; margin-bottom: 12px; }
.pf-playlist { width: 100%; border: 0; border-radius: 12px; height: 152px; }
.pf-subreg { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; margin-top: 8px; }
.pf-subreg-bar { height: 6px; margin-top: 4px; }
.pf-biz { padding: 22px 28px; border-bottom: 1px solid var(--puebler-border); }
.pf-biz-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; }
.pf-services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; font-size: .9rem; }
.pf-services i { color: var(--puebler-green); margin-right: 6px; }
.pf-disclaimer { font-size: .78rem; color: var(--puebler-text-muted); margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--puebler-border); }
.pf-traveler-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 16px; scrollbar-width: none; border-bottom: 1px solid var(--puebler-border); }
.pf-traveler-strip > * { flex: 0 0 82%; scroll-snap-align: start; border: 1px solid var(--puebler-border); border-radius: 16px; padding: 14px; }
.pf-mini-post { display: block; padding: 14px 22px; border-bottom: 1px solid var(--puebler-border-soft); color: var(--puebler-text); font-size: .86rem; }
.pf-mini-post:hover { background: var(--puebler-surface-2); color: var(--puebler-text); }
.pf-mini-post img { border-radius: 10px; margin-top: 8px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.pf-map-legend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 28px; border-bottom: 1px solid var(--puebler-border); font-size: .86rem; align-items: center; }
.pf-legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* Logros */
.pf-medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 22px 10px; }
.pf-medal { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .78rem; font-weight: 600; line-height: 1.25; }
.pf-medal small { font-weight: 400; color: var(--puebler-text-muted); font-size: .72rem; }
.pf-medal.is-locked span { color: var(--puebler-text-muted); }
.pf-ranks { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--puebler-border); }
.pf-rank-col { padding: 22px 28px; border-right: 1px solid var(--puebler-border); }
.pf-rank-col:last-child { border-right: 0; }
.pf-rank-col.is-got { box-shadow: inset 0 4px 0 var(--puebler-green); }
.pf-rank-col h3 { display: flex; gap: 10px; align-items: center; font-size: 1.05rem; margin-bottom: 4px; }
.pf-req-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; font-size: .82rem; }
.pf-req-list .pb-progress { height: 6px; margin-top: 4px; }
.pf-req-list li.ok { color: var(--puebler-green); font-weight: 600; }

/* Bitácora y travesías */
.pf-trip-thumb { width: 72px; height: 72px; border-radius: 12px; background: var(--puebler-blue-light) center/cover; color: var(--puebler-blue-dark); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.pf-tl-day { padding: 12px 28px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--puebler-red); background: var(--puebler-surface-2); border-bottom: 1px solid var(--puebler-border); border-top: 1px solid var(--puebler-border); }
.pf-tl-item { position: relative; border-left: 3px solid var(--puebler-blue-light); margin-left: 36px; padding: 18px 24px; }
.pf-tl-dot { position: absolute; left: -9px; top: 24px; width: 15px; height: 15px; border-radius: 50%; background: var(--puebler-red); border: 3px solid var(--puebler-surface); }
.pf-tl-item img, .pf-tl-item video { border-radius: 14px; margin-top: 10px; max-height: 420px; }

.pf-gate { min-height: calc(100dvh - var(--topbar-h) - 120px); display: flex; align-items: center; justify-content: center; padding: 40px 18px; background: var(--puebler-surface); }
.pf-gate-inner { max-width: 560px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pf-gate-title { font-size: 1.45rem; font-weight: 700; margin: 4px 0 10px; }
.pf-gate-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 16px 0 18px; }
.pf-gate-note { font-size: .78rem; color: var(--puebler-text-muted); margin: 0; }
.pb-list > li.is-unread { background: var(--puebler-surface-2); box-shadow: inset 3px 0 0 var(--puebler-red); }
.pb-postal-wrap { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; align-items: start; }
.pb-postal-wrap canvas { width: 100%; height: auto; border: 1px solid var(--puebler-border); border-radius: 6px; box-shadow: var(--puebler-shadow-md); }

@media (max-width: 1180px) {
  .pf-content { grid-template-columns: minmax(0, 1fr); }
  .pf-main { border-right: 0; }
  .pf-aside { position: static; max-height: none; border-top: 1px solid var(--puebler-border); }
}
@media (max-width: 900px) {
  .pf-identity { grid-template-columns: 1fr; gap: 18px; }
  .pf-ranks { grid-template-columns: 1fr; }
  .pf-rank-col { border-right: 0; border-bottom: 1px solid var(--puebler-border); }
  .pb-postal-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pf-cover { height: 150px; }
  .pf-head-body { padding: 0 16px 14px; }
  .pf-avatar-row { margin-top: -52px; }
  .pf-name { font-size: 1.35rem; }
  .pf-biz, .pf-rank-col { padding: 18px 16px; }
  .pf-tl-item { margin-left: 18px; padding: 14px 14px; }
  .pf-tl-day, .pf-map-legend { padding-left: 16px; padding-right: 16px; }
}

/* =====================================================================
   PASEBORDO — pase de abordar
   ===================================================================== */
.bp { --bp-ink: #0B1D3A; display: flex; max-width: 470px; margin-top: 12px; background-color: #FBF8F1; border: 1px solid #CBD1DA; border-radius: 22px; overflow: hidden; color: #1F2733; box-shadow: 0 10px 26px rgba(15, 22, 33, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Ccircle cx='1' cy='1' r='.6' fill='%231B2635' fill-opacity='.06'/%3E%3C/svg%3E"); }
.bp-body { flex: 1; min-width: 0; padding: 18px 18px 14px; border-right: 2px dashed #CBD1DA; display: flex; flex-direction: column; gap: 12px; }
.bp-top { display: flex; gap: 12px; align-items: center; border-bottom: 2px solid var(--bp-ink); padding-bottom: 12px; }
.bp-barcode-v { background: #fff; padding: 5px; border-radius: 8px; border: 1px solid #CBD1DA; line-height: 0; flex-shrink: 0; }
.bp-barcode-v svg { width: 44px; height: 46px; }
.bp-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; margin: 0; min-width: 0; }
.bp-grid dt { font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6F7B8B; }
.bp-grid dd { margin: 0; font-size: 12px; font-weight: 700; color: #0F1621; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-title { text-align: center; }
.bp-title h3 { font-family: var(--font-serif); font-size: clamp(1.4rem, 6vw, 2rem); font-weight: 800; letter-spacing: .14em; color: var(--bp-ink); overflow-wrap: anywhere; line-height: 1.1; }
.bp-title span { display: inline-block; margin-top: 6px; background: #0F1621; color: #fff; font-size: 10.5px; font-weight: 600; padding: 2px 12px; border-radius: 999px; }
.bp-photo-wrap { position: relative; display: flex; justify-content: center; padding: 4px 0 10px; }
.bp-photo { width: min(230px, 70%); aspect-ratio: 11 / 12; border: 4px solid #0F1621; border-radius: 18px; background: #DCE3EC center/cover; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #7C8CA3; box-shadow: 0 8px 18px rgba(15, 22, 33, .22); }
.bp-transport { position: absolute; left: 6%; bottom: 0; transform: rotate(-10deg); background: #23466E; color: #fff; border: 2px solid #fff; border-radius: 14px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.bp-traveler { position: absolute; right: 9%; top: -2px; }
.bp-traveler .pb-avatar-img { border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.bp-tag { position: absolute; right: 4%; bottom: -2px; transform: rotate(5deg); background: #FEF08A; color: #0F1621; font-size: 8.5px; font-weight: 800; padding: 6px 9px; border: 1px solid #4B5563; border-radius: 6px; max-width: 128px; text-align: center; line-height: 1.25; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.bp-tag small { display: block; font-size: 7px; font-weight: 600; color: #374151; }
.bp-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; border-top: 1px solid #CBD1DA; padding-top: 10px; }
.bp-foot strong { display: block; font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--bp-ink); }
.bp-foot span { display: block; font-size: 9px; font-weight: 700; letter-spacing: .08em; color: #4B5563; }
.bp-foot small { font-size: 8.5px; color: #6F7B8B; }
.bp-id { text-align: right; }
.bp-id i { color: #23466E; font-size: 10px; }
.bp-barcode { display: flex; justify-content: center; background: #fff; border: 1px solid #CBD1DA; border-radius: 12px; padding: 6px 8px; line-height: 0; }
.bp-barcode:hover { border-color: #23466E; }
.bp-barcode svg { width: 100%; height: 46px; }
.bp-strip { width: 70px; flex-shrink: 0; background: #F5B301; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding-top: 18px; position: relative; }
.bp-notch { position: absolute; top: -12px; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--puebler-surface); border: 1px solid #CBD1DA; }
.bp-v { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; font-weight: 800; letter-spacing: .28em; color: #0F1621; white-space: nowrap; }
.bp-v-big { font-family: var(--font-serif); font-size: 15px; letter-spacing: .3em; color: var(--bp-ink); max-height: 190px; overflow: hidden; }
.bp-strip-foot { width: 100%; background: #A8112B; color: #fff; padding: 12px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; border-top: 2px dashed #6E0B1C; font-size: 1rem; }
.bp-strip-foot small { font-size: 6.5px; font-weight: 800; letter-spacing: .04em; text-align: center; line-height: 1.2; }
@media (max-width: 420px) { .bp-strip { width: 54px; } .bp-body { padding: 14px 12px 12px; } .bp-grid dd { font-size: 10.5px; } }

/* =====================================================================
   PASAPORTE — libro con portada y hojas del mismo tamaño
   ===================================================================== */
.pb-passport-body .pb-main { background: #F2EDE3; }
:root[data-theme="dark"] .pb-passport-body .pb-main { background: #0E1726; }
.pp-stage {
  --leather: #5C381E;
  --pp-hmax: clamp(380px, calc(100dvh - var(--topbar-h) - 210px), 660px);
  --pp-w: min(calc(var(--pp-hmax) * .7), calc(50cqw - 6px));
  --pp-h: calc(var(--pp-w) / .7);
  container-type: inline-size; max-width: 1240px; margin: 0 auto; padding: 16px 24px 48px; }
.pp-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 18px; flex-wrap: wrap; margin-bottom: 10px; }
.pp-title { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 800; margin: 0; line-height: 1.1; }
.pp-intro { color: var(--puebler-text-muted); font-size: .9rem; margin: 2px 0 0; max-width: 720px; }
.pp-top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-toolbar { width: calc(var(--pp-w) * 2); max-width: 100%; margin: 0 auto 12px; min-height: 46px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; visibility: hidden; opacity: 0; transition: opacity .3s ease; }
.pp-stage.is-open .pp-toolbar { visibility: visible; opacity: 1; }
.pp-where { margin: 0; text-align: center; font-size: .92rem; color: #5E3A20; font-weight: 600; line-height: 1.25; min-width: 0; }
.pp-where strong { font-family: var(--font-serif); font-weight: 800; }
.pp-where small { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A6A48; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[data-theme="dark"] .pp-where { color: #F1D9A6; }
:root[data-theme="dark"] .pp-where small { color: #C9B48F; }
.pp-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #C9B48F; background: #FBF7EE; color: #5E3A20; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; }
.pp-nav:hover:not(:disabled) { background: #5E3A20; color: #FBF7EE; border-color: #5E3A20; }
.pp-nav:disabled { opacity: .35; cursor: default; }
.pp-close { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #C9B48F; background: transparent; color: #5E3A20; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.pp-close:hover { background: #FBF7EE; }
:root[data-theme="dark"] .pp-close { color: #F1D9A6; }
.pp-scene { position: relative; width: calc(var(--pp-w) * 2); height: var(--pp-h); margin: 0 auto; }
.pp-book { position: absolute; top: 0; left: 50%; width: var(--pp-w); height: var(--pp-h); perspective: calc(var(--pp-w) * 6); perspective-origin: 0 50%; transform: translateX(-50%); transition: transform .7s cubic-bezier(.3, .1, .2, 1); }
.pp-stage.is-open .pp-book { transform: none; }
.pp-sheet { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.35, .05, .2, 1); }
.pp-sheet.is-turned { transform: rotateY(-180deg); }
.pp-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; font-size: calc(var(--pp-w) * .033); line-height: 1.35; }
.pp-back { transform: rotateY(180deg); }
.pp-cover { display: block; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; text-align: center; border-radius: .5em 1.4em 1.4em .5em; color: inherit; background-color: var(--leather);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='turbulence' baseFrequency='.012 .03' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .75 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  box-shadow: 0 2px 0 rgba(0,0,0,.45), 0 1.6em 3em rgba(40, 24, 10, .4), inset 0 0 0 1px rgba(255,255,255,.06); }
.pp-cover:focus-visible { outline: 3px solid #E2BE62; outline-offset: 4px; }
.pp-stage:not(.is-open) .pp-cover:hover { filter: brightness(1.06); }
.pp-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 2em; background: rgba(0,0,0,.38); border-right: 1px solid rgba(255, 230, 190, .1); }
.pp-stitch { position: absolute; left: 2.7em; top: 1.1em; bottom: 1.1em; right: 1.1em; border: 1.5px dashed rgba(240, 214, 140, .45); border-radius: .3em 1em 1em .3em; }
.pp-frame { position: absolute; left: 3.5em; top: 2em; bottom: 2em; right: 1.9em; border: 1px solid rgba(240, 214, 140, .6); border-radius: .2em .6em .6em .2em; box-shadow: inset 0 0 0 .3em rgba(0,0,0,.14); }
.pp-shine-zone { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pp-shine { position: absolute; top: -10%; bottom: -10%; left: 0; width: 22%; background: rgba(255, 236, 190, .07); animation: ppShine 5s ease-in-out 1s infinite; }
.pp-stage.is-open .pp-shine { animation: none; }
@keyframes ppShine { 0% { transform: translateX(-160%) skewX(-18deg); } 60%, 100% { transform: translateX(520%) skewX(-18deg); } }
.pp-cover-content { position: absolute; left: 3.5em; right: 1.9em; top: 2em; bottom: 2em; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 2em 1em 1.6em; }
.pp-gold { color: #E2BE62; text-shadow: 0 1.5px 0 rgba(0,0,0,.55); }
.pp-republica { font-size: .88em; font-weight: 800; letter-spacing: .4em; }
.pp-emblem svg { width: 12.5em; height: auto; max-height: 12.5em; filter: drop-shadow(0 1.5px 0 rgba(0,0,0,.55)); }
.pp-titles { display: flex; flex-direction: column; align-items: center; gap: .45em; }
.pp-name { font-family: var(--font-serif); font-size: 2.5em; font-weight: 800; letter-spacing: .06em; line-height: 1; }
.pp-country { font-size: .86em; font-weight: 700; letter-spacing: .3em; }
.pp-elements { font-size: .68em; font-weight: 700; letter-spacing: .14em; opacity: .9; max-width: 22em; line-height: 1.5; text-transform: uppercase; }
.pp-phrase { font-family: var(--font-serif); font-style: italic; font-size: .8em; max-width: 20em; }
.pp-cover-foot { display: flex; flex-direction: column; align-items: center; gap: .6em; color: rgba(246, 226, 170, .85); font-size: .9em; font-weight: 600; letter-spacing: .08em; }
.pp-cover-foot svg { width: 2.8em; height: auto; }
.pp-stage.is-open .pp-cover-foot span { visibility: hidden; }
.pp-decal { position: absolute; right: 2.6em; bottom: 2.6em; width: 4.4em; height: 4.4em; transform: rotate(9deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); color: #E2BE62; }
.pp-decal svg { width: 100%; height: 100%; }
.pp-lining { border-radius: 1.4em .5em .5em 1.4em; background-color: #EFE4CB; border: .9em solid var(--leather); border-right-width: .5em; display: flex; align-items: center; justify-content: center; text-align: center; color: #4A3826; }
.pp-lining-inner { padding: 1.6em; display: flex; flex-direction: column; align-items: center; gap: .3em; }
.pp-lining-emblem svg { width: 7em; height: auto; opacity: .3; filter: sepia(1) saturate(.6); }
.pp-lining-kicker { margin: .6em 0 0; font-size: .74em; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #8A6A48; }
.pp-lining-name { margin: 0; font-family: var(--font-serif); font-size: 1.6em; font-weight: 800; line-height: 1.15; }
.pp-lining-no { margin: 0; font-size: .82em; }
.pp-lining-motto { margin: .8em 0 0; font-family: var(--font-serif); font-style: italic; font-size: 1.05em; max-width: 20em; }
.pp-lining-foot { margin: 1.2em 0 0; font-size: .72em; color: #8A6A48; max-width: 22em; }
.pp-page { --sec: #1B4332; --acc: #D4A017; --ink: #2D6A4F; display: flex; flex-direction: column; padding: 1.2em 1.3em 1.6em 1.5em; color: #2B2118; background-color: #F7F0DF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='28'%3E%3Crect y='27' width='8' height='1' fill='%237A4E2D' fill-opacity='.07'/%3E%3C/svg%3E");
  border-radius: .35em 1em 1em .35em; box-shadow: inset 1.2em 0 1.4em -1.2em rgba(60, 35, 15, .35), 0 1em 2.2em rgba(60, 35, 15, .22); border-left: .45em solid var(--sec); }
.pp-back.pp-page { border-left: 0; border-right: .45em solid var(--sec); border-radius: 1em .35em .35em 1em; padding: 1.2em 1.5em 1.6em 1.3em; box-shadow: inset -1.2em 0 1.4em -1.2em rgba(60, 35, 15, .35), 0 1em 2.2em rgba(60, 35, 15, .22); }
.pp-page-head { display: flex; justify-content: space-between; gap: .8em; font-family: var(--font-serif); font-size: .78em; font-weight: 800; letter-spacing: .12em; color: var(--sec); padding-bottom: .7em; border-bottom: 2px solid var(--sec); margin-bottom: .9em; flex-shrink: 0; text-transform: uppercase; }
.pp-page-head span:last-child { text-align: right; }
.pp-folio { position: absolute; bottom: .55em; left: 0; right: 0; text-align: center; font-family: var(--font-serif); font-size: .78em; font-weight: 700; color: #9C8A6E; }
.pp-mono { font-family: 'Courier New', monospace; letter-spacing: .06em; }
.pp-bar { height: .5em; border-radius: 99px; background: #E6DCC4; overflow: hidden; margin-top: .3em; }
.pp-bar > span { display: block; height: 100%; border-radius: 99px; background: var(--ink, #2D9D5F); }
.pp-holder-main { display: flex; gap: 1.1em; align-items: flex-start; }
.pp-photo { width: 7.2em; height: 9em; object-fit: cover; border-radius: .4em; border: .2em solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); filter: saturate(.85); flex-shrink: 0; }
.pp-fields { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25em .9em; margin: 0; font-size: .92em; min-width: 0; }
.pp-fields dt { font-size: .66em; font-weight: 800; letter-spacing: .12em; color: #7A5A3A; padding-top: .3em; text-transform: uppercase; }
.pp-fields dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.pp-rank { display: flex; align-items: center; gap: .3em; }
.pp-rank svg { width: 1.6em; height: 1.6em; }
.pp-holder-name { font-family: var(--font-serif); font-size: 1.2em; line-height: 1.15; }
.pp-holder-totals { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1em; border-top: 1px dashed #C9B48F; border-bottom: 1px dashed #C9B48F; }
.pp-holder-totals div { padding: .55em 0; text-align: center; display: flex; flex-direction: column; }
.pp-holder-totals strong { font-family: var(--font-serif); font-size: 1.45em; line-height: 1.1; color: var(--sec); }
.pp-holder-totals span { font-size: .66em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7A5A3A; }
.pp-holder-progress { margin-top: .9em; }
.pp-prog-head { display: flex; justify-content: space-between; font-size: .88em; font-weight: 800; }
.pp-reqs { list-style: none; padding: 0; margin: .7em 0 0; display: grid; gap: .3em; font-size: .82em; }
.pp-reqs li { display: flex; gap: .5em; align-items: center; color: #6B5A45; }
.pp-reqs li span { margin-left: auto; font-weight: 800; }
.pp-reqs li.ok { color: #1F7A3A; }
.pp-tastes { font-size: .78em; color: #5E4A35; margin-top: .7em; line-height: 1.5; }
.pp-mrz { margin-top: auto; padding: .6em .8em; background: rgba(255,255,255,.55); border-radius: .4em; font-size: .76em; color: #3A2E22; word-break: break-all; line-height: 1.6; margin-bottom: .6em; }
.pp-sec-intro { display: flex; gap: .9em; align-items: center; color: var(--sec); margin-bottom: .8em; flex-shrink: 0; }
.pp-sec-glyph { width: 3.6em; height: 3.6em; flex-shrink: 0; }
.pp-sec-glyph svg { width: 100%; height: 100%; }
.pp-sec-text { flex: 1; min-width: 0; }
.pp-sec-name { display: block; font-family: var(--font-serif); font-size: 1.55em; font-weight: 800; line-height: 1; }
.pp-sec-elements { display: block; font-size: .74em; font-weight: 700; letter-spacing: .05em; color: #7A5A3A; margin-top: .3em; }
.pp-sec-count { display: block; font-size: .74em; color: #6B5A45; margin-top: .3em; font-weight: 600; }
.pp-sec-cont { margin: -.2em 0 .6em; font-family: var(--font-serif); font-size: .9em; font-weight: 800; color: var(--sec); }
.pp-subregions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5em .9em; padding: .7em 0; border-top: 1px dashed #C9B48F; border-bottom: 1px dashed #C9B48F; margin-bottom: .8em; flex-shrink: 0; }
.pp-subreg { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .3em; font-size: .7em; font-weight: 700; color: #5E4A35; }
.pp-subreg > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-subreg .pp-bar { grid-column: span 2; height: .4em; }
.pp-stamps { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: .4em .5em; align-content: start; }
.pp-stamps.is-six { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.pp-stamp-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25em; color: #3A2E22; text-align: center; font-size: .78em; font-weight: 700; line-height: 1.15; min-height: 0; transition: transform .2s ease; }
.pp-stamp-cell svg.pb-stamp { flex: 1 1 0; width: 100%; height: 100%; max-width: 11.5em; max-height: 11.5em; min-height: 0; }
.pp-stamp-cell span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.pp-stamp-cell:hover { color: var(--sec); transform: scale(1.05); }
.pp-stamp-cell.is-pending { color: #9C8A6E; }
.pp-blank { text-align: center; font-family: var(--font-serif); color: #8A7558; margin: .8em 0 0; font-size: .92em; }
.pp-pending-list { list-style: none; padding: 0; margin: .6em 0 0; columns: 2; font-size: .8em; color: #8A7558; }
.pp-pending-list li { padding: .15em 0; }
.pp-watermark { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--sec); opacity: .1; min-height: 0; }
.pp-watermark svg { width: 55%; height: auto; max-height: 100%; }
.pp-visa-labels { display: flex; flex-wrap: wrap; gap: .8em; justify-content: center; padding: .6em 0; }
.pp-visa-label { transform: rotate(var(--r, 0deg)); padding: .45em .9em; border: 2px solid var(--sec); color: var(--sec); border-radius: .3em; font-family: var(--font-serif); font-weight: 800; font-size: .92em; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.5); }
.pp-visa-motto { margin: auto 0 .8em; text-align: center; font-family: var(--font-serif); font-style: italic; font-size: 1.15em; color: #4A3826; }
.pp-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 400; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 22px; border-radius: 16px; background: rgba(22, 20, 16, .82); color: #fff; font-weight: 700; font-size: .95rem; pointer-events: none; text-align: center; white-space: nowrap; }
.pp-hint i { font-size: 1.9rem; animation: ppSwipe 1.1s ease-in-out infinite; }
.pp-hint.is-leaving { opacity: 0; transition: opacity .4s ease; }
@keyframes ppSwipe { 0% { transform: translateX(26px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateX(-26px); opacity: 0; } }
.pp-help { text-align: center; font-size: .8rem; color: #8A6A48; margin: 14px 0 0; }
.pp-custom { max-width: 980px; margin: 40px auto 0; padding-top: 26px; border-top: 1px solid #DCCFB5; }
.pp-custom h2 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 800; margin: 0 0 4px; }
.pp-custom-form { display: grid; gap: 20px; margin-top: 18px; }
.pp-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.pp-field legend { font-size: .95rem; font-weight: 700; margin-bottom: 10px; display: block; padding: 0; }
.pp-field legend small { font-weight: 500; color: var(--puebler-text-muted); }
.pp-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.pp-swatch, .pp-sticker-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; text-align: center; position: relative; }
.pp-swatch input, .pp-sticker-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pp-swatch span { width: 44px; height: 58px; border-radius: 3px 8px 8px 3px; border-left: 5px solid rgba(0,0,0,.35); box-shadow: 0 2px 5px rgba(0,0,0,.2); }
.pp-swatch small, .pp-sticker-opt small { font-size: .72rem; font-weight: 600; line-height: 1.2; color: var(--puebler-text-muted); }
.pp-swatch input:checked + span { outline: 3px solid var(--puebler-red); outline-offset: 3px; }
.pp-label-inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pp-stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.pp-sticker-opt { padding: 8px 4px; border-radius: 12px; border: 2px solid transparent; color: #5E3A20; }
.pp-sticker-opt:has(input:checked) { border-color: var(--puebler-red); background: var(--puebler-surface); }
.pp-sticker-none { width: 52px; height: 52px; border-radius: 50%; border: 2px dashed #C9B48F; display: flex; align-items: center; justify-content: center; color: #9C8A6E; font-size: 1.3rem; }
@media (max-width: 767px) {
  .pp-stage { padding: 12px 14px 32px; --pp-w: min(calc(100cqw - 4px), calc((100dvh - var(--topbar-h) - var(--bottom-nav-h) - 168px) * .7)); }
  .pp-title { font-size: 1.35rem; }
  .pp-intro { display: none; }
  .pp-top { align-items: center; }
  .pp-scene { width: var(--pp-w); overflow: hidden; border-radius: .5em 1.2em 1.2em .5em; touch-action: pan-y; }
  .pp-book, .pp-stage.is-open .pp-book { left: 0; transform: none; }
  .pp-sheet { transition: none; }
  .pp-sheet.is-gone { visibility: hidden; }
  .pp-toolbar { width: var(--pp-w); margin-bottom: 8px; gap: 6px; min-height: 40px; }
  .pp-nav { width: 38px; height: 38px; font-size: 1rem; }
  .pp-close { padding: 0 10px; min-height: 38px; }
  .pp-close span { display: none; }
  .pp-where { font-size: .84rem; }
  .pp-help { display: none; }
  .pp-custom { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) { .pp-sheet, .pp-book { transition-duration: .01s; } .pp-shine, .pp-hint i { animation: none; } }

/* =====================================================================
   TU AÑO EN PUEBLER
   ===================================================================== */
.yr-hero { background: #16253B; color: #fff; padding: 46px 28px 34px; }
.yr-hero h1 { color: #fff; font-size: 2.4rem; font-weight: 700; letter-spacing: -1px; margin: 0 0 6px; }
.yr-hero p { color: #B9C4D3; }
.yr-big { display: flex; flex-wrap: wrap; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.15); }
.yr-big > div { flex: 1 0 140px; padding: 16px 18px 6px 0; display: flex; flex-direction: column; }
.yr-big strong { font-size: 2.6rem; font-weight: 700; color: #F6C453; line-height: 1; }
.yr-big span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #B9C4D3; font-weight: 700; margin-top: 4px; }
.yr-fav { font-family: var(--font-serif); font-size: 2rem; font-weight: 800; margin: 0; }
.yr-stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; background: #F7F0DF; padding: 16px; border-radius: 6px 16px 16px 6px; border-left: 10px solid #5C381E; }
@media (max-width: 767px) { .yr-hero h1 { font-size: 1.7rem; } }

/* =====================================================================
   AJUSTES
   ===================================================================== */
.st { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100dvh - var(--topbar-h)); }
.st-nav { padding: 22px 14px; border-right: 1px solid var(--puebler-border); background: var(--puebler-surface); position: sticky; top: var(--topbar-h); align-self: start; display: flex; flex-direction: column; gap: 2px; }
.st-nav h1 { font-size: 1.2rem; padding: 0 12px 12px; }
.st-nav a { color: var(--puebler-text); padding: 10px 12px; border-radius: 10px; font-weight: 500; font-size: .9rem; display: flex; gap: 12px; align-items: center; }
.st-nav a i { width: 18px; text-align: center; color: var(--puebler-text-muted); }
.st-nav a:hover, .st-nav a.active { background: var(--puebler-blue-light); color: var(--puebler-blue-dark); }
.st-main { background: var(--puebler-surface); min-width: 0; }
.st-section { padding: 26px 32px; border-bottom: 1px solid var(--puebler-border); }
.st-section > * { max-width: 820px; }
.st-section h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.st-section h2 + p { color: var(--puebler-text-muted); margin-bottom: 16px; font-size: .9rem; }
.st-cover { height: 150px; border-radius: 14px; background: #16253B center/cover; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; margin-bottom: -36px; }
.st-avatar-row { padding-left: 16px; margin-bottom: 18px; display: flex; align-items: flex-end; gap: 14px; }
.st-avatar-row img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 4px solid var(--puebler-surface); background: var(--puebler-blue-light); }
.st-toggle { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--puebler-border-soft); cursor: pointer; }
.st-toggle > span { display: flex; flex-direction: column; }
.st-toggle small { color: var(--puebler-text-muted); font-size: .82rem; }
.st-data-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--puebler-border-soft); }
.st-data-row p { color: var(--puebler-text-muted); font-size: .84rem; }
.st-qr { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; border: 1px solid var(--puebler-border); line-height: 0; }
.st-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-family: 'Courier New', monospace; font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; background: var(--puebler-surface-2); padding: 16px; border-radius: 12px; max-width: 380px; }
@media (max-width: 900px) {
  .st { grid-template-columns: 1fr; }
  .st-nav { position: static; flex-direction: row; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--puebler-border); scrollbar-width: none; }
  .st-nav h1 { display: none; }
  .st-nav a { white-space: nowrap; }
  .st-section { padding: 22px 16px; }
  .st-data-row { flex-direction: column; align-items: flex-start; }
}
[data-only-mobile] { display: none; }
@media (max-width: 1180px) { [data-only-mobile] { display: flex; } [data-only-desktop] { display: none; } }

/* Playlists en carrusel */
.pl-carousel { width: 100%; }
.pl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pl-head h3 { margin: 0; font-size: .96rem; }
.pl-nav { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--puebler-muted, #667085); }
.pl-nav button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--puebler-border, #e4e7ec); background: transparent; color: inherit; cursor: pointer; }
.pl-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; }
.pl-track::-webkit-scrollbar { display: none; }
.pl-slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.pl-title { font-size: 13px; font-weight: 500; margin: 0 0 6px; }
.pl-link { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--puebler-border, #e4e7ec); border-radius: 12px; color: inherit; }
.pl-link i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #1B2635; color: #fff; }
.pl-link span { display: flex; flex-direction: column; }
.pf-pl-mobile { padding: 14px 16px 0; }
.set-playlists { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }

/* Viajeros: tarjetas con portada de fondo y cruces */
.tv-section { padding: 22px 28px; }
.tv-head h2 { margin: 0 0 4px; font-size: 1.15rem; }
.tv-head p { color: var(--puebler-text-muted); max-width: 760px; font-size: .9rem; }
.tv-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 12px 0 18px; font-size: .8rem; color: var(--puebler-text-muted); }
.tv-legend i { color: var(--puebler-red, #A8112B); margin-right: 4px; }
.tv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tv-card { position: relative; border: 1px solid var(--puebler-border); border-radius: 14px; overflow: hidden; background: var(--puebler-surface, #fff); display: flex; flex-direction: column; min-width: 0; }
.tv-cover { display: block; height: 92px; background: #1B2635 center/cover no-repeat; position: relative; }
.tv-cover.is-plain { background-color: #1B2635; }
.tv-tag { position: absolute; left: 8px; top: 8px; background: rgba(27,38,53,.86); color: #fff; font-size: 10.5px; padding: 3px 8px; border-radius: 99px; }
.tv-body { padding: 0 14px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; }
.tv-avatar { margin-top: -34px; display: inline-block; border-radius: 50%; border: 3px solid var(--puebler-surface, #fff); background: var(--puebler-surface, #fff); }
.tv-body h3 { font-size: .95rem; margin: 6px 0 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-body h3 a { color: inherit; }
.tv-user, .tv-meta { font-size: .76rem; color: var(--puebler-text-muted); margin: 0; }
.tv-why { list-style: none; padding: 0; margin: 10px 0 0; text-align: left; width: 100%; display: grid; gap: 6px; }
.tv-why li { display: flex; gap: 8px; font-size: .76rem; line-height: 1.35; }
.tv-why i { color: var(--puebler-red, #A8112B); margin-top: 2px; width: 12px; }
.tv-bio { font-size: .78rem; margin: 8px 0 0; }
.tv-follow { margin-top: auto; width: 100%; }
.tv-body > .tv-follow { margin-top: 12px; }
.tv-follow.is-on { background: transparent; color: var(--puebler-text); border: 1px solid var(--puebler-border); }
@media (max-width: 640px) { .tv-section { padding: 16px; } .tv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tv-why li + li { display: none; } }

/* Inicio / Explorar */
.fs-switch { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--puebler-border); }
.fs-switch a { padding: 14px 20px; color: var(--puebler-text-muted); border-bottom: 3px solid transparent; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fs-switch a strong { color: var(--puebler-text); font-weight: 600; font-size: .95rem; }
.fs-switch a span { font-size: .76rem; line-height: 1.35; }
.fs-switch a.active { border-bottom-color: var(--puebler-red, #A8112B); }
.fs-switch a.active strong i { color: var(--puebler-red, #A8112B); }
.fs-plans { display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px; border-bottom: 1px solid var(--puebler-border-soft); scrollbar-width: none; }
.fs-plans a { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; font-size: .8rem; padding: 8px 12px; border: 1px solid var(--puebler-border); border-radius: 99px; color: var(--puebler-text); }
.fs-plans b { color: var(--puebler-red, #A8112B); font-weight: 600; }
.ex-page .pb-filterbar { padding-left: 28px; padding-right: 28px; }
.ex-row { padding: 18px 0 6px; }
.ex-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 28px 10px; flex-wrap: wrap; }
.ex-row-head h2 { margin: 0; font-size: 1.05rem; }
.ex-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 3px; overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
.ex-scroll > .pb-tile { scroll-snap-align: start; aspect-ratio: 4/5; grid-column: auto !important; }
.ex-tile .ex-by { display: flex; align-items: center; gap: 6px; }
.ex-tile .ex-by .pb-avatar, .ex-tile .ex-by img { flex: 0 0 auto; }
@media (max-width: 640px) { .fs-switch a { padding: 12px; } .fs-switch a span { display: none; } .ex-page .pb-filterbar, .ex-row-head { padding-left: 16px; padding-right: 16px; } .ex-scroll { grid-auto-columns: 62%; } }

/* Pasebordo (nuevo): foto del destino en blanco y negro + talón con código */
.bp2 { display: flex; max-width: 640px; border-radius: 16px; overflow: hidden; color: #fff; background: #1B2635; box-shadow: 0 1px 0 rgba(0,0,0,.04); font-family: var(--font-sans, Poppins, sans-serif); position: relative; }
.bp2-main { position: relative; flex: 1; min-width: 0; isolation: isolate; }
.bp2-photo { position: absolute; inset: 0; z-index: -2; background: #1B2635 var(--bp-img, none) center/cover no-repeat; filter: grayscale(1) contrast(1.08) brightness(.95); }
.bp2-main::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(15, 23, 34, .62); }
.bp2-content { padding: 18px 22px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 260px; }
.bp2-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bp2-brand { font-size: 10px; letter-spacing: .22em; font-weight: 600; }
.bp2-brand b { color: #A8112B; }
.bp2-state { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; border: 1px solid rgba(255,255,255,.55); }
.is-durante .bp2-state { background: #A8112B; border-color: #A8112B; }
.is-despues .bp2-state { background: #fff; color: #1B2635; border-color: #fff; }
.is-cancelado .bp2-state { background: transparent; text-decoration: line-through; opacity: .85; }
.is-cancelado .bp2-photo { filter: grayscale(1) brightness(.6); }
.bp2-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 4px; }
.bp2-route > div { display: flex; flex-direction: column; min-width: 0; }
.bp2-route > div.is-dest { text-align: right; }
.bp2-route small { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.bp2-route strong { font-size: 30px; font-weight: 600; line-height: 1.05; letter-spacing: .04em; }
.bp2-route span { font-size: 11px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp2-line { position: relative; height: 1px; border-top: 1px dashed rgba(255,255,255,.7); display: flex; justify-content: center; }
.bp2-line i { position: absolute; top: -11px; background: transparent; padding: 0 8px; font-size: 16px; }
.bp2-dest { font-family: var(--font-serif, Fraunces, serif); font-size: 26px; font-weight: 600; margin: 6px 0 0; line-height: 1.1; }
.bp2-region { font-size: 11px; opacity: .85; margin: 0; letter-spacing: .04em; }
.bp2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.25); }
.bp2-grid dt { font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.bp2-grid dd { margin: 2px 0 0; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp2-stub { position: relative; width: 150px; flex-shrink: 0; background: #F7F5F0; color: #1B2635; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 18px 12px 14px; border-left: 2px dashed #C9CED6; text-align: center; gap: 6px; }
.bp2-stub:hover { background: #fff; }
.bp2-hole { position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--puebler-bg, #fff); }
.bp2-hole.is-top { top: -10px; } .bp2-hole.is-bottom { bottom: -10px; }
.bp2-avatar .pb-avatar-img, .bp2-avatar img { border: 2px solid #1B2635; }
.bp2-stub-dest { font-size: 26px; font-weight: 600; letter-spacing: .06em; line-height: 1; }
.bp2-stub-date { font-size: 10px; letter-spacing: .1em; color: #5B6575; }
.bp2-code { width: 100%; height: 44px; }
.bp2-scan { font-size: 9px; line-height: 1.3; color: #A8112B; font-weight: 600; letter-spacing: .02em; }
@media (max-width: 560px) {
  .bp2 { flex-direction: column; }
  .bp2-content { padding: 16px; min-height: 0; }
  .bp2-route strong { font-size: 24px; }
  .bp2-dest { font-size: 22px; }
  .bp2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp2-stub { width: auto; border-left: 0; border-top: 2px dashed #C9CED6; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "av dest" "av date" "code code" "scan scan"; text-align: left; column-gap: 12px; padding: 14px 16px; }
  .bp2-avatar { grid-area: av; } .bp2-stub-dest { grid-area: dest; font-size: 20px; } .bp2-stub-date { grid-area: date; } .bp2-code { grid-area: code; margin-top: 6px; } .bp2-scan { grid-area: scan; text-align: center; }
  .bp2-hole { left: auto; top: -11px !important; bottom: auto !important; } .bp2-hole.is-top { left: -10px; } .bp2-hole.is-bottom { right: -10px; }
}

/* Página del viaje */
.tr-hero { padding: 24px 28px; border-bottom: 1px solid var(--puebler-border); }
.tr-hero .pb-eyebrow { margin-bottom: 12px; }
.tr-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 640px; padding: 0; margin: 18px 0 8px; position: relative; }
.tr-steps li { display: flex; flex-direction: column; gap: 2px; position: relative; padding-top: 18px; font-size: .8rem; color: var(--puebler-text-muted); }
.tr-steps li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--puebler-border); }
.tr-steps li span { position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--puebler-surface, #fff); border: 2px solid var(--puebler-border); z-index: 1; }
.tr-steps li.is-done::before, .tr-steps li.is-current::before { background: #1B2635; }
.tr-steps li.is-done span { background: #1B2635; border-color: #1B2635; }
.tr-steps li.is-current span { background: #A8112B; border-color: #A8112B; }
.tr-steps li.is-current strong { color: #A8112B; }
.tr-steps strong { color: var(--puebler-text); font-weight: 600; }
.tr-steps-note { max-width: 640px; margin-top: 16px; }
.tr-disclaimer { font-size: .76rem; color: var(--puebler-text-muted); max-width: 640px; margin: 8px 0 0; }
.tr-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.tr-side { border-left: 1px solid var(--puebler-border); }
.tr-note { font-family: var(--font-serif, Fraunces, serif); font-size: 1.05rem; line-height: 1.5; margin: 0 0 12px; }
.tr-match { background: var(--puebler-soft, #F4F6F8); }
.tr-match h2 i { color: #A8112B; }
.tr-contribs { list-style: none; padding: 0; margin: 0; }
.tr-contrib { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--puebler-border-soft); transition: opacity .25s; flex-wrap: wrap; }
.tr-contrib .pb-grow { min-width: 0; flex: 1; }
.tr-contrib p { margin: 4px 0 0; font-size: .86rem; }
.tr-c-title { font-weight: 600; color: var(--puebler-text); }
.tr-c-actions { display: flex; gap: 6px; width: 100%; padding-left: 52px; }
.tr-contrib .pb-thumb { width: 64px; height: 64px; }
.tr-kinds { margin-bottom: 12px; flex-wrap: wrap; }
.tr-kinds .pb-chip input { position: absolute; opacity: 0; }
.tr-kinds .pb-chip:has(input:checked) { background: #1B2635; color: #fff; border-color: #1B2635; }
.tr-pick-text { display: grid; place-items: center; aspect-ratio: 1; font-size: 11px; padding: 6px; text-align: center; }
.tr-req { padding: 12px 0; border-bottom: 1px solid var(--puebler-border-soft); display: grid; gap: 8px; transition: opacity .25s; }
@media (max-width: 1000px) { .tr-cols { grid-template-columns: 1fr; } .tr-side { border-left: 0; border-top: 1px solid var(--puebler-border); } }
@media (max-width: 640px) { .tr-hero { padding: 16px; } .tr-c-actions { padding-left: 0; } }

/* Mapa general y mapa personal */
.mp-bar, .mm-bar { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 28px; border-bottom: 1px solid var(--puebler-border); flex-wrap: wrap; }
.mp-title h1 { margin: 0; font-size: 1.25rem; }
.mp-layers, .mm-legend { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; justify-content: center; }
.mp-layer { cursor: pointer; }
.mp-layer input { position: absolute; opacity: 0; }
.mp-layer span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--puebler-border); font-size: .8rem; color: var(--puebler-text-muted); }
.mp-layer span i { color: var(--c); }
.mp-layer input:checked + span { background: var(--c); border-color: var(--c); color: #fff; }
.mp-layer input:checked + span i { color: #fff; }
.mp-layer input:focus-visible + span { outline: 2px solid var(--c); outline-offset: 2px; }
.mp-map { height: calc(100vh - 230px); min-height: 420px; }
.mp-foot { font-size: .78rem; color: var(--puebler-text-muted); padding: 12px 28px; margin: 0; }
.pb-pin.is-navy { background: #23466E; }
.mm-head { display: flex; justify-content: space-between; gap: 20px; padding: 22px 28px; border-bottom: 1px solid var(--puebler-border); flex-wrap: wrap; align-items: flex-end; }
.mm-head h1 { margin: 0; font-size: 1.35rem; }
.mm-kpis { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 18px; }
.mm-kpis strong { display: block; font-size: 1.5rem; font-weight: 600; color: #A8112B; line-height: 1.1; }
.mm-kpis span { font-size: .74rem; color: var(--puebler-text-muted); }
.mm-map { height: 520px; }
.mm-cols { display: grid; grid-template-columns: 1fr 1fr; }
.mm-cols > section + section { border-left: 1px solid var(--puebler-border); }
.mm-depts { display: grid; gap: 12px; }
.mm-dept { display: flex; gap: 10px; align-items: flex-start; }
.mm-swatch { width: 14px; height: 14px; border-radius: 4px; margin-top: 4px; flex-shrink: 0; }
.mm-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--puebler-border-soft); color: var(--puebler-text); font-size: .88rem; }
.mm-item i { color: #6B3FA0; width: 16px; }
@media (max-width: 900px) { .mm-kpis { grid-template-columns: repeat(2, 1fr); width: 100%; } .mm-cols { grid-template-columns: 1fr; } .mm-cols > section + section { border-left: 0; border-top: 1px solid var(--puebler-border); } }
@media (max-width: 640px) { .mp-bar, .mm-bar, .mm-head { padding: 12px 16px; } .mp-layers, .mm-legend { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; } .mp-layer span { white-space: nowrap; } .mp-map { height: calc(100vh - 260px); } .mm-map { height: 400px; } .mp-foot { padding: 12px 16px; } }

/* Pasaporte: giro fluido, página de título y titular mecanografiado */
.pp-sheet.is-flipping .pp-face { box-shadow: 0 1.4em 3em rgba(40, 25, 10, .32); }
@keyframes ppSlideL { from { transform: translateX(14%); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes ppSlideR { from { transform: translateX(-14%); opacity: .2; } to { transform: none; opacity: 1; } }
.pp-book.pp-slide-l { animation: ppSlideL .32s cubic-bezier(.25, .8, .3, 1); }
.pp-book.pp-slide-r { animation: ppSlideR .32s cubic-bezier(.25, .8, .3, 1); }
.pp-title-page { position: relative; display: flex; flex-direction: column; height: 100%; }
.pp-script { font-family: 'Yellowtail', 'Dancing Script', cursive; color: #8E2430; font-size: 3.1em; line-height: .95; margin: .1em 0 0; transform: rotate(-6deg); transform-origin: left center; max-width: 70%; }
.pp-script span { display: block; }
.pp-collage { position: relative; flex: 1; margin: .4em -.4em 0; }
.pp-collage-stamp { position: absolute; display: block; }
.pp-collage-stamp svg { width: 100%; height: auto; display: block; }
.pp-collage-empty { position: absolute; inset: 30% 10% auto; text-align: center; font-family: 'Special Elite', 'Courier Prime', monospace; color: #9C8A6E; font-size: .9em; }
.pp-valid { font-family: 'Courier Prime', 'Courier New', monospace; font-size: .74em; letter-spacing: .06em; text-transform: uppercase; color: #5B4A38; margin: .4em 0 .6em; }
.pp-photo-wrap { position: relative; flex-shrink: 0; }
.pp-photo-wrap .pp-photo { border-radius: .15em; border: .35em solid #fff; }
.pp-approved { position: absolute; left: -.6em; top: .7em; transform: rotate(-12deg); font-family: 'Special Elite', 'Courier Prime', monospace; font-size: .78em; letter-spacing: .1em; color: #A8112B; border: .16em solid #A8112B; padding: .05em .45em; background: rgba(247, 240, 223, .7); border-radius: .2em; }
.pp-typed { gap: .35em .7em; }
.pp-typed dt { font-family: 'Courier Prime', 'Courier New', monospace; font-weight: 700; color: #3B2E22; font-size: .64em; }
.pp-typed dd { font-family: 'Special Elite', 'Courier Prime', monospace; font-weight: 400; background: rgba(255, 255, 255, .6); padding: .12em .4em; border-radius: .15em; font-size: .92em; letter-spacing: .03em; }
.pp-signature { display: flex; align-items: baseline; gap: .8em; border-top: 1px dashed #B9A27E; margin-top: auto; padding-top: .5em; }
.pp-signature span { font-family: 'Courier Prime', monospace; font-weight: 700; font-size: .6em; letter-spacing: .12em; text-transform: uppercase; color: #5B4A38; }
.pp-signature strong { font-family: 'Dancing Script', 'Yellowtail', cursive; font-weight: 600; font-size: 1.6em; color: #1B2635; line-height: 1; }
.pp-help { transition: opacity .3s; }
.pp-stage.is-open .pp-help { opacity: .7; }

/* Postal digital */
.pc-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.pc-preview canvas { width: 100%; height: auto; display: block; border-radius: 10px; box-shadow: 0 10px 30px rgba(27, 38, 53, .18); }
.pc-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; }
.pc-style { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: auto; padding: 10px 12px; border-radius: 10px; text-align: left; }
.pc-style strong { font-weight: 600; font-size: .86rem; }
.pc-style small { font-size: .72rem; opacity: .75; }
@media (max-width: 960px) { .pc-wrap { grid-template-columns: 1fr; } .pc-preview { position: sticky; top: calc(var(--topbar-h, 64px) + 8px); z-index: 2; } }

/* Embeber: vista previa */
.em-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, 1fr); gap: 22px; text-align: left; }
.em-label { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--puebler-text-muted); margin: 0 0 8px; }
.em-frame { background: var(--puebler-soft, #F4F6F8); border-radius: 12px; padding: 14px; display: flex; justify-content: center; max-height: 660px; overflow: auto; }
.em-frame iframe { border: 0; border-radius: 12px; background: #fff; max-width: 100%; height: 560px; width: 100%; }
@media (max-width: 760px) { .em-wrap { grid-template-columns: 1fr; } .em-frame iframe { height: 420px !important; } }

/* Pasaporte: hoja final, observaciones y hoja que se dobla en móvil */
.pp-sheet-end { cursor: default; }
.pp-lining-end { border-radius: .5em 1.4em 1.4em .5em; border-left-width: .5em; border-right-width: .9em; }
.pp-backcover { cursor: default; display: flex; align-items: center; justify-content: center; }
.pp-backcover .pp-cover-content { justify-content: center; gap: .6em; }
.pp-notes { flex: 1; display: flex; flex-direction: column; gap: .8em; min-height: 0; }
.pp-notes-lead { font-family: 'Special Elite', 'Courier Prime', monospace; font-size: .92em; color: #5B4A38; margin: 0; }
.pp-notes-list { margin: 0; padding-left: 1.2em; font-size: .82em; line-height: 1.6; color: #4A3B2C; }
.pp-notes-glyph { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--sec); opacity: .14; min-height: 0; }
.pp-notes-glyph svg { width: 42%; height: auto; max-height: 100%; }
.pp-leaf { position: absolute; inset: 0; z-index: 60; transform-origin: left center; pointer-events: none; will-change: transform; }
.pp-leaf .pp-leaf-face { position: absolute; inset: 0; transform: none !important; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 .6em 1.6em rgba(40, 25, 10, .28); }
.pp-leaf-back { position: absolute; inset: 0; background: #EDE2C6; border-radius: 1em .35em .35em 1em; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pp-leaf-shade { position: absolute; inset: 0; background: #2B1D10; opacity: 0; border-radius: .35em 1em 1em .35em; pointer-events: none; }
@media (max-width: 767px) { .pp-leaf { transform-style: preserve-3d; } }

/* Parches: gestión, sala, presupuesto y seguridad */
.pr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--puebler-border); border: 1px solid var(--puebler-border); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.pr-stats > div { background: var(--puebler-surface, #fff); padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.pr-stats i { color: var(--puebler-red, #A8112B); font-size: .85rem; }
.pr-stats strong { font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.pr-stats span { font-size: .74rem; color: var(--puebler-text-muted); }
.pr-budget-mini { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding: 12px 14px; border: 1px solid var(--puebler-border); border-radius: 12px; margin-bottom: 14px; }
.pr-budget-mini div { display: flex; flex-direction: column; }
.pr-budget-mini span, .pr-kpis span { font-size: .72rem; color: var(--puebler-text-muted); text-transform: uppercase; letter-spacing: .06em; }
.pr-budget-mini strong { font-size: 1.05rem; font-weight: 600; }
.pr-budget-mini a { margin-left: auto; }
.pr-reactivate { margin-top: 16px; }
.pr-tabs { overflow-x: auto; scrollbar-width: none; }
.pr-tabs a { white-space: nowrap; }
.pr-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #A8112B; color: #fff; font-size: 10px; font-weight: 600; }
.pr-announce { padding: 14px; border: 1px solid var(--puebler-border); border-radius: 12px; margin-bottom: 18px; max-width: 720px; }
.pr-ann { border-left: 3px solid var(--puebler-border); padding: 10px 14px; margin-bottom: 12px; max-width: 720px; background: var(--puebler-surface, #fff); }
.pr-ann.is-pinned { border-left-color: #A8112B; background: var(--puebler-soft, #F4F6F8); }
.pr-ann-head { display: flex; justify-content: space-between; gap: 10px; font-size: .76rem; color: var(--puebler-text-muted); margin-bottom: 4px; flex-wrap: wrap; }
.pr-ann-head i { color: #A8112B; }
.pr-new-poll summary { list-style: none; display: inline-flex; cursor: pointer; margin-bottom: 14px; }
.pr-new-poll summary::-webkit-details-marker { display: none; }
.pr-poll { border: 1px solid var(--puebler-border); border-radius: 12px; padding: 14px; margin-bottom: 14px; max-width: 640px; }
.pr-poll.is-closed { opacity: .8; }
.pr-opt { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 12px; border: 1px solid var(--puebler-border); border-radius: 10px; overflow: hidden; cursor: pointer; }
.pr-opt input { position: relative; z-index: 1; }
.pr-opt-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(27, 38, 53, .08); }
.pr-opt.is-mine { border-color: #1B2635; }
.pr-opt.is-mine .pr-opt-bar { background: rgba(168, 17, 43, .14); }
.pr-opt-txt { position: relative; flex: 1; }
.pr-opt-n { position: relative; font-size: .78rem; color: var(--puebler-text-muted); }
.pr-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pr-kpis div { border: 1px solid var(--puebler-border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.pr-kpis strong { font-size: 1.4rem; font-weight: 600; }
.pr-balances { list-style: none; padding: 0; margin: 10px 0 0; max-width: 640px; }
.pr-balances li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--puebler-border-soft); font-size: .88rem; }
.pr-balances .is-plus { color: #2F7D5B; } .pr-balances .is-minus { color: #A8112B; }
.pr-safe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pr-safe-card { border: 1px solid var(--puebler-border); border-radius: 14px; padding: 16px; }
.pr-safe-card h3 { font-size: .98rem; margin: 0 0 10px; display: flex; gap: 8px; align-items: center; }
.pr-safe-card h3 i { color: #A8112B; }
.pr-safe-card.is-sos { border-color: #A8112B; }
.pr-lines { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.pr-lines a { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--puebler-soft, #F4F6F8); color: var(--puebler-text); }
.pr-lines strong { min-width: 52px; font-size: 1.05rem; color: #A8112B; }
.pr-lines span { font-size: .82rem; }
.pr-safe-list { padding-left: 18px; margin: 0; font-size: .86rem; line-height: 1.6; display: grid; gap: 6px; }
.pr-rating { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 14px; border: 1px solid var(--puebler-border); border-radius: 12px; margin-bottom: 16px; }
.pr-rating > div { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 120px; }
.pr-rating > div strong { font-size: 2rem; font-weight: 600; line-height: 1; }
.pr-rating > div span { font-size: .76rem; color: var(--puebler-text-muted); }
.pr-rating ul { list-style: none; padding: 0; margin: 0; flex: 1; min-width: 220px; display: grid; gap: 8px; }
.pr-rating li { display: grid; grid-template-columns: 160px 1fr 30px; gap: 10px; align-items: center; font-size: .82rem; }
@media (max-width: 640px) { .pr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pr-kpis { grid-template-columns: 1fr; } .pr-budget-mini a { margin-left: 0; } .pr-rating li { grid-template-columns: 110px 1fr 30px; } }

/* Rutas: sugerencias por tema */
.rs-panel { border: 1px solid var(--puebler-border); border-radius: 14px; padding: 14px; margin: 4px 0 16px; background: var(--puebler-soft, #F4F6F8); }
.rs-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rs-head strong i { color: #A8112B; }
.rs-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.rs-filters .pb-select { min-height: 38px; padding: 4px 12px; max-width: 220px; }
.rs-circuit { background: var(--puebler-surface, #fff); border: 1px solid var(--puebler-border); border-radius: 12px; padding: 12px; margin-top: 10px; }
.rs-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 10px; }
.rs-item { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 9px 10px; border: 1px solid var(--puebler-border); border-radius: 10px; background: transparent; color: var(--puebler-text); cursor: pointer; font: inherit; }
.rs-item:hover { border-color: #1B2635; }
.rs-item > i { color: #A8112B; margin-top: 3px; }
.rs-item span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rs-item strong { font-size: .86rem; font-weight: 600; }
.rs-item small { font-size: .74rem; color: var(--puebler-text-muted); line-height: 1.35; }
.rs-item.is-missing { cursor: default; border-style: dashed; align-items: center; }
.rs-item.is-missing > i { color: var(--puebler-text-muted); }

/* Recorte de imágenes */
.cr-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cr-canvas { max-width: 100%; border-radius: 12px; cursor: grab; touch-action: none; background: #1B2635; }
.cr-canvas:active { cursor: grabbing; }
.cr-tools { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 480px; color: var(--puebler-text-muted); }
.cr-tools input[type=range] { flex: 1; accent-color: #A8112B; }
.st-unsaved { display: block; width: 100%; font-size: .76rem; color: #9A6B00; margin-top: 6px; }
.st-cover.is-preview, [data-avatar-preview].is-preview { outline: 2px dashed #A8112B; outline-offset: 3px; }
.pb-file-preview { display: block; margin-top: 8px; max-width: 260px; max-height: 160px; border-radius: 10px; object-fit: cover; border: 1px solid var(--puebler-border); }

/* Experiencias: gestionar */
.xm-hero { display: flex; gap: 18px; align-items: center; padding: 22px 28px; flex-wrap: wrap; }
.xm-cover { width: 96px; height: 96px; border-radius: 16px; background: #1B2635 center/cover; flex-shrink: 0; }
.xm-hero h1 { margin: 2px 0 4px; font-size: 1.35rem; }
.xm-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.xm-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 0 28px 18px; }
.xm-kpis > div { border: 1px solid var(--puebler-border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.xm-kpis i { color: #A8112B; font-size: .85rem; }
.xm-kpis strong { font-size: 1.4rem; font-weight: 600; line-height: 1.15; }
.xm-kpis span { font-size: .74rem; color: var(--puebler-text-muted); }
.xm-kpis .is-alert { border-color: #B7791F; background: rgba(183, 121, 31, .07); }
.xm-section { padding: 18px 28px; border-top: 1px solid var(--puebler-border); }
.xm-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.xm-section-head h2, .xm-past summary h2 { margin: 0; font-size: 1.1rem; }
.xm-add { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; padding: 10px; border: 1px dashed var(--puebler-border); border-radius: 12px; }
.xm-add label { display: flex; flex-direction: column; gap: 3px; font-size: .72rem; color: var(--puebler-text-muted); }
.xm-add input[type=number] { max-width: 90px; }
.xm-session { border: 1px solid var(--puebler-border); border-radius: 16px; margin-bottom: 14px; overflow: hidden; background: var(--puebler-surface, #fff); }
.xm-s-head { display: flex; gap: 14px; align-items: center; padding: 14px 16px; flex-wrap: wrap; }
.xm-date { width: 62px; text-align: center; border-radius: 12px; background: #1B2635; color: #fff; padding: 6px 0; flex-shrink: 0; display: flex; flex-direction: column; line-height: 1.1; }
.xm-date span, .xm-date small { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.xm-date strong { font-size: 1.45rem; font-weight: 600; }
.xm-s-title { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.xm-cap { display: flex; align-items: center; gap: 10px; margin-top: 6px; max-width: 360px; }
.xm-cap .pb-progress { flex: 1; }
.xm-cap small { white-space: nowrap; color: var(--puebler-text-muted); font-size: .76rem; }
.xm-s-actions { display: flex; gap: 6px; align-items: center; }
.xm-more { position: relative; }
.xm-more summary { list-style: none; cursor: pointer; }
.xm-more summary::-webkit-details-marker { display: none; }
.xm-more-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; background: var(--puebler-surface, #fff); border: 1px solid var(--puebler-border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; display: flex; flex-direction: column; }
.xm-more-pop a, .xm-more-pop .xm-link { display: flex; gap: 8px; align-items: center; width: 100%; padding: 9px 10px; border: 0; background: transparent; color: var(--puebler-text); font-size: .84rem; text-align: left; border-radius: 8px; justify-content: flex-start; font-weight: 400; min-height: 0; }
.xm-more-pop a:hover, .xm-more-pop .xm-link:hover { background: var(--puebler-soft, #F4F6F8); }
.xm-more-pop form { display: block !important; }
.xm-qr { display: flex; gap: 16px; align-items: center; padding: 14px 16px; background: var(--puebler-soft, #F4F6F8); border-top: 1px solid var(--puebler-border); flex-wrap: wrap; }
.xm-qr img { background: #fff; border-radius: 10px; padding: 6px; }
.xm-code { font-size: 1.9rem; font-weight: 700; letter-spacing: .18em; margin: 0; color: #1B2635; }
.xm-qr [data-countdown] { color: #A8112B; font-weight: 600; margin: 2px 0 6px; }
.xm-bookings { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--puebler-border); }
.xm-bookings li { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--puebler-border-soft); flex-wrap: wrap; }
.xm-bookings li:last-child { border-bottom: 0; }
.xm-b-actions { display: flex; gap: 6px; }
.xm-empty { padding: 12px 16px; margin: 0; border-top: 1px solid var(--puebler-border); }
.xm-past summary { list-style: none; cursor: pointer; margin-bottom: 12px; }
.xm-past summary::-webkit-details-marker { display: none; }
.xm-past summary h2::after { content: " ▾"; color: var(--puebler-text-muted); font-size: .9rem; }
.xm-danger { padding: 10px 28px 28px; }
@media (max-width: 900px) { .xm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .xm-hero, .xm-section { padding-left: 16px; padding-right: 16px; } .xm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px 16px; } .xm-s-actions { width: 100%; } .xm-b-actions { width: 100%; padding-left: 50px; } }

/* Página de la reserva */
.bk-head { display: flex; justify-content: space-between; gap: 16px; padding: 22px 28px 8px; flex-wrap: wrap; align-items: flex-end; }
.bk-head h1 { margin: 2px 0 6px; font-size: 1.35rem; }
.bk-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 28px; margin: 18px 0; gap: 0; }
.bk-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: .8rem; color: var(--puebler-text-muted); }
.bk-steps li::before { content: ""; position: absolute; top: 18px; left: -50%; right: 50%; height: 3px; background: var(--puebler-border); z-index: 0; }
.bk-steps li:first-child::before { display: none; }
.bk-steps li > span { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--puebler-surface, #fff); border: 2px solid var(--puebler-border); color: var(--puebler-text-muted); }
.bk-steps li strong { color: var(--puebler-text); font-weight: 600; font-size: .84rem; }
.bk-steps li.is-done > span { background: #2F7D5B; border-color: #2F7D5B; color: #fff; }
.bk-steps li.is-done::before, .bk-steps li.is-current::before { background: #2F7D5B; }
.bk-steps li.is-current > span { border-color: #A8112B; color: #A8112B; }
.bk-steps.is-bad li.is-current > span { border-color: var(--puebler-border); color: var(--puebler-text-muted); }
.bk-bad { margin: 0 28px 14px; }
.bk-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; padding: 0 28px 28px; }
.bk-card { border: 1px solid var(--puebler-border); border-radius: 16px; padding: 18px; margin-bottom: 14px; background: var(--puebler-surface, #fff); }
.bk-card h2 { margin: 0 0 10px; font-size: 1.02rem; display: flex; gap: 8px; align-items: center; }
.bk-card h2 i { color: #A8112B; }
.bk-card.is-ok { border-color: #2F7D5B; } .bk-card.is-ok h2 i { color: #2F7D5B; }
.bk-checkin { border-color: #A8112B; }
.bk-code { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.bk-code .pb-input { max-width: 180px; font-family: 'Courier Prime', monospace; font-size: 1.3rem; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.bk-kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 14px; margin: 0; font-size: .9rem; }
.bk-kv dt { color: var(--puebler-text-muted); }
.bk-kv dd { margin: 0; }
.bk-sub { font-size: .88rem; margin: 16px 0 4px; }
.bk-host-stats { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .84rem; }
.bk-host-stats i { color: #A8112B; width: 16px; }
.bk-contact { display: grid; gap: 8px; margin-top: 14px; }
.bk-wa { background: #1F8A4C; border-color: #1F8A4C; }
.bk-print-foot { display: none; }
@media (max-width: 900px) { .bk-cols { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .bk-head, .bk-steps, .bk-cols { padding-left: 16px; padding-right: 16px; } .bk-kv { grid-template-columns: 1fr; gap: 2px; } .bk-kv dd { margin-bottom: 8px; } .bk-steps li strong { font-size: .74rem; } }
@media print {
  .pb-sidebar, .pb-topbar, .pb-bottom-nav, .no-print, .bk-actions, .pb-map, .xm-more { display: none !important; }
  body, .pb-main, .pb-shell { background: #fff !important; }
  .pb-main { margin: 0 !important; padding: 0 !important; width: auto !important; }
  .bk-cols { grid-template-columns: 1fr 1fr; }
  .bk-card { break-inside: avoid; }
  .bk-print-foot { display: block; padding: 0 28px; font-size: 11px; color: #555; }
}
.xm-qr.is-expired img { opacity: .25; filter: grayscale(1); }

/* Mensajes: cómo funciona */
.ib-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 28px 14px; }
.ib-how > div { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--puebler-border); border-radius: 12px; padding: 12px; }
.ib-how span { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: #1B2635; color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 600; }
.ib-how p { margin: 0; font-size: .8rem; color: var(--puebler-text-muted); line-height: 1.45; }
.ib-how strong { display: block; color: var(--puebler-text); font-size: .86rem; margin-bottom: 2px; }
@media (max-width: 760px) { .ib-how { grid-template-columns: 1fr; padding: 0 16px 12px; } }
