/* ── Public pro profile v2 (redesign stage 2, 2026-10-04) ──────────────────
   Port of ds/redesign/src/profile.css + perfil-escritorio.html.
   Everything reads the preset tokens set on .pp by layouts/pro-profile:
   --p-bg --p-card --p-ink --p-sub --p-accent --p-on --p-line (+ --p-bg-img,
   --p-fade, --p-accent-text, --p-display, --p-body). Scoped to .pp so the
   Tailwind app.css (cookie banner, impersonation bar) is untouched. */

.pp { --p-bg:#f8fafc; --p-card:#fff; --p-ink:#0f172a; --p-sub:#475569; --p-accent:#1e7a84; --p-on:#fff; --p-line:#e2e8f0; --p-bg-img:var(--p-bg);
  --p-fade:var(--p-bg); --p-accent-text:var(--p-accent);
  --p-display:'Plus Jakarta Sans','Inter',system-ui,sans-serif; --p-body:'Inter',system-ui,sans-serif;
  --p-tint: color-mix(in srgb, var(--p-accent) 13%, var(--p-card));
  --p-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -16px rgba(15,23,42,.22);
  margin: 0; min-height: 100vh; background: var(--p-bg); background-image: var(--p-bg-img); background-attachment: scroll; background-size: cover; background-position: center top;
  color: var(--p-ink); font: 15px/1.55 var(--p-body); -webkit-font-smoothing: antialiased; }
.pp[data-dark="1"] { --p-shadow: 0 10px 28px -18px rgba(0,0,0,.6); --p-tint: color-mix(in srgb, var(--p-accent) 18%, var(--p-card)); color-scheme: dark; }
:where(.pp) *, :where(.pp) *::before, :where(.pp) *::after { box-sizing: border-box; }
:where(.pp) a { color: inherit; text-decoration: none; }
:where(.pp) svg { width: 20px; height: 20px; flex: none; }
:where(.pp) :is(h1, h2, h3) { margin: 0; }
.pp-h h2, .pp-h h2 { font: 800 18px/1.2 var(--p-display); letter-spacing: -.015em; color: var(--p-ink); }
:where(.pp) button { font: inherit; color: inherit; cursor: pointer; }

.pp :focus-visible { outline: 3px solid var(--p-accent); outline-offset: 2px; border-radius: 10px; }
.pp .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.pp .ms { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; }

/* Desktop top bar (logo + explore) — hidden on phones */
.pp-top { display: none; }

/* Hero + identity */
.pp-hero { position: relative; height: 176px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--p-accent) 70%, #32a2ad), #0d2b67); }
.pp-hero img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx,50%) var(--fy,50%); display: block;
  transform: scale(var(--fz,1)); transform-origin: var(--fx,50%) var(--fy,50%); }
.pp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 38%); pointer-events: none; }
.pp-iconbtn { position: absolute; z-index: 2; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: #0f172a !important; box-shadow: 0 4px 14px rgba(0,0,0,.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pp-iconbtn svg { width: 19px; height: 19px; }

.pp-grid { max-width: 560px; margin: 0 auto; }
.pp-card { text-align: center; padding: 0 20px; }
.pp-av { --s:96px; position: relative; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) auto 0; border-radius: 50%;
  background: linear-gradient(140deg,#5cc4cf 0%,#1e7a84 45%,#0d2b67 100%); border: 4px solid var(--p-bg); display: grid; place-items: center;
  box-shadow: 0 10px 24px -12px rgba(13,43,103,.5); }
.pp-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.pp-av > span { font: 800 calc(var(--s) * .34)/1 var(--p-display); color: #fff; letter-spacing: -.02em; }
.pp-tick { position: absolute; right: 0; bottom: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--p-accent); color: var(--p-on); border: 3px solid var(--p-bg); display: grid; place-items: center; }
.pp-tick svg { width: 58%; height: 58%; }
.pp-name { font: 800 26px/1.15 var(--p-display); letter-spacing: -.02em; margin: 12px 0 4px !important; overflow-wrap: anywhere; }
.pp-role { font-size: 14.5px; color: var(--p-sub); margin: 0; }
.pp-role b { font-weight: 600; color: var(--p-ink); }
.pp-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.pp-lang { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; background: var(--p-card); border: 1px solid var(--p-line);
  font-size: 13px; font-weight: 600; color: var(--p-ink); }
.pp-lang b { font-size: 15px; line-height: 1; font-weight: 400; }
.pp-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 18px; padding: 0 16px; border-radius: 14px; border: 0;
  background: var(--p-accent); color: var(--p-on) !important; font: 700 16px/1.2 var(--p-display);
  box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--p-accent) 75%, transparent); transition: transform .15s; }
