/* Xray: componentes del informe con los tokens de la plantilla concierge.help (base.css). */
.xr-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radio); padding: 22px 22px 18px; margin-bottom: 16px; }
.xr-block h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.xr-block h3 { font-size: 14.5px; font-weight: 700; margin: 20px 0 8px; }
.xr-block p { margin-bottom: 10px; color: var(--ink2); }
.xr-main { padding: 18px 0 30px; }
.loading { color: var(--mute); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.loading::before { content: ""; width: 14px; height: 14px; border-radius: 999px; border: 2px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.aviso { background: var(--bg); border-radius: var(--radio-s); padding: 12px 14px; font-size: 14px; color: var(--ink2); }
.muted { color: var(--mute); } .small { font-size: 13px; }
.bien { color: var(--ok); } .mal { color: #c2410c; } .medio { color: #a16207; }
.fuente { font-size: 12px; color: var(--mute); margin-top: 12px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.kpi { background: var(--bg); border-radius: var(--radio-s); padding: 12px 14px; }
.kpi .eyebrow { display: block; color: var(--mute); }
.kpi .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.kpi .s { font-size: 12px; color: var(--mute); margin-top: 2px; }

.tabla { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 4px 0 6px; }
th { text-align: left; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 700; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td.r, th.r { text-align: right; }
tr.yo td { font-weight: 700; background: rgba(26, 143, 209, .06); }

.barras .fila { display: grid; grid-template-columns: minmax(110px, 220px) 1fr 48px; gap: 12px; align-items: center; padding: 5px 0; font-size: 13.5px; }
.barra { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--brand2); border-radius: 999px; }
.r { text-align: right; }

.lista { list-style: none; }
.lista li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lista li:last-child { border-bottom: 0; }
.cita { color: var(--mute); font-size: 13px; margin-top: 2px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--ink2); margin-right: 6px; }
.pill.mal { background: #fff1e8; color: #c2410c; } .pill.medio { background: #fef6dc; color: #a16207; }

.score { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.score .num { font-size: 72px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.titular { font-size: 18px; font-weight: 600; color: var(--ink); margin: 8px 0 14px; }

.lead-box { background: var(--navy); color: #fff; border-radius: var(--radio); padding: 22px; }
.lead-box p { color: rgba(255, 255, 255, .85); }
.lead-box label { display: block; font-size: 12.5px; font-weight: 600; margin: 12px 0 5px; color: rgba(255, 255, 255, .85); }
.lead-box input[type=text], .lead-box input[type=email], .lead-box select { width: 100%; height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: #fff; color: var(--ink); padding: 0 14px; font: inherit; }
.lead-box .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 14px 0 16px; }
.lead-box .btn-book { background: var(--gold); color: var(--navy); }
.lead-box .btn-book:hover { background: #ffcc33; }
.lead-box .btn-book[disabled] { opacity: .6; cursor: wait; }
.form-err { color: #fecaca; font-size: 13.5px; margin-top: 10px; }

.accion { border: 1px solid var(--line); border-radius: var(--radio-s); padding: 14px 16px; margin-bottom: 10px; }
.accion h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.accion p { font-size: 13.5px; margin: 4px 0; }

.calc { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.calc label { font-size: 12.5px; font-weight: 600; color: var(--mute); }
.calc input { display: block; width: 100%; height: 44px; margin-top: 5px; border-radius: 12px; border: 1px solid var(--line); padding: 0 12px; font: inherit; font-size: 15px; }
.calc input:focus { outline: none; border-color: var(--brand2); box-shadow: 0 0 0 4px rgba(26, 143, 209, .15); }
svg.graf { width: 100%; height: auto; display: block; margin: 4px 0 10px; }

.page-hero .hero-pills { margin-top: 10px; }
.hero-note { font-size: 13px; opacity: .85; margin-top: 12px; }
.hero-note a { text-decoration: underline; }
.sr-item { cursor: pointer; }
@media (max-width: 600px) {
  .xr-block { padding: 18px 16px 14px; }
  .score .num { font-size: 56px; }
  .barras .fila { grid-template-columns: 100px 1fr 40px; }
}

/* formulario previo al informe, sobre el hero */
.gate { background: #fff; color: var(--ink); border-radius: var(--radio); padding: 20px; max-width: 760px; box-shadow: var(--sombra); }
.gate h2 { font-size: 22px; font-weight: 800; margin: 2px 0 4px; }
.gate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 6px; }
.gate label { font-size: 12.5px; font-weight: 600; color: var(--mute); }
.gate input[type=text], .gate input[type=email], .gate input[type=tel], .gate select { display: block; width: 100%; height: 46px; margin-top: 5px; border-radius: 12px; border: 1px solid var(--line); padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.gate input:focus, .gate select:focus { outline: none; border-color: var(--brand2); box-shadow: 0 0 0 4px rgba(26, 143, 209, .15); }
.gate .check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 12px; color: var(--ink2); font-weight: 500; }
.gate-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.gate .form-err { color: #c2410c; }
.gate .btn[disabled] { opacity: .6; cursor: wait; }
.xr-block .gate { box-shadow: none; border: 1px solid var(--line); max-width: none; }
.progreso { background: var(--navy); color: #fff; border-radius: var(--radio); padding: 14px 18px; margin-bottom: 16px; font-size: 14px; display: flex; gap: 12px; align-items: center; }
.progreso .barra { flex: 1; background: rgba(255,255,255,.15); } .progreso .barra i { background: var(--gold); transition: width .4s; }
.hist td, .hist th { font-size: 13px; }
.no-print { }
@media (max-width: 760px) { .gate-grid { grid-template-columns: 1fr; } }

/* PDF: el informe se imprime limpio, sin navegacion ni formularios */
@media print {
  .site-header, .drawer, .drawer-overlay, .bottom-nav, .site-footer, .breadcrumb, .no-print, .gate, .progreso, .skip-link { display: none !important; }
  body { background: #fff; padding: 0; font-size: 12px; }
  .page-hero { min-height: 0; color: #0f1b24; }
  .page-hero-media, .page-hero-scrim { display: none; }
  .page-hero-inner { padding: 0 0 10px; }
  .hero-pill { border-color: #ccc; background: none; }
  .xr-block { break-inside: avoid-page; border: 1px solid #ddd; box-shadow: none; }
  .kpi { background: #f4f5f6; }
  a { text-decoration: none; }
}

/* ===== evento 1-oct: tooltips, escaparate, espera ===== */
html, body { overflow-x: clip; }
.why { color: var(--mute); font-size: 14px; margin: -6px 0 14px; max-width: 760px; }
.kpi { position: relative; }
.tip { position: relative; display: inline-flex; margin-left: 6px; vertical-align: 1px; cursor: help; outline: none; }
.tip-i { width: 15px; height: 15px; border-radius: 999px; border: 1px solid var(--mute); color: var(--mute); font-size: 9.5px; font-weight: 800; letter-spacing: 0; display: grid; place-items: center; text-transform: none; font-style: normal; }
.tip-t { display: none; position: absolute; z-index: 40; top: 22px; left: -10px; width: min(270px, 78vw); background: var(--navy); color: #fff; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-transform: none; box-shadow: var(--sombra); }
.tip:hover .tip-t, .tip:focus .tip-t, .tip:focus-within .tip-t { display: block; }
.tip:focus .tip-i { border-color: var(--brand2); color: var(--brand2); }
.kpis .kpi:nth-child(n+3) .tip-t { left: auto; right: -10px; }

.vitrina { display: grid; grid-template-columns: 280px 1fr; gap: 22px; align-items: start; margin: 10px 0 14px; }
.vitrina figure { margin: 0; }
.vitrina figcaption { font-size: 12px; color: var(--mute); text-align: center; margin-top: 8px; font-weight: 600; }
.phone { background: #0b0f14; border-radius: 34px; padding: 10px; box-shadow: var(--sombra); }
.phone-in { background: #fff; border-radius: 26px; height: 520px; overflow: hidden; }
.laptop-in { background: #fff; border: 10px solid #1d232b; border-bottom-width: 14px; border-radius: 12px 12px 4px 4px; height: 400px; overflow: hidden; }
.laptop::after { content: ""; display: block; height: 10px; background: #c9ced3; border-radius: 0 0 14px 14px; margin: 0 -18px; }
.phone-shot img, .laptop-shot img { width: 100%; display: block; }
.g-bar { padding: 14px 12px 8px; border-bottom: 1px solid #ebebeb; }
.g-bar-d { display: flex; align-items: center; gap: 16px; }
.g-logo { font: 700 18px Arial, sans-serif; color: #5f6368; letter-spacing: -.5px; }
.g-q { margin-top: 8px; border: 1px solid #dfe1e5; border-radius: 999px; padding: 8px 14px; font: 13px Arial, sans-serif; color: #202124; }
.g-bar-d .g-q { margin: 0; flex: 1; max-width: 460px; }
.g-res { position: relative; padding: 12px 14px; border-bottom: 1px solid #f1f3f4; font-family: Arial, sans-serif; }
.g-own { background: #f2f8fd; box-shadow: inset 0 0 0 2px var(--brand2); }
.g-tag { position: absolute; right: 10px; top: 10px; background: var(--brand2); color: #fff; font: 700 10px Arial, sans-serif; padding: 3px 7px; border-radius: 999px; }
.g-site { display: flex; gap: 8px; align-items: center; font-size: 12px; color: #202124; line-height: 1.3; }
.g-fav { width: 24px; height: 24px; border-radius: 999px; background: #f1f3f4; display: grid; place-items: center; font-size: 11px; color: #5f6368; font-weight: 700; flex: none; }
.g-url { color: #4d5156; font-size: 11.5px; }
.g-title { color: #1a0dab; font-size: 16px; line-height: 1.3; margin: 6px 0 3px; }
.laptop .g-title { font-size: 18px; }
.g-desc { color: #4d5156; font-size: 12.5px; line-height: 1.45; }

.gate-hint { font-size: 12.5px; color: var(--ink2); background: #fef6dc; border-radius: 10px; padding: 8px 12px; margin: 6px 0 4px; }
.gate .check a { color: var(--brand); text-decoration: underline; }
.espera { background: #fff; color: var(--ink); border-radius: var(--radio); padding: 22px; max-width: 760px; box-shadow: var(--sombra); }
.espera h2 { font-size: 24px; font-weight: 800; margin: 4px 0 12px; }
.espera h2 span { color: var(--brand); }
.espera .barra { height: 10px; margin: 6px 0 10px; }
.espera.lista .barra i { background: var(--ok); }
.espera-mail { margin-top: 14px; font-size: 14px; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.espera-cta { font-weight: 700; margin-top: 10px; }
.espera .lista li { font-size: 14.5px; }
.xr-block .espera { box-shadow: none; border: 1px solid var(--line); max-width: none; }
.xr-cta { background: var(--navy); color: #fff; border-color: var(--navy); }
.xr-cta h2, .xr-cta .eyebrow { color: #fff; }
.xr-cta p { color: rgba(255,255,255,.85); }
.xr-cta .btn-book { background: var(--gold); color: var(--navy); }
.xr-cta .bien { color: #86efac; }
@media (max-width: 860px) {
  .vitrina { grid-template-columns: 1fr; justify-items: center; }
  .vitrina .phone { width: min(300px, 100%); }
  .vitrina .laptop { width: 100%; }
  .laptop-in { height: 300px; }
}
@media print { .tip, .vitrina .laptop::after { display: none; } .phone, .laptop-in { box-shadow: none; } }
.g-solo { border-bottom: 0; padding-top: 16px; }
.phone .g-solo { padding: 16px 14px; }
.g-none { color: #b3261e; font-style: normal; }
.phone-in:has(.g-solo), .laptop-in:has(.g-solo) { height: auto; min-height: 0; padding-bottom: 14px; }

/* Informe a pantalla completa: el contenedor de la plantilla (1180 px) se queda corto para tablas, rejillas y capturas */
.wrap-wide { max-width: 1680px; padding-left: 28px; padding-right: 28px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.xr-block .why { max-width: none; }
.xr-block p { max-width: none; }
.vitrina { grid-template-columns: minmax(260px, 320px) 1fr; }
@media (max-width: 600px) { .wrap-wide { padding-left: 14px; padding-right: 14px; } }
@media (max-width: 600px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi .v { font-size: 22px; } }

/* Tarjetas "Habla con el equipo": un clic desde cada bloque */
.ask { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px;
  border-radius: var(--radio-s); background: #eef6fb; border: 1px solid #cfe4f2; }
.ask > div { flex: 1 1 360px; }
.ask b { font-size: 15px; }
.ask p { margin: 3px 0 0 !important; font-size: 13.5px; color: var(--ink2); }
.ask .btn { white-space: nowrap; }
.ask-ok { font-weight: 700; color: var(--ok); font-size: 14px; }
.btn-mini { padding: 7px 14px; font-size: 12.5px; }

/* Graficas de serie temporal */
.chart { position: relative; width: 100%; margin: 4px 0 16px; }
.chart svg { display: block; overflow: visible; }
.ch-ax { font: 11.5px var(--font); fill: var(--mute); }
.ch-lb { font: 600 12px var(--font); fill: var(--ink2); }
.ch-strong { font-weight: 800; fill: var(--ink); }
.ch-tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12px; line-height: 1.3; white-space: nowrap; box-shadow: var(--sombra); }
.ch-tip b { display: block; font-size: 14px; }
.ch-tip span { opacity: .8; }

/* Agente: frecuencia en el formulario y banda dentro del informe */
.cad { border: 1px solid var(--line); border-radius: var(--radio-s); padding: 10px 14px 12px; margin: 12px 0 4px; }
.cad legend { font-size: 12.5px; font-weight: 600; color: var(--mute); padding: 0 6px; }
.cad label { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; font-size: 14px; color: var(--ink); font-weight: 600; }
.agente { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 16px 0 4px; padding: 14px 16px; border-radius: var(--radio-s); background: var(--navy); color: #fff; }
.agente p { margin: 4px 0 0 !important; color: rgba(255,255,255,.85); font-size: 13.5px; }
.agente-sel { font-size: 12px; color: rgba(255,255,255,.8); display: flex; flex-direction: column; gap: 4px; }
.agente-sel select { border-radius: 10px; border: 0; padding: 9px 12px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.agente .bien { color: #86efac; }
