/* Cuenta PreHeated (PreHeated Invita) de One PreHeated. Archivo fuente; se copia igual a Lab y Raíz.
   El chip va sobre headers oscuros (#060709); el panel lateral usa el fondo crema de One. */

.ph-cta-chip, .ph-cta-panel, .ph-cta-panel *, .ph-cta-capa, .ph-cta-aviso { box-sizing: border-box; }
.ph-cta-chip svg, .ph-cta-panel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Chip del header */
.ph-cta-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
  background: transparent; color: #ffffff; cursor: pointer; white-space: nowrap;
  font: 500 14px/1 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  transition: border-color .2s, background-color .2s;
}
.ph-cta-chip:hover { border-color: #f15721; background: rgba(241, 87, 33, 0.12); color: #ffffff; }
a.ph-cta-chip { text-decoration: none; }
.ph-cta-chip:focus-visible { outline: 2px solid #f15721; outline-offset: 2px; }
.ph-cta-chip--sesion { padding: 3px 4px 3px 3px; gap: 9px; }
.ph-cta-chip__avatar { width: 30px; height: 30px; border-radius: 50%; background: #f15721; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ph-cta-chip__saldo { background: #1f2622; border-radius: 999px; padding: 6px 10px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .ph-cta-chip { padding: 0; width: 36px; justify-content: center; }
  .ph-cta-chip--sesion { width: auto; padding: 3px; }
  .ph-cta-chip__txt, .ph-cta-chip__saldo { display: none; }
}

/* Capa y panel */
.ph-cta-abierto { overflow: hidden; }
.ph-cta-capa { position: fixed; inset: 0; z-index: 2000; background: rgba(6, 7, 9, .45); opacity: 0; transition: opacity .25s cubic-bezier(.2,.6,.35,1); }
.ph-cta-capa--on { opacity: 1; }
.ph-cta-capa[hidden], .ph-cta-panel[hidden] { display: none !important; }
.ph-cta-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2001;
  width: min(440px, 100vw); overflow-y: auto;
  background: #faf9f6; color: #131715;
  font: 15px/1.6 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: -18px 0 50px rgba(6, 7, 9, .25);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.6,.35,1);
}
.ph-cta-panel--on { transform: none; }
@media (prefers-reduced-motion: reduce) { .ph-cta-panel, .ph-cta-capa { transition: none; } }
.ph-cta-cerrar { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e3e2dc; background: #fff; color: #131715; display: grid; place-items: center; cursor: pointer; }
.ph-cta-cerrar:hover { background: #f4f3ef; }
.ph-cta-panel :focus-visible { outline: 2px solid #c83f12; outline-offset: 2px; }
.ph-cta-cuerpo { padding: 56px 28px 32px; display: flex; flex-direction: column; gap: 16px; }
.ph-cta-entrada { margin: 0; font: 700 11px/1.3 "DM Sans", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #c83f12; }
.ph-cta-titulo { margin: -6px 0 0; font: 700 40px/1 "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .005em; color: #131715; }
.ph-cta-sub { margin: 8px 0 0; font: 700 22px/1.1 "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; }
.ph-cta-txt { margin: 0; color: #3d433f; }
.ph-cta-txt--s { font-size: 13px; color: #5c5c5c; }
.ph-cta-nota { margin: 0; display: flex; gap: 8px; font-size: 12.5px; color: #5c5c5c; line-height: 1.5; }
.ph-cta-nota svg { width: 15px; height: 15px; margin-top: 2px; }
.ph-cta-google { min-height: 44px; display: flex; justify-content: center; }
.ph-cta-google--cargando { opacity: .5; pointer-events: none; }
.ph-cta-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fdecec; color: #8f0000; font-size: 14px; }

.ph-cta-codigo { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px; border-radius: 8px; background: #fff; border: 1.5px dashed #8a908c; }
.ph-cta-codigo span { font: 700 11px/1 "DM Sans", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #5c5c5c; }
.ph-cta-codigo strong { font: 700 44px/1 "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: .06em; user-select: all; }
.ph-cta-acciones { display: grid; gap: 10px; }
.ph-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid #f15721;
  background: #f15721; color: #fff; font: 700 16px/1 "DM Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.ph-cta-btn:hover { background: #d94612; border-color: #d94612; }
.ph-cta-btn--sec { background: #fff; color: #131715; border-color: #131715; }
.ph-cta-btn--sec:hover { background: #f4f3ef; border-color: #131715; }
.ph-cta-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-cta-kpis div { background: #fff; border: 1px solid #e3e2dc; border-radius: 8px; padding: 14px 16px; }
.ph-cta-kpis small { display: block; font-size: 12.5px; color: #5c5c5c; }
.ph-cta-kpis b { font: 700 30px/1.1 "Barlow Condensed", "Arial Narrow", sans-serif; font-variant-numeric: tabular-nums; }
.ph-cta-usar { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 500; color: #c83f12; text-decoration: none; }
.ph-cta-usar svg { width: 16px; height: 16px; }
.ph-cta-movs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ph-cta-mov { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "marca txt monto" "marca est est"; gap: 2px 12px; align-items: center; background: #fff; border: 1px solid #e3e2dc; border-radius: 8px; padding: 12px 14px; }
.ph-cta-marca { grid-area: marca; align-self: start; min-width: 50px; text-align: center; border-radius: 999px; padding: 4px 9px; font: 700 12px/1.3 "DM Sans", system-ui, sans-serif; color: #fff; background: #060709; }
.ph-cta-marca--lab { background: #2c3330; }
.ph-cta-marca--raiz { background: #065f46; }
.ph-cta-mov__txt { grid-area: txt; display: flex; flex-direction: column; line-height: 1.35; }
.ph-cta-mov__txt b { font-weight: 500; font-size: 14px; }
.ph-cta-mov small { font-size: 12px; color: #5c5c5c; }
.ph-cta-mov__est { grid-area: est; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ph-cta-mov__monto { grid-area: monto; font-weight: 700; font-variant-numeric: tabular-nums; }
.ph-cta-est { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.ph-cta-est::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ph-cta-est--ok { color: #027e00; }
.ph-cta-est--wait { color: #8a5a00; }
.ph-cta-est--off { color: #c50000; }
.ph-cta-vacio { margin: 0; padding: 18px; text-align: center; color: #5c5c5c; background: #fff; border: 1px solid #e3e2dc; border-radius: 8px; font-size: 14px; }
.ph-cta-invitacion { display: flex; gap: 12px; padding: 14px 16px; border-radius: 8px; background: #fdede6; border: 1px solid #f6cdb9; }
.ph-cta-invitacion svg { color: #c83f12; margin-top: 2px; }
.ph-cta-invitacion div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ph-cta-invitacion a { display: inline-flex; align-items: center; gap: 6px; color: #c83f12; font-weight: 700; text-decoration: none; margin-top: 4px; }
.ph-cta-invitacion a svg { width: 15px; height: 15px; margin: 0; }
.ph-cta-extra { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid #e3e2dc; border-radius: 8px; background: #fff; color: #131715; font-weight: 500; font-size: 14px; text-decoration: none; }
.ph-cta-extra:hover { border-color: #8a908c; }
.ph-cta-extra svg { width: 16px; height: 16px; }
.ph-cta-salir { align-self: center; margin-top: 8px; background: none; border: 0; color: #5c5c5c; font: 500 13px "DM Sans", system-ui, sans-serif; text-decoration: underline; cursor: pointer; }

.ph-cta-aviso { position: fixed; left: 50%; bottom: 28px; z-index: 2100; transform: translate(-50%, 16px); opacity: 0; transition: all .3s cubic-bezier(.2,.6,.35,1); background: #060709; color: #fff; padding: 12px 18px; border-radius: 999px; font: 500 14px "DM Sans", system-ui, sans-serif; pointer-events: none; }
.ph-cta-aviso--on { opacity: 1; transform: translate(-50%, 0); }

/* Modo demo local (solo localhost sin Client ID): imita el botón de Google y su selector de cuentas */
.ph-cta-google:has(.ph-cta-gdemo) { flex-direction: column; align-items: stretch; gap: 10px; }
.ph-cta-gdemo { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; border-radius: 999px; border: 1px solid #dadce0; background: #fff; color: #3c4043; font: 500 15px/1 "DM Sans", system-ui, sans-serif; cursor: pointer; }
.ph-cta-gdemo:hover { background: #f8f9fa; }
.ph-cta-gdemo .ph-cta-glogo { width: 18px; height: 18px; stroke: none; }
.ph-cta-gdemo-lista { display: flex; flex-direction: column; border: 1px solid #e3e2dc; border-radius: 8px; background: #fff; overflow: hidden; }
.ph-cta-gdemo-lista[hidden] { display: none; }
.ph-cta-gdemo-lista p { margin: 0; padding: 10px 14px; font-size: 12.5px; color: #5c5c5c; border-bottom: 1px solid #e3e2dc; }
.ph-cta-gdemo-lista button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-bottom: 1px solid #e3e2dc; background: #fff; text-align: left; cursor: pointer; font: 14px/1.35 "DM Sans", system-ui, sans-serif; color: #131715; }
.ph-cta-gdemo-lista button:last-child { border-bottom: 0; }
.ph-cta-gdemo-lista button:hover { background: #f4f3ef; }
.ph-cta-gdemo-lista small { display: block; font-size: 12.5px; color: #5c5c5c; }

/* Sección "Mi Cuenta PreHeated" (página completa después de iniciar sesión) */
.ph-cp, .ph-cp * { box-sizing: border-box; }
.ph-cp { display: block; background: #faf9f6; color: #131715; font: 15px/1.6 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.ph-cp svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ph-cp__in { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ph-cp__hero { background: #060709; color: #fff; padding: 48px 0 40px; }
.ph-cp__eyebrow { margin: 0 0 8px; font: 700 12px/1.3 "DM Sans", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #f15721; }
.ph-cp__eyebrow--osc { color: #c83f12; }
.ph-cp__h1 { margin: 0; font: 700 clamp(44px, 7vw, 72px)/.95 "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: .005em; color: #fff; }
.ph-cp__lead { margin: 12px 0 0; max-width: 620px; color: #d6d7d4; font-size: 17px; }
.ph-cp__entrar { width: auto; margin-top: 24px; padding: 0 28px; font-size: 18px; }
.ph-cp__sitios { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ph-cp__sitio { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: #fff; text-decoration: none; font-weight: 500; font-size: 14px; }
.ph-cp__sitio:hover { border-color: #f15721; }
.ph-cp__sitio--on { background: #f15721; border-color: #f15721; }
.ph-cp__sitio small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.ph-cp__cuerpo { padding-top: 32px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 40px; }
.ph-cp__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.ph-cp__card { background: #fff; border: 1px solid #e3e2dc; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.ph-cp__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ph-cp__kpi { background: #fff; border: 1px solid #e3e2dc; border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 2px; }
.ph-cp__kpi small { font-size: 13px; color: #5c5c5c; }
.ph-cp__kpi b { font: 700 44px/1.05 "Barlow Condensed", "Arial Narrow", sans-serif; font-variant-numeric: tabular-nums; }
.ph-cp__kpi span { font-size: 13px; color: #5c5c5c; }
.ph-cp__kpi:first-child { background: #fdede6; border-color: #f6cdb9; }
.ph-cp__h2 { margin: 0 0 16px; font: 700 32px/1.05 "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; }
.ph-cp__movs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ph-cp__accesos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ph-cp__acceso { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 48px 20px 20px; background: #fff; border: 1px solid #e3e2dc; border-radius: 16px; color: #131715; text-decoration: none; }
.ph-cp__acceso:hover { border-color: #8a908c; }
.ph-cp__acceso .ph-cta-marca { align-self: flex-start; margin-bottom: 6px; }
.ph-cp__acceso b { font-weight: 700; font-size: 16px; }
.ph-cp__acceso small { color: #5c5c5c; font-size: 13px; }
.ph-cp__acceso > svg { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #c83f12; }
.ph-cp__salir { text-align: center; }
.ph-cp__sincodigo { max-width: 640px; }
@media (max-width: 900px) {
  .ph-cp__grid, .ph-cp__movs, .ph-cp__accesos { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ph-cp__in { padding: 0 16px; }
  .ph-cp__hero { padding: 32px 0 28px; }
  .ph-cp__kpis { gap: 10px; }
  .ph-cp__kpi { padding: 14px 16px; }
  .ph-cp__kpi b { font-size: 32px; }
}
/* Versión compacta (4 dic): menos texto, más jerarquía */
.ph-cp__hero { padding: 40px 0 32px; }
.ph-cp__h1 { margin-bottom: 20px; }
.ph-cp__sitios { margin-top: 0; }
.ph-cp__kpi.ph-cp__kpi--main { grid-column: 1 / -1; background: #060709; border-color: #060709; color: #fff; padding: 28px; }
.ph-cp__kpi.ph-cp__kpi--main small { color: #f15721; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.ph-cp__kpi.ph-cp__kpi--main b { font-size: 72px; color: #fff; }
.ph-cp__kpi.ph-cp__kpi--main span { color: #b9bbb8; }
.ph-cp__kpi:first-child:not(.ph-cp__kpi--main) { background: #fff; border-color: #e3e2dc; }
.ph-cp__regla { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.ph-cp__regla span { padding: 4px 12px; border-radius: 999px; background: #fdede6; color: #c83f12; font-size: 13px; font-weight: 700; }
.ph-cp__acceso { padding-top: 16px; padding-bottom: 16px; }
.ph-cp__acceso b { font: 700 24px/1.1 "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; }
@media (max-width: 480px) { .ph-cp__kpi.ph-cp__kpi--main b { font-size: 52px; } .ph-cp__kpi.ph-cp__kpi--main { padding: 20px; } }
.ph-cp__entrar { margin: 0 0 20px; }

/* Página del invitado: "Ana te invita a PreHeated" */
.ph-iv, .ph-iv * { box-sizing: border-box; }
.ph-iv { display: block; background: #faf9f6; color: #131715; font: 15px/1.6 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.ph-iv svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ph-iv__in { max-width: 1200px; margin: 0 auto; padding: 56px 24px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.ph-iv__h1 { margin: 0 0 16px; font: 700 clamp(48px, 7vw, 84px)/.92 "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; color: #131715; }
.ph-iv__lead { margin: 0 0 28px; font-size: 19px; color: #3d433f; }
.ph-iv__lead b { color: #c83f12; }
.ph-iv__tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 620px; }
.ph-iv__sitio { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: #fff; border: 1px solid #e3e2dc; border-radius: 12px; color: #131715; text-decoration: none; }
.ph-iv__sitio:hover { border-color: #8a908c; }
.ph-iv__sitio .ph-cta-marca { align-self: flex-start; margin-bottom: 8px; }
.ph-iv__sitio b { font-size: 16px; }
.ph-iv__sitio small { color: #5c5c5c; font-size: 13px; }
.ph-iv__card { background: #fff; border: 1px solid #e3e2dc; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 12px 40px rgba(6,7,9,.06); }
.ph-iv__card-t { margin: 0; font: 700 32px/1.05 "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; }
.ph-iv__card-s { margin: 0 0 6px; color: #5c5c5c; }
.ph-iv__card .ph-cta-btn { width: 100%; }
.ph-iv__card .ph-cta-nota { margin: 0; }
@media (max-width: 900px) {
  .ph-iv__in { grid-template-columns: 1fr; gap: 32px; padding: 36px 16px; }
  .ph-iv__tres { grid-template-columns: 1fr; }
}

/* Solo Lab (4-dic-2026): dos accesos y dos opciones para el invitado */
.ph-cp__accesos { grid-template-columns: repeat(2, 1fr); }
.ph-iv__tres.ph-iv__dos { grid-template-columns: repeat(2, 1fr); max-width: 520px; }
.ph-iv__dos .ph-iv__sitio { padding: 18px; }
.ph-iv__dos .ph-iv__sitio b { font: 700 22px/1.1 "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; }
.ph-iv__card .ph-cta-btn + .ph-cta-btn { margin-top: 10px; }
@media (max-width: 640px) {
  .ph-cp__accesos, .ph-iv__tres.ph-iv__dos { grid-template-columns: 1fr; }
}
