/* ═══ Bubbles — sitio público ═══════════════════════════════
   Marca: azul del logo #1570EF. Se carga en todo el frontend
   (no en el admin). Secciones: .bbs-* (plantillas templates/site). */

:root {
  --bbs-brand: #1570EF;
  --bbs-brand-600: #175CD3;
  --bbs-brand-50: #EFF6FF;
  --bbs-brand-100: #D1E9FF;
  --bbs-ink: #101828;
  --bbs-text: #344054;
  --bbs-muted: #667085;
  --bbs-line: #EAECF0;
  --bbs-tint: #F6F8FC;
  --bbs-radius: 16px;
}

/* ── Tema (Astra) en marca ─────────────────────────────── */
body:not(.wp-admin) { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--bbs-text); }
body:not(.wp-admin) h1, body:not(.wp-admin) h2, body:not(.wp-admin) h3, body:not(.wp-admin) h4,
body:not(.wp-admin) .entry-title { font-family: 'Inter', system-ui, sans-serif; color: var(--bbs-ink); letter-spacing: -0.02em; }
body:not(.wp-admin) a { color: var(--bbs-brand); }
.site-header .custom-logo { max-height: 44px; width: auto; }
.site-header .site-title a { color: var(--bbs-ink); font-weight: 800; letter-spacing: -0.02em; }
.ast-builder-button-wrap .ast-custom-button,
.ast-header-button-1 .ast-custom-button {
  background: var(--bbs-brand) !important; color: #fff !important; border: 0 !important;
  border-radius: 999px !important; padding: 10px 20px !important; font-weight: 600 !important; font-size: 15px !important;
}
.ast-header-button-1 .ast-custom-button:hover { background: var(--bbs-brand-600) !important; }
.main-header-menu .menu-link { font-weight: 500; color: var(--bbs-text) !important; }
.main-header-menu .menu-link:hover, .main-header-menu .current-menu-item > .menu-link { color: var(--bbs-brand) !important; }
.site-footer { background: var(--bbs-ink); }
.site-footer, .site-footer a, .site-footer .ast-footer-copyright { color: #D0D5DD !important; font-size: 14px; }
.site-footer a:hover { color: #fff !important; }
.site-below-footer-wrap, .site-primary-footer-wrap { background: var(--bbs-ink) !important; border: 0 !important; }
.site-footer .footer-nav-wrap .menu-link { padding: 4px 12px !important; }

/* Páginas del sitio a ancho completo, sin título del tema */
.bbs { margin: 0 calc(50% - 50vw); width: 100vw; overflow-x: clip; }
.bbs *, .bbs *::before, .bbs *::after { box-sizing: border-box; }
.bbs-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.bbs-narrow { max-width: 760px; }

/* ── Tipos y botones ───────────────────────────────────── */
.bbs h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; font-weight: 800; margin: 16px 0 18px; color: var(--bbs-ink); }
.bbs h1 span { color: var(--bbs-brand); }
.bbs-h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 800; margin: 0 0 12px; color: var(--bbs-ink); }
.bbs h3 { font-size: 19px; font-weight: 700; margin: 12px 0 6px; color: var(--bbs-ink); }
.bbs p { margin: 0; }
.bbs-lead { font-size: 19px; line-height: 1.6; color: var(--bbs-text); max-width: 560px; }
.bbs-sub { font-size: 17px; line-height: 1.6; color: var(--bbs-muted); max-width: 640px; margin-bottom: 36px !important; }
.bbs-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--bbs-brand-50); color: var(--bbs-brand-600); font-size: 14px; font-weight: 600; }

