/* =====================================================================
   PUEBLER — Perfil, pasaporte, logros, resumen anual, ajustes y Premium
   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.38); }
.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; }
.pf-avatar-wrap { position: relative; }
.pf-avatar { width: 136px; height: 136px; border-radius: 50%; object-fit: cover; border: 5px solid var(--puebler-surface); background: var(--puebler-surface); box-shadow: var(--puebler-shadow-md); }
.pf-rank-dot { position: absolute; right: 6px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--puebler-surface); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.pf-actions { display: flex; gap: 8px; padding-bottom: 8px; }
.pf-identity { display: grid; grid-template-columns: 1fr 380px; gap: 32px; margin-top: 12px; }
.pf-name { font-size: 1.7rem; font-weight: 800; margin: 0 0 2px; letter-spacing: -.4px; }
.pf-name .pb-badges { vertical-align: 2px; }
.pf-handle { color: var(--puebler-text-muted); font-size: .9rem; }
.pf-affil { font-size: .85rem; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.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-interest { font-size: .8rem; font-weight: 600; color: var(--puebler-text-muted); }
.pf-side { display: flex; flex-direction: column; gap: 14px; }
.pf-rank { padding: 12px 0 0; border-top: 1px solid var(--puebler-border); }

/* Teaser del pasaporte */
.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; }
.pf-pt-sub { color: #E2BE62; font-size: .4rem; font-weight: 700; letter-spacing: .12em; }
.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-blue-dark); font-weight: 700; font-size: .82rem; }

/* Estadísticas planas */
.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: 118px; 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-family: var(--font-heading); font-size: 1.45rem; font-weight: 800; line-height: 1.1; }
.pf-stats span { font-size: .72rem; color: var(--puebler-text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pf-tabs { padding: 0 20px; border-bottom: 0; border-top: 1px solid var(--puebler-border); }

/* Contenido */
.pf-content { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; border-bottom: 1px solid var(--puebler-border); }
.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: calc(var(--topbar-h) + 10px); }
.pf-aside-block { padding: 20px 22px; border-bottom: 1px solid var(--puebler-border); }
.pf-pad { padding: 22px 24px; }
.pf-bordered { border-top: 1px solid var(--puebler-border); }
.pf-sub { font-size: .95rem; font-weight: 800; margin: 18px 0 10px; display: flex; gap: 6px; align-items: center; }
.pf-locked { background: var(--puebler-surface); }
.pf-playlist { width: 100%; border: 0; border-radius: 12px; }
.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-route { display: flex; gap: 10px; align-items: center; padding: 6px 0; color: var(--puebler-text); }
.pf-route span { display: flex; flex-direction: column; font-size: .86rem; line-height: 1.2; }
.pf-route small { color: var(--puebler-text-muted); }

/* Negocio */
.pf-biz { padding: 22px 24px; 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); }
.pf-exp-thumb { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; }
.pf-reviews { margin: 0 -24px; border-top: 1px solid var(--puebler-border); }
.pf-disclaimer { font-size: .78rem; color: var(--puebler-text-muted); margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--puebler-border); }

/* Mapa */
.pf-map-legend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 24px; border-bottom: 1px solid var(--puebler-border); }
.pf-fullmap { display: flex; flex-direction: column; height: calc(100vh - var(--topbar-h)); }
.pf-fullmap-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 20px; background: var(--puebler-surface); border-bottom: 1px solid var(--puebler-border); }
.pf-fullmap-map { flex: 1; }
@media (max-width: 767px) { .pf-fullmap { height: calc(100vh - var(--topbar-h) - var(--bottom-nav-h)); } }

/* Logros */
.pf-medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 10px; }
.pf-medal { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .76rem; font-weight: 700; }
.pf-medal.is-locked span { color: var(--puebler-text-muted); }
.pf-ranks { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--puebler-border); border-bottom: 1px solid var(--puebler-border); margin: 10px -24px 0; }
.pf-rank-col { padding: 18px 24px; border-right: 1px solid var(--puebler-border); }
.pf-rank-col:last-child { border-right: 0; }
.pf-rank-col.is-got { background: color-mix(in srgb, var(--puebler-green) 6%, var(--puebler-surface)); }
.pf-req-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .82rem; }
.pf-req-list .pb-progress { height: 6px; margin-top: 4px; }
.pf-achievements { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.pf-achievements li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--puebler-border-soft); }
.pf-achievements li.is-locked strong { color: var(--puebler-text-muted); }