.pp-cta:active { transform: scale(.98); }
.pp-cta svg { width: 21px; height: 21px; }
.pp-trio { display: grid; grid-template-columns: repeat(var(--n,3),1fr); gap: 8px; margin-top: 10px; }
.pp-trio a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 64px; padding: 6px 4px; border-radius: 14px;
  background: var(--p-card); border: 1px solid var(--p-line); font-size: 12.5px; font-weight: 600; color: var(--p-ink); line-height: 1.2; }
.pp-trio svg { color: var(--p-accent); width: 19px; height: 19px; }
.pp-hint { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 4px 0 16px; padding: 10px 14px; border-radius: 12px;
  font-size: 14px; font-weight: 700; color: var(--p-accent-text); background: var(--p-tint); border: 1px solid color-mix(in srgb, var(--p-accent) 25%, transparent); }
.pp-hint::before { content: "\1F4C5"; font-size: 15px; }
.pp-hint:focus { outline: none; }
.pp-hint:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.pp-hint[hidden] { display: none; }
.pp-bio { margin: 18px 0 0; color: var(--p-sub); font-size: 15px; line-height: 1.55; position: relative; text-align: center; }
.pp-bio-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
.pp-bio.open .pp-bio-t { display: block; -webkit-line-clamp: unset; }
.pp-more { position: absolute; right: 0; bottom: 0; border: 0; min-height: 24px; padding: 0 0 0 30px; font-weight: 700 !important; color: var(--p-accent-text) !important;
  background: linear-gradient(90deg, transparent, var(--p-fade) 30px); }
.pp-more::before { content: ""; position: absolute; inset: -12px -8px; } /* 48px tap target */
.pp-bio.open .pp-more { position: static; background: none; padding: 0; margin-top: 2px; }
.pp-bio:not(.clamped) .pp-more { display: none; }

/* Page tabs (profile_pages) */
.pp-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 22px 16px 0; justify-content: flex-start; }
.pp-tabs::-webkit-scrollbar { display: none; }
.pp-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--p-line); background: var(--p-card);
  font: 700 14px/1 var(--p-display); color: var(--p-ink); }
.pp-tabs a[aria-current="page"] { background: var(--p-ink); color: var(--p-bg); border-color: transparent; }
.pp-tabs .ms { font-size: 18px; }

/* Sections */
.pp-sec { padding: 30px 16px 0; scroll-margin-top: 24px; }
.pp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 12px; }
.pp-count { font-size: 13px; font-weight: 600; color: var(--p-sub); }
.pp-h a { display: none; }
.pp-rows { display: grid; gap: 10px; }

/* Listing: one markup → row on phones, card on desktop */
.pp-li { position: relative; display: grid; grid-template-columns: 84px 1fr 18px; gap: 12px; align-items: center; padding: 10px 12px 10px 10px; border-radius: 18px;
  background: var(--p-card); border: 1px solid var(--p-line); box-shadow: var(--p-shadow); }
