/* ============================================================================
   Perfil público de negocio (OSOLMA)
   ---------------------------------------------------------------------------
   Hoja propia del perfil: hero con horario en vivo, buscador de servicios y
   visor de fotos. Vive fuera de home.css porque solo la carga esta página y
   así el resto del sitio no paga su peso.

   Las clases del perfil usan el prefijo `pbp-` (public business profile).
   Las reglas antiguas `public-business-*` siguen en home.css y aquí solo se
   reutiliza `.public-business-final-cta` y `.public-breadcrumb`.
   ========================================================================= */

.pbp {
    --pbp-radius: 22px;
    --pbp-radius-lg: 28px;
    --pbp-panel-border: rgba(255, 255, 255, 0.42);
    color: var(--ink);
    background: #fff;
}

.pbp .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------- HERO --- */

.pbp-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 132px 0 76px;
    background: linear-gradient(155deg, #eef3ff 0%, #ffffff 46%, #e9fbf6 100%);
}

.pbp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.pbp-hero-bg > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) blur(2px);
    opacity: 0.34;
    transform: scale(1.06);
}

.pbp-hero-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 12% 0%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.74) 42%, rgba(255, 255, 255, 0.36) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 251, 255, 0.86) 58%, #ffffff 100%);
}

.pbp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    animation: pbp-float 16s ease-in-out infinite;
}

.pbp-blob-a {
    top: -110px;
    right: -60px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(50, 85, 215, 0.5), transparent 68%);
}

.pbp-blob-b {
    bottom: -140px;
    left: -80px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(15, 139, 120, 0.45), transparent 68%);
    animation-delay: -8s;
}

@keyframes pbp-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, 26px, 0) scale(1.07); }
}

.pbp-hero-inner { position: relative; }

.pbp-breadcrumb { margin-bottom: 1.35rem; }

.pbp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    align-items: start;
    gap: clamp(1.6rem, 4vw, 3.4rem);
}