/* Bitácora */
.pf-newtrip summary { list-style: none; display: inline-flex; cursor: pointer; }
.pf-newtrip summary::-webkit-details-marker { display: none; }
.pf-newtrip { margin-bottom: 14px; }
.pf-trips .pb-row-link { padding: 4px 0; }
.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-trip-head { padding: 26px 28px 18px; background: var(--puebler-surface); border-bottom: 1px solid var(--puebler-border); }
.pf-timeline { background: var(--puebler-surface); position: relative; }
.pf-tl-day { padding: 12px 24px; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--puebler-blue-dark); background: var(--puebler-surface-2); border-bottom: 1px solid var(--puebler-border); }
.pf-tl-item { position: relative; border-left: 3px solid var(--puebler-blue-light); margin-left: 28px; }
.pf-tl-dot { position: absolute; left: -9px; top: 26px; width: 15px; height: 15px; border-radius: 50%; background: var(--puebler-blue); border: 3px solid var(--puebler-surface); z-index: 2; }

/* Lista de deseos */
.pf-wishlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pf-wish { display: flex; gap: 10px; align-items: center; color: var(--puebler-text); }
.pf-wish img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.pf-wish span { display: flex; flex-direction: column; font-size: .88rem; line-height: 1.2; }
.pf-wish small { color: var(--puebler-text-muted); }

@media (max-width: 1100px) {
  .pf-content { grid-template-columns: minmax(0, 1fr); }
  .pf-main { border-right: 0; }
  .pf-aside { position: static; background: var(--puebler-surface); 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); }
  .pf-achievements { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .pf-cover { height: 170px; }
  .pf-head-body { padding: 0 14px 14px; }
  .pf-avatar { width: 104px; height: 104px; }
  .pf-avatar-row { margin-top: -52px; }
  .pf-name { font-size: 1.35rem; }
  .pf-pad, .pf-biz { padding: 18px 14px; }
  .pf-reviews { margin: 0 -14px; }
  .pf-tl-item { margin-left: 12px; }
}

/* =====================================================================
   PASAPORTE — libro con portada y hojas del mismo tamaño
   Tamaño calculado con el alto disponible (dvh) y el ancho del contenedor (cqw),
   así cabe completo a 100 % de zoom en 1280×720, 1366×768 y en móviles.
   ===================================================================== */
.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-locked { background: transparent; }

/* Barra superior: flechas + "Paisaporte · página X de Y" */
.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; }

/* Escena y libro */
.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); }

/* Portada de cuero */
.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='240' height='240' filter='url(%23n)' opacity='.55'/%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.6em; font-weight: 800; letter-spacing: .08em; 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; }
.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)); }
.pp-decal svg { width: 100%; height: 100%; }

/* Forro interior (reverso de la portada) */
.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: .2; 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; }

/* Hojas interiores */
.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; }
.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); }

/* Titular */
.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; }
.pp-fields dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.pp-rank { display: flex; align-items: center; gap: .3em; }
.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-maxrank { font-size: .9em; font-weight: 700; margin: 0; display: flex; gap: .4em; align-items: center; }
.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; }

/* Secciones y sellos */
.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-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-stamps.is-row { grid-template-rows: minmax(0, 1fr); max-height: 14em; }
.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; }
.pp-stamp-cell:hover { color: var(--sec); transform: scale(1.05); }
.pp-stamp-cell.is-pending { color: #9C8A6E; }
.pp-stamp-cell.is-pending .pb-stamp { opacity: .75; }
.pp-blank { text-align: center; font-family: var(--font-serif); color: #8A7558; margin: .8em 0 0; font-size: .92em; }

/* Reversos */
.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-guilloche { margin: 0; font-size: .58em; color: var(--sec); opacity: .35; white-space: nowrap; overflow: hidden; text-align: center; }
.pp-visa-sticker { display: flex; flex-direction: column; align-items: center; gap: .3em; margin: .6em 0 1em; font-size: .8em; font-weight: 800; color: #5E4A35; }
.pp-visa-sticker svg { width: 7em; height: 7em; transform: rotate(-6deg); }
.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; }

/* Indicación de deslizar (móvil) */
.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; }
.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; }