.pp-li.more { display: none; }
.pp-rows.all .pp-li.more { display: grid; }
.pp-limg { position: relative; overflow: hidden; width: 84px; height: 84px; border-radius: 12px; background: var(--p-tint); display: grid; place-items: center; color: var(--p-sub); }
.pp-limg > svg, .pp-simg > svg { width: 28px; height: 28px; opacity: .7; }
.pp-simg { display: grid; place-items: center; color: var(--p-sub); }
.pp-limg img, .pp-simg img, .pp-gal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-lbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pp-lbody b { font-size: 14.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-lbody small { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--p-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-lbody small svg { width: 13px; height: 13px; }
.pp-lbody strong { font: 800 16px/1.2 var(--p-display); letter-spacing: -.01em; margin-top: 1px; }
.pp-lbody strong em { font: 600 12.5px var(--p-body); color: var(--p-sub); font-style: normal; margin-left: 2px; }
.pp-specs { display: none; }
.pp-op { align-self: flex-start; font: 800 10.5px/1 var(--p-display); text-transform: uppercase; letter-spacing: .08em; padding: 4px 7px; border-radius: 6px; background: var(--p-tint); color: var(--p-ink); }
.pp-op.rent::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff7062; margin-right: 5px; vertical-align: 1px; }
.pp-chev { color: var(--p-sub); display: grid; place-items: center; }
.pp-chev svg { width: 18px; height: 18px; }
.pp-all { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; margin-top: 10px; border-radius: 14px;
  border: 1.5px solid var(--p-line); background: transparent; font: 700 14.5px/1 var(--p-display); color: var(--p-ink) !important; }
.pp-all svg { width: 16px; height: 16px; color: var(--p-accent); }
.pp-rows.all + .pp-all.reveal { display: none; }
.pp-empty { padding: 26px 18px; border-radius: 18px; border: 1.5px dashed var(--p-line); text-align: center; color: var(--p-sub); font-size: 14px; }
.pp-empty b { display: block; color: var(--p-ink); font: 700 15.5px/1.3 var(--p-display); margin-bottom: 4px; }

/* Custom link (cta_button) */
.pp-link { display: grid; grid-template-columns: 40px 1fr 18px; gap: 12px; align-items: center; min-height: 64px; padding: 10px 14px 10px 12px; border-radius: 18px;
  background: var(--p-card); border: 1px solid var(--p-line); box-shadow: var(--p-shadow); }
.pp-lic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--p-tint); color: var(--p-accent); }
.pp-lic svg { width: 19px; height: 19px; }
.pp-lic .ms { font-size: 20px; }
.pp-link-t { display: flex; flex-direction: column; min-width: 0; }
.pp-link-t b { font-size: 14.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.pp-link-t small { font-size: 12.5px; color: var(--p-sub); }

/* Text block */
.pp-text { padding: 18px; border-radius: 18px; background: var(--p-card); border: 1px solid var(--p-line); box-shadow: var(--p-shadow); }
.pp-text p { margin: 0; white-space: pre-line; color: var(--p-sub); overflow-wrap: anywhere; }

/* Testimonials */
.pp-testis { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.pp-testis::-webkit-scrollbar { display: none; }
.pp-testi { flex: 0 0 82%; scroll-snap-align: center; margin: 0; padding: 18px; border-radius: 18px; background: var(--p-card); border: 1px solid var(--p-line);
  box-shadow: var(--p-shadow); display: flex; flex-direction: column; }
.pp-testis.one .pp-testi { flex-basis: 100%; }
.pp-q { color: var(--p-accent); display: flex; align-items: center; justify-content: space-between; } .pp-q svg { width: 22px; height: 22px; }
.pp-stars { display: inline-flex; gap: 1px; color: var(--p-accent); } .pp-stars svg { width: 14px; height: 14px; }
.pp-testi blockquote { margin: 6px 0 14px; font-size: 15px; line-height: 1.5; color: var(--p-ink); flex: 1; overflow-wrap: anywhere; }
.pp-testi figcaption { display: flex; align-items: center; gap: 10px; }
.pp-testi b { font-size: 13.5px; }
.pp-ini { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--p-tint); color: var(--p-ink); font: 800 12px/1 var(--p-display); flex: none; }

/* Services */
.pp-svcs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-svc { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: var(--p-card); border: 1px solid var(--p-line); box-shadow: var(--p-shadow); min-width: 0; }
.pp-svc .pp-lic { width: 36px; height: 36px; margin-bottom: 6px; }
.pp-svc b { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; } .pp-svc small { font-size: 12.5px; color: var(--p-sub); line-height: 1.35; overflow-wrap: anywhere; }

/* Video + gallery */
.pp-media { display: grid; gap: 8px; }
.pp-video { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #0d2b67; border: 0; padding: 0; }
.pp-video img, .pp-video iframe, .pp-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.pp-video .pp-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,11,26,.55) 0%, rgba(5,11,26,0) 55%); }
.pp-play { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 58px; height: 58px; border-radius: 50%; background: #fff; color: #0f172a;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.pp-play svg { width: 22px; height: 22px; margin-left: 3px; }
.pp-gal { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.pp-gal button { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--p-tint); border: 0; padding: 0; }
.pp-gal button.hide { display: none; }
.pp-gal .plus { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,11,26,.55); color: #fff; font: 800 18px var(--p-display); }
.pp-lb { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(5,11,26,.92); }
.pp-lb[hidden] { display: none; }
.pp-lb img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 10px; }
.pp-lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff !important; display: grid; place-items: center; }
.pp-lb .x { top: 16px; right: 16px; } .pp-lb .prev { left: 12px; top: 50%; transform: translateY(-50%); } .pp-lb .next { right: 12px; top: 50%; transform: translateY(-50%); }
.pp-lb .n { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; font-weight: 600; background: rgba(0,0,0,.45); padding: 6px 12px; border-radius: 999px; }