.bbs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none !important; transition: background .15s, color .15s, border-color .15s, transform .15s; border: 2px solid transparent; cursor: pointer; }
.bbs-btn:hover { transform: translateY(-1px); }
.bbs-btn--primary { background: var(--bbs-brand); color: #fff !important; }
.bbs-btn--primary:hover { background: var(--bbs-brand-600); }
.bbs-btn--ghost { background: #fff; color: var(--bbs-ink) !important; border-color: var(--bbs-line); }
.bbs-btn--ghost:hover { border-color: var(--bbs-brand); color: var(--bbs-brand) !important; }
.bbs-btn--outline { background: transparent; color: var(--bbs-brand) !important; border-color: var(--bbs-brand); }
.bbs-btn--outline:hover { background: var(--bbs-brand-50); }
.bbs-btn--white { background: #fff; color: var(--bbs-brand) !important; }
.bbs-btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ── Hero ──────────────────────────────────────────────── */
.bbs-hero { padding: 72px 0 88px; background: radial-gradient(1200px 500px at 85% -10%, var(--bbs-brand-100), transparent 60%), linear-gradient(180deg, #fff, var(--bbs-tint)); }
.bbs-hero--short { padding: 64px 0 72px; }
.bbs-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.bbs-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.bbs-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--bbs-muted); font-size: 15px; }
.bbs-trust li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.bbs-trust svg { color: var(--bbs-brand); }

.bbs-mock { background: #fff; border-radius: 24px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(16,24,40,.25), 0 0 0 1px var(--bbs-line); max-width: 380px; margin-left: auto; }
.bbs-mock__top { display: flex; align-items: center; gap: 10px; font-size: 18px; color: var(--bbs-ink); margin-bottom: 16px; }
.bbs-mock__top img { width: 36px; height: 36px; border-radius: 10px; }
.bbs-mock__status { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--bbs-brand-50); color: var(--bbs-brand-600); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.bbs-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bbs-brand); box-shadow: 0 0 0 4px rgba(21,112,239,.2); animation: bbs-pulse 1.6s infinite; }
@keyframes bbs-pulse { 50% { box-shadow: 0 0 0 8px rgba(21,112,239,0); } }
.bbs-mock__row { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--bbs-line); color: var(--bbs-brand); }
.bbs-mock__row div { display: flex; flex-direction: column; font-size: 14px; color: var(--bbs-muted); }
.bbs-mock__row strong { color: var(--bbs-ink); font-size: 15px; }
.bbs-mock__btn { margin-top: 16px; text-align: center; padding: 12px; border-radius: 12px; background: var(--bbs-brand); color: #fff; font-weight: 600; }

/* ── Secciones ─────────────────────────────────────────── */
.bbs-section { padding: 88px 0; }
.bbs-section--tint { background: var(--bbs-tint); }

.bbs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.bbs-steps li { position: relative; margin: 0; padding: 28px; border-radius: var(--bbs-radius); background: #fff; box-shadow: 0 0 0 1px var(--bbs-line); color: var(--bbs-brand); }
.bbs-steps p { color: var(--bbs-muted); line-height: 1.6; }
.bbs-steps__n { position: absolute; top: 24px; right: 24px; width: 32px; height: 32px; border-radius: 50%; background: var(--bbs-brand-50); color: var(--bbs-brand-600); font-weight: 700; display: grid; place-items: center; }

.bbs-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }
.bbs-service { position: relative; background: #fff; border-radius: 20px; padding: 32px 28px; box-shadow: 0 0 0 1px var(--bbs-line); display: flex; flex-direction: column; }
.bbs-service.is-featured { box-shadow: 0 0 0 2px var(--bbs-brand), 0 24px 48px -24px rgba(21,112,239,.45); }
.bbs-badge { position: absolute; top: -13px; left: 28px; padding: 5px 12px; border-radius: 999px; background: var(--bbs-brand); color: #fff; font-size: 13px; font-weight: 600; }
.bbs-service h3 { font-size: 24px; margin-top: 0; }
.bbs-service__desc { color: var(--bbs-muted); line-height: 1.55; min-height: 3.1em; }
.bbs-service__price { font-size: 40px; font-weight: 800; color: var(--bbs-ink); margin: 20px 0 4px; letter-spacing: -0.02em; }
.bbs-service__price span { font-size: 15px; font-weight: 500; color: var(--bbs-muted); letter-spacing: 0; }
.bbs-service__time { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--bbs-muted); margin-bottom: 18px; }
.bbs-service ul { list-style: none; margin: 0 0 26px; padding: 18px 0 0; border-top: 1px solid var(--bbs-line); display: flex; flex-direction: column; gap: 10px; }
.bbs-service li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; margin: 0; }
.bbs-service li svg { color: var(--bbs-brand); flex-shrink: 0; margin-top: 2px; }
.bbs-service .bbs-btn { margin-top: auto; }

.bbs-addons { margin-top: 40px; padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--bbs-line); }
.bbs-addons h3 { margin-top: 0; }
.bbs-addons ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bbs-addons li { margin: 0; padding: 9px 16px; border-radius: 999px; background: var(--bbs-tint); font-size: 15px; }
.bbs-addons strong { color: var(--bbs-brand-600); margin-left: 4px; }

.bbs-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.bbs-features > div { color: var(--bbs-brand); }
.bbs-features p { color: var(--bbs-muted); line-height: 1.6; }

.bbs-areas, .bbs-join, .bbs-app { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.bbs-areas .bbs-sub, .bbs-join .bbs-sub { margin-bottom: 0 !important; }
.bbs-app__icon img { width: 180px; height: 180px; border-radius: 40px; box-shadow: 0 30px 60px -20px rgba(21,112,239,.5); }
.bbs-stores { display: flex; flex-wrap: wrap; gap: 12px; }
.bbs-store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 180px; min-height: 56px; padding: 8px 20px; border-radius: 14px; background: var(--bbs-ink); color: #fff !important; font-size: 19px; font-weight: 700; text-decoration: none !important; line-height: 1.1; }
.bbs-store small { font-size: 12px; font-weight: 500; opacity: .8; }
.bbs-store.is-soon { background: #fff; color: var(--bbs-muted) !important; box-shadow: 0 0 0 1px var(--bbs-line); }

.bbs-faq { max-width: 820px; }
.bbs-faq details { background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--bbs-line); margin-bottom: 12px; }
.bbs-faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-size: 17px; font-weight: 600; color: var(--bbs-ink); display: flex; justify-content: space-between; gap: 16px; }
.bbs-faq summary::-webkit-details-marker { display: none; }
.bbs-faq summary::after { content: '+'; color: var(--bbs-brand); font-size: 22px; line-height: 1; }
.bbs-faq details[open] summary::after { content: '–'; }
.bbs-faq details p { padding: 0 24px 22px; color: var(--bbs-muted); line-height: 1.65; }

/* Cierre azul. Los títulos llevan selector de más peso porque la regla
   general del tema (body:not(.wp-admin) h2) los pintaba de azul oscuro. */
.bbs-final { position: relative; overflow: hidden; padding: 88px 0; text-align: center; background: linear-gradient(135deg, var(--bbs-brand), var(--bbs-brand-600)); color: #fff; }
.bbs-final::before, .bbs-final::after { content: ""; position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), rgba(255,255,255,.06) 60%, transparent 70%); pointer-events: none; }
.bbs-final::before { width: 260px; height: 260px; left: -70px; top: -90px; }
.bbs-final::after { width: 180px; height: 180px; right: -40px; bottom: -60px; }
.bbs-final .bbs-wrap { position: relative; }
body:not(.wp-admin) .bbs-final h2.bbs-final__title { color: #fff; font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
.bbs-final__lead { max-width: 560px; margin: 0 auto 28px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.92); }
.bbs-final__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.bbs-final__actions .bbs-btn--white { box-shadow: 0 8px 24px rgba(16,24,40,.18); }
.bbs-final__contact { margin: 28px 0 0; display: inline-flex; gap: 8px; align-items: center; font-size: 15px; color: rgba(255,255,255,.85); }
.bbs-final a:not(.bbs-btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Tarjeta "Are you a detailer?" */
.bbs-joincard { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 40px 44px; border-radius: 24px; background: linear-gradient(135deg, var(--bbs-brand-50), #fff 70%); border: 1px solid var(--bbs-brand-100); }
.bbs-joincard__text { max-width: 560px; }
.bbs-joincard .bbs-h2 { margin-top: 14px; }
.bbs-joincard .bbs-sub { margin-bottom: 18px !important; }
.bbs-joincard__list { gap: 10px; font-size: 16px; color: var(--bbs-text); }
.bbs-joincard__cta { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; flex-shrink: 0; }
.bbs-joincard__note { font-size: 13px; color: var(--bbs-muted); max-width: 220px; }

.bbs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.bbs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.bbs-list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.bbs-list svg { color: var(--bbs-brand); flex-shrink: 0; margin-top: 3px; }
.bbs-list--num { counter-reset: n; }
.bbs-list--num li::before { counter-increment: n; content: counter(n); flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bbs-brand-50); color: var(--bbs-brand-600); font-weight: 700; font-size: 14px; display: grid; place-items: center; }

/* ── Formulario ────────────────────────────────────────── */
.bbs-form { display: flex; flex-direction: column; gap: 18px; background: #fff; padding: 32px; border-radius: 20px; box-shadow: 0 0 0 1px var(--bbs-line); }
.bbs-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bbs-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--bbs-ink); }
.bbs-form label span { font-weight: 400; color: var(--bbs-muted); }
.bbs-form input, .bbs-form select, .bbs-form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid #D0D5DD; background: #fff; color: var(--bbs-ink); width: 100%; }
.bbs-form input:focus, .bbs-form select:focus, .bbs-form textarea:focus { outline: none; border-color: var(--bbs-brand); box-shadow: 0 0 0 4px var(--bbs-brand-100); }
.bbs-form label.is-error input, .bbs-form label.is-error select { border-color: #F04438; }
.bbs-form .bbs-btn { align-self: flex-start; }
.bbs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.bbs-form__msg { font-size: 15px; font-weight: 500; }
.bbs-form__msg.is-ok { color: #067647; }
.bbs-form__msg.is-error { color: #B42318; }
.bbs-form__legal { font-size: 13px; color: var(--bbs-muted); }

/* ── Celular ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .bbs-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .bbs-mock { margin: 0 auto; }
  .bbs-steps { grid-template-columns: 1fr; }
  .bbs-two { grid-template-columns: 1fr; gap: 40px; }
  .bbs-areas, .bbs-join, .bbs-app { flex-direction: column; align-items: flex-start; }
  .bbs-joincard { flex-direction: column; align-items: flex-start; padding: 32px 28px; gap: 24px; }
  .bbs-joincard__cta { align-items: flex-start; text-align: left; }
  .bbs-app__icon { display: none; }
}
@media (max-width: 600px) {
  .bbs-wrap { padding: 0 16px; }
  .bbs-hero { padding: 40px 0 56px; }
  .bbs-section { padding: 56px 0; }
  .bbs-lead { font-size: 17px; }
  .bbs-cta .bbs-btn { width: 100%; }
  .bbs-form { padding: 20px; }
  .bbs-form__row { grid-template-columns: 1fr; }
  .bbs-form .bbs-btn { width: 100%; }
}
/* Links de ancla (#services…) no se marcan como "página actual" */
.main-header-menu .current-menu-item > .menu-link[href*="#"] { color: var(--bbs-text) !important; }
.main-header-menu .current-menu-item > .menu-link[href*="#"]:hover { color: var(--bbs-brand) !important; }
/* El tema agrega margen a las listas dentro del contenido */
.bbs .bbs-steps, .bbs .bbs-list, .bbs .bbs-trust, .bbs .bbs-addons ul, .bbs .bbs-service ul { margin-left: 0; margin-right: 0; }

/* Imagen principal (foto elegida en Personalizar o ilustración de marca) */
.bbs-hero__media { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 13; background: var(--bbs-brand-50); box-shadow: 0 30px 60px -24px rgba(16,24,40,.35); }
.bbs-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bbs-app .bbs-hero__card { flex-shrink: 0; width: 360px; }
@media (max-width: 900px) {
  .bbs-hero__media { aspect-ratio: 4 / 3; }
  .bbs-app .bbs-hero__card { width: 100%; }
}

/* Video "cómo funciona" (página de técnicos): reproductor 16:9 adaptable */
.bbs-video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 16px; overflow: hidden; background: var(--bbs-ink); box-shadow: 0 12px 32px rgba(16,24,40,.14); margin-top: 8px; }
.bbs-video iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