/* Personalización */
.pp-custom { max-width: 980px; margin: 40px auto 0; padding-top: 26px; border-top: 1px solid #DCCFB5; }
.pp-custom-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.pp-custom-head h2 { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 800; margin: 0 0 4px; }
.pp-custom-locked { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; }
.pp-custom-locked > i { font-size: 1.6rem; color: #8A6A48; }
.pp-custom-form { display: grid; gap: 20px; }
.pp-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.pp-field legend, .pp-legend { font-size: .95rem; font-weight: 800; margin-bottom: 10px; display: block; }
.pp-field legend small, .pp-legend small { font-weight: 600; 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-blue); outline-offset: 3px; }
.pp-swatch input:focus-visible + span, .pp-sticker-opt input:focus-visible ~ svg, .pp-sticker-opt input:focus-visible ~ .pp-sticker-none { outline: 3px solid var(--puebler-blue-dark); 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; }
.pp-sticker-opt:has(input:checked) { border-color: var(--puebler-blue); 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; }
.pp-custom-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Pantallas medianas y móviles: una sola página visible, se pasa deslizando */
@media (max-width: 767px) {
  .pp-stage { padding: 12px 14px 32px; }
  .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-stage { --pp-w: min(calc(100cqw - 4px), calc((100dvh - var(--topbar-h) - var(--bottom-nav-h) - 168px) * .7)); }
  .pp-book, .pp-stage.is-open .pp-book { left: 0; transform: 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; }
}

/* Acceso para usuarios registrados */
.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-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; filter: blur(2px) grayscale(.4); }
.pf-gate-cover { width: 96px; height: 130px; margin-bottom: 18px; }
.pf-gate-cover .pf-pt-name { font-size: .66rem; }
.pf-gate-title { font-size: 1.45rem; font-weight: 800; margin: 4px 0 10px; }
.pf-gate-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 10px 0 18px; }
.pf-gate-note { font-size: .78rem; color: var(--puebler-text-muted); margin: 0; }

/* =====================================================================
   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: 800; 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-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; 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-grid { display: grid; grid-template-columns: 2fr 1fr; background: var(--puebler-surface); border-bottom: 1px solid var(--puebler-border); }
.yr-grid .yr-block + .yr-block { border-left: 1px solid var(--puebler-border); }
.yr-block { padding: 24px 28px; background: var(--puebler-surface); border-bottom: 1px solid var(--puebler-border); }
.yr-grid .yr-block { border-bottom: 0; }
.yr-block h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; }
.yr-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 180px; align-items: end; }
.yr-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.yr-bar-fill { width: 100%; max-width: 30px; background: var(--puebler-blue); border-radius: 6px 6px 0 0; min-height: 3px; }
.yr-bar-val { font-size: .72rem; font-weight: 800; margin-bottom: 3px; }
.yr-bar-lbl { font-size: .68rem; color: var(--puebler-text-muted); font-weight: 700; margin-top: 4px; }
.yr-fav { font-family: var(--font-serif); font-size: 2rem; font-weight: 800; margin: 0; }
.yr-stamps { display: flex; flex-wrap: wrap; gap: 8px; background: #F7F0DF; padding: 16px; border-radius: 6px 16px 16px 6px; border-left: 10px solid #5C381E; }
.yr-block .pb-feed { margin: 0 -28px; border-top: 1px solid var(--puebler-border); }
@media (max-width: 767px) { .yr-grid { grid-template-columns: 1fr; } .yr-grid .yr-block + .yr-block { border-left: 0; border-top: 1px solid var(--puebler-border); } .yr-hero h1 { font-size: 1.7rem; } .yr-block { padding: 20px 14px; } .yr-block .pb-feed { margin: 0 -14px; } }

/* =====================================================================
   AJUSTES
   ===================================================================== */