/* Contact form (one card, no card-in-card) */
.pp-form { display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: var(--p-card); border: 1px solid var(--p-line); box-shadow: var(--p-shadow); }
.pp-form label { display: grid; gap: 6px; }
.pp-form label > span, .pp-form .pp-flabel { font-size: 13px; font-weight: 600; color: var(--p-ink); }
.pp-form textarea { width: 100%; border: 1.5px solid var(--p-line); background: var(--p-bg); color: var(--p-ink); border-radius: 12px; padding: 12px 14px;
  font: 15px/1.4 var(--p-body); outline: none; resize: vertical; min-height: 96px; }
.pp-form textarea::placeholder { color: color-mix(in srgb, var(--p-sub) 85%, var(--p-bg)); }
.pp-form textarea:focus { border-color: var(--p-accent); }
.pp-seg { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--p-bg); border: 1px solid var(--p-line); }
.pp-seg label { display: block; position: relative; }
.pp-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pp-seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--p-sub); cursor: pointer; }
.pp-seg input:checked + span { background: var(--p-card); color: var(--p-ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pp-seg input:focus-visible + span { outline: 3px solid var(--p-accent); outline-offset: 1px; }
.pp[data-dark="1"] .pp-seg input:checked + span { background: color-mix(in srgb, var(--p-card) 70%, white 12%); }
.pp-send { min-height: 50px; border: 0; border-radius: 14px; background: var(--p-accent); color: var(--p-on) !important; font: 700 15.5px/1 var(--p-display) !important;
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.pp-send[disabled] { opacity: .6; }
.pp-fine { margin: 0; text-align: center; font-size: 12.5px; color: var(--p-sub); }
.pp-err { margin: 0; font-size: 13px; font-weight: 600; color: #b42318; }
.pp[data-dark="1"] .pp-err { color: #fda29b; }
.pp-sent { text-align: center; padding: 10px 4px; }
.pp-sent .ok { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; background: var(--p-tint); color: var(--p-accent); }
.pp-sent h3 { font: 800 17px/1.2 var(--p-display); }
.pp-sent p { margin: 4px 0 10px; color: var(--p-sub); font-size: 14px; }
.pp-sent button { border: 0; background: none; min-height: 44px; font-weight: 700; color: var(--p-accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* Sold */
.pp-sold { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-scard { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-simg { position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; margin-bottom: 6px; background: var(--p-tint); }
.pp-simg img { filter: saturate(.55); }
.pp-badge { position: absolute; left: 8px; top: 8px; padding: 4px 8px; border-radius: 6px; background: rgba(15,23,42,.82); color: #fff; font: 800 10.5px/1 var(--p-display); text-transform: uppercase; letter-spacing: .08em; }
.pp-scard b { font-size: 13.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pp-scard small { font-size: 12.5px; color: var(--p-sub); }

/* Socials */
.pp-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 32px 16px 0; }
.pp-socials a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--p-card); border: 1px solid var(--p-line); color: var(--p-ink); }
.pp-socials svg { width: 19px; height: 19px; }
.pp-card .pp-socials, .pp-card .pp-stats, .pp-card .pp-cshare { display: none; }

/* Footer */
.pp-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px calc(110px + env(safe-area-inset-bottom)); text-align: center; font-size: 12.5px; color: var(--p-sub); }
.pp-foot a { color: var(--p-sub); display: inline-flex; align-items: center; min-height: 44px; } .pp-foot b { color: var(--p-ink); letter-spacing: .06em; font-weight: 800; }
.pp .prs-link { color: var(--p-sub) !important; min-height: 44px; margin-top: 0 !important; }

/* Sticky contact bar (phones; appears once the main CTA scrolls away) */
.pp-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(var(--n,3), 1fr); gap: 6px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--p-card) 92%, transparent); border-top: 1px solid var(--p-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform: translateY(110%); transition: transform .25s ease; visibility: hidden; }
.pp-bar.show { transform: none; visibility: visible; }
.pp-bar a, .pp-bar button { min-height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; font: 700 13.5px/1 var(--p-display);
  border: 1px solid var(--p-line); background: var(--p-card); color: var(--p-ink); padding: 0 6px; }
.pp-bar .main { background: var(--p-accent); color: var(--p-on); border-color: transparent; }
.pp-bar svg { width: 18px; height: 18px; }

/* Share sheet (bottom sheet on phones, centred dialog on desktop) */
.pp-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(5,11,26,.5); opacity: 0; transition: opacity .2s; }
.pp-sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; margin: 0 auto; width: 100%; max-width: 480px;
  padding: 10px 20px calc(26px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--p-card); color: var(--p-ink);
  transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
.pp-scrim[hidden], .pp-sheet[hidden] { display: none; }
.pp.share-open .pp-scrim { opacity: 1; }
.pp.share-open .pp-sheet { transform: none; }
.pp-grab { width: 40px; height: 5px; border-radius: 3px; background: var(--p-line); margin: 0 auto 14px; }
.pp-sheet h3 { font: 800 18px/1.2 var(--p-display); text-align: center; }
.pp-sheet .sub { text-align: center; color: var(--p-sub); font-size: 13.5px; margin: 4px 0 16px; }
.pp-sheet .pp-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--p-sub); }
.pp-qrwrap { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--p-bg); border: 1px solid var(--p-line); }
.pp-qr { background: #fff; padding: 6px; border-radius: 12px; line-height: 0; flex: none; }
.pp-qr img { display: block; width: 104px; height: 104px; }
.pp-qrwrap p { margin: 0; font-size: 13px; color: var(--p-sub); line-height: 1.45; }
.pp-qrwrap p b { display: block; color: var(--p-ink); font-size: 14.5px; margin-bottom: 2px; }
.pp-url { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 5px 5px 5px 14px; border-radius: 14px; border: 1.5px solid var(--p-line); font-size: 14px; font-weight: 600; }
.pp-url span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-url button { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--p-accent); color: var(--p-on) !important; font: 700 13.5px/1 var(--p-display); display: flex; gap: 6px; align-items: center; flex: none; }
.pp-url svg { width: 15px; height: 15px; }
.pp-acts { display: grid; grid-template-columns: repeat(var(--n,4),1fr); gap: 8px; margin-top: 14px; }
.pp-acts a, .pp-acts button { display: flex; flex-direction: column; align-items: center; gap: 7px; border: 0; background: none; padding: 0; font-size: 12px; font-weight: 600; color: var(--p-ink); line-height: 1.2; text-align: center; }
.pp-acts span { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--p-tint); color: var(--p-accent); }
.pp-acts svg { width: 21px; height: 21px; }
.pp-acts [hidden] { display: none; }
.pp-rlink { display: flex; margin: 14px auto 0; border: 0; background: none; min-height: 44px; align-items: center; font: 600 12.5px var(--p-body); color: var(--p-sub) !important; text-decoration: underline; text-underline-offset: 3px; }

