/* Alethea v49 — alta de médicos (planes.html + panel.html), rediseño "AletheA":
   fondo con la gota del inicio, vidrio (liquid glass en iOS / blur en Android vía platform.js),
   AletheA Presence en grafito con acentos rojo de marca, cápsula de nombre con sello rojo como en el perfil.
   Sin sombras exteriores (preferencia de Pancho). */
body.alta {
  --ink: #1d1d1f; --ink2: #6e6e73; --ink3: #8e8e93; --graphite: #16161a;
  --al-r: 28px;
  min-height: 100dvh; background: transparent; color: var(--ink); overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
html:has(body.alta) { background: #e9e9ea; }
/* ---------- fondo: la gota/vidrio del inicio, fundida al gris de la app ---------- */
.al-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: #e9e9ea; }
.al-bg::before {
  content: ""; position: absolute; left: -8%; right: -8%; top: -4%; height: 86%;
  background: url("../img/brand/home-bg.jpg") center 18% / cover no-repeat;
  filter: blur(2px) saturate(0.95) contrast(1.04);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 100%);
}
.al-bg::after {           /* halo rojo de marca, muy tenue */
  content: ""; position: absolute; width: 520px; height: 520px; right: -260px; top: 24%;
  background: radial-gradient(closest-side, rgba(227,28,35,0.10), rgba(227,28,35,0));
}
body[data-page="panel"] .al-bg::before { height: 64%; opacity: 0.9; }

/* ---------- contenedor y scroll (Android: se bloquea la página, se desplaza el contenido) ---------- */
.alta-wrap { max-width: 430px; margin: 0 auto; padding: calc(12px + var(--safe-t)) 16px calc(32px + var(--safe-b)); }
body.has-paybar .alta-wrap { padding-bottom: calc(176px + var(--safe-b)); }
html.is-android:has(body.alta), html.is-android:has(body.alta) body { height: 100%; min-height: 0; overflow: hidden; overscroll-behavior: none; }
html.is-android body.alta .alta-wrap {
  height: 100vh; height: 100dvh; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
html.is-android body.alta .alta-wrap::-webkit-scrollbar { display: none; }

/* ---------- vidrio ---------- */
.al-glass {
  background: linear-gradient(145deg, rgba(255,255,255,0.66) 0%, rgba(255,255,255,0.34) 46%, rgba(255,255,255,0.5) 100%);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.9), inset -1px -1px 0 rgba(255,255,255,0.28);
}
html.is-android .al-glass {
  background: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,0.55); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
/* cápsula de nombre (misma idea que el perfil) */
.al-capsule {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 5px 13px 5px 7px; border-radius: 999px; color: #fff; font-weight: 500; font-size: 15px; line-height: 1.2; letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
  background: linear-gradient(135deg, rgba(255,255,255,0.26), rgba(255,255,255,0.06) 55%, rgba(255,255,255,0.16));
  -webkit-backdrop-filter: blur(10px) saturate(160%); backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: inset 0 1px 0.5px rgba(255,255,255,0.8), inset 0 -4px 8px -6px rgba(20,20,30,0.3);
}
.al-capsule > img { width: 16px; height: 16px; flex: none; filter: drop-shadow(0 0.5px 1px rgba(0,0,0,0.25)); }
.al-capsule > img[hidden] + span { margin-left: 6px; }
.al-capsule > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-capsule:not(:has(img:not([hidden]))) { padding-left: 13px; }
html.is-android .al-capsule { background: rgba(255,255,255,0.12); -webkit-backdrop-filter: blur(8px) saturate(140%); backdrop-filter: blur(8px) saturate(140%); border-color: rgba(255,255,255,0.45); }

/* ---------- cabecera ---------- */
.alta-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin-bottom: 20px; }
.al-brand {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 12px; border-radius: 999px;
  font-weight: 700; letter-spacing: -0.02em; font-size: 15px; color: var(--ink);
  background: rgba(255,255,255,0.55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.6);
}
.al-brand .bm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.al-brand .bm-sub { font-weight: 500; color: var(--ink2); margin-left: 3px; font-size: 13px; letter-spacing: 0; }
.tag-sample { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.01em; color: #5e5e63;
  background: rgba(255,255,255,0.7); border: 1px solid rgba(0,0,0,0.05); border-radius: 999px; padding: 3px 9px; line-height: 1.25; white-space: nowrap; }
.tag-demo { background: #fff4d6; color: #7a5200; border-color: rgba(122,82,0,0.12); }

/* ---------- tipografía ---------- */
.alta h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.035em; margin: 0 0 8px; color: var(--ink); line-height: 1.08; }
.alta .lead { margin: 0; color: var(--ink2); font-size: 15px; line-height: 1.4; }
.al-hero { padding: 4px 4px 0; margin-bottom: 20px; }
.chip-ok { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 7px; border-radius: 999px; margin-bottom: 14px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: rgba(255,255,255,0.62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.65); }
.chip-ok img { width: 16px; height: 16px; }
.fine { text-align: center; font-size: 12px; color: var(--ink3); margin: 12px 0 0; line-height: 1.45; }
.link-u { text-decoration: underline; text-underline-offset: 2px; color: var(--ink2); }

/* ---------- botones ---------- */
.pay-btn { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 54px; border-radius: 999px;
  background: #1c1c1e; color: #fff; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em;
  transition: background 0.2s, color 0.2s, transform 0.12s; }
.pay-btn svg { width: 20px; height: 20px; }
.pay-btn:active:not(:disabled) { transform: scale(0.98); }
.pay-btn:disabled { background: rgba(60,60,67,0.18); color: rgba(60,60,67,0.55); cursor: not-allowed; }
.btn-soft { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 52px; border-radius: 999px;
  background: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.8); color: var(--ink); font-size: 15.5px; font-weight: 600; }