.st { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - var(--topbar-h)); }
.st-nav { padding: 26px 18px; border-right: 1px solid var(--puebler-border); background: var(--puebler-surface); position: sticky; top: var(--topbar-h); align-self: start; height: calc(100vh - var(--topbar-h)); display: flex; flex-direction: column; gap: 2px; }
.st-nav a { color: var(--puebler-text); padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem; display: flex; gap: 10px; align-items: center; }
.st-nav a:hover { background: var(--puebler-blue-light); color: var(--puebler-blue-dark); }
.st-main { background: var(--puebler-surface); }
.st-section { padding: 28px 32px; border-bottom: 1px solid var(--puebler-border); max-width: 900px; }
.st-section h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 14px; }
.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; }
.st-avatar { width: 88px; height: 88px; border: 4px solid var(--puebler-surface); }
.st-warn { color: #9A6B00; }
.st-toggles { max-width: 700px; }
.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; margin: 0 !important; font-weight: 400 !important; }
.st-toggle span { display: flex; flex-direction: column; }
.st-toggle small { color: var(--puebler-text-muted); font-size: .82rem; }
.st-toggle .form-check-input { width: 2.6em; height: 1.4em; flex-shrink: 0; cursor: pointer; }
.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-danger { margin-top: 18px; padding: 14px 0; }
.st-danger summary { color: #D93036; font-weight: 700; cursor: pointer; }
@media (max-width: 900px) {
  .st { grid-template-columns: 1fr; }
  .st-nav { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 12px; border-right: 0; border-bottom: 1px solid var(--puebler-border); }
  .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; }
}

/* =====================================================================
   PASAPORTE PREMIUM
   ===================================================================== */
.pm-hero { background: #1B2635; color: #fff; padding: 52px 28px 40px; }
.pm-hero h1 { color: #fff; font-size: 2.3rem; font-weight: 800; letter-spacing: -1px; max-width: 640px; }
.pm-hero p { color: #B9C4D3; max-width: 620px; }
.pm-active { color: #F6C453 !important; font-weight: 700; }
.pm-body { display: grid; grid-template-columns: 1fr 1fr; background: var(--puebler-surface); }
.pm-benefits { list-style: none; padding: 26px 28px; margin: 0; display: grid; gap: 18px; border-right: 1px solid var(--puebler-border); }
.pm-benefits li { display: flex; gap: 14px; }
.pm-benefits i { font-size: 1.4rem; color: var(--puebler-gold); }
.pm-benefits strong { display: block; }
.pm-benefits span { color: var(--puebler-text-muted); font-size: .9rem; }
.pm-plans { padding: 26px 28px; }
.pm-plan { padding: 18px 0; border-bottom: 1px solid var(--puebler-border); display: flex; flex-direction: column; }
.pm-plan.is-best .pb-eyebrow { color: #B8860B; }
.pm-price { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; }
.pm-price small { font-size: .9rem; color: var(--puebler-text-muted); font-weight: 600; }
.pm-note { font-size: .8rem; color: var(--puebler-text-muted); margin-top: 16px; }
@media (max-width: 767px) { .pm-body { grid-template-columns: 1fr; } .pm-benefits { border-right: 0; border-bottom: 1px solid var(--puebler-border); } .pm-hero h1 { font-size: 1.7rem; } }
.pf-actions .pb-btn-ghost { background: var(--puebler-surface); }
.pf-avatar { min-height: 130px; background: var(--puebler-border); }

/* Ajustes: accesos a privacidad, seguridad y herramientas */
.st-links { display: flex; flex-direction: column; border-top: 1px solid var(--puebler-border-soft); max-width: 760px; }
.st-link { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--puebler-border-soft); color: var(--puebler-text); }
.st-link:hover { background: var(--puebler-surface-2); color: var(--puebler-text); }
.st-link > i:first-child { font-size: 1.25rem; color: var(--puebler-blue-dark); width: 28px; text-align: center; flex-shrink: 0; }
.st-link > i:last-child { color: var(--puebler-text-muted); margin-left: auto; }
.st-link span { display: flex; flex-direction: column; min-width: 0; }
.st-link small { color: var(--puebler-text-muted); font-size: .82rem; }
.st .input-group { flex-wrap: nowrap; }
.st .input-group > .pb-input { flex: 1 1 auto; width: 1%; min-width: 0; }