/* Desktop ≥1024: two columns, sticky identity card left, blocks right */
@media (min-width: 1024px) {
  .pp-top { display: block; position: absolute; z-index: 3; top: 0; left: 0; right: 0; }
  .pp-top .in { max-width: 1160px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
  .pp-logo { font: 800 15px/1 var(--p-display); letter-spacing: .18em; color: #fff !important; text-shadow: 0 1px 8px rgba(0,0,0,.35); display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; }
  .pp-logo small { display: block; font-size: 15px; font-weight: 300; letter-spacing: .32em; }
  .pp-explore { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: rgba(255,255,255,.92); color: #0f172a !important; font: 700 14px/1 var(--p-display); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
  .pp-explore svg { width: 16px; height: 16px; }
  .pp-hero { height: 320px; }
  .pp-hero::after { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 40%); }
  .pp-hero .pp-iconbtn { display: none; }
  .pp-grid { max-width: 1160px; padding: 0 24px 40px; display: grid; grid-template-columns: 372px minmax(0,1fr); gap: 40px; align-items: start; }
  .pp-card { position: sticky; top: 24px; margin-top: -150px; z-index: 2; padding: 0 26px 26px; border-radius: 22px; background: var(--p-card); border: 1px solid var(--p-line);
    box-shadow: 0 30px 60px -30px rgba(13,43,103,.35); --p-fade: var(--p-card); }
  .pp-card .pp-av { --s:120px; margin-top: -60px; border-color: var(--p-card); }
  .pp-card .pp-tick { border-color: var(--p-card); width: 32px; height: 32px; }
  .pp-card .pp-name { font-size: 28px; }
  .pp-card .pp-lang, .pp-card .pp-trio a { background: var(--p-bg); }
  .pp-card .pp-bio { text-align: left; }
  .pp-card .pp-bio-t { -webkit-line-clamp: 4; }
  .pp-card .pp-stats { display: flex; margin: 20px -26px 0; padding: 16px 0 0; border-top: 1px solid var(--p-line); }
  .pp-stats div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
  .pp-stats div + div { border-left: 1px solid var(--p-line); }
  .pp-stats b { font: 800 20px/1.1 var(--p-display); } .pp-stats small { font-size: 12.5px; color: var(--p-sub); margin-top: 3px; }
  .pp-card .pp-socials { display: flex; padding: 18px 0 0; gap: 8px; }
  .pp-card .pp-socials a { width: 44px; height: 44px; background: var(--p-bg); }
  .pp-card .pp-cshare { display: flex; gap: 8px; margin-top: 16px; }
  .pp-cshare button { flex: 1; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--p-line); background: transparent; display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 14px/1 var(--p-display); color: var(--p-ink); }
  .pp-cshare svg { width: 17px; height: 17px; color: var(--p-accent); }
  .pp-main { padding-top: 34px; min-width: 0; }
  .pp-main > .pp-socials { display: none; }
  .pp-tabs { padding: 0 0 28px; flex-wrap: wrap; }
  .pp-main .pp-sec { padding: 0 0 44px; }
  .pp-main .pp-h { margin: 0 0 16px; }
  .pp-main .pp-h h2 { font-size: 24px; }
  .pp-main .pp-h a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font: 700 14.5px/1 var(--p-display); color: var(--p-ink); }
  .pp-main .pp-h a svg { width: 16px; height: 16px; color: var(--p-accent); }
  .pp-main .pp-h .pp-count.has-link { display: none; }
  .pp-rows.listings { grid-template-columns: 1fr 1fr; gap: 18px; }
  .pp-rows.listings .pp-li, .pp-rows.listings .pp-li.more { display: flex; flex-direction: column; align-items: stretch; padding: 0; border-radius: 22px; overflow: hidden; gap: 0; transition: transform .2s, box-shadow .2s; }
  .pp-li:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -22px rgba(13,43,103,.35); }
  .pp-rows.listings .pp-limg { width: 100%; height: auto; aspect-ratio: 16/10; border-radius: 0; }
  .pp-rows.listings .pp-lbody { padding: 16px 18px 18px; gap: 4px; }
  .pp-rows.listings .pp-op { position: absolute; top: 12px; left: 12px; z-index: 1; background: #fff; color: #0f172a; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
  .pp-rows.listings .pp-lbody strong { order: -1; font-size: 21px; letter-spacing: -.015em; }
  .pp-rows.listings .pp-lbody b { font-size: 15.5px; white-space: normal; }
  .pp-rows.listings .pp-lbody small { font-size: 13.5px; }
  .pp-rows.listings .pp-specs { display: block; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--p-line); font-size: 13.5px; color: var(--p-sub); font-weight: 500; }
  .pp-rows.listings .pp-specs:empty { display: none; }
  .pp-rows.listings .pp-chev { display: none; }
  .pp-rows.listings + .pp-all { display: none; }
  .pp-main .pp-link { min-height: 68px; padding: 12px 18px 12px 14px; }
  .pp-main .pp-link-t b { font-size: 15.5px; }
  .pp-main .pp-testis { display: grid; grid-template-columns: repeat(3,1fr); overflow: visible; margin: 0; padding: 0; gap: 16px; }
  .pp-main .pp-testis.one { grid-template-columns: 1fr; } .pp-main .pp-testis.two { grid-template-columns: 1fr 1fr; }
  .pp-main .pp-testi { padding: 20px; }
  .pp-main .pp-svcs { grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; }
  .pp-media.both { grid-template-columns: 1.45fr 1fr; gap: 12px; }
  .pp-media.both .pp-video { aspect-ratio: auto; height: 100%; min-height: 300px; }
  .pp-media.both .pp-gal { grid-template-columns: repeat(2,1fr); align-content: start; }
  .pp-main .pp-form { grid-template-columns: 1fr; gap: 14px 16px; padding: 24px; }
  .pp-main .pp-send { justify-self: start; padding: 0 32px; }
  .pp-main .pp-fine { text-align: left; }
  .pp-main .pp-sold { grid-template-columns: repeat(3,1fr); gap: 16px; }
  .pp-foot { padding: 12px 0 20px; align-items: flex-start; text-align: left; }
  .pp-bar { display: none; }
  .pp-sheet { top: 50%; bottom: auto; left: 50%; right: auto; border-radius: 26px; transform: translate(-50%, calc(-50% + 24px)); opacity: 0; transition: transform .22s ease, opacity .22s ease; padding-bottom: 26px; }
  .pp.share-open .pp-sheet { transform: translate(-50%, -50%); opacity: 1; }
  .pp-sheet .pp-grab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pp *, .pp *::before, .pp *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Visitor language switcher (hero on phones, top bar on desktop) */