.btn-soft svg { width: 18px; height: 18px; }
.btn-soft .soon { font-size: 10.5px; font-weight: 600; color: var(--ink2); background: rgba(0,0,0,0.06); border-radius: 999px; padding: 3px 8px; }
.state-box { border-radius: 32px; padding: 30px 22px 24px; text-align: center; margin-top: 10vh; }
.state-box h2 { margin: 12px 0 6px; font-size: 21px; letter-spacing: -0.02em; }
.state-box p { margin: 0 0 18px; color: var(--ink2); font-size: 14.5px; line-height: 1.45; }
.state-ico { width: 56px; height: 56px; border-radius: 50%; background: #1c1c1e; color: #fff; display: grid; place-items: center; margin: 0 auto; }
.state-ico svg { width: 26px; height: 26px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(0,0,0,0.1); border-top-color: #1c1c1e; animation: al-spin 0.8s linear infinite; margin: 0 auto; }
@keyframes al-spin { to { transform: rotate(360deg); } }

/* ================= PLANES ================= */
.plans-list { display: grid; gap: 14px; margin-bottom: 14px; }
.plan-card { position: relative; display: block; width: 100%; text-align: left; border-radius: 32px; padding: 18px 18px 20px;
  color: var(--ink); transition: transform 0.18s ease, opacity 0.2s; font: inherit; }
.plan-card:active { transform: scale(0.985); }
.plan-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid transparent; pointer-events: none; transition: border-color 0.2s; }
.plan-card.pc-light.sel::after { border-color: #1c1c1e; }
.plan-card.pc-dark.sel::after { border-color: var(--red); }
.plan-card.pc-dark {
  color: #f5f5f7;
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(227,28,35,0.26) 0%, rgba(227,28,35,0) 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(160deg, #2e2e33 0%, #18181c 52%, #0b0b0d 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), inset 0 -1px 0 rgba(255,255,255,0.04);
}
.pc-top { display: flex; align-items: center; justify-content: space-between; min-height: 24px; margin-bottom: 10px; }
.pc-badge { font-size: 11px; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; padding: 4px 10px; letter-spacing: 0.02em; }
.pc-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); }
.pc-radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(60,60,67,0.3); display: grid; place-items: center; flex: none; transition: all 0.2s; }
.pc-dark .pc-radio { border-color: rgba(255,255,255,0.35); }
.plan-card.sel .pc-radio { border-color: #1c1c1e; background: #1c1c1e; }
.plan-card.pc-dark.sel .pc-radio { border-color: var(--red); background: var(--red); }
.plan-card.sel .pc-radio::after { content: ""; width: 11px; height: 6px; border: 2.4px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.pc-name { display: flex; align-items: center; gap: 7px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.pc-name img { width: 20px; height: 20px; }
.pc-tagline { font-size: 14px; color: var(--ink2); margin-top: 3px; font-weight: 500; }
.pc-dark .pc-tagline { color: rgba(255,255,255,0.66); }
.pc-preview { position: relative; height: 184px; border-radius: 22px; overflow: hidden; margin: 14px 0 4px; background: #333; }
.pc-preview > img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.pc-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.38) 100%); }
.pc-prev-meta { position: absolute; right: 10px; bottom: 10px; left: 10px; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.pc-prev-meta small { font-size: 11.5px; color: rgba(255,255,255,0.92); text-shadow: 0 1px 2px rgba(0,0,0,0.5); padding-right: 4px; }
.pc-prev-tag { position: absolute; left: 10px; top: 10px; z-index: 1; font-size: 10.5px; font-weight: 600; color: #fff; padding: 4px 9px; border-radius: 999px;
  background: rgba(0,0,0,0.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25); }
.pc-price { margin: 14px 0 2px; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.pc-price b { font-size: 44px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.pc-per { color: var(--ink2); font-size: 15px; }
.pc-dark .pc-per { color: rgba(255,255,255,0.62); }
.pc-iva { align-self: center; font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; color: var(--ink2); background: rgba(0,0,0,0.06); border-radius: 999px; padding: 4px 9px; }
.pc-dark .pc-iva { color: rgba(255,255,255,0.78); background: rgba(255,255,255,0.1); }
.pc-month { font-size: 13px; color: var(--ink3); margin-bottom: 14px; }
.pc-dark .pc-month { color: rgba(255,255,255,0.55); }
.plan-card ul { list-style: none; margin: 0; padding: 14px 0 0; display: grid; gap: 9px; border-top: 1px solid rgba(0,0,0,0.07); }
.pc-dark ul { border-top-color: rgba(255,255,255,0.1); }
.plan-card li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.35; color: #3a3a3c; }
.pc-dark li { color: rgba(255,255,255,0.86); }
.plan-card li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 0; border-radius: 50%;
  background: #1c1c1e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pc-dark li::before { background-color: var(--red); }

/* términos + casilla, integrados en una sola tarjeta de vidrio */
.terms-card { border-radius: 26px; padding: 16px 16px 4px; }
.terms-row { display: flex; gap: 12px; align-items: flex-start; }
.terms-ico { width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,0.06); color: var(--ink); display: grid; place-items: center; flex: none; }
.terms-ico svg { width: 17px; height: 17px; }
.terms-row p { margin: 0; font-size: 14px; line-height: 1.45; color: #3a3a3c; }
.terms-row p strong { color: var(--ink); }
.check-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 2px 14px; margin-top: 12px; border-top: 1px solid rgba(0,0,0,0.07);
  font-size: 15.5px; color: var(--ink); cursor: pointer; font-weight: 500; }
.check-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-row .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid rgba(60,60,67,0.35); background: rgba(255,255,255,0.85); flex: none; display: grid; place-items: center; transition: background 0.15s, border-color 0.15s; }
.check-row input:checked + .box { background: #1c1c1e; border-color: #1c1c1e; }
.check-row input:checked + .box::after { content: ""; width: 12px; height: 7px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check-row input:focus-visible + .box { outline: 2px solid var(--blue); outline-offset: 2px; }
.check-row a { text-decoration: underline; text-underline-offset: 2px; }

/* barra fija de pago */
.pay-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 0 10px calc(10px + var(--safe-b)); pointer-events: none; }
.pay-bar-in { pointer-events: auto; max-width: 420px; margin: 0 auto; border-radius: 32px; padding: 12px 12px 10px; }
html:not(.is-android) .pay-bar-in { background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(255,255,255,0.56)); }
.pay-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 2px 8px 10px; }
.pay-sum b { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.pay-bar.is-presence .pay-btn:not(:disabled) { background: linear-gradient(180deg, #ef2a31, #c9151c); }
.pay-bar.is-presence .pay-sum b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: 6px; vertical-align: 2px; }
.pay-sum span { font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.pay-fine { text-align: center; font-size: 11.5px; color: var(--ink3); margin: 8px 0 0; }

/* ---- pago SIMULADO: hoja inferior ---- */
.pp-sim { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-end; justify-content: center;
  background: rgba(18,18,20,0.36); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pp-sim.open { display: flex; }
.pp-inner { width: min(100%, 430px); max-height: calc(100dvh - 16px - var(--safe-t)); overflow-y: auto; overscroll-behavior: contain;
  background: rgba(246,246,248,0.97); border-radius: 36px 36px 0 0; padding: 8px 16px calc(18px + var(--safe-b));
  animation: pp-up 0.34s cubic-bezier(0.22, 1, 0.36, 1); }
html:not(.is-android) .pp-inner { background: linear-gradient(160deg, rgba(255,255,255,0.9), rgba(242,242,246,0.84)); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9); }
@keyframes pp-up { from { transform: translateY(40px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.pp-grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(60,60,67,0.22); margin: 2px auto 12px; }
.pp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pp-brand { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.pp-brand .pp-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff6b1a; }
.pp-brand i { font-style: normal; color: var(--ink3); font-weight: 600; font-size: 13px; }
.pp-close { font-size: 15px; color: var(--ink2); padding: 8px 4px; font-weight: 500; }
.pp-demo { display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; border-radius: 18px; padding: 10px 12px; margin-bottom: 12px;
  background: #fff4d6; border: 1px solid rgba(122,82,0,0.15); color: #7a5200; }
.pp-demo b { font-size: 12.5px; letter-spacing: 0.07em; }
.pp-demo span { font-size: 12px; }
.pp-card { background: #fff; border-radius: 22px; padding: 14px 16px; margin-bottom: 10px; }
.pp-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: #3a3a3c; padding: 5px 0; }
.pp-line b { color: var(--ink); text-align: right; }
.pp-line.total { border-top: 1px solid #ececf0; margin-top: 6px; padding-top: 11px; font-size: 17px; }
.pp-field { display: block; margin-bottom: 10px; }
.pp-field span { display: block; font-size: 12px; color: var(--ink3); margin: 0 0 5px 2px; }
.pp-field input { width: 100%; height: 46px; border-radius: 14px; border: 1px solid #e8e8ed; background: #f6f6f9; padding: 0 14px; font-size: 16px; color: var(--ink3); font-family: inherit; }
.pp-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-btn.pp-pay { background: #ff6b1a; margin-top: 4px; }
.pay-btn.pp-pay:disabled { background: #ffb58c; color: #fff; }

/* ---- activado: sobrio pero celebratorio ---- */
.done-wrap { text-align: center; padding-top: 2vh; }
.done-stage { position: relative; width: 256px; margin: 6px auto 38px; }
.done-stage::before { content: ""; position: absolute; inset: -46px -70px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%), radial-gradient(closest-side at 70% 30%, rgba(227,28,35,0.12), rgba(227,28,35,0)); }
.done-card { position: relative; width: 256px; aspect-ratio: 359 / 470; border-radius: 34px; overflow: hidden; background: #cfcfd4;
  animation: done-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.done-card > img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.done-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.4) 100%); }
.done-meta { position: absolute; z-index: 1; right: 10px; left: 10px; bottom: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.done-meta .al-capsule { font-size: 13.5px; }
.done-meta small { font-size: 11px; color: rgba(255,255,255,0.92); text-shadow: 0 1px 2px rgba(0,0,0,0.5); padding-right: 4px; }
.done-plan { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); z-index: 2; white-space: nowrap;
  font-size: 12.5px; font-weight: 700; padding: 6px 13px; border-radius: 999px; color: var(--ink);
  background: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.9); animation: done-pop 0.5s 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.done-plan.is-presence { color: #fff; background: linear-gradient(160deg, #2e2e33, #0b0b0d); border-color: rgba(255,255,255,0.12); }
.done-plan.is-presence::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 7px; vertical-align: 1px; }
.done-ico { width: 58px; height: 58px; border-radius: 50%; background: #1c1c1e; display: grid; place-items: center; margin: 0 auto 12px; position: relative;
  animation: done-pop 0.55s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.done-ico::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(28,28,30,0.18); animation: done-ring 1.4s 0.5s ease-out both; }
.done-ico svg { width: 30px; height: 30px; }
.done-stage:not([hidden]) + .done-ico { display: none; }
.done-wrap h2 { margin: 0 0 8px; font-size: 27px; font-weight: 700; letter-spacing: -0.03em; }
.done-wrap .fine, .alta p { text-wrap: pretty; }
.done-wrap > p { text-wrap: balance; margin: 0 auto 22px; color: var(--ink2); font-size: 15px; line-height: 1.45; max-width: 300px; }
@keyframes done-in { from { transform: translateY(14px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes done-pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done-plan { animation-name: done-pop-x; }
@keyframes done-pop-x { from { transform: translateX(-50%) scale(0.5); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes done-ring { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .done-card, .done-plan, .done-ico, .done-ico::after { animation: none; } }

/* ================= LOGIN ================= */
.login-wrap { min-height: calc(100dvh - 104px - var(--safe-t) - var(--safe-b)); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.login-hero { text-align: center; padding-top: 7vh; }
.login-orb { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,0.95), rgba(255,255,255,0.35) 42%, rgba(255,255,255,0.12) 70%), rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.7); box-shadow: inset 0 -10px 18px -10px rgba(30,30,40,0.25), inset 0 2px 1px rgba(255,255,255,0.9); }
.login-orb .bm-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--red); }
.login-hero h1 { font-size: 38px; line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 10px; }
.login-card { border-radius: 34px; padding: 20px 16px 16px; display: grid; gap: 10px; }
.login-text { margin: 0 6px 6px; text-align: center; font-size: 14px; color: var(--ink2); line-height: 1.45; }
.pay-btn.wa-btn svg { width: 21px; height: 21px; color: #25d366; }

/* ================= PANEL ================= */
.hero-card { position: relative; width: 100%; aspect-ratio: 359 / 468; border-radius: 40px; overflow: hidden; background: #cfcfd4; margin-bottom: 12px; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 16%; display: block; }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 58%, rgba(0,0,0,0.42) 100%); }
.hero-pills { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.g-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08) 60%, rgba(255,255,255,0.16));
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.5); box-shadow: inset 0 1px 0.5px rgba(255,255,255,0.75); }
html.is-android .g-pill { background: rgba(0,0,0,0.22); border-color: rgba(255,255,255,0.35); }
.g-pill svg { width: 12px; height: 12px; }
.g-pill .gp-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.g-pill.g-presence { background: rgba(14,14,16,0.55); border-color: rgba(255,255,255,0.22); }
.g-pill.g-presence .gp-dot { background: var(--red); }
.hero-meta { position: absolute; right: 16px; left: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.hero-meta .al-capsule { font-size: 17px; padding-top: 6px; padding-bottom: 6px; }
.hero-meta small { font-size: 12.5px; color: rgba(255,255,255,0.94); text-shadow: 0 1px 3px rgba(0,0,0,0.5); padding-right: 6px; }
.btn-glass { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 52px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.btn-glass svg { width: 19px; height: 19px; }
.p-card { border-radius: 32px; padding: 18px 18px 16px; margin-bottom: 14px; }
.p-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.p-card-h h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.stat-big { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.stat-num b { display: block; font-size: 54px; font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-num small { display: block; font-size: 13.5px; color: var(--ink2); margin-top: 6px; white-space: nowrap; }
.trend { display: inline-block; font-size: 11.5px; font-weight: 700; color: #1a7f3c; background: rgba(52,199,89,0.14); border-radius: 999px; padding: 2px 7px; margin-left: 4px; }
.spark { width: 46%; max-width: 170px; height: 58px; flex: none; }
.spark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { border-radius: 20px; padding: 11px 11px 10px; min-width: 0; background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.7); }
.tile .t-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #1c1c1e; color: #fff; margin-bottom: 8px; }
.tile .t-ico.t-wa { background: #25d366; }
.tile .t-ico svg { width: 15px; height: 15px; }
.tile b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile small { display: block; font-size: 12px; color: var(--ink2); margin-top: 1px; line-height: 1.3; }
.tile.locked { background: rgba(255,255,255,0.3); border-style: dashed; border-color: rgba(60,60,67,0.18); }
.tile.locked .t-ico { background: rgba(60,60,67,0.25); }
.tile { position: relative; }
.tile.locked b { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; font-size: 10.5px; font-weight: 500; letter-spacing: 0; color: var(--ink3); line-height: 1.2; }
.tile.locked b .lock { position: absolute; top: 12px; right: 11px; width: 14px; height: 14px; color: var(--ink3); }
.tile.locked b .lk-p { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap;
  background: linear-gradient(160deg, #2e2e33, #0b0b0d); border-radius: 999px; padding: 3px 8px 3px 7px; }
.tile.locked b .lk-p::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.plan-card2 .plan-name2 { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.plan-card2 .plan-name2 img { width: 16px; height: 16px; }
.plan-line { font-size: 15px; text-wrap: balance; color: var(--ink); font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; }
.plan-sub { font-size: 13px; color: var(--ink2); margin: 0; line-height: 1.4; }
.plan-card2.is-presence, html.is-android .plan-card2.is-presence {   /* v55: en Android el vidrio (.al-glass) lo tapaba */
  color: #f5f5f7; border: 1px solid rgba(255,255,255,0.1); -webkit-backdrop-filter: none; backdrop-filter: none;
  background: radial-gradient(110% 80% at 100% 0%, rgba(227,28,35,0.26), rgba(227,28,35,0) 55%), linear-gradient(160deg, #2e2e33 0%, #18181c 52%, #0b0b0d 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}
.plan-card2.is-presence h2, .plan-card2.is-presence .plan-line { color: #fff; }
.plan-card2.is-presence .plan-sub { color: rgba(255,255,255,0.64); }
.up-btn { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 13px 14px 13px 16px; border-radius: 24px; text-align: left; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(227,28,35,0.34), rgba(227,28,35,0) 60%), linear-gradient(160deg, #2e2e33 0%, #16161a 60%, #0b0b0d 100%);
  border: 1px solid rgba(255,255,255,0.1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18); font: inherit; }
.up-btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0) 100%); animation: up-sheen 4.5s ease-in-out 1s infinite; }
@keyframes up-sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .up-btn::after { animation: none; display: none; } }
.up-btn > img { width: 22px; height: 22px; flex: none; }
.up-btn > span { flex: 1; min-width: 0; }
.up-btn b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -0.02em; }
.up-btn small { display: block; font-size: 12px; color: rgba(255,255,255,0.66); margin-top: 2px; }
.up-btn .chev { width: 16px; height: 16px; color: rgba(255,255,255,0.5); flex: none; }
.up-btn:active { transform: scale(0.99); }
.act-list { border-radius: 30px; padding: 6px; margin-bottom: 14px; }
.act-row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 10px; border-radius: 22px; text-align: left; font-size: 16px; color: var(--ink); font-weight: 500; }
.act-row + .act-row { position: relative; }
.act-row + .act-row::before { content: ""; position: absolute; top: 0; left: 59px; right: 12px; height: 1px; background: rgba(0,0,0,0.06); }
.act-row:active { background: rgba(0,0,0,0.05); }
.act-row .a-ico { width: 36px; height: 36px; border-radius: 50%; background: #1c1c1e; color: #fff; display: grid; place-items: center; flex: none; }
.act-row .a-ico svg { width: 17px; height: 17px; }
.act-row .a-t { flex: 1; min-width: 0; }
.act-row .a-t small { display: block; color: var(--ink3); font-size: 12.5px; font-weight: 400; margin-top: 1px; line-height: 1.3; }
.act-row .chev { width: 16px; height: 16px; color: #c7c7cc; flex: none; }
.act-row.danger { color: #c9302c; }
.act-row.danger .a-ico { background: rgba(201,48,44,0.1); color: #c9302c; }
.p-foot { text-align: center; font-size: 11.5px; color: var(--ink3); margin: 4px 12px 0; line-height: 1.5; }

/* ---------- hojas (reutilizan .action-sheet-wrap de la app) ---------- */
.alta .action-sheet { max-height: calc(100dvh - 40px - var(--safe-t)); overflow-y: auto; overscroll-behavior: contain; touch-action: auto !important; }
.alta .action-sheet-wrap:not(.open) .action-sheet { visibility: hidden; transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.34s; }
.sh-title { margin: 0 0 14px; font-size: 17px; font-weight: 600; text-align: center; color: var(--ink); }
.terms-box { border-radius: 22px; padding: 14px 16px; margin-bottom: 12px; font-size: 14px; line-height: 1.45; color: #3a3a3c; background: rgba(255,255,255,0.72); }
.terms-box strong { color: var(--ink); }
.sh-field { display: block; margin-bottom: 11px; }
.sh-field span { display: block; font-size: 12.5px; color: var(--ink2); margin: 0 0 5px 4px; }
.sh-field input, .sh-field textarea { width: 100%; border: 0; border-radius: 16px; background: rgba(255,255,255,0.82); padding: 12px 14px; font-size: 16px; font-family: inherit; color: var(--ink); }
.sh-field textarea { resize: none; min-height: 64px; }
.photo-edit { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.photo-edit img { width: 64px; height: 80px; border-radius: 18px; object-fit: cover; object-position: center top; background: #d8d8dc; }
.photo-edit label { font-size: 15px; font-weight: 600; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,0.82); cursor: pointer; }
.photo-edit input { display: none; }
.sh-actions { display: grid; gap: 8px; margin-top: 6px; }
.qr-box { background: #fff; border-radius: 24px; padding: 14px; width: 216px; margin: 0 auto 12px; }
.qr-box canvas { width: 188px; height: 188px; display: block; image-rendering: pixelated; }
.share-url { font-size: 13px; color: #3a3a3c; background: rgba(255,255,255,0.72); border-radius: 14px; padding: 10px 12px; word-break: break-all; margin-bottom: 10px; text-align: center; }
.alta-toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; z-index: 90;
  background: rgba(28,28,30,0.92); color: #fff; font-size: 14px; padding: 10px 16px; border-radius: 999px; transition: opacity 0.2s, transform 0.2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.alta-toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-paybar .alta-toast { bottom: calc(170px + var(--safe-b)); }
[hidden] { display: none !important; }
/* v49: activado — insignia de check sobre la foto y texto fino compacto */
.done-card::before { content: ""; position: absolute; z-index: 2; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 20px no-repeat;
  border: 2px solid rgba(255,255,255,0.9); animation: done-pop 0.5s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.done-wrap > p.fine { font-size: 12.5px; color: var(--ink3); margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .done-card::before { animation: none; } }
.tile.locked small { margin-top: 5px; }
.done-wrap:not([hidden]) { min-height: calc(100dvh - 120px - var(--safe-t) - var(--safe-b)); display: flex; flex-direction: column; justify-content: center; padding-top: 0; padding-bottom: 4vh; }

/* v50: planes informativo (sin token): barra con "Empezar por WhatsApp", sin casilla ni pago */
.pay-bar.is-info .pay-bar-in { padding-top: 12px; }
.pay-bar.is-info .pay-fine { font-size: 12px; color: var(--ink2); line-height: 1.35; margin-top: 9px; padding: 0 10px; text-wrap: balance; }
.pay-bar [hidden] { display: none !important; }
body.plans-info.has-paybar .alta-wrap { padding-bottom: calc(150px + var(--safe-b)); }
/* v55: planes informativo con tarjetas elegibles — el borde rojo/negro y el check marcan la elegida; la otra se atenúa un poco */
body.plans-info .plan-card { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.plans-list .plan-card { transition: transform 0.18s ease, opacity 0.22s ease, box-shadow 0.22s ease; }
.plans-list:has(.plan-card.sel) .plan-card:not(.sel) { opacity: 0.74; }
.plan-card.pc-light.sel { box-shadow: 0 10px 30px rgba(20,20,30,0.14); }
.plan-card.pc-dark.sel { box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 12px 32px rgba(227,28,35,0.18); }
.plan-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.pay-bar.is-info .wa-btn span { white-space: nowrap; }
.pay-bar.info-presence #infoBarLabel::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: 7px; vertical-align: 2px; }

/* v55: tarjeta Boost del panel (SOLO Presence; "Próximamente"). En Fly: bloqueada como las fichas de Llamar / Instagram */
.boost-card .p-card-h h2 { display: inline-flex; align-items: center; gap: 8px; }
.bst-ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #ef2a31, #c9151c); }
.bst-ico svg { width: 14px; height: 14px; }
.bst-state { font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink2); background: rgba(0,0,0,0.06); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.bst-state.bst-lock { display: inline-flex; align-items: center; gap: 5px; background: none; padding: 0; font-weight: 500; color: var(--ink3); }
.bst-state .lock { width: 13px; height: 13px; }
.bst-state .lk-p { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap;
  background: linear-gradient(160deg, #2e2e33, #0b0b0d); border-radius: 999px; padding: 3px 8px 3px 7px; }
.bst-state .lk-p::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.bst-line { font-size: 14.5px; color: var(--ink); font-weight: 500; margin: 0 0 12px; line-height: 1.4; text-wrap: balance; }
.bst-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bst-price { border-radius: 20px; padding: 11px 12px 10px; background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.7); }
.bst-price b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.bst-price small { display: block; font-size: 12px; color: var(--ink2); margin-top: 2px; }
.bst-fine { font-size: 12px; color: var(--ink3); margin: 10px 2px 0; line-height: 1.4; }
.boost-card.locked, html.is-android .boost-card.locked { background: rgba(255,255,255,0.3); border: 1px dashed rgba(60,60,67,0.18); }
.boost-card.locked .bst-ico { background: rgba(60,60,67,0.25); }
.boost-card.locked .bst-line, .boost-card.locked .bst-price b { color: var(--ink3); }
.boost-card.locked .bst-price { background: rgba(255,255,255,0.3); border-style: dashed; border-color: rgba(60,60,67,0.14); }
/* v55: planes informativo — los tres pasos bajo el título, línea corta y discreta */
.al-steps { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink3); text-wrap: balance; }

/* v56: «Mi perfil» — dónde apareces (especialidad + ciudad, opciones tocables) */
.where-card { padding: 14px 14px 8px; }
.where-card .p-card-h { margin: 2px 4px 8px; }
.where-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #1a7f3c; background: rgba(52,199,89,0.14); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.where-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34c759; }
.where-alert { display: flex; gap: 11px; align-items: flex-start; padding: 4px 4px 12px; }
.where-alert .wa-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227,28,35,0.14); }
.where-alert b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1.25; }
.where-alert small { display: block; font-size: 13px; color: var(--ink2); margin-top: 3px; line-height: 1.35; }
.where-card.needs { box-shadow: inset 0 0 0 1.5px rgba(227,28,35,0.45); }
.where-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 10px; border-radius: 18px; text-align: left; font: inherit; color: var(--ink); }
.where-row + .where-row { border-top: 1px solid rgba(0,0,0,0.06); border-radius: 0 0 18px 18px; }
.where-row:active { background: rgba(0,0,0,0.05); }
.where-row .wr-k { flex: none; width: 104px; font-size: 14px; color: var(--ink2); }
.where-row .wr-v { flex: 1; min-width: 0; text-align: left; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where-row .wr-v.pending { color: var(--red); }
.where-row .chev { width: 16px; height: 16px; color: #c7c7cc; flex: none; }
.pick-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; max-height: calc(100dvh - 230px - var(--safe-t)); overflow-y: auto; padding: 2px; }
.pick-chip { font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); padding: 10px 15px; border-radius: 999px; min-height: 44px;
  background: rgba(255,255,255,0.78); border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 1px 2px rgba(0,0,0,0.06); transition: background 0.15s, color 0.15s, transform 0.12s; }
.pick-chip:active { transform: scale(0.97); }
.pick-chip.sel { background: #1c1c1e; color: #fff; border-color: #1c1c1e; }

/* ===== v57: especialidad y ciudad fijas ===== */
.where-confirm { margin: 10px 0 6px; }
.where-note { margin: 8px 6px 6px; font-size: 13px; line-height: 1.4; color: var(--ink2); }
.where-card.locked .where-row { cursor: default; }
.where-card.locked .where-row .chev { display: none; }
.where-card.locked .where-row:active { background: none; }
.where-row .wr-v .lock { width: 15px; height: 15px; margin-left: 7px; vertical-align: -2px; color: #8e8e93; }
.where-row:disabled { opacity: 1; color: var(--ink); }
.lock-ico { width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(227,28,35,0.1); color: var(--red); }
.lock-ico svg { width: 26px; height: 26px; }
.lock-text { margin: -4px 8px 16px; text-align: center; font-size: 16px; line-height: 1.45; color: var(--ink); }

/* ===== v57: silueta (sin foto) — textos oscuros sobre el fondo claro ===== */
.hero-card.is-placeholder { background: #f1f1f3; }
.hero-card.is-placeholder .hero-shade { opacity: 0.25; }
.hero-card.is-placeholder .hero-meta small { color: var(--ink2); text-shadow: none; }

/* ===== v57: Editar perfil ===== */
.alta .edit-sheet { display: flex; flex-direction: column; height: calc(100dvh - 20px - var(--safe-t)); max-height: none; overflow: hidden; padding: 12px 0 0; }
.ed-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 2px 14px 10px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.ed-head .sh-title { margin: 0; }
.ed-x, .ed-save-top { font: inherit; font-size: 15px; background: none; border: 0; padding: 8px 6px; color: var(--ink2); justify-self: start; }
.ed-save-top { justify-self: end; color: var(--red); font-weight: 700; }
.ed-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 16px calc(18px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.ed-sec { padding: 14px 0 12px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.ed-sec h3 { margin: 0 0 10px 2px; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ed-help { margin: -4px 2px 10px; font-size: 13px; line-height: 1.4; color: var(--ink2); }
.ed-err { margin: 8px 2px 0; font-size: 13.5px; font-weight: 600; color: var(--red); }
.ed-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-style: normal; font-weight: 700; color: #6e6e73; background: rgba(0,0,0,0.06); border-radius: 999px; padding: 3px 9px; }
.ed-lock .lock { width: 12px; height: 12px; }
.locked input, .locked .map-box, .locked .map-tools, .locked .map-search { opacity: 0.45; pointer-events: none; }
.sh-field.bad input, .ed-sec.bad .map-box { box-shadow: 0 0 0 2px var(--red); }
.sh-field span em.ed-lock { display: inline-flex; margin-left: 6px; }
/* foto */
.photo-edit2 { display: flex; gap: 14px; align-items: center; }
.pe-card { flex: none; width: 92px; aspect-ratio: 359 / 468; border-radius: 22px; overflow: hidden; background: #f1f1f3; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.pe-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.pe-actions { display: grid; gap: 8px; justify-items: start; }
.pe-actions small { font-size: 12.5px; color: var(--ink2); line-height: 1.35; }
.pe-pick { position: relative; overflow: hidden; cursor: pointer; padding: 10px 16px; }
.pe-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pe-remove { font-size: 14px; color: var(--red); background: none; border: 0; padding: 0; }
/* horario */
.hrs { display: grid; gap: 6px; }
.hr-day { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 18px; background: rgba(255,255,255,0.6); }
.hr-day.on { background: rgba(255,255,255,0.9); }
.hr-day.bad { box-shadow: 0 0 0 2px var(--red); }
.hr-chk { display: flex; align-items: center; gap: 10px; min-height: 40px; flex: none; width: 118px; cursor: pointer; }
.hr-chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hr-box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid #c7c7cc; background: #fff; display: grid; place-items: center; transition: background 0.15s, border-color 0.15s; }
.hr-chk input:checked + .hr-box { background: #1c1c1e; border-color: #1c1c1e; }
.hr-chk input:checked + .hr-box::after { content: ""; width: 11px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.hr-chk input:focus-visible + .hr-box { outline: 2px solid var(--red); outline-offset: 2px; }
.hr-name { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.hr-off { align-self: center; font-size: 14px; color: #aeaeb2; }
.hr-turns { flex: 1; min-width: 0; display: grid; gap: 6px; }
.hr-turn { display: flex; align-items: center; gap: 6px; }
.hr-turn select { flex: 1; min-width: 0; min-height: 40px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); border: 0; border-radius: 12px; background: #f2f2f4; padding: 8px 6px; text-align: center; -webkit-appearance: none; appearance: none; }
.hr-dash { font-size: 13px; color: var(--ink2); }
.hr-add, .hr-del { font: inherit; font-size: 13.5px; font-weight: 600; background: none; border: 0; padding: 4px 2px; color: var(--red); justify-self: start; }
.hr-del { color: #8e8e93; flex: none; }
.hrs-copy { margin-top: 10px; width: 100%; display: grid; gap: 1px; }
.hrs-copy small { font-size: 12px; font-weight: 500; color: var(--ink2); }
/* mapa */
.map-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.map-me { padding: 9px 14px; font-size: 14.5px; }
.map-clear { flex: 0 0 auto; white-space: nowrap; font-size: 14px; color: #c62828; background: none; border: 0; }
.map-box { position: relative; height: 270px; border-radius: 22px; overflow: hidden; background: #e8e8ec; z-index: 0; touch-action: none; }
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--ink2); z-index: 500; background: #eeeef1; }
.map-empty[hidden] { display: none; }
.map-box .leaflet-control-attribution { font-size: 10px; border-radius: 8px 0 0 0; }
.map-box .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; font-size: 20px; }
.map-search { display: flex; gap: 8px; margin-top: 8px; }
.map-search input { flex: 1; min-width: 0; border: 0; border-radius: 14px; background: rgba(255,255,255,0.82); padding: 11px 13px; font: inherit; font-size: 15px; }
.map-search button { flex: 0 0 auto; width: auto; height: 44px; padding: 0 18px; font-size: 14.5px; }
.map-results { display: grid; gap: 4px; margin-top: 6px; }
.mr-item { font: inherit; font-size: 14px; text-align: left; border: 0; border-radius: 12px; background: rgba(255,255,255,0.85); padding: 10px 12px; color: var(--ink); }
.mr-attr { font-size: 11px; color: #8e8e93; margin: 2px 4px; }
.map-status { margin: 8px 2px 10px; }
.al-pin { background: none; border: 0; }
.al-pin-body { position: absolute; left: 3px; top: 0; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red); box-shadow: 0 4px 10px rgba(0,0,0,0.3); border: 2px solid #fff; }
.al-pin-dot { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; }
/* recorte */
.crop-view { position: fixed; inset: 0; z-index: 90; background: #0b0b0c; color: #fff; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.crop-view.open { opacity: 1; pointer-events: auto; }
.crop-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: calc(10px + var(--safe-t)) 12px 8px; }
.crop-top h2 { margin: 0; font-size: 16px; font-weight: 600; }
.crop-btn { font: inherit; font-size: 15px; color: #fff; background: none; border: 0; padding: 10px 8px; justify-self: start; }
.crop-ok { justify-self: end; font-weight: 700; color: #fff; background: var(--red); border-radius: 999px; padding: 9px 16px; }
.crop-ok:disabled { opacity: 0.5; }
.crop-stage { flex: 1; position: relative; display: grid; place-items: center; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.crop-frame { position: relative; border-radius: 40px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,0.85), 0 0 0 100vmax rgba(11,11,12,0.72); background: #222; }
.crop-frame img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform; pointer-events: none; }
.crop-bottom { padding: 12px 22px calc(18px + var(--safe-b)); text-align: center; }
.crop-bottom p { margin: 0 0 10px; font-size: 13px; color: rgba(255,255,255,0.7); }
.crop-bottom input[type=range] { width: 100%; accent-color: #fff; height: 32px; }
/* v57: silueta neutra (sin foto de muestra): fondo claro; degradado inferior suave para que la cápsula y el texto se lean */
.pc-preview.is-placeholder, .done-card.is-placeholder { background: #f1f1f3; }
.pc-preview.is-placeholder::after, .done-card.is-placeholder::after { background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(40,40,48,0.5) 100%); }
.pc-preview.is-placeholder .pc-prev-tag { color: #3a3a3c; background: rgba(255,255,255,0.6); border-color: rgba(0,0,0,0.06); }

/* v65: QR con logo (ojos redondeados y «• A»): el canvas ya se dibuja a la densidad del equipo → sin «pixelated» para que el logo quede nítido */
.qr-box canvas { image-rendering: auto; }

/* v70: «Enfoque» — fila en «Dónde apareces» y sección «Especialidad y enfoque» de Editar perfil */
/* panel · Dónde apareces: la fila Enfoque sí se toca aunque especialidad/ciudad estén fijas */
.where-row.focus-row { border-top: 1px solid rgba(0,0,0,0.06); border-radius: 0 0 18px 18px; align-items: flex-start; }
.where-row.focus-row .wr-k { padding-top: 1px; }
.where-row.focus-row .wr-v { white-space: normal; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.where-row.focus-row .wr-v.empty { color: #8e8e93; font-weight: 500; }
.where-card.locked .where-row.focus-row { cursor: pointer; }
.where-card.locked .where-row.focus-row .chev { display: block; margin-top: 2px; }
.where-card.locked .where-row.focus-row:active { background: rgba(0,0,0,0.05); }

/* Editar perfil · Especialidad y enfoque */
.fc-fixed { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,0.5); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.fc-lock { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 12.5px; font-weight: 500; color: #8e8e93; }
.fc-lock svg { width: 13px; height: 13px; }
.fc-field > span:first-child i { font-style: normal; color: inherit; opacity: .75; }
.fc-field textarea { min-height: 0; height: 70px; line-height: 1.35; padding: 11px 14px; }
.fc-help { display: flex; align-items: flex-start; gap: 12px; margin: -4px 2px 4px; }
.fc-help .ed-help { flex: 1; margin: 0; }
.fc-count { flex: none; padding-top: 1px; font-size: 12.5px; font-variant-numeric: tabular-nums; color: #8e8e93; }
.fc-count.near { color: #c07a00; }
#fFocus.bad textarea { box-shadow: 0 0 0 2px var(--red); }

/* v74 — planes.html: pestañas Médicos | Clínicas + AletheA Clínicas (por sede) */
.pl-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 4px 0 14px; border-radius: 999px; background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.06); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pl-seg[hidden] { display: none; }
.pl-seg button { height: 38px; border: 0; border-radius: 999px; background: transparent; font: 600 15px/1 inherit; font-family: inherit; color: #6e6e73; cursor: pointer; }
.pl-seg button.on { background: #fff; color: #1c1c1e; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.chip-ok svg { width: 16px; height: 16px; flex: none; }
.cli-card { text-align: left; }
.cli-prev { position: relative; margin: 14px 0 6px; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.78); border: 1px solid rgba(0,0,0,.05); }
.cli-prev-cover { position: relative; height: 74px; background: linear-gradient(135deg, #2f5d62 0%, #4f8a8b 60%, #9cc5c3 100%); }
.cli-prev-logo { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #2f5d62; color: #fff; font-weight: 700; font-size: 18px; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.cli-prev-meta { padding: 32px 12px 12px; text-align: center; }
.cli-prev-meta b { display: block; font-size: 15.5px; color: #1c1c1e; }
.cli-prev-verif { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: #1a7f45; background: #e3f5ea; padding: 3px 9px 3px 5px; border-radius: 999px; }
.cli-prev-verif svg { width: 15px; height: 15px; }
.cli-prev-meta small { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: #6e6e73; }
.cli-dot { width: 8px; height: 8px; border-radius: 50%; background: #1fa855; box-shadow: 0 0 0 3px rgba(31,168,85,.18); }
.cli-prev .pc-prev-tag { position: absolute; top: 8px; right: 10px; left: auto; }
.cli-steps { margin: 12px 0; padding: 14px 16px; border-radius: 22px; font-size: 14px; color: #3a3a3c; }
.cli-steps ol { margin: 6px 0 8px; padding-left: 20px; display: grid; gap: 4px; }
.cli-steps .fine { margin: 0; }
.cli-prev .pc-prev-tag { color: #3a3a3c; background: rgba(255,255,255,.9); border-color: rgba(0,0,0,.08); }

/* ===== v74: Mi perfil de clínica (clinica-panel.html) ===== */
.cp-hero { --brand: #2f5d62; position: relative; border-radius: 32px; overflow: hidden; margin-bottom: 12px; padding: 0 0 16px; }
.cp-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, #fff) 100%); }
.cp-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-logo { position: relative; width: 88px; height: 88px; margin: -44px auto 0; border-radius: 50%; overflow: hidden; background: var(--brand); border: 4px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 28px; z-index: 1; }
.cp-logo img { width: 100%; height: 100%; object-fit: cover; }
.cp-meta { text-align: center; padding: 8px 16px 0; display: grid; justify-items: center; gap: 6px; }
.cp-meta h1 { margin: 0; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.cp-verif { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: #1a7f45; background: #e3f5ea; padding: 4px 11px 4px 6px; border-radius: 999px; }
.cp-verif svg { width: 16px; height: 16px; }
.cp-meta small { font-size: 13.5px; color: var(--ink2); }
.cp-state { font-size: 12px; font-weight: 700; color: #8a5a00; background: #fff4d6; padding: 4px 10px; border-radius: 999px; }
.cp-state.on { color: #1a7f45; background: #e3f5ea; }
.cp-edit { padding-bottom: 8px; }
.cp-edit .ed-sec:last-of-type { border-bottom: 0; }
.cp-fixed { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; margin: 0 0 8px; border-radius: 16px; background: rgba(255,255,255,.66); }
.cp-fixed span { display: block; font-size: 12.5px; color: var(--ink2); }
.cp-fixed b { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.cp-help-fixed { margin-top: 2px; }
.cp-logo-prev { --brand: #2f5d62; flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--brand); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 26px; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.cp-logo-prev img { width: 100%; height: 100%; object-fit: cover; }
.cp-cover-prev { --brand: #2f5d62; position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, #fff)); display: grid; place-items: center; margin-bottom: 10px; }
.cp-cover-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-cover-prev span { color: rgba(255,255,255,.92); font-size: 13px; font-weight: 600; padding: 0 20px; text-align: center; }
.cp-cover-prev span[hidden] { display: none; }
.cp-row { display: flex; align-items: center; gap: 14px; }
.cp-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-sw { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 1px 4px rgba(0,0,0,.18); cursor: pointer; }
.cp-sw.on { box-shadow: 0 0 0 2px #1c1c1e; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.72); font: 600 14px/1 inherit; font-family: inherit; color: #3a3a3c; cursor: pointer; }
.cp-chip svg { width: 14px; height: 14px; }
.cp-chip.on { background: #1c1c1e; color: #fff; border-color: #1c1c1e; }
.cp-chip.on.er { background: #1a7f45; border-color: #1a7f45; }
.ed-sec.bad { box-shadow: inset 3px 0 0 var(--red); }
.crop-frame.round { border-radius: 50%; }
.cp-save-bar .pay-bar-in { padding: 10px 12px; }
.cp74 .act-list .act-row { text-decoration: none; }
/* v75: planes de un negocio wellness — vista previa con portada + logo en círculo, SIN sello */
.wel-prev { position: relative; margin: 14px 0 6px; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.78); border: 1px solid rgba(0,0,0,.05); }
.pc-dark .wel-prev { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); }
.wel-prev-cover { position: relative; aspect-ratio: 16 / 6; background: linear-gradient(135deg, var(--brand, #c98a6c), #efe6dc); }
.wel-prev-logo { position: absolute; left: 14px; bottom: -22px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand, #c98a6c); color: #fff; font-weight: 700; font-size: 16px; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.wel-prev-meta { padding: 28px 14px 12px; }
.wel-prev-meta b { display: block; font-size: 15.5px; color: #1c1c1e; }
.pc-dark .wel-prev-meta b { color: #fff; }
.wel-prev-meta small { display: block; margin-top: 2px; font-size: 12.5px; color: #8a847d; }
.pc-dark .wel-prev-meta small { color: rgba(255,255,255,.7); }
.wel-prev-now { display: flex !important; align-items: center; gap: 6px; font-weight: 600; color: #17753d !important; }
.pc-dark .wel-prev-now { color: #7ee2a2 !important; }
.wel-prev-now i { width: 7px; height: 7px; border-radius: 50%; background: #1fa855; }
.wel-prev-now.off { color: #8a847d !important; font-weight: 500; }
.wel-prev .pc-prev-tag { top: 10px; right: 10px; left: auto; bottom: auto; }