.pbp-identity {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.pbp-logo {
    display: grid;
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    place-items: center;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(16, 30, 60, 0.16);
}

.pbp-logo img { width: 100%; height: 100%; object-fit: contain; }

.pbp-logo-fallback {
    color: var(--primary);
    background: linear-gradient(140deg, #edf2ff, #e6fbf5);
    font-size: 1.6rem;
}

.pbp-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.7rem;
    color: #11643c;
    border: 1px solid #b7e6ca;
    border-radius: 999px;
    background: #ebfaf1;
    font-size: 0.72rem;
    font-weight: 900;
}

.pbp-demo-badge {
    color: #7c2d12;
    border-color: rgba(249, 115, 22, 0.28);
    background: #fff7ed;
}

.pbp-demo-badge i { color: #ea580c; }

.pbp-kicker {
    margin: 0.5rem 0 0;
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pbp-hero h1 {
    max-width: 15ch;
    margin: 1.1rem 0 0.8rem;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 950;
}

.pbp-lead {
    max-width: 62ch;
    margin: 0;
    color: #52617a;
    font-size: 1.05rem;
    line-height: 1.72;
}

/* Métricas del hero */
.pbp-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 1.6rem 0 0;
}

.pbp-stats > div {
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--pbp-panel-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 22px rgba(16, 30, 60, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pbp-stats > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(16, 30, 60, 0.12);
}

.pbp-stats dt {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.pbp-stats dd { margin: 0.3rem 0 0; }

.pbp-stat-value {
    display: block;
    color: var(--ink);
    font-size: 1.32rem;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.pbp-stat-value small { font-size: 0.72rem; color: var(--muted); font-weight: 800; }

.pbp-stats small { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.7rem; line-height: 1.4; }

.pbp-stars { display: block; margin-top: 0.15rem; color: #f59e0b; font-size: 0.72rem; }

.pbp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.pbp-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    max-width: 60ch;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.pbp-note i { margin-top: 0.15rem; color: var(--primary); }

/* ------------------------------------------------ Panel lateral / horario */

.pbp-panel {
    position: sticky;
    top: 96px;
    padding: 1.15rem;
    border: 1px solid var(--pbp-panel-border);
    border-radius: var(--pbp-radius-lg);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 70px rgba(16, 30, 60, 0.16);
}

.pbp-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.pbp-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.78rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
}

.pbp-status.is-open { color: #0f6b41; border: 1px solid #b7e6ca; background: #eafaf1; }
.pbp-status.is-closed { color: #9a3412; border: 1px solid #fbd9b5; background: #fef4e8; }

.pbp-status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: currentColor;
}

.pbp-status.is-open .pbp-status-dot { animation: pbp-pulse 2s ease-out infinite; }

@keyframes pbp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.pbp-panel-clock {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.pbp-schedule {
    padding: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--pbp-radius);
    background: var(--surface-soft);
}

.pbp-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.3rem;
}

.pbp-day {
    display: grid;
    padding: 0.5rem 0 0.42rem;
    place-items: center;
    gap: 0.28rem;
    color: var(--ink);
    border: 1px solid transparent;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.pbp-day:hover { transform: translateY(-2px); border-color: rgba(50, 85, 215, 0.35); }

.pbp-day-short { font-size: 0.78rem; font-weight: 950; line-height: 1; }

.pbp-day-mark {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.pbp-day.is-off .pbp-day-mark { background: #cbd5e1; }
.pbp-day.is-off { color: var(--muted); }

.pbp-day.is-today { border-color: rgba(50, 85, 215, 0.35); box-shadow: inset 0 0 0 1px rgba(50, 85, 215, 0.18); }

.pbp-day[aria-selected="true"] {
    color: #fff;
    background: linear-gradient(140deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(50, 85, 215, 0.32);
}

.pbp-day[aria-selected="true"] .pbp-day-mark { background: #fff; }

.pbp-day-panel {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.pbp-day-panel-label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pbp-day-panel strong {
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.pbp-week { margin-top: 0.6rem; }

.pbp-week summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.2rem;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    list-style: none;
}

.pbp-week summary::-webkit-details-marker { display: none; }
.pbp-week summary > i { transition: transform 0.2s ease; }
.pbp-week[open] summary > i { transform: rotate(180deg); }

.pbp-week ul {
    display: grid;
    gap: 0.15rem;
    margin: 0.3rem 0 0;
    padding: 0;
    list-style: none;
}

.pbp-week li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0.55rem;
    border-radius: 9px;
    color: var(--muted);
    font-size: 0.78rem;
}

.pbp-week li:nth-child(odd) { background: #fff; }
.pbp-week li.is-today { color: var(--primary-dark); background: #eaf0ff; font-weight: 800; }
.pbp-week li strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.pbp-panel-facts {
    display: grid;
    gap: 0.45rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.pbp-panel-facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.pbp-panel-facts > li > i {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    color: var(--primary);
    border-radius: 10px;
    background: #edf2ff;
    font-size: 0.8rem;
}

.pbp-panel-facts strong { display: block; color: var(--ink); font-size: 0.84rem; }
.pbp-panel-facts span { color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.pbp-panel-facts a { color: var(--primary-dark); font-weight: 800; }

.pbp-panel-actions {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.pbp-panel-actions .btn { width: 100%; justify-content: center; }

/* -------------------------------------------------------------- Galería --- */

.pbp-gallery { margin-top: clamp(1.6rem, 4vw, 2.6rem); }

.pbp-gallery-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.pbp-gallery-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 1fr);
    gap: 0.7rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.pbp-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 4px solid #fff;
    border-radius: 20px;
    background: #e8eefb;
    cursor: pointer;
    scroll-snap-align: start;
    box-shadow: 0 14px 34px rgba(16, 30, 60, 0.14);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.pbp-thumb img {
    display: block;
    width: 100%;
    height: 168px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pbp-thumb > span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(11, 23, 48, 0.42);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.pbp-thumb:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pbp-thumb:hover img { transform: scale(1.06); }
.pbp-thumb:hover > span,
.pbp-thumb:focus-visible > span { opacity: 1; }

/* ----------------------------------------------------------- SERVICIOS --- */

.pbp-services { background: #fff; }

.pbp-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.pbp-search,
.pbp-sort {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 0.9rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pbp-search:focus-within,
.pbp-sort:focus-within {
    border-color: rgba(50, 85, 215, 0.45);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(50, 85, 215, 0.12);
}

.pbp-search > i,
.pbp-sort > i { color: var(--muted); font-size: 0.86rem; }

.pbp-search input,
.pbp-sort select {
    width: 100%;
    padding: 0.85rem 0;
    color: var(--ink);
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    outline: none;
}

.pbp-search input::-webkit-search-cancel-button { display: none; }

.pbp-sort select { cursor: pointer; padding-right: 0.4rem; }

.pbp-search-clear {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    color: var(--muted);
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.07);
    cursor: pointer;
}

.pbp-search-clear:hover { color: var(--ink); background: rgba(15, 23, 42, 0.14); }

.pbp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.pbp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 850;
    transition: transform 0.16s ease, color 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.pbp-chip i { color: var(--primary); font-size: 0.82rem; transition: color 0.16s ease; }

.pbp-chip span {
    padding: 0.1rem 0.42rem;
    color: var(--muted);
    border-radius: 999px;
    background: var(--surface-soft);
    font-size: 0.7rem;
    font-weight: 900;
}

.pbp-chip:hover { transform: translateY(-2px); border-color: rgba(50, 85, 215, 0.35); }

.pbp-chip.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(140deg, var(--primary), var(--primary-dark));
    box-shadow: 0 12px 26px rgba(50, 85, 215, 0.3);
}

.pbp-chip.is-active i { color: #fff; }
.pbp-chip.is-active span { color: #fff; background: rgba(255, 255, 255, 0.22); }

.pbp-count {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.pbp-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pbp-service {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--pbp-radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pbp-service::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--teal));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.pbp-service:hover {
    transform: translateY(-5px);
    border-color: rgba(50, 85, 215, 0.28);
    box-shadow: var(--shadow-md);
}

.pbp-service:hover::before { opacity: 1; }

.pbp-service.is-hidden { display: none; }

.pbp-service header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.pbp-service-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--primary);
    border-radius: 15px;
    background: #edf2ff;
}

.pbp-service-tag {
    padding: 0.25rem 0.58rem;
    color: var(--primary-dark);
    border: 1px solid rgba(50, 85, 215, 0.18);
    border-radius: 999px;
    background: #f2f6ff;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pbp-service h3 { margin: 0; font-size: 1.12rem; font-weight: 950; letter-spacing: -0.02em; }

.pbp-service > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.62;
}

.pbp-service-branch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.pbp-service dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: auto 0 0;
}

.pbp-service dl div {
    padding: 0.7rem;
    border-radius: 12px;
    background: var(--surface-soft);
}

.pbp-service dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pbp-service dd { margin: 0.15rem 0 0; font-size: 0.84rem; font-weight: 900; }

.pbp-service .btn { width: 100%; justify-content: center; }

.pbp-empty {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
    margin: 0;
    padding: 3rem 1rem;
    color: var(--muted);
    border: 1px dashed var(--border-strong);
    border-radius: var(--pbp-radius);
    background: var(--surface-soft);
    text-align: center;
}

.pbp-empty > i { color: var(--primary); font-size: 1.6rem; }

.pbp-empty button {
    padding: 0.55rem 1rem;
    color: #fff;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 900;
}

.pbp-empty button:hover { background: var(--primary-dark); }

/* ------------------------------------------------ Ubicación y confianza --- */

.pbp-info { background: var(--surface-soft); }

.pbp-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pbp-info-card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: var(--pbp-radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.pbp-info-card h2 {
    margin: 0.8rem 0 1.2rem;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.pbp-info-note {
    display: flex;
    gap: 0.45rem;
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.pbp-info-card > .btn { margin-top: auto; align-self: flex-start; }

.pbp-facts {
    display: grid;
    gap: 0.7rem;
    margin: 0 0 1.2rem;
    padding: 0;
    list-style: none;
}

.pbp-facts li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.pbp-facts li:hover { transform: translateX(3px); border-color: rgba(50, 85, 215, 0.28); }

.pbp-facts li > i {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    color: var(--primary);
    border-radius: 11px;
    background: #edf2ff;
}

.pbp-facts span, .pbp-facts strong { display: block; }
.pbp-facts span { color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.pbp-facts strong { color: var(--ink); font-size: 0.9rem; }

.pbp-team {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0 0 1.2rem;
    padding: 0;
    list-style: none;
}

.pbp-team li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

.pbp-team img,
.pbp-team-initial {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    object-fit: cover;
}

.pbp-team-initial {
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    background: #edf2ff;
    font-weight: 950;
}

.pbp-team strong { display: block; font-size: 0.85rem; }

.pbp-team small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.pbp-team small i { color: var(--green); }

.pbp-social { display: flex; gap: 0.45rem; margin-top: auto; }

.pbp-social a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--primary-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.pbp-social a:hover {
    transform: translateY(-3px);
    color: #fff;
    background: var(--primary);
}

/* ------------------------------------------------------------ Opiniones --- */

.pbp-reviews { background: #fff; }

.pbp-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pbp-review-grid article {
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pbp-review-grid article:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.pbp-review-grid article > div {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    color: #f59e0b;
}

.pbp-review-grid time { color: var(--muted); font-size: 0.72rem; }
.pbp-review-grid p { min-height: 72px; margin: 0.8rem 0; color: #475569; line-height: 1.65; }
.pbp-review-grid strong, .pbp-review-grid small { display: block; }
.pbp-review-grid small { color: var(--muted); }

/* ------------------------------------------------------- Barra en móvil --- */

.pbp-mobile-bar {
    position: fixed;
    right: 0.7rem;
    bottom: 0.7rem;
    left: 0.7rem;
    z-index: 1040;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 44px rgba(16, 30, 60, 0.22);
    transform: translateY(140%);
    transition: transform 0.28s ease;
}

.pbp-mobile-bar.is-visible { transform: translateY(0); }

.pbp-mobile-copy { min-width: 0; }
.pbp-mobile-copy strong { display: block; font-size: 0.86rem; }

.pbp-mobile-copy small {
    display: block;
    color: var(--amber);
    font-size: 0.72rem;
    font-weight: 800;
}

.pbp-mobile-copy small.is-open { color: var(--green); }

.pbp-mobile-bar .btn { flex: 0 0 auto; padding: 0.6rem 1rem; font-size: 0.84rem; }

/* ------------------------------------------------------- Visor de fotos --- */

.pbp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
    background: rgba(6, 12, 28, 0.92);
    backdrop-filter: blur(6px);
    animation: pbp-fade 0.2s ease;
}

.pbp-lightbox[hidden] { display: none; }

@keyframes pbp-fade { from { opacity: 0; } to { opacity: 1; } }

.pbp-lightbox figure {
    max-width: min(1100px, 92vw);
    margin: 0;
    text-align: center;
}

.pbp-lightbox img {
    max-height: 78vh;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.pbp-lightbox figcaption {
    margin-top: 0.7rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    font-weight: 800;
}

.pbp-lightbox-close,
.pbp-lightbox-nav {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.pbp-lightbox-close:hover,
.pbp-lightbox-nav:hover { transform: scale(1.08); background: rgba(255, 255, 255, 0.24); }

.pbp-lightbox-close { position: absolute; top: 1rem; right: 1rem; }

/* ------------------------------------------------------------ Responsive --- */

@media (max-width: 1100px) {
    .pbp-hero-grid { grid-template-columns: 1fr; }
    .pbp-panel { position: static; }
    .pbp-service-grid,
    .pbp-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .pbp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pbp-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .pbp-hero { padding: 100px 0 52px; }
    .pbp-hero h1 { font-size: clamp(2.1rem, 11vw, 3.2rem); }
    .pbp-filters { grid-template-columns: 1fr; }
    .pbp-service-grid,
    .pbp-review-grid,
    .pbp-team { grid-template-columns: 1fr; }
    .pbp-hero-actions .btn { width: 100%; justify-content: center; }
    .pbp-mobile-bar { display: flex; }
    .pbp-lightbox-nav { position: absolute; bottom: 1.4rem; }
    .pbp-lightbox-prev { left: 26%; }
    .pbp-lightbox-next { right: 26%; }
    .pbp-day-panel { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
    .pbp-day-panel strong { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .pbp *,
    .pbp-blob { animation: none !important; transition: none !important; }
}

/* ============================================================================
   Plantillas del perfil público
   ---------------------------------------------------------------------------
   El negocio elige su plantilla en el panel y el valor viaja en
   `data-profile-template` sobre <main class="pbp">. Todas las variaciones son
   CSS: el marcado, el contenido, el schema y los enlaces son idénticos en las
   cinco, así que cambiar de plantilla nunca toca el SEO ni pierde información.

   Cada plantilla redefine `--pbp-accent` y, a partir de ahí, ajusta densidad,
   forma y jerarquía. Este bloque va al final del archivo a propósito: así gana
   sobre las reglas base sin necesidad de !important.
   ========================================================================= */

.pbp {
    --pbp-accent: var(--primary);
    --pbp-accent-dark: var(--primary-dark);
    --pbp-accent-soft: rgba(50, 85, 215, 0.1);
}

/* Piezas que siguen el acento en las plantillas que solo cambian de color.
   Quedan fuera la clásica (su acento ya es el azul de la marca) y las que
   traen paleta propia sobre fondo oscuro —Signature y Portada—, que definen
   estas mismas piezas en su bloque. */
.pbp[data-profile-template]:not([data-profile-template="classic"]):not([data-profile-template="signature"]):not([data-profile-template="cover"]) .pbp-kicker,
.pbp[data-profile-template]:not([data-profile-template="classic"]):not([data-profile-template="signature"]):not([data-profile-template="cover"]) .pbp-note i,
.pbp[data-profile-template]:not([data-profile-template="classic"]):not([data-profile-template="signature"]):not([data-profile-template="cover"]) .pbp-chip i,
.pbp[data-profile-template]:not([data-profile-template="classic"]):not([data-profile-template="signature"]):not([data-profile-template="cover"]) .pbp-facts i,
.pbp[data-profile-template]:not([data-profile-template="classic"]):not([data-profile-template="signature"]):not([data-profile-template="cover"]) .pbp-panel-facts > li > i,
.pbp[data-profile-template]:not([data-profile-template="classic"]):not([data-profile-template="signature"]):not([data-profile-template="cover"]) .pbp-service-icon {
    color: var(--pbp-accent);
}

.pbp[data-profile-template]:not([data-profile-template="classic"]):not([data-profile-template="signature"]):not([data-profile-template="cover"]) .pbp-service-icon {
    background: var(--pbp-accent-soft);
}

.pbp[data-profile-template]:not([data-profile-template="classic"]):not([data-profile-template="signature"]):not([data-profile-template="cover"]) .pbp-chip.is-active,
.pbp[data-profile-template]:not([data-profile-template="classic"]):not([data-profile-template="signature"]):not([data-profile-template="cover"]) .btn-primary-glow {
    background: linear-gradient(135deg, var(--pbp-accent), var(--pbp-accent-dark));
    box-shadow: 0 16px 34px rgba(16, 30, 60, 0.22);
}

.pbp[data-profile-template]:not([data-profile-template="classic"]):not([data-profile-template="signature"]):not([data-profile-template="cover"]) .pbp-chip.is-active i,
.pbp[data-profile-template]:not([data-profile-template="classic"]):not([data-profile-template="signature"]):not([data-profile-template="cover"]) .pbp-chip.is-active span {
    color: inherit;
}

/* El día elegido del horario también sigue el acento: es el elemento que más
   mira el cliente dentro del panel. */
.pbp[data-profile-template]:not([data-profile-template="classic"]):not([data-profile-template="signature"]):not([data-profile-template="cover"]) .pbp-day[aria-selected="true"] {
    background: linear-gradient(140deg, var(--pbp-accent), var(--pbp-accent-dark));
    box-shadow: 0 10px 22px rgba(16, 30, 60, 0.24);
}

.pbp[data-profile-template]:not([data-profile-template="classic"]):not([data-profile-template="signature"]):not([data-profile-template="cover"]) .pbp-day.is-today {
    border-color: var(--pbp-accent-soft);
    box-shadow: inset 0 0 0 1px var(--pbp-accent-soft);
}

.pbp[data-profile-template]:not([data-profile-template="classic"]):not([data-profile-template="signature"]):not([data-profile-template="cover"]) .pbp-day:hover {
    border-color: var(--pbp-accent);
}

/* -------------------------------------------------------- Clínica Pro --- */
/* Consultorio: fondo plano, esquinas rectas, sombras mínimas y el servicio
   marcado con una barra lateral, como una ficha clínica. */

.pbp[data-profile-template="clinic"] {
    --pbp-accent: #0f8b78;
    --pbp-accent-dark: #0a6a5c;
    --pbp-accent-soft: rgba(15, 139, 120, 0.12);
    --pbp-radius: 14px;
    --pbp-radius-lg: 16px;
}

.pbp[data-profile-template="clinic"] .pbp-hero {
    padding: 118px 0 62px;
    background: linear-gradient(170deg, #f2f8f7 0%, #ffffff 62%);
}

/* Las manchas de color y el desenfoque de la foto son del lenguaje festivo;
   una clínica se lee mejor sin ellos. */
.pbp[data-profile-template="clinic"] .pbp-blob { display: none; }

.pbp[data-profile-template="clinic"] .pbp-hero-bg > img {
    filter: saturate(0.92) blur(1px);
    opacity: 0.18;
}

.pbp[data-profile-template="clinic"] .pbp-hero h1 { letter-spacing: -0.035em; }

.pbp[data-profile-template="clinic"] .pbp-stats > div {
    border-color: rgba(15, 139, 120, 0.2);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

.pbp[data-profile-template="clinic"] .pbp-stats > div:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(15, 139, 120, 0.12);
}

.pbp[data-profile-template="clinic"] .pbp-panel {
    border-color: rgba(15, 139, 120, 0.22);
    background: #fff;
    backdrop-filter: none;
    box-shadow: 0 18px 44px rgba(10, 60, 54, 0.12);
}

.pbp[data-profile-template="clinic"] .pbp-service {
    border-radius: 12px;
    border-left: 4px solid var(--pbp-accent);
    box-shadow: none;
}

.pbp[data-profile-template="clinic"] .pbp-service:hover {
    transform: none;
    border-color: var(--border);
    border-left-color: var(--pbp-accent);
    box-shadow: 0 12px 28px rgba(10, 60, 54, 0.12);
}

.pbp[data-profile-template="clinic"] .pbp-service::before {
    background: linear-gradient(90deg, var(--pbp-accent), #5ec4b1);
}

.pbp[data-profile-template="clinic"] .pbp-service-icon { border-radius: 10px; }

.pbp[data-profile-template="clinic"] .pbp-info { background: #f2f8f7; }

.pbp[data-profile-template="clinic"] .pbp-review-grid article { border-radius: 12px; }

/* ------------------------------------------------------ Agenda rápida --- */
/* La decisión aquí es cuándo puedo ir: el panel de horario se adelanta a la
   izquierda, el hero se acorta y los llamados a la acción crecen. */

.pbp[data-profile-template="booking"] {
    --pbp-accent: #f97316;
    --pbp-accent-dark: #d95f08;
    --pbp-accent-soft: rgba(249, 115, 22, 0.12);
}

.pbp[data-profile-template="booking"] .pbp-hero {
    padding: 118px 0 58px;
    background: linear-gradient(155deg, #fff4ea 0%, #ffffff 48%, #eef3ff 100%);
}

@media (min-width: 1101px) {
    .pbp[data-profile-template="booking"] .pbp-hero-grid {
        grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.08fr);
    }

    /* El panel viaja al primer lugar sin tocar el orden del documento: los
       lectores de pantalla siguen leyendo primero el nombre del negocio. */
    .pbp[data-profile-template="booking"] .pbp-panel { order: -1; }
}

.pbp[data-profile-template="booking"] .pbp-hero h1 {
    max-width: 18ch;
    font-size: clamp(2.1rem, 3.6vw, 3.2rem);
}

.pbp[data-profile-template="booking"] .pbp-lead { font-size: 1rem; }

.pbp[data-profile-template="booking"] .pbp-panel {
    border-color: rgba(249, 115, 22, 0.24);
    box-shadow: 0 30px 70px rgba(120, 60, 10, 0.18);
}

.pbp[data-profile-template="booking"] .pbp-panel-actions .btn {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    font-size: 0.95rem;
}

.pbp[data-profile-template="booking"] .pbp-hero-actions .btn-lg,
.pbp[data-profile-template="booking"] .pbp-service .btn {
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

.pbp[data-profile-template="booking"] .pbp-service {
    border-color: rgba(249, 115, 22, 0.2);
}

.pbp[data-profile-template="booking"] .pbp-service:hover {
    border-color: rgba(249, 115, 22, 0.42);
}

.pbp[data-profile-template="booking"] .pbp-service::before {
    background: linear-gradient(90deg, var(--pbp-accent), #fbbf24);
}

/* La barra móvil de acción deja de esconderse: es el atajo a la agenda. */
.pbp[data-profile-template="booking"] .pbp-mobile-bar { transform: translateY(0); }

/* ----------------------------------------------------------- Boutique --- */
/* Estética y hospedaje: portada con más foto, títulos con serif y curvas
   generosas. Es la plantilla con más aire de las cinco. */

.pbp[data-profile-template="boutique"] {
    --pbp-accent: #b0407a;
    --pbp-accent-dark: #8b2d5e;
    --pbp-accent-soft: rgba(176, 64, 122, 0.12);
    --pbp-radius: 26px;
    --pbp-radius-lg: 34px;
}

.pbp[data-profile-template="boutique"] .pbp-hero {
    padding: 142px 0 84px;
    background: linear-gradient(155deg, #fdf2f7 0%, #ffffff 46%, #fff7ed 100%);
}

/* La foto del negocio es el argumento de venta: se deja ver. */
.pbp[data-profile-template="boutique"] .pbp-hero-bg > img {
    filter: saturate(1.08);
    opacity: 0.5;
}

.pbp[data-profile-template="boutique"] .pbp-hero-veil {
    background:
        radial-gradient(120% 90% at 8% 0%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 252, 253, 0.7) 46%, rgba(255, 255, 255, 0.3) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(253, 245, 249, 0.8) 60%, #ffffff 100%);
}

.pbp[data-profile-template="boutique"] .pbp-blob-a {
    background: radial-gradient(circle, rgba(176, 64, 122, 0.42), transparent 68%);
}

.pbp[data-profile-template="boutique"] .pbp-blob-b {
    background: radial-gradient(circle, rgba(249, 168, 96, 0.4), transparent 68%);
}

.pbp[data-profile-template="boutique"] .pbp-hero h1,
.pbp[data-profile-template="boutique"] .pbp-info-card h2,
.pbp[data-profile-template="boutique"] .section-heading h2 {
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pbp[data-profile-template="boutique"] .pbp-hero h1 { line-height: 1.04; }

.pbp[data-profile-template="boutique"] .pbp-lead {
    font-size: 1.12rem;
    line-height: 1.8;
}

.pbp[data-profile-template="boutique"] .pbp-logo { border-radius: 50%; }

.pbp[data-profile-template="boutique"] .pbp-stats > div { border-radius: 20px; }

.pbp[data-profile-template="boutique"] .pbp-service {
    padding: 1.6rem;
    border-color: rgba(176, 64, 122, 0.18);
    box-shadow: 0 14px 34px rgba(120, 30, 80, 0.08);
}

.pbp[data-profile-template="boutique"] .pbp-service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.pbp[data-profile-template="boutique"] .pbp-service::before {
    background: linear-gradient(90deg, var(--pbp-accent), #f0a05f);
}

.pbp[data-profile-template="boutique"] .pbp-info { background: #fdf6f9; }

.pbp[data-profile-template="boutique"] .pbp-review-grid article {
    border-radius: 24px;
    border-color: rgba(176, 64, 122, 0.16);
}

.pbp[data-profile-template="boutique"] .pbp-review-grid p {
    font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
    font-size: 1.02rem;
    font-style: italic;
}

/* ----------------------------------------------------------- Compacta --- */
/* Catálogos largos: menos aire, tarjetas más chicas y cuatro servicios por
   fila en pantallas anchas para que se vea el surtido sin desplazarse. */

.pbp[data-profile-template="compact"] {
    --pbp-accent: #334155;
    --pbp-accent-dark: #1e293b;
    --pbp-accent-soft: rgba(51, 65, 85, 0.1);
    --pbp-radius: 14px;
    --pbp-radius-lg: 18px;
}

.pbp[data-profile-template="compact"] .pbp-hero {
    padding: 104px 0 44px;
    background: linear-gradient(160deg, #f4f7fb 0%, #ffffff 66%);
}

.pbp[data-profile-template="compact"] .pbp-blob { display: none; }

.pbp[data-profile-template="compact"] .pbp-hero h1 {
    max-width: 20ch;
    margin: 0.85rem 0 0.6rem;
    font-size: clamp(1.9rem, 3.2vw, 2.9rem);
}

.pbp[data-profile-template="compact"] .pbp-lead {
    font-size: 0.98rem;
    line-height: 1.62;
}

.pbp[data-profile-template="compact"] .pbp-stats {
    margin-top: 1.1rem;
    gap: 0.45rem;
}

.pbp[data-profile-template="compact"] .pbp-stats > div { padding: 0.6rem 0.7rem; }

.pbp[data-profile-template="compact"] .pbp-stat-value { font-size: 1.1rem; }

.pbp[data-profile-template="compact"] .pbp-panel { padding: 0.9rem; }

.pbp[data-profile-template="compact"] .section-pad {
    padding-top: clamp(2.2rem, 4vw, 3.2rem);
    padding-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.pbp[data-profile-template="compact"] .pbp-service {
    gap: 0.55rem;
    padding: 1rem;
}

.pbp[data-profile-template="compact"] .pbp-service h3 { font-size: 1rem; }

.pbp[data-profile-template="compact"] .pbp-service > p {
    font-size: 0.85rem;
    line-height: 1.5;
}

.pbp[data-profile-template="compact"] .pbp-service-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 0.9rem;
}

@media (min-width: 1200px) {
    .pbp[data-profile-template="compact"] .pbp-service-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

.pbp[data-profile-template="compact"] .pbp-review-grid article { padding: 0.95rem; }

.pbp[data-profile-template="compact"] .pbp-review-grid p {
    min-height: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ---------------------------------------------------------- Signature --- */
/* La plantilla premium. Es la única que cambia la estructura y no solo el
   color: portada oscura a todo lo ancho, panel de contacto flotando sobre el
   borde de la portada y servicios en lista tipo carta (icono · nombre ·
   precio · acción) en vez de tarjetas sueltas.

   El marcado sigue siendo el mismo: la lista se arma con grid-template-areas
   y un `display: contents` en el <header> de cada servicio, así que ninguna
   información se mueve de sitio en el documento ni se pierde. */

.pbp[data-profile-template="signature"] {
    --pbp-accent: #16274b;
    --pbp-accent-dark: #0b1730;
    --pbp-accent-soft: rgba(22, 39, 75, 0.08);
    --sig-ink: #0b1730;
    --sig-gold: #b08d57;
    /* Sobre la portada oscura el dorado de marca se apaga: los textos usan
       una versión clara que sí pasa el contraste. */
    --sig-gold-light: #dcc19a;
    --sig-gold-soft: rgba(176, 141, 87, 0.16);
    --pbp-radius: 6px;
    --pbp-radius-lg: 10px;
}

/* Signature queda fuera del bloque de acentos compartido: define su paleta
   entera aquí, empezando por el botón base (portada, lista y cierre lo
   sobrescriben más abajo con el dorado). */
.pbp[data-profile-template="signature"] .btn-primary-glow {
    color: #fff;
    background: linear-gradient(135deg, #1e3358, var(--sig-ink));
    box-shadow: 0 14px 30px rgba(11, 23, 48, 0.28);
}

.pbp[data-profile-template="signature"] .pbp-chip i { color: var(--sig-gold); }

.pbp[data-profile-template="signature"] .pbp-day:hover { border-color: var(--sig-gold); }

/* --- Portada oscura --- */

.pbp[data-profile-template="signature"] .pbp-hero {
    /* El panel se sale por abajo, así que la portada deja de recortar y el
       recorte se muda al contenedor de la imagen. */
    overflow: visible;
    padding: 148px 0 132px;
    background: var(--sig-ink);
}

.pbp[data-profile-template="signature"] .pbp-hero-bg {
    overflow: hidden;
}

.pbp[data-profile-template="signature"] .pbp-hero-bg > img {
    filter: saturate(0.9) contrast(1.05);
    opacity: 0.55;
    transform: none;
}

.pbp[data-profile-template="signature"] .pbp-hero-veil {
    background:
        linear-gradient(90deg, rgba(6, 12, 26, 0.94) 0%, rgba(6, 12, 26, 0.72) 52%, rgba(6, 12, 26, 0.45) 100%),
        linear-gradient(180deg, rgba(6, 12, 26, 0.86) 0%, rgba(6, 12, 26, 0.34) 42%, rgba(6, 12, 26, 0.92) 100%);
}

.pbp[data-profile-template="signature"] .pbp-blob { display: none; }

/* Una hairline dorada cierra la portada por abajo. */
.pbp[data-profile-template="signature"] .pbp-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sig-gold), transparent);
}

@media (min-width: 1101px) {
    .pbp[data-profile-template="signature"] .pbp-hero-grid {
        grid-template-columns: minmax(0, 1.22fr) minmax(348px, 0.78fr);
        align-items: end;
    }
}

/* --- Texto sobre la portada --- */

.pbp[data-profile-template="signature"] .pbp-breadcrumb { color: rgba(255, 255, 255, 0.6); }
.pbp[data-profile-template="signature"] .pbp-breadcrumb a { color: rgba(255, 255, 255, 0.86); }
.pbp[data-profile-template="signature"] .pbp-breadcrumb a:hover { color: var(--sig-gold); }

.pbp[data-profile-template="signature"] .pbp-logo {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.pbp[data-profile-template="signature"] .pbp-logo-fallback {
    color: var(--sig-gold);
    background: rgba(176, 141, 87, 0.14);
}

.pbp[data-profile-template="signature"] .pbp-verified {
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(176, 141, 87, 0.5);
    background: rgba(176, 141, 87, 0.14);
}

.pbp[data-profile-template="signature"] .pbp-verified i { color: var(--sig-gold-light); }

.pbp[data-profile-template="signature"] .pbp-kicker {
    color: var(--sig-gold-light);
    letter-spacing: 0.16em;
    font-size: 0.72rem;
}

.pbp[data-profile-template="signature"] .pbp-hero h1 {
    max-width: 13ch;
    color: #fff;
    font-size: clamp(2.6rem, 5.2vw, 4.6rem);
    letter-spacing: -0.045em;
}

.pbp[data-profile-template="signature"] .pbp-lead {
    max-width: 54ch;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.06rem;
}

.pbp[data-profile-template="signature"] .pbp-note { color: rgba(255, 255, 255, 0.55); }
.pbp[data-profile-template="signature"] .pbp-note i { color: var(--sig-gold-light); }

/* Las métricas dejan de ser cuatro cajitas y pasan a una banda dividida por
   hairlines: es el gesto editorial que más cambia la lectura del hero. */
.pbp[data-profile-template="signature"] .pbp-stats {
    gap: 0;
    margin-top: 2.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.pbp[data-profile-template="signature"] .pbp-stats > div {
    padding: 0.1rem 1.15rem;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
}

.pbp[data-profile-template="signature"] .pbp-stats > div:first-child { padding-left: 0; border-left: 0; }

.pbp[data-profile-template="signature"] .pbp-stats > div:hover { transform: none; box-shadow: none; }

.pbp[data-profile-template="signature"] .pbp-stats dt {
    color: var(--sig-gold-light);
    letter-spacing: 0.14em;
}

.pbp[data-profile-template="signature"] .pbp-stat-value { color: #fff; font-size: 1.5rem; }
.pbp[data-profile-template="signature"] .pbp-stat-value small { color: rgba(255, 255, 255, 0.5); }
.pbp[data-profile-template="signature"] .pbp-stats small { color: rgba(255, 255, 255, 0.52); }

.pbp[data-profile-template="signature"] .pbp-hero-actions .btn-primary-glow {
    color: var(--sig-ink);
    background: linear-gradient(135deg, #e6d3ad, var(--sig-gold));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

.pbp[data-profile-template="signature"] .pbp-hero-actions .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.pbp[data-profile-template="signature"] .pbp-hero-actions .btn-ghost:hover {
    border-color: var(--sig-gold);
    background: rgba(176, 141, 87, 0.16);
}

/* --- Panel flotante sobre el borde de la portada --- */

@media (min-width: 1101px) {
    .pbp[data-profile-template="signature"] .pbp-panel {
        margin-bottom: -104px;
    }

    /* El margen negativo del panel encoge la rejilla y subiría la galería
       justo debajo: se le devuelve el alto para que el panel flote sobre la
       portada y no tape las fotos. */
    .pbp[data-profile-template="signature"] .pbp-gallery {
        margin-top: 8.4rem;
    }
}

.pbp[data-profile-template="signature"] .pbp-panel {
    padding: 1.35rem;
    border: 1px solid rgba(11, 23, 48, 0.1);
    border-top: 3px solid var(--sig-gold);
    background: #fff;
    backdrop-filter: none;
    box-shadow: 0 40px 90px rgba(3, 8, 24, 0.45);
}

.pbp[data-profile-template="signature"] .pbp-day,
.pbp[data-profile-template="signature"] .pbp-day-panel,
.pbp[data-profile-template="signature"] .pbp-panel-facts li { border-radius: 6px; }

.pbp[data-profile-template="signature"] .pbp-day[aria-selected="true"] {
    background: var(--sig-ink);
    box-shadow: 0 10px 22px rgba(11, 23, 48, 0.3);
}

.pbp[data-profile-template="signature"] .pbp-day.is-today {
    border-color: var(--sig-gold-soft);
    box-shadow: inset 0 0 0 1px var(--sig-gold-soft);
}

.pbp[data-profile-template="signature"] .pbp-week summary { color: var(--sig-ink); }
.pbp[data-profile-template="signature"] .pbp-week li.is-today { color: var(--sig-ink); background: rgba(176, 141, 87, 0.12); }

.pbp[data-profile-template="signature"] .pbp-panel-facts > li > i { color: var(--sig-gold); }

/* --- Encabezados de sección alineados a la izquierda --- */

/* El componente de encabezado trae `text-center` de utilidades, que llega con
   !important: por eso este override también lo necesita. */
.pbp[data-profile-template="signature"] .section-heading {
    max-width: 62ch;
    margin-left: 0;
    margin-bottom: 2.4rem;
    text-align: left !important;
}

.pbp[data-profile-template="signature"] .section-eyebrow {
    padding: 0 0 0.55rem;
    color: var(--sig-gold);
    border: 0;
    border-bottom: 1px solid var(--sig-gold-soft);
    border-radius: 0;
    background: none;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pbp[data-profile-template="signature"] .section-heading h2 { letter-spacing: -0.035em; }

/* --- Servicios en lista tipo carta --- */

.pbp[data-profile-template="signature"] .pbp-service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid rgba(11, 23, 48, 0.12);
}

@media (min-width: 901px) {
    .pbp[data-profile-template="signature"] .pbp-service {
        display: grid;
        grid-template-columns: 62px minmax(0, 1fr) 176px 206px;
        grid-template-areas:
            "icon tag    meta cta"
            "icon title  meta cta"
            "icon desc   meta cta"
            "icon branch meta cta";
        align-items: start;
        gap: 0.2rem 1.4rem;
        padding: 1.6rem 0.4rem;
        border: 0;
        border-bottom: 1px solid rgba(11, 23, 48, 0.12);
        border-radius: 0;
        background: none;
        box-shadow: none;
        transition: background 0.2s ease;
    }

    .pbp[data-profile-template="signature"] .pbp-service:hover {
        transform: none;
        background: rgba(11, 23, 48, 0.025);
        box-shadow: none;
    }

    /* El <header> desaparece como caja para que su icono y su etiqueta caigan
       directo en la rejilla de la fila. */
    .pbp[data-profile-template="signature"] .pbp-service header { display: contents; }

    .pbp[data-profile-template="signature"] .pbp-service-icon {
        grid-area: icon;
        align-self: center;
        width: 54px;
        height: 54px;
        color: var(--sig-gold);
        border-radius: 50%;
        background: rgba(176, 141, 87, 0.12);
    }

    .pbp[data-profile-template="signature"] .pbp-service-tag {
        grid-area: tag;
        justify-self: start;
        color: var(--sig-gold);
        background: none;
        padding: 0;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        font-size: 0.66rem;
    }

    .pbp[data-profile-template="signature"] .pbp-service h3 { grid-area: title; }
    .pbp[data-profile-template="signature"] .pbp-service > p { grid-area: desc; margin-top: 0.15rem; }
    .pbp[data-profile-template="signature"] .pbp-service-branch { grid-area: branch; justify-self: start; }

    /* Duración y precio dejan de ser dos cajitas y se apilan como el bloque de
       precio de una carta: etiqueta chica arriba, cifra grande abajo. */
    .pbp[data-profile-template="signature"] .pbp-service dl {
        grid-area: meta;
        align-self: center;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.5rem;
        margin: 0;
        padding-left: 1.4rem;
        border-left: 1px solid rgba(11, 23, 48, 0.1);
        text-align: right;
    }

    .pbp[data-profile-template="signature"] .pbp-service dl div {
        padding: 0;
        border-radius: 0;
        background: none;
    }

    .pbp[data-profile-template="signature"] .pbp-service dt {
        font-size: 0.6rem;
        letter-spacing: 0.12em;
    }

    .pbp[data-profile-template="signature"] .pbp-service dd {
        font-size: 0.86rem;
        line-height: 1.2;
    }

    /* El precio es el dato que se busca en una carta: manda en la columna. */
    .pbp[data-profile-template="signature"] .pbp-service dl div:last-child dd {
        color: var(--sig-ink);
        font-size: 1.18rem;
        letter-spacing: -0.02em;
    }

    .pbp[data-profile-template="signature"] .pbp-service .btn {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        line-height: 1.25;
    }

    .pbp[data-profile-template="signature"] .pbp-service .btn {
        grid-area: cta;
        align-self: center;
    }
}

.pbp[data-profile-template="signature"] .pbp-service::before { display: none; }

/* El icono va en dorado también cuando la lista vuelve a ser tarjetas. */
.pbp[data-profile-template="signature"] .pbp-service-icon {
    color: var(--sig-gold);
    background: rgba(176, 141, 87, 0.12);
}

.pbp[data-profile-template="signature"] .pbp-service .btn {
    color: #fff;
    background: var(--sig-ink);
    box-shadow: none;
}

.pbp[data-profile-template="signature"] .pbp-service .btn:hover {
    color: var(--sig-ink);
    background: linear-gradient(135deg, #e6d3ad, var(--sig-gold));
}

.pbp[data-profile-template="signature"] .pbp-chip { border-radius: 6px; }

.pbp[data-profile-template="signature"] .pbp-chip.is-active {
    background: var(--sig-ink);
    box-shadow: none;
}

.pbp[data-profile-template="signature"] .pbp-search,
.pbp[data-profile-template="signature"] .pbp-sort { border-radius: 8px; }

/* --- Confianza y opiniones --- */

.pbp[data-profile-template="signature"] .pbp-info { background: #f6f7fa; }

.pbp[data-profile-template="signature"] .pbp-info-card {
    border-radius: 8px;
    border-top: 3px solid var(--sig-gold);
}

.pbp[data-profile-template="signature"] .pbp-facts li,
.pbp[data-profile-template="signature"] .pbp-team li { border-radius: 6px; }

.pbp[data-profile-template="signature"] .pbp-facts i { color: var(--sig-gold); }

.pbp[data-profile-template="signature"] .pbp-review-grid article {
    border-radius: 8px;
    border-top: 2px solid var(--sig-gold-soft);
    box-shadow: none;
}

.pbp[data-profile-template="signature"] .pbp-review-grid article:hover {
    transform: none;
    border-top-color: var(--sig-gold);
    box-shadow: 0 14px 30px rgba(11, 23, 48, 0.1);
}

.pbp[data-profile-template="signature"] .pbp-review-grid p {
    color: #3d4a63;
    font-size: 1rem;
}

.pbp[data-profile-template="signature"] .public-business-final-cta {
    background: var(--sig-ink);
}

.pbp[data-profile-template="signature"] .public-business-final-cta .btn-primary-glow {
    color: var(--sig-ink);
    background: linear-gradient(135deg, #e6d3ad, var(--sig-gold));
}

.pbp[data-profile-template="signature"] .pbp-mobile-bar .btn {
    color: var(--sig-ink);
    background: linear-gradient(135deg, #e6d3ad, var(--sig-gold));
}

/* En pantallas donde el hero ya es de una columna el panel vuelve a su sitio:
   flotar sobre el borde solo tiene sentido cuando hay dos columnas. */
@media (max-width: 1100px) {
    .pbp[data-profile-template="signature"] .pbp-hero { padding-bottom: 56px; }
}

/* Con las métricas en dos columnas, la primera de cada renglón es la que
   arranca la banda: sin esto arrastraría el separador al borde. */
@media (max-width: 860px) {
    .pbp[data-profile-template="signature"] .pbp-stats > div {
        padding-top: 0.85rem;
        padding-bottom: 0.15rem;
    }

    .pbp[data-profile-template="signature"] .pbp-stats > div:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }
}

/* ------------------------------------------------------------ Portada --- */
/* El banner de las guías de OSOLMA llevado a la ficha de negocio: la foto
   ocupa el ancho completo, el texto va encima y las cifras cierran abajo en
   una barra de cristal. Para lograrlo sin tocar el marcado:

   - la rejilla del hero pasa a una sola columna, así el panel de horario baja
     y se convierte en una franja horizontal debajo del banner;
   - la columna de texto se vuelve flex y reordena a sus hijos para que las
     métricas queden al final, después de los botones.

   Nada sale del documento ni cambia de significado: solo de posición. */

.pbp[data-profile-template="cover"] {
    --pbp-accent: var(--primary);
    --pbp-accent-dark: var(--primary-dark);
    --pbp-accent-soft: rgba(50, 85, 215, 0.1);
    --cov-ink: #0c1426;
    --cov-green: #2fbf71;
    --cov-glass: rgba(12, 20, 38, 0.62);
    --pbp-radius: 18px;
    --pbp-radius-lg: 22px;
}

.pbp[data-profile-template="cover"] .pbp-hero {
    display: flex;
    align-items: flex-end;
    min-height: min(88vh, 860px);
    padding: 150px 0 46px;
    background: var(--cov-ink);
}

.pbp[data-profile-template="cover"] .pbp-hero-bg > img {
    filter: saturate(1.02);
    opacity: 0.66;
    transform: none;
}

/* El velo carga hacia abajo y hacia la izquierda: es donde vive el texto. */
.pbp[data-profile-template="cover"] .pbp-hero-veil {
    background:
        linear-gradient(90deg, rgba(8, 14, 28, 0.9) 0%, rgba(8, 14, 28, 0.66) 46%, rgba(8, 14, 28, 0.24) 100%),
        linear-gradient(180deg, rgba(8, 14, 28, 0.78) 0%, rgba(8, 14, 28, 0.22) 34%, rgba(8, 14, 28, 0.88) 100%);
}

.pbp[data-profile-template="cover"] .pbp-blob { display: none; }

.pbp[data-profile-template="cover"] .pbp-hero-inner { width: 100%; }

@media (min-width: 1101px) {
    .pbp[data-profile-template="cover"] .pbp-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.6rem;
    }
}

/* Reordena la columna de texto: las cifras cierran el banner. */
.pbp[data-profile-template="cover"] .pbp-hero-copy {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.pbp[data-profile-template="cover"] .pbp-identity { order: 1; }
.pbp[data-profile-template="cover"] .pbp-hero h1 { order: 2; }
.pbp[data-profile-template="cover"] .pbp-lead { order: 3; }
.pbp[data-profile-template="cover"] .pbp-hero-actions { order: 4; }
.pbp[data-profile-template="cover"] .pbp-note { order: 5; }
.pbp[data-profile-template="cover"] .pbp-stats { order: 6; }

/* --- Texto sobre el banner --- */

.pbp[data-profile-template="cover"] .pbp-breadcrumb { color: rgba(255, 255, 255, 0.58); }
.pbp[data-profile-template="cover"] .pbp-breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.pbp[data-profile-template="cover"] .pbp-breadcrumb a:hover { color: var(--cov-green); }

.pbp[data-profile-template="cover"] .pbp-logo {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
}

.pbp[data-profile-template="cover"] .pbp-logo-fallback {
    color: var(--cov-green);
    background: rgba(47, 191, 113, 0.16);
}

/* La cápsula de verificado imita la píldora del banner de las guías. */
.pbp[data-profile-template="cover"] .pbp-verified {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(12, 20, 38, 0.55);
    backdrop-filter: blur(10px);
}

.pbp[data-profile-template="cover"] .pbp-verified i { color: var(--cov-green); }

.pbp[data-profile-template="cover"] .pbp-kicker {
    color: var(--cov-green);
    letter-spacing: 0.12em;
}

.pbp[data-profile-template="cover"] .pbp-hero h1 {
    max-width: 17ch;
    margin: 1.4rem 0 1rem;
    color: #fff;
    font-size: clamp(2.5rem, 5.6vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.pbp[data-profile-template="cover"] .pbp-lead {
    max-width: 56ch;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.08rem;
}

.pbp[data-profile-template="cover"] .pbp-hero-actions { margin-top: 1.9rem; }

.pbp[data-profile-template="cover"] .pbp-hero-actions .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.pbp[data-profile-template="cover"] .pbp-hero-actions .btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.18);
}

.pbp[data-profile-template="cover"] .pbp-note {
    color: rgba(255, 255, 255, 0.62);
    margin-top: 1.15rem;
}

.pbp[data-profile-template="cover"] .pbp-note i { color: var(--cov-green); }

/* --- Barra de cifras al pie del banner --- */

.pbp[data-profile-template="cover"] .pbp-stats {
    gap: 0;
    margin-top: 2.8rem;
    padding: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: var(--cov-glass);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.pbp[data-profile-template="cover"] .pbp-stats > div {
    padding: 1rem 1.35rem;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
}

.pbp[data-profile-template="cover"] .pbp-stats > div:first-child { border-left: 0; }
.pbp[data-profile-template="cover"] .pbp-stats > div:hover { transform: none; box-shadow: none; }

.pbp[data-profile-template="cover"] .pbp-stats dt {
    color: var(--cov-green);
    letter-spacing: 0.12em;
}

.pbp[data-profile-template="cover"] .pbp-stat-value { color: #fff; font-size: 1.46rem; }
.pbp[data-profile-template="cover"] .pbp-stat-value small { color: rgba(255, 255, 255, 0.55); }
.pbp[data-profile-template="cover"] .pbp-stats small { color: rgba(255, 255, 255, 0.6); }

/* --- El panel de horario baja a una franja bajo el banner --- */

.pbp[data-profile-template="cover"] .pbp-panel {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 1rem 2rem;
    align-items: start;
    padding: 1.5rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.pbp[data-profile-template="cover"] .pbp-panel-head {
    grid-column: 1 / -1;
    margin-bottom: 0.3rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(11, 23, 48, 0.08);
}

.pbp[data-profile-template="cover"] .pbp-schedule { margin: 0; }
.pbp[data-profile-template="cover"] .pbp-panel-facts { margin: 0; }

.pbp[data-profile-template="cover"] .pbp-panel-actions {
    margin: 0;
    align-self: center;
}

.pbp[data-profile-template="cover"] .pbp-day[aria-selected="true"] .pbp-day-mark { background: #fff; }

/* --- Resto de la ficha: acentos verdes y tarjetas más suaves --- */

.pbp[data-profile-template="cover"] .section-eyebrow {
    color: #10683e;
    border-color: rgba(47, 191, 113, 0.28);
    background: rgba(47, 191, 113, 0.1);
}

.pbp[data-profile-template="cover"] .pbp-service::before {
    background: linear-gradient(90deg, var(--cov-green), var(--primary));
}

.pbp[data-profile-template="cover"] .pbp-facts i,
.pbp[data-profile-template="cover"] .pbp-panel-facts > li > i { color: #10683e; }

.pbp[data-profile-template="cover"] .pbp-info { background: #f4faf6; }

/* En una y dos columnas la franja vuelve a apilarse. */
@media (max-width: 980px) {
    .pbp[data-profile-template="cover"] .pbp-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 860px) {
    .pbp[data-profile-template="cover"] .pbp-stats > div {
        padding: 0.85rem 1rem;
    }

    /* Con dos columnas, la primera de cada renglón abre la barra. */
    .pbp[data-profile-template="cover"] .pbp-stats > div:nth-child(odd) { border-left: 0; }

    .pbp[data-profile-template="cover"] .pbp-stats > div:nth-child(n+3) {
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 720px) {
    .pbp[data-profile-template="cover"] .pbp-hero {
        min-height: 0;
        padding: 104px 0 40px;
    }

    .pbp[data-profile-template="cover"] .pbp-stats { border-radius: 18px; }
}