.pp-lsw { position: relative; z-index: 4; }
.pp-lsw summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: #0f172a; font: 700 13px/1 var(--p-display); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.pp-lsw summary::-webkit-details-marker { display: none; }
.pp-lsw summary svg { width: 16px; height: 16px; }
.pp-lsw ul { position: absolute; top: calc(100% + 6px); left: 0; min-width: 150px; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(13,43,103,.35); }
.pp-lsw a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: #0f172a !important; font: 600 14px/1 var(--p-display); }
.pp-lsw a:hover, .pp-lsw a:focus-visible { background: #eef6f7; }
.pp-lsw a[aria-current] { color: #1d7c86 !important; font-weight: 800; }
.pp-lsw--hero { position: absolute; z-index: 5; top: max(14px, env(safe-area-inset-top)); left: 14px; }
.pp-lsw--top { display: none; }
.pp-topr { display: flex; align-items: center; gap: 10px; }
@media (min-width: 1024px) {
  .pp-lsw--hero { display: none; }
  .pp-lsw--top { display: block; }
  .pp-lsw--top ul { left: auto; right: 0; }
}

/* Site logo (white) over the hero on desktop */
.pp-logo img { display: block; height: 34px; width: auto; filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }
/* Contact row can hold 4 (Llamar · Email · Sitio web · Agendar) */
@media (max-width: 380px) { .pp-trio a span { font-size: 11px; } }
/* Contact row: compact tiles, centred; never stretch one button across the card */
.pp-trio { display: flex; flex-wrap: wrap; justify-content: center; }
.pp-trio a { flex: 1 1 0; max-width: 104px; min-height: 58px; padding: 6px 4px; font-size: 12px; }
.pp-trio svg { width: 18px; height: 18px; }

/* Footer: "Perfil creado con" + official logo (dark logo on light themes, white logo on dark themes) */
.pp-made { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; text-align: center; }
.pp-flogo { height: 30px; width: auto; display: inline-block; vertical-align: middle; }
.pp-flogo--dark { display: none; }
body[data-dark="1"] .pp-flogo--light { display: none; }
body[data-dark="1"] .pp-flogo--dark { display: inline-block; }
