:root { --bg:#0B1322; --card:#16213A; --card2:#0F1930; --fg:#F4EFE6; --muted:#A9B2C3; --line:#2C3A58; --accent:#D5BFA0; --on-accent:#10182A; --radius:14px; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
body.d-B { --bg:#F3F5F4; --card:#fff; --card2:#F3F5F4; --fg:#111413; --muted:#5d6661; --line:#dde2df; --accent:#2F6F5E; --on-accent:#fff; }
body.d-C { --bg:#FBF4EE; --card:#fff; --card2:#FBF4EE; --fg:#2B1D17; --muted:#7a6559; --line:#ecdccf; --accent:#B5482A; --on-accent:#fff; --radius:22px; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--fg); line-height:1.5; }
body.d-C h1, body.d-C .big, body.d-C .q { font-family: Georgia, "Times New Roman", serif; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-left, 0px)) 32px; display:grid; gap:16px; }
.loading, .msg { padding: 40px 16px; text-align:center; color:var(--muted); }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:20px 22px; }
.eyebrow { display:block; font-size:.7rem; letter-spacing:.18em; color:var(--accent); font-weight:700; text-transform:uppercase; }
.big { display:block; font-size:1.35rem; line-height:1.2; margin:4px 0 8px; text-wrap:balance; }
.hero-card { display:flex; gap:28px; align-items:center; padding:36px 40px; background:var(--card) center/cover no-repeat; }
/* El nombre del negocio va siempre en blanco: sin banner, la cabecera usa un fondo oscuro derivado del color de acento. */
.hero-card { color:#fff; text-shadow:0 1px 6px rgba(0,0,0,.45); }
.hero-card:not(.has-cover) { background-color:color-mix(in srgb,var(--accent) 45%,#0b0f17); }
.hero-card.has-cover { min-height:288px; }
.hero-card .eyebrow { color:#fff; }
.hero-card .tag, .hero-card .rate { color:#f2f2f2; }
.hero-card .hero-text h1 { color:#fff; }
.logo { width:140px; height:140px; border-radius:50%; object-fit:cover; background:#f6f1e7; border:4px solid var(--accent); flex:none; display:grid; place-items:center; font-weight:800; font-size:44px; color:#2a2a2a; }
.hero-text { min-width:0; }
.big, .q, .reviews h2 { color:var(--title,inherit); }
.hero-text h1 { margin:6px 0 4px; font-size:clamp(2rem,6vw,3.4rem); line-height:1.05; text-wrap:balance; overflow-wrap:anywhere; }
.tag { margin:4px 0; color:var(--muted); }
.about { margin:0; color:var(--muted); text-align:center; }
.rate { display:flex; gap:10px; align-items:center; margin-top:10px; flex-wrap:wrap; }
.stars { color:var(--accent); letter-spacing:2px; }
.linkbtn { background:none; border:0; color:inherit; font:inherit; cursor:pointer; padding:6px 2px; text-decoration:underline; text-underline-offset:3px; min-height:36px; }
.reviews h2 { margin:0 0 8px; font-size:1.05rem; }
.reviews p { margin:6px 0; }
.branch { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.branch strong { display:block; font-size:1rem; }
.branch select { max-width:340px; }
.book { text-align:center; padding:26px 22px 28px; }
.intro { margin:0 0 14px; }
.steps { display:flex; justify-content:center; gap:8px; flex-wrap:wrap; padding:0; margin:0 0 18px; }
.steps li { list-style:none; font-size:.78rem; color:var(--muted); border:1px solid var(--line); border-radius:999px; padding:5px 12px; }
.steps li.on { background:var(--accent); color:var(--on-accent); border-color:var(--accent); font-weight:700; }
.steps li.done { color:var(--accent); border-color:var(--accent); }
.q { font-size:1.6rem; margin:6px 0 18px; text-wrap:balance; }
.pane { max-width:620px; margin:0 auto; text-align:left; }
.opts { display:grid; gap:10px; }
.opt { display:flex; gap:12px; align-items:center; text-align:left; width:100%; padding:12px; background:var(--card2); color:var(--fg); border:1px solid var(--line); border-radius:12px; font:inherit; cursor:pointer; min-height:52px; }
.opt:hover, .opt:focus-visible { border-color:var(--accent); outline:none; }
.opt img { width:64px; height:64px; border-radius:10px; object-fit:cover; flex:none; }
.opt .t { font-weight:600; display:block; }
.opt .s { color:var(--muted); font-size:.88rem; display:block; }
.av { width:44px; height:44px; border-radius:50%; background:var(--accent); color:var(--on-accent); display:grid; place-items:center; font-weight:700; flex:none; }
.cal-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; font-weight:600; text-transform:capitalize; }
.cal-head button { width:40px; height:40px; }
.cal { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.cal .dow { text-align:center; font-size:.75rem; color:var(--muted); }
.day, .slot { padding:10px 0; border-radius:10px; border:1px solid var(--line); background:var(--card2); color:var(--fg); font:inherit; cursor:pointer; min-height:44px; }
.day:disabled, .slot:disabled { opacity:.3; cursor:not-allowed; }
.day.sel, .slot.sel, .day:not(:disabled):hover, .slot:not(:disabled):hover { background:var(--accent); color:var(--on-accent); border-color:var(--accent); }
.slots { display:grid; grid-template-columns:repeat(auto-fill,minmax(84px,1fr)); gap:8px; }
button { font:inherit; }
button.prim { background:var(--accent); color:var(--btn-on,var(--on-accent)); border:0; border-radius:12px; padding:12px 20px; font-weight:700; cursor:pointer; min-height:46px; }
button.prim:disabled { opacity:.5; cursor:not-allowed; }
button.ghost { background:transparent; color:var(--muted); border:0; padding:10px 4px; cursor:pointer; }
button.sm { background:transparent; color:var(--fg); border:1px solid var(--line); border-radius:10px; cursor:pointer; }
label { display:grid; gap:4px; margin:10px 0; font-size:.9rem; color:var(--muted); }
input[type=text], input[type=tel], input[type=number], select { font:inherit; padding:11px 12px; border-radius:10px; border:1px solid var(--line); background:var(--card2); color:var(--fg); width:100%; min-height:44px; }
.nav { display:flex; justify-content:space-between; gap:10px; margin-top:16px; align-items:center; }
.ok { border:1px solid var(--accent); border-radius:12px; padding:16px; max-width:560px; margin:0 auto; text-align:left; }
.err { color:#ef7b69; min-height:1.4em; margin:6px 0 0; }
.sum { color:var(--muted); font-size:.92rem; margin:0 0 12px; }
.contact { display:flex; flex-direction:column; gap:12px; }
.pills { display:flex; flex-direction:column; gap:10px; }
.socs { display:flex; flex-direction:row-reverse; gap:10px; flex-wrap:wrap; margin-top:4px; }
.soc { width:44px; height:44px; border-radius:5px; background:var(--accent); color:var(--ico-on,var(--on-accent)); display:grid; place-items:center; text-decoration:none; }
.soc svg { width:20px; height:20px; }
.soc:hover { filter:brightness(1.1); }
.pill { display:inline-flex; align-items:center; gap:10px; background:var(--card2); border:1px solid var(--line); border-radius:12px; padding:10px 16px; color:var(--fg); font-weight:700; text-decoration:none; min-height:44px; }
.pill .ic { width:28px; height:28px; border-radius:5px; background:var(--accent); color:var(--ico-on,var(--on-accent)); display:grid; place-items:center; font-size:.85rem; }
.loc { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:stretch; }
.loc .card p { margin:4px 0 14px; }
.btn-out { display:block; text-align:center; border:1px solid transparent; border-radius:12px; padding:12px; color:var(--btn-on,var(--on-accent)); font-weight:700; text-decoration:none; background:var(--accent); }
.btn-out:hover { filter:brightness(1.08); }
.map-wrap { position:relative; min-height:260px; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--card2); }
.map { display:block; width:100%; height:100%; min-height:260px; border:0; background:var(--card2); }
/* El mapa de Google no admite estilos internos: se pasa a grises azulados y el pin de Google se conserva. */
.map { filter:grayscale(1) sepia(.55) hue-rotate(185deg) saturate(.75); }
body.d-A .map { filter:grayscale(1) invert(.92) sepia(.5) hue-rotate(175deg) saturate(.8) contrast(.95); }
.gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px; margin-top:10px; }
.gallery img { width:100%; height:120px; object-fit:cover; border-radius:10px; }
.foot { text-align:center; color:var(--muted); font-size:.8rem; padding:6px 0 0; }
a { color:var(--accent); }
@media (max-width: 720px) {
  .hero-card { flex-direction:column; text-align:center; padding:28px 20px; }
  .rate { justify-content:center; }
  .logo { width:110px; height:110px; }
  .loc { grid-template-columns:1fr; }
  .q { font-size:1.35rem; }
}
.place { display:grid; gap:16px; }

/* Selector de sucursales */
.branch-pick{display:grid;gap:12px}
.branch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.branch-card{display:flex;flex-direction:column;gap:6px;padding:16px;border:1px solid var(--line,#dfe3ea);border-radius:12px;text-decoration:none;color:inherit;background:var(--card,#fff);transition:border-color .15s,transform .15s}
.branch-card:hover{border-color:var(--accent);transform:translateY(-1px)}
.branch-card strong{font-size:1.05rem}
.branch-card span{font-size:.9rem;opacity:.75}
.branch-card em{font-style:normal;font-weight:600;color:var(--accent);margin-top:6px}
.hero-card .logo { text-shadow:none; }

/* Búsqueda de negocio: paleta de Ultra Asistente (grises azulados). */
body.nf-page { background: #f4f6fa; color: #3c4557; --accent: #7787a9; --muted: #697b90; }
.nf { max-width: 520px; margin: 48px auto; padding: 0 16px; display: grid; gap: 12px; }
.nf h1 { font-size: 1.4rem; margin: 0; color: #2c3a4d; }
.nf .sum { color: #697b90; margin: 0; }
.nf input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #d5dfea; background: #fff; color: #3c4557; font: inherit; }
.nf input:focus { outline: 2px solid #7787a9; outline-offset: 1px; }
.nf-results { display: grid; gap: 8px; }
.nf-item { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; border: 1px solid #d5dfea; background: #fff; color: #2c3a4d; text-decoration: none; }
.nf-item:hover, .nf-item:focus-visible { border-color: #7787a9; background: #eef2f8; }
.nf-item small { color: #697b90; }
.nf .msg { padding: 12px 0; text-align: left; color: #697b90; }
.nf-logo { display: inline-block; justify-self: start; margin-bottom: 8px; }
.nf-logo img { height: 52px; width: auto; display: block; }

.branch-grid.one{grid-template-columns:1fr}
body.chooser .wrap{max-width:640px}
body.chooser .hero-card{padding:22px 26px}
body.chooser .hero-card.has-cover{min-height:170px}

/* Celulares y tabletas: con 16 px los campos no hacen zoom automático al escribir (el zoom con los dedos sigue disponible). */
@media (hover:none) and (pointer:coarse){input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),select,textarea{font-size:16px!important}}

/* Selector de sucursal entre el banner y «Crear cita»: título a la izquierda, selector a la derecha. */
.branch-select{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap}
.branch-select label{font-weight:700;font-size:1rem;flex:1 1 220px;min-width:0}
.branch-select select{flex:0 1 280px;min-width:0;width:100%;max-width:280px;min-height:44px;padding:10px 12px;border:1px solid var(--line,#dfe3ea);border-radius:10px;background:var(--surface,#fff);color:inherit;font:inherit}
@media(max-width:560px){.branch-select select{flex:1 1 100%;max-width:none}}
/* Flecha del selector de sucursal con margen propio (no pegada al borde). */
.branch-select select{-webkit-appearance:none;appearance:none;padding-right:44px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23697b90' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:14px;text-overflow:ellipsis}

/* Crédito «Ultra Asistente»: enlace al sitio, mismo aspecto que el texto (sin subrayado ni efecto al pasar el cursor) */
a.ua-credit,a.ua-credit:hover,a.ua-credit:focus,a.ua-credit:focus-visible,a.ua-credit:visited{color:inherit;text-decoration:none;opacity:1}

/* Selectores siempre con texto negro sobre fondo blanco, sea cual sea el tema (claro, oscuro o color de fondo propio). */
select,.branch-select select,.uc-field select{background-color:#fff;color:#111;color-scheme:light}
select option{background:#fff;color:#111}

/* Ventana emergente de promoción (se abre con la web; se cierra con el botón, la × o tocando fuera) */
.promo-ov{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:rgba(8,10,14,.62);animation:promoIn .2s ease}
.promo-card{position:relative;width:min(440px,100%);max-height:calc(100dvh - 32px);overflow:auto;border-radius:var(--radius,14px);background:var(--card,#fff);color:var(--fg,#111);border:1px solid var(--line,#ddd);box-shadow:0 24px 70px rgba(0,0,0,.35);padding:0 0 18px;text-align:center}
.promo-img{display:block;width:100%;max-height:46dvh;object-fit:cover;border-radius:var(--radius,14px) var(--radius,14px) 0 0}
.promo-title{margin:16px 20px 0;font-size:1.35rem;line-height:1.25;color:var(--title,var(--fg,#111));text-wrap:balance}
.promo-text{margin:10px 22px 0;line-height:1.5;color:var(--muted,#555);white-space:pre-line;overflow-wrap:anywhere}
.promo-close{margin:18px auto 0;display:block;min-width:140px;padding:11px 22px;border-radius:12px;border:0;cursor:pointer;font:inherit;font-weight:700;background:var(--accent,#2F6F5E);color:var(--btn-on,var(--on-accent,#fff))}
.promo-x{position:absolute;top:8px;right:8px;z-index:1;width:34px;height:34px;border-radius:50%;border:0;cursor:pointer;font-size:22px;line-height:1;background:rgba(0,0,0,.55);color:#fff;display:grid;place-items:center}
@keyframes promoIn{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){.promo-ov{animation:none}}

/* Sin dirección ni mapa: Contacto a todo el ancho, con las redes junto al teléfono. */
.loc.loc-single { grid-template-columns:minmax(0,1fr); }
.contact-row { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.contact-row .socs { margin:0; flex-direction:row; flex-wrap:nowrap; }
.card.contact-wide { flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px 24px; }
.contact-head { display:flex; flex-direction:column; gap:6px; }
.contact-wide .contact-row { justify-content:flex-end; margin-left:auto; }
@media (max-width:600px) { .card.contact-wide { flex-direction:column; align-items:stretch; } .contact-wide .contact-row { justify-content:flex-start; margin-left:0; } }
