/* ═══════════════════════════════════════════════════════════
   Módulo: profile — Perfil público de sucursal y catálogos
   Mobile-first · BEM · sin color-mix()
   ═══════════════════════════════════════════════════════════ */

/* ── Wrapper global ──────────────────────────────────────── */
.profile {
    --c-bg: #f8fafc;
    --c-surface: #ffffff;
    --c-surface-2: #eef3f8;
    --c-text: #202124;
    --c-text-muted: #5f6f82;
    --c-border: #d6e0ea;
    --c-primary: #1a73e8;
    --c-primary-hover: #1558b0;
    --c-edit: #1a73e8;
    --c-edit-hover: #1558b0;
    --c-success: #188038;

    background: var(--c-bg);
    min-height: 100vh;
}

/* ── Contenedor centrado ─────────────────────────────────── */
.profile-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

/* ══════════════════════════════════════════════════════════
   HERO — Rediseño premium (full-bleed + overlay)
   ══════════════════════════════════════════════════════════ */
.profile-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: #1a1714;
}

@media (min-width: 768px) {
    .profile-hero { min-height: 360px; }
}

.profile-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.profile-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8,8,10,.92) 0%,
        rgba(8,8,10,.66) 40%,
        rgba(8,8,10,.34) 75%,
        rgba(8,8,10,.22) 100%
    );
}

.profile-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: var(--space-5) var(--space-4);
}

@keyframes profile-pulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
    50%      { box-shadow: 0 0 0 6px rgba(34,197,94,.08); }
}

/* Fila avatar + info */
.profile-hero__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.profile-hero__identity {
    display: flex;
    align-items: flex-end;
    gap: var(--space-4);
    color: inherit;
    text-decoration: none;
}

/* Avatar circular */
.profile-hero__avatar {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    border: 3px solid rgba(255,255,255,.9);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--c-primary);
    box-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.profile-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-hero__avatar-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.profile-hero__info {
    flex: 1;
    min-width: 0;
}

@media (min-width: 768px) {
    .profile-hero__inner {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }

    .profile-hero__avatar {
        width: 96px;
        height: 96px;
    }
}

@media (min-width: 1024px) {
    .profile-hero__avatar {
        width: 104px;
        height: 104px;
        border-radius: 22px;
    }
}

/* Kicker (categorías) */
.profile-hero__kicker {
    font-size: 0.8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    font-weight: 500;
    margin: 0 0 var(--space-2);
}

/* Nombre principal */
.profile-hero__name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.75rem, 4.2vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 var(--space-2);
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

/* Sucursal */
.profile-hero__branch {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,.72);
    margin: 0 0 var(--space-2);
}

/* Localización */
.profile-hero__loc {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.875rem;
    color: rgba(255,255,255,.58);
    margin: 0;
}

/* Badge abierto/cerrado en hero */
.profile-hero__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,.9);
    letter-spacing: .01em;
}
.profile-hero__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.profile-hero__status--open  .profile-hero__status-dot { background: #4ade80; box-shadow: 0 0 0 2px rgba(74,222,128,.28); }
.profile-hero__status--closed .profile-hero__status-dot { background: #f87171; box-shadow: 0 0 0 2px rgba(248,113,113,.28); }
.profile-hero__status-next { opacity: .72; font-weight: 400; }

/* Chips de prueba social en hero — sólo desktop (en móvil esa info vive en el quickinfo strip) */
.profile-hero__chips { display: none; }

@media (min-width: 768px) {
    .profile-hero__chips {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
        margin-top: var(--space-3);
    }
}

.profile-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.92);
    color: var(--c-text, #1f2937);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.profile-hero__chip:hover { background: #fff; color: var(--c-text, #1f2937); transform: translateY(-1px); }

.profile-hero__chip-sub { opacity: .6; font-weight: 400; }

.profile-hero__chip--offer { background: #fef3c7; color: #92400e; }
.profile-hero__chip--offer:hover { background: #fde68a; color: #92400e; }

.profile-hero__chip--fast { background: #d1fae5; color: #065f46; }
.profile-hero__chip--fast:hover { background: #a7f3d0; color: #065f46; }

/* Badge verificado en hero */
.profile-hero__verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(37,99,235,.5);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--radius-full);
    padding: 3px 10px;
    backdrop-filter: blur(4px);
}

/* Año de fundación en hero */
.profile-hero__founded {
    display: block;
    margin-top: 3px;
    font-size: 0.75rem;
    color: rgba(255,255,255,.7);
    font-weight: 400;
}

/* Rango de precios en hero */
.profile-hero__price-range {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 0;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.35);
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .01em;
    width: fit-content;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.profile-hero__price-range svg { flex-shrink: 0; }

/* Fila de CTAs */
.profile-hero__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

@media (min-width: 768px) {
    .profile-hero__cta-row {
        justify-content: flex-end;
        flex-shrink: 0;
        padding-bottom: 2px;
    }
}

/* Botón WhatsApp */
.profile-hero__btn-wa {
    background: #25d366;
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(37,211,102,.35);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 9px var(--space-3);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: filter .2s, transform .15s;
}

.profile-hero__btn-wa:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Botón Teléfono */
.profile-hero__btn-tel {
    background: rgba(255,255,255,.9);
    color: var(--c-primary);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 9px var(--space-3);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background .2s, transform .15s;
}

.profile-hero__btn-tel:hover { background: #fff; color: var(--c-primary); transform: translateY(-1px); }

/* Botón CTA genérico (cualquier contacto) — secundario: ghost translúcido */
.profile-hero__btn-cta {
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.95);
    border: 1px solid rgba(255,255,255,.35);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 9px var(--space-3);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: background .2s, transform .15s;
}
.profile-hero__btn-cta:hover { background: rgba(255,255,255,.26); color: #fff; transform: translateY(-1px); }

/* CTA primario del hero — un solo botón sólido con máximo contraste */
.profile-hero__btn-cta.profile-hero__btn--primary {
    background: rgba(255,255,255,.96);
    color: var(--c-primary);
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.profile-hero__btn-cta.profile-hero__btn--primary:hover { background: #fff; color: var(--c-primary); }

.profile-hero__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-hero__cta-icon svg {
    width: 17px;
    height: 17px;
    display: block;
}

/* Botón favorito en el hero del perfil — secundario: ghost translúcido */
.profile-hero__btn-fav {
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.35);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 9px var(--space-3);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: background .2s, color .2s, transform .15s;
}
.profile-hero__btn-fav:hover { background: rgba(255,255,255,.26); color: #fff; transform: translateY(-1px); }
.profile-hero__btn-fav--active { color: #f87171; border-color: rgba(248,113,113,.55); }
.profile-hero__btn-fav[data-loading] { opacity: .6; pointer-events: none; }

/* Botón compartir — secundario: ghost translúcido */
.profile-hero__btn-share {
    background: rgba(255,255,255,.14);
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.35);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 9px var(--space-3);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .2s, color .2s, transform .15s;
}
.profile-hero__btn-share:hover { background: rgba(255,255,255,.26); color: #fff; transform: translateY(-1px); }
.profile-hero__btn-share--done { background: rgba(34,197,94,.35); border-color: rgba(74,222,128,.6); color: #fff; }

/* Botón ghost (catálogo) */
.profile-hero__btn-ghost {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.28);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 9px var(--space-3);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: background .2s;
}

.profile-hero__btn-ghost:hover { background: rgba(255,255,255,.2); color: rgba(255,255,255,.9); }

/* ══════════════════════════════════════════════════════════
   QUICK-INFO STRIP — chips resumen debajo del hero (solo móvil)
   ══════════════════════════════════════════════════════════ */
.profile-quickinfo {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.profile-quickinfo::-webkit-scrollbar { display: none; }

.profile-quickinfo__inner {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 9px var(--space-4);
    white-space: nowrap;
}

.profile-quickinfo__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: var(--radius-full);
    background: var(--c-surface-2);
    font-size: 0.8125rem;
    color: var(--c-text-muted);
    flex-shrink: 0;
}

.profile-quickinfo__chip--status.is-open  { background: #dcfce7; color: #166534; }
.profile-quickinfo__chip--status.is-closed { background: #fee2e2; color: #991b1b; }

.profile-quickinfo__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.is-open  .profile-quickinfo__dot { background: #16a34a; }
.is-closed .profile-quickinfo__dot { background: #dc2626; }

.profile-quickinfo__chip-sub { opacity: .65; }

.profile-quickinfo__chip--price { background: #ecfdf5; color: #065f46; }

.profile-quickinfo__chip--offer {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
    text-decoration: none;
}

@media (min-width: 768px) { .profile-quickinfo { display: none; } }

/* ══════════════════════════════════════════════════════════
   INFO COMPACT — Tarjeta 2 columnas: Horarios | Pagos+Amenidades
   ══════════════════════════════════════════════════════════ */
.profile-info-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--c-border);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.profile-info-compact__col {
    background: var(--c-surface);
    padding: var(--space-3);
    min-width: 0;
}

.profile-info-compact__col-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text-muted);
    margin: 0 0 var(--space-2);
}

/* Status badge (abierto/cerrado) dentro del col izquierdo */
.profile-info-compact__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2);
}
.profile-info-compact__status--open  { background: #dcfce7; color: #166534; }
.profile-info-compact__status--closed { background: #fee2e2; color: #991b1b; }

.profile-info-compact__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.profile-info-compact__status--open  .profile-info-compact__dot { background: #16a34a; }
.profile-info-compact__status--closed .profile-info-compact__dot { background: #dc2626; }

/* Filas de horario */
.profile-info-compact__sched { display: flex; flex-direction: column; gap: 1px; }

.profile-info-compact__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-1);
    font-size: 0.6875rem;
    line-height: 1.6;
    color: var(--c-text);
}

.profile-info-compact__day {
    color: var(--c-text-muted);
    flex-shrink: 0;
    min-width: 36px;
}

.profile-info-compact__hours { text-align: right; }
.profile-info-compact__closed { color: var(--c-text-muted); font-style: italic; }

/* Items de pago / amenidad */
.profile-info-compact__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--c-text);
    padding: 2px 0;
    line-height: 1.4;
}

.profile-info-compact__icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.profile-info-compact__item--payment .profile-info-compact__icon { background: #dbeafe; color: #1d4ed8; }
.profile-info-compact__item--amenity .profile-info-compact__icon { background: #dcfce7; color: #166534; }

.profile-info-compact__divider {
    height: 1px;
    background: var(--c-border);
    margin: var(--space-2) 0;
}

/* ══════════════════════════════════════════════════════════
   STICKY BAR MOBILE — se mantiene en el DOM pero oculto
   ══════════════════════════════════════════════════════════ */
.profile-sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: calc(var(--z-sticky) + 50);
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    padding: var(--space-2) var(--space-3);
    transform: translateY(-100%);
    transition: transform 0.25s ease;
    pointer-events: none;
}

.profile-sticky-bar--visible {
    transform: translateY(0);
    pointer-events: auto;
}

.profile-sticky-bar__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.profile-sticky-bar__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--c-border);
    flex-shrink: 0;
}

.profile-sticky-bar__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-sticky-bar__avatar--letter {
    background: var(--c-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
}

.profile-sticky-bar__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-text);
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .profile-sticky-bar { display: none; }
}

/* ══════════════════════════════════════════════════════════
   NAV DE ANCLAS (visible en móvil y desktop)
   ══════════════════════════════════════════════════════════ */
.profile-nav {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 56px;
    z-index: calc(var(--z-sticky) - 1);
}

@media (min-width: 768px) {
    .profile-nav {
        top: 60px;
    }
}

.profile-nav__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--space-3);
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

.profile-nav__inner::-webkit-scrollbar { display: none; }

.profile-nav__link {
    display: block;
    padding: var(--space-3) var(--space-3);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text-muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.profile-nav__link:hover,
.profile-nav__link--active {
    color: var(--c-primary);
    border-bottom-color: var(--c-primary);
}

/* ══════════════════════════════════════════════════════════
   BREADCRUMB VISIBLE — refuerza el BreadcrumbList del JSON-LD
   ══════════════════════════════════════════════════════════ */
.profile-breadcrumb {
    max-width: 1080px;
    margin: 0 auto;
    padding: var(--space-2) var(--space-3) 0;
}

.profile-breadcrumb__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    color: var(--c-text-muted);
}

.profile-breadcrumb__list li {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-width: 0;
}

.profile-breadcrumb__list li + li::before {
    content: '›';
    color: var(--c-text-muted);
    opacity: .55;
}

.profile-breadcrumb__list a {
    color: var(--c-text-muted);
    text-decoration: none;
}
.profile-breadcrumb__list a:hover { color: var(--c-primary); }

.profile-breadcrumb__list li[aria-current] {
    color: var(--c-text);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Las anclas no deben quedar bajo el header + nav sticky */
#info, #ofertas, #lealtad, #galeria, #catalogos, #contacto,
#ubicacion, #locales, #eventos, #reviews {
    scroll-margin-top: 118px;
    margin-bottom: 27px;
}

/* ══════════════════════════════════════════════════════════
   LAYOUT PRINCIPAL (2 columnas en desktop)
   ══════════════════════════════════════════════════════════ */
.profile-layout {
    max-width: 1080px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-3) var(--space-8);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "main"
        "aside";
    gap: var(--space-4);
    align-items: start;
}

.profile-main  { grid-area: main; }
.profile-aside {
    grid-area: aside;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
@media (max-width: 767px) { .profile-aside { display: none; } }

@media (min-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr 300px;
        grid-template-areas: "main aside";
        gap: var(--space-5);
        padding-top: var(--space-5);
    }
}

@media (min-width: 1024px) {
    .profile-layout {
        grid-template-columns: 1fr 320px;
    }
}

/* ══════════════════════════════════════════════════════════
   SECCIONES (columna principal)
   ══════════════════════════════════════════════════════════ */
.profile-section {
    margin-bottom: var(--space-6);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
}

/* El banner de lealtad es su propia tarjeta: sin chrome de card */
.profile-section.profile-loyalty {
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
}

/* Kicker sobre el título */
.profile-section__kicker {
    font-size: 0.6875rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-primary);
    font-weight: 600;
    margin: 0 0 var(--space-2);
}

/* Botón de regreso con flecha */
.profile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.25rem 0.6rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    background: var(--c-primary);
    margin: 0 0 var(--space-3);
    transition: background .15s, box-shadow .15s;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.profile-back-btn:hover,
.profile-back-btn:focus-visible {
    background: var(--c-primary-dark, color-mix(in srgb, var(--c-primary) 85%, #000));
    color: #fff;
}

/* Título de sección — serif */
.profile-section__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.3125rem, 2.5vw, 1.625rem);
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 var(--space-2);
    line-height: 1.2;
}

/* Divisor decorativo */
.profile-section__divider {
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, var(--c-primary), rgba(58,85,104,.15));
    border-radius: 2px;
    margin-bottom: var(--space-4);
}

/* Sección visible solo en móvil */
.profile-section--mobile-only { display: block; }
@media (min-width: 768px) { .profile-section--mobile-only { display: none; } }

/* Dirección en línea (compacta) */
.profile-address-inline {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--c-text-muted);
    line-height: 1.5;
}

.profile-address-inline svg { flex-shrink: 0; margin-top: 3px; }

.profile-address-inline--location {
    margin-bottom: var(--space-3);
}

.profile-address-inline__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-address-inline__refs {
    color: var(--c-text-muted);
}

/* Acciones del mapa */
.profile-map-actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-3);
}

/* Eventos próximos — fila estilo demo-propuesta con portada de fondo
   (mismo tratamiento visual que .loyalty-banner) */
/* Las tarjetas de evento ahora viven en el widget reutilizable
   public/assets/css/components/event-card.css (.event-card*). */

.profile-hero__loyalty-form {
    margin: 0;
}

.profile-loyalty {
    margin-bottom: var(--space-6);
}

/* Banner de lealtad — diseño alineado a demo-propuesta.html (#lealtad) */
.loyalty-banner {
    background: linear-gradient(120deg, #1e3a8a, #1d4ed8 60%, #3b82f6);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Portada de la loyalty card como fondo; el gradiente azul queda de fallback
   y como scrim para garantizar contraste del texto sobre la imagen */
.loyalty-banner--has-bg {
    background:linear-gradient(120deg, rgba(20, 20, 20, 0.66), rgba(20, 20, 20, 0.66) 60%, rgba(20, 20, 20, 0.66)), var(--loyalty-bg) center / cover no-repeat
}

.loyalty-banner__icon {
    font-size: 2.2rem;
}

.loyalty-banner__content {
    flex: 1 1 220px;
    min-width: 0;
}

.loyalty-banner__title {
    margin: 0;
    font-weight: 800;
    font-size: 1.05rem;
}

.loyalty-banner__sub {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.loyalty-stamps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.loyalty-stamps span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.6);
    display: grid;
    place-items: center;
    font-size: 0.65rem;
}

.loyalty-stamps span.filled {
    background: #fff;
    color: #1d4ed8;
    border-style: solid;
}

.loyalty-banner__count {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    font-weight: 700;
}

.loyalty-banner__code {
    margin: 0.35rem 0 0;
}

.loyalty-banner__code code {
    display: inline-block;
    max-width: 100%;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.75rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.loyalty-banner__form {
    margin: 0;
    margin-left: auto;
}

.loyalty-banner__btn {
    background: #fff;
    color: #1d4ed8;
    border: none;
}

.loyalty-banner__btn:hover {
    background: rgba(255, 255, 255, 0.88);
    color: #1e40af;
}

a.loyalty-banner__btn,
.loyalty-banner > a.loyalty-banner__btn {
    margin-left: auto;
}

.loyalty-banner__content .loyalty-banner__btn {
    display: inline-flex;
    margin-left: 0;
    margin-top: 1rem;
}

.loyalty-banner__qr {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    text-align: center;
}

.loyalty-banner__qr img {
    width: 140px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.loyalty-banner__qr-hint {
    margin: 0;
    font-size: 0.78rem;
    opacity: 0.9;
    max-width: 160px;
}

@media (max-width: 639px) {
    .loyalty-banner__qr {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .loyalty-banner__qr img {
        width: 70vw;
        max-width: 280px;
    }
}

/* btn--outline (variante ligera) */
.btn--outline {
    background: transparent;
    border: 1.5px solid var(--c-border);
    color: var(--c-text);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px var(--space-3);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s, color .18s;
}

.btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ── Descripción ─────────────────────────────────────────── */
.profile-description__lead {
    font-size: 1rem;
    font-weight: 500;
    color: var(--c-text);
    line-height: 1.6;
    margin: 0 0 var(--space-2);
}

.profile-description__body {
    font-size: 0.9375rem;
    color: var(--c-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ── Dirección + mapa ─────────────────────────────────────── */
.profile-address-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.profile-address-card__line {
    font-size: 0.9375rem;
    color: var(--c-text);
    margin: 0 0 var(--space-1);
    font-weight: 500;
}

.profile-address-card__refs,
.profile-address-card__geo {
    font-size: 0.875rem;
    color: var(--c-text-muted);
    margin: var(--space-1) 0 0;
}

.profile-address-card__actions {
    margin-top: var(--space-3);
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* ── Mapa embebido ──────────────────────────────────────── */
.profile-map {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dadce0;
    background: #f8fafc;
    box-shadow: 0 1px 2px rgba(60,64,67,.16);
    margin-bottom: var(--space-3);
    line-height: 0;
}

.profile-map__iframe,
.profile-map__div {
    display: block;
    width: 100%;
    height: 260px;
    border: none;
}

@media (min-width: 768px) {
    .profile-map__iframe,
    .profile-map__div { height: 320px; }
}

/* ── Grid de catálogos ───────────────────────────────────── */
.profile-catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
}

@media (min-width: 540px) {
    .profile-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.profile-catalog-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.profile-catalog-card:hover {
    border-color: var(--c-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.profile-catalog-card__icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1;
    width: 44px;
    height: 44px;
    background: var(--c-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-catalog-card__body {
    flex: 1;
    min-width: 0;
}

.profile-catalog-card__name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--c-text);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-catalog-card__meta {
    display: block;
    font-size: 0.8125rem;
    color: var(--c-text-muted);
    margin: 0;
}

.profile-catalog-card__products {
    display: grid;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.profile-catalog-card__product {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: var(--space-2);
    align-items: center;
    min-width: 0;
}

.profile-catalog-card__product-img,
.profile-catalog-card__product-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--c-bg);
}

.profile-catalog-card__product-img {
    object-fit: cover;
    display: block;
}

.profile-catalog-card__product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-border);
    font-weight: 700;
}

.profile-catalog-card__product-body {
    min-width: 0;
}

.profile-catalog-card__product-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--c-text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.profile-catalog-card__product-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
    margin-top: 2px;
    color: var(--c-text);
    font-size: 0.8125rem;
}

.profile-catalog-card__product-price strong {
    font-weight: 700;
}

.profile-catalog-card__product-price span {
    color: var(--c-text-muted);
    text-decoration: line-through;
}

.profile-catalog-card__more {
    align-self: center;
    flex-shrink: 0;
    border: 1px solid var(--c-primary);
    border-radius: var(--radius-sm);
    padding: 6px var(--space-2);
    color: var(--c-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.profile-catalog-card__more:hover {
    background: var(--c-primary);
    color: #fff;
}

@media (max-width: 479px) {
    .profile-catalog-card {
        flex-wrap: wrap;
    }

    .profile-catalog-card__more {
        width: 100%;
        text-align: center;
    }
}

/* ── Galería de imágenes ─────────────────────────────────── */
.profile-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
}

@media (min-width: 480px) {
    .profile-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
    .profile-gallery { grid-template-columns: repeat(4, 1fr); }
}

.profile-gallery__item {
    appearance: none;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: zoom-in;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--c-surface-2);
}

.profile-gallery__item:focus-visible {
    outline: 3px solid var(--c-primary);
    outline-offset: 3px;
}

.profile-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}

.profile-gallery__item:hover .profile-gallery__img {
    transform: scale(1.06);
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR — Tarjeta de conversión unificada
   ══════════════════════════════════════════════════════════ */

/* Sticky sidebar en desktop */
@media (min-width: 768px) {
    .profile-aside {
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
    }
}

.profile-conv-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.profile-conv-card__header {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--c-bg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.profile-conv-card__closes {
    font-size: 0.8rem;
    color: var(--c-text-muted);
}

.profile-conv-card__body {
    padding: var(--space-4);
}

.profile-conv-card__body:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.profile-conv-card__section-label {
    font-size: 0.6875rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    font-weight: 600;
    margin: 0 0 var(--space-2);
}

.profile-conv-card__sep {
    height: 1px;
    background: var(--c-border);
    margin: var(--space-4) 0;
}

/* ── Horario compacto (rangos) ────────────────────────────── */
.profile-sched-compact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.profile-sched-compact__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    line-height: 1.4;
}

.profile-sched-compact__days {
    color: var(--c-text-muted);
    min-width: 80px;
}

.profile-sched-compact__hours {
    color: var(--c-text);
    font-weight: 500;
    text-align: right;
}

.profile-sched-compact__row--closed .profile-sched-compact__hours {
    color: var(--c-danger);
    font-weight: 400;
}

/* ── Status abierto/cerrado (reutilizado del diseño anterior) */
.profile-schedule-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    font-weight: 500;
}

.profile-schedule-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-schedule-status--open  { color: #15803d; }
.profile-schedule-status--closed { color: #b91c1c; }

.profile-schedule-status--open .profile-schedule-status__dot {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.2);
}

.profile-schedule-status--closed .profile-schedule-status__dot {
    background: #ef4444;
}

/* ── Botones de contacto con icono ───────────────────────── */
.profile-contact-btns {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.profile-contact-btn {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 10px var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    background: var(--c-bg);
    color: var(--c-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color .18s, background .18s, transform .15s;
    cursor: pointer;
}

.profile-contact-btn:hover {
    border-color: var(--c-primary);
    background: var(--c-surface);
    transform: translateX(2px);
}

.profile-contact-btn__icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--c-surface);
}

.profile-contact-btn__icon--wa   { background: #dcfce7; }
.profile-contact-btn__icon--ig   { background: #fce7f3; }
.profile-contact-btn__icon--fb   { background: #dbeafe; }
.profile-contact-btn__icon--tel  { background: #dbeafe; }
.profile-contact-btn__icon--email{ background: #ede9fe; }
.profile-contact-btn__icon--tt   { background: #f3f4f6; }
.profile-contact-btn__icon--yt   { background: #fee2e2; }
.profile-contact-btn__icon--tg   { background: #dbeafe; }
.profile-contact-btn__icon--web  { background: var(--c-surface-2); }
.profile-contact-btn__icon--tw   { background: #dbeafe; }
.profile-contact-btn__icon--link { background: var(--c-surface-2); }
.profile-contact-btn__icon--payment  { background: #e0f2fe; }
.profile-contact-btn__icon--amenity  { background: #dcfce7; }
.profile-contact-btn__icon--language { background: #f3f4f6; }

.profile-contact-btn__icon--tel { color: #3b82f6; }
.profile-contact-btn__icon--email { color: #6366f1; }
.profile-contact-btn__icon--web,
.profile-contact-btn__icon--link { color: #64748b; }
.profile-contact-btn__icon--payment  { color: #0284c7; }
.profile-contact-btn__icon--amenity  { color: #16a34a; }

.profile-contact-btn__icon--flag {
    font-size: 1.125rem;
    line-height: 1;
    background: transparent;
}

.profile-contact-btn--info {
    width: 100%;
    cursor: default;
}

.profile-contact-btn--info:hover {
    border-color: var(--c-border);
    background: var(--c-bg);
    transform: none;
}

.profile-contact-btn__label {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

.profile-contact-btn__val {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--c-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-contact-btn__arrow {
    color: var(--c-text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── Tarjeta de datos secundarios ────────────────────────── */
.profile-data-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
}

.profile-data-card__label {
    font-size: 0.6875rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    font-weight: 600;
    margin: 0 0 var(--space-2);
}

.profile-data-card__sep {
    height: 1px;
    background: var(--c-border);
    margin: var(--space-3) 0;
}

.profile-data-card__slug-row {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.85rem;
    color: var(--c-muted);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 8px 10px;
    word-break: break-all;
}
.profile-data-card__slug-prefix {
    white-space: nowrap;
    color: #94a3b8;
}
.profile-data-card__slug-value {
    color: var(--c-primary);
    font-weight: 500;
    cursor: text;
}

.profile-description__body--company {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--c-text);
    margin-bottom: var(--space-3);
}

/* ── Dirección web / slug inline editor ─────────────────── */
.profile-web-url {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.profile-web-url__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.profile-web-url__label {
    font-size: 0.6875rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-web-url__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.profile-web-url__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-surface);
    color: var(--c-text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.14s, color 0.14s, border-color 0.14s;
    padding: 0;
    margin: 0;
    line-height: 1;
    font-family: inherit;
    font-size: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.profile-web-url__btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: var(--c-text);
}

.profile-web-url__btn[data-copied] {
    background: #f0fdf4;
    border-color: #86efac;
    color: #16a34a;
}

.profile-web-url__label::before {
    content: '';
    display: inline-block;
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23616a73' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* block container — the biz-inline-editor (display:grid) breaks naturally to its own line */
.profile-web-url__display {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.83rem;
    line-height: 1.6;
    word-break: break-all;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 8px 10px;
}

.profile-web-url__base {
    color: #94a3b8;
}

.profile-web-url__slug {
    display: inline;
    color: var(--c-primary);
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
    padding: 0 3px;
    transition: background 0.14s;
}

.profile-web-url__slug::after {
    content: ' ✎';
    font-style: normal;
    font-family: sans-serif;
    font-size: 0.7em;
    opacity: 0.4;
}

.profile-web-url__slug:hover {
    background: rgba(58, 85, 104, 0.1);
}

/* editor aparece en bloque debajo de la URL base sin mover el texto */
.profile-web-url__display .biz-inline-editor {
    margin-top: var(--space-2);
}
    font-size: 0.6875rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    font-weight: 600;
    margin: var(--space-2) 0 var(--space-1);
}

.profile-doc-year {
    font-size: 0.75rem;
    color: var(--c-text-muted);
    font-weight: 400;
    margin-left: 4px;
}

/* ── Tags (pagos / amenidades) ───────────────────────────── */
.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    font-size: 0.775rem;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR — Cards del panel lateral (compatibilidad legacy)
   ══════════════════════════════════════════════════════════ */
.profile-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.profile-card__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--c-text-muted);
    margin: 0 0 var(--space-3);
}

/* ── Horario ─────────────────────────────────────────────── */
.profile-schedule {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.profile-schedule td {
    padding: 5px 0;
    vertical-align: top;
    border-bottom: 1px solid var(--c-surface-2);
}

.profile-schedule tr:last-child td {
    border-bottom: none;
}

.profile-schedule__day {
    font-weight: 500;
    color: var(--c-text);
    width: 46%;
    padding-right: var(--space-2);
}

.profile-schedule__hours {
    color: var(--c-text-muted);
}

.profile-schedule__row--closed .profile-schedule__day,
.profile-schedule__row--closed .profile-schedule__hours {
    color: var(--c-border);
}

.profile-schedule__closed {
    font-style: italic;
    font-size: 0.8125rem;
}

/* ── Lista de contacto ───────────────────────────────────── */
.profile-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.profile-contact-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.profile-contact-item__type {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-text-muted);
}

.profile-contact-item__value {
    font-size: 0.9375rem;
    color: var(--c-text);
    word-break: break-all;
}

a.profile-contact-item__value {
    color: var(--c-edit);
    text-decoration: none;
}

a.profile-contact-item__value:hover {
    text-decoration: underline;
}

/* ── Tabla de features (pagos / amenidades) ──────────────── */
.profile-feat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.profile-feat-table td {
    padding: 5px 0;
    vertical-align: middle;
    border-bottom: 1px solid var(--c-surface-2);
}

.profile-feat-table__row:last-child td {
    border-bottom: none;
}

.profile-feat-table__icon {
    width: 26px;
}

.profile-feat-table__icon svg {
    display: block;
}

.profile-feat-table__name {
    font-weight: 500;
    color: var(--c-text);
}

.profile-feat-table--payment .profile-feat-table__icon {
    color: #3a5568;
}

.profile-feat-table--amenity .profile-feat-table__icon {
    color: var(--c-success);
}

/* ══════════════════════════════════════════════════════════
   VISTA DE EMPRESA (company.php)
   ══════════════════════════════════════════════════════════ */
.profile-company {
    --company-ink: #13202f;
    --company-muted: #607085;
    --company-line: #d7e1ec;
    --company-accent: #0f8b6f;
}

.profile-company-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    background: #162235 center/cover no-repeat;
    overflow: hidden;
}

.profile-company-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10,16,24,.92) 0%, rgba(10,16,24,.74) 46%, rgba(10,16,24,.38) 100%),
        linear-gradient(0deg, rgba(10,16,24,.86) 0%, rgba(10,16,24,.16) 68%);
}

.profile-company-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-4);
    display: grid;
    gap: var(--space-5);
}

.profile-company-hero__identity {
    display: flex;
    align-items: flex-end;
    gap: var(--space-4);
    min-width: 0;
}

.profile-company-hero__logo {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    border: 3px solid rgba(255,255,255,.9);
    background: #1a73e8;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0,0,0,.32);
    flex-shrink: 0;
}

.profile-company-hero__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-company-hero__logo span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2.35rem;
    font-weight: 800;
}

.profile-company-hero__copy {
    min-width: 0;
    max-width: 760px;
}

.profile-company-hero__kicker {
    margin: 0 0 var(--space-2);
    color: rgba(255,255,255,.72);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.profile-company-hero__name {
    margin: 0;
    color: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.1rem, 6vw, 4.3rem);
    line-height: 1.02;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0,0,0,.38);
}

.profile-company-hero__desc {
    max-width: 720px;
    margin: var(--space-3) 0 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem, 2.5vw, 1.18rem);
    line-height: 1.62;
}

.profile-company-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
    max-width: 760px;
}

.profile-company-stat {
    min-height: 82px;
    padding: var(--space-3);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(12px);
}

.profile-company-stat strong {
    display: block;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    margin-bottom: 7px;
}

.profile-company-stat span {
    color: rgba(255,255,255,.76);
    font-size: .83rem;
    font-weight: 600;
}

.profile-company-stat--live strong { color: #86efac; }

.profile-company-nav {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--company-line);
    backdrop-filter: blur(12px);
}

.profile-company-nav__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: flex;
    gap: var(--space-1);
    overflow-x: auto;
    scrollbar-width: none;
}

.profile-company-nav__inner::-webkit-scrollbar { display: none; }

.profile-company-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 var(--space-3);
    color: var(--company-muted);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.profile-company-nav a:hover {
    color: var(--c-primary);
    border-bottom-color: var(--c-primary);
}

.profile-company-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-4) var(--space-8);
}

.profile-company-overview {
    display: grid;
    gap: var(--space-5);
    align-items: start;
    margin-bottom: var(--space-6);
}

.profile-company-overview__text {
    color: var(--company-muted);
    line-height: 1.7;
    max-width: 720px;
    margin: 0;
}

.profile-company-featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
}

.profile-company-featured__item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: center;
    gap: var(--space-3);
    min-height: 82px;
    padding: var(--space-2);
    border: 1px solid var(--company-line);
    border-radius: 8px;
    background: #fff;
    color: var(--company-ink);
    text-decoration: none;
    transition: border-color .16s, box-shadow .16s, transform .16s;
}

.profile-company-featured__item:hover {
    border-color: rgba(26,115,232,.45);
    box-shadow: 0 12px 28px rgba(25,42,64,.1);
    transform: translateY(-1px);
}

.profile-company-featured__item img,
.profile-company-featured__item span {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    background: #eef3f8;
    display: grid;
    place-items: center;
    color: var(--c-primary);
    font-weight: 800;
}

.profile-company-featured__item strong {
    min-width: 0;
    font-size: .95rem;
    line-height: 1.25;
}

.profile-company-tags {
    display: grid;
    gap: var(--space-4);
    padding: var(--space-5) 0;
    margin-bottom: var(--space-5);
    border-top: 1px solid var(--company-line);
    border-bottom: 1px solid var(--company-line);
}

.profile-company-tag-group__label {
    margin: 0 0 var(--space-2);
    color: var(--company-ink);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-company-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.profile-company-tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 var(--space-3);
    border: 1px solid var(--company-line);
    border-radius: 999px;
    background: #fff;
    color: var(--company-muted);
    font-size: .86rem;
    font-weight: 650;
}

.profile-company-branches-section {
    scroll-margin-top: 76px;
}

.profile-company-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.profile-company-section-head__count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 var(--space-3);
    border-radius: 999px;
    background: #e8f1fd;
    color: #1558b0;
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
}

.profile-branches {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

.profile-branch-card {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100%;
    overflow: hidden;
    background: var(--c-surface);
    border: 1px solid var(--company-line);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(20,35,55,.04);
    transition: border-color .16s, box-shadow .16s, transform .16s;
}

.profile-branch-card:hover {
    border-color: rgba(26,115,232,.42);
    box-shadow: 0 18px 40px rgba(24,38,56,.12);
    transform: translateY(-2px);
}

.profile-branch-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #e8eef6;
    overflow: hidden;
    color: var(--c-primary);
    text-decoration: none;
}

.profile-branch-card__media img,
.profile-branch-card__media > span {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: grid;
    place-items: center;
    font-size: 2.4rem;
    font-weight: 800;
}

.profile-branch-card__media img {
    display: block;
    transition: transform .24s ease;
}

.profile-branch-card:hover .profile-branch-card__media img {
    transform: scale(1.035);
}

.profile-branch-card__status {
    position: absolute;
    left: var(--space-3);
    bottom: var(--space-3);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - var(--space-6));
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: var(--company-ink);
    font-size: .78rem;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(0,0,0,.16);
}

.profile-branch-card__status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9aa8b6;
    flex-shrink: 0;
}

.profile-branch-card__status.is-open i { background: #16a34a; }
.profile-branch-card__status.is-closed i { background: #dc2626; }

.profile-branch-card__body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.profile-branch-card__top {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
}

.profile-branch-card__name {
    font-weight: 800;
    font-size: 1.08rem;
    color: var(--company-ink);
    margin: 0;
    line-height: 1.25;
}

.profile-branch-card__name a {
    color: inherit;
    text-decoration: none;
}

.profile-branch-card__name a:hover {
    color: var(--c-primary);
}

.profile-branch-card__location {
    font-size: .84rem;
    color: var(--company-muted);
    margin: 5px 0 0;
}

.profile-branch-card__logo {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--company-line);
    flex-shrink: 0;
}

.profile-branch-card__desc {
    margin: 0;
    color: var(--company-muted);
    font-size: .92rem;
    line-height: 1.55;
}

.profile-branch-card__addr {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .88rem;
    color: var(--company-muted);
    line-height: 1.45;
    margin: 0;
}

.profile-branch-card__addr svg {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-branch-card__hours {
    margin: calc(var(--space-2) * -1) 0 0;
    color: var(--company-accent);
    font-size: .84rem;
    font-weight: 800;
}

.profile-branch-card__chips,
.profile-branch-card__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.profile-branch-card__chips span,
.profile-branch-card__metrics span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 750;
}

.profile-branch-card__chips span {
    background: #eef6f3;
    color: #176b58;
}

.profile-branch-card__metrics span {
    background: #f1f5f9;
    color: #536275;
}

.profile-branch-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: auto;
    padding-top: var(--space-1);
}

.profile-branch-card__actions .btn {
    min-height: 38px;
    border-radius: 8px;
}

@media (min-width: 720px) {
    .profile-company-hero__stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .profile-company-overview {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    .profile-company-tags {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 760px) {
    .profile-branches {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1080px) {
    .profile-branches {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .profile-company-hero {
        min-height: 520px;
    }

    .profile-company-hero__inner {
        padding: var(--space-5) var(--space-3);
    }

    .profile-company-hero__identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-company-hero__logo {
        width: 78px;
        height: 78px;
        border-radius: 18px;
    }

    .profile-company-hero__stats {
        grid-template-columns: 1fr 1fr;
    }

    .profile-company-content {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }

    .profile-company-section-head {
        flex-direction: column;
        gap: var(--space-2);
    }
}

/* ══════════════════════════════════════════════════════════
   VISTA DE CATÁLOGO (catalog.php)
   ══════════════════════════════════════════════════════════ */
.profile-catalog-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: var(--space-5) var(--space-4) var(--space-8);
}

.profile-catalog-page-header {
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--c-border);
}

.profile-catalog-page-header__name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 var(--space-1);
}

.profile-catalog-page-header__meta {
    font-size: 0.875rem;
    color: var(--c-text-muted);
    margin: 0;
}

/* Secciones del catálogo */
.profile-cat-section {
    margin-bottom: var(--space-6);
}

.profile-cat-section__header {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--c-border);
}

.profile-cat-section__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--c-text);
    margin: 0;
    flex: 1;
}

.profile-cat-section__link {
    font-size: 0.8125rem;
    color: var(--c-edit);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-cat-section__link:hover { text-decoration: underline; }

.profile-cat-section__desc {
    font-size: 0.9375rem;
    color: var(--c-text-muted);
    margin: 0 0 var(--space-3);
}

/* ══════════════════════════════════════════════════════════
   GRID DE PRODUCTOS
   ══════════════════════════════════════════════════════════ */
.profile-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

@media (min-width: 480px) {
    .profile-product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) {
    .profile-product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .profile-product-grid { grid-template-columns: repeat(4, 1fr); }
}

.profile-product-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

a.profile-product-card:hover {
    border-color: var(--c-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.profile-product-card__img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--c-surface-2);
    flex-shrink: 0;
}

.profile-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

a.profile-product-card:hover .profile-product-card__img {
    transform: scale(1.05);
}

.profile-product-card__placeholder {
    aspect-ratio: 1;
    background: linear-gradient(145deg, var(--c-surface-2) 0%, #dce8f3 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--c-text-muted);
    flex-shrink: 0;
}

.profile-product-card__placeholder-icon {
    opacity: 0.45;
    display: flex;
}

.profile-product-card__placeholder-letter {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--c-border);
    line-height: 1;
    letter-spacing: 0.02em;
}

.profile-product-card__body {
    padding: var(--space-2) var(--space-3) var(--space-3);
    flex: 1;
}

.profile-product-card__name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--c-text);
    margin: 0 0 var(--space-1);
    line-height: 1.3;
}

.profile-product-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
    flex-wrap: wrap;
    margin: 0 0 var(--space-1);
    font-size: 0.875rem;
    color: var(--c-text);
}

.profile-product-card__price strong {
    font-weight: 700;
}

.profile-product-card__price-old {
    color: var(--c-text-muted);
    font-size: 0.8125rem;
    text-decoration: line-through;
}

.profile-product-card__desc {
    font-size: 0.8125rem;
    color: var(--c-text-muted);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Wrapper para posicionar el botón de favorito sobre la tarjeta */
.profile-product-wrap {
    position: relative;
}

.profile-product-card__fav {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 30px;
    height: 30px;
    min-height: 0; /* anula el min-height:44px global de <button> (deformaba el círculo) */
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--c-text-muted, #6b7280);
    backdrop-filter: blur(4px);
    transition: background .15s, color .15s, transform .1s;
    text-decoration: none;
    padding: 0;
}
.profile-product-card__fav:hover { background: #fff; transform: scale(1.1); }
.profile-product-card__fav--active { color: var(--c-danger, #e53e3e); }
.profile-product-card__fav[data-loading] { opacity: .5; pointer-events: none; }

/* ══════════════════════════════════════════════════════════
   VISTA DE PRODUCTO (product.php)
   ══════════════════════════════════════════════════════════ */
.profile-product-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: var(--space-5) var(--space-4) var(--space-8);
}

.profile-product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 640px) {
    .profile-product-detail {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.profile-product-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
}

.profile-product-main-img {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    padding: 0;
    cursor: default;
}

.profile-product-main-img--zoomable {
    cursor: zoom-in;
}

.profile-product-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.profile-product-main-img__zoom {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.45);
    border-radius: var(--radius-sm);
    color: #fff;
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}

.profile-product-main-img--zoomable:hover .profile-product-main-img__zoom,
.profile-product-main-img--zoomable:focus-visible .profile-product-main-img__zoom {
    opacity: 1;
}

.profile-product-main-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-surface-2);
}

.profile-product-main-img--placeholder span {
    font-size: 4rem;
    font-weight: 700;
    color: var(--c-border);
    line-height: 1;
}

.profile-product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-1);
}

.profile-product-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: var(--c-surface-2);
}

.profile-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-product-thumb--active {
    border-color: var(--c-primary);
}

.profile-product-info__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 var(--space-3);
    line-height: 1.2;
}

.profile-product-info__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
}

.profile-product-info__price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-text);
}

.profile-product-info__price-old {
    font-size: 1rem;
    color: var(--c-text-muted);
    text-decoration: line-through;
}

.profile-product-info__lead {
    font-size: 1rem;
    color: var(--c-text);
    line-height: 1.6;
    margin: 0 0 var(--space-3);
}

.profile-product-info__body {
    font-size: 0.9375rem;
    color: var(--c-text-muted);
    line-height: 1.7;
    margin: 0 0 var(--space-4);
}

/* ══════════════════════════════════════════════════════════
   SECCIONES INTERNAS DE PRODUCTO (atributos / tags)
   ══════════════════════════════════════════════════════════ */
.profile-product-section {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid var(--c-border);
}

.profile-product-section__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-text);
    margin: 0 0 var(--space-4);
}

/* ══════════════════════════════════════════════════════════
   ATRIBUTOS DE PRODUCTO
   ══════════════════════════════════════════════════════════ */
.profile-attr-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* ── Atributo raíz sin hijos (standalone) ── */
.profile-attr-standalone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: var(--c-surface-1);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
}

.profile-attr-standalone__name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text) !important;
}

.profile-attr-standalone__val {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text) !important;
    text-align: right;
}

.profile-attr-standalone__dash {
    color: var(--c-text-muted) !important;
    font-weight: 400;
}

.profile-attr-standalone__desc {
    font-size: 0.8125rem;
    color: var(--c-text-muted) !important;
    font-style: italic;
    margin: -4px 0 0;
    padding: var(--space-1) var(--space-4) var(--space-2);
    line-height: 1.5;
}

/* ── Grupo/card (atributo con hijos) ── */
.profile-attr-group {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--c-surface-1);
}

.profile-attr-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: var(--c-surface-2);
    border-bottom: 1px solid var(--c-border);
}

.profile-attr-group__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--c-text) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-attr-group__badge {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-primary) !important;
    background: color-mix(in srgb, var(--c-primary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--c-primary) 25%, transparent);
    border-radius: 99px;
    padding: 2px var(--space-2);
    flex-shrink: 0;
}

.profile-attr-group__desc {
    font-size: 0.8125rem;
    color: var(--c-text-muted) !important;
    font-style: italic;
    margin: 0;
    padding: var(--space-2) var(--space-4);
    border-bottom: 1px solid var(--c-border);
    line-height: 1.5;
    background: color-mix(in srgb, var(--c-surface-2) 40%, transparent);
}

.profile-attr-group__body { /* no styles needed, children handle their own bg */ }

/* ── Pills (hijos sin valor) ── */
.profile-attr-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
}

.profile-attr-pills--deep {
    padding-left: var(--space-6);
    background: color-mix(in srgb, var(--c-surface-2) 35%, transparent);
}

.profile-attr-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--c-text) !important;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: 99px;
    padding: 3px var(--space-3);
    cursor: default;
    user-select: none;
}

/* ── Spec table (hijos con valor) ── */
.profile-attr-spec { /* container */ }

.profile-attr-spec__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-2) var(--space-4);
    border-top: 1px solid var(--c-border);
}

.profile-attr-spec__row--deep {
    padding-left: var(--space-6);
    background: color-mix(in srgb, var(--c-surface-2) 35%, transparent);
}

.profile-attr-spec__name {
    font-size: 0.875rem;
    color: var(--c-text-muted) !important;
    flex-shrink: 0;
    max-width: 52%;
}

.profile-attr-spec__val {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-text) !important;
    text-align: right;
    word-break: break-word;
}

.profile-attr-spec__desc-row {
    padding: 0 var(--space-4) var(--space-2);
    border-top: none;
    background: color-mix(in srgb, var(--c-surface-2) 30%, transparent);
}

.profile-attr-spec__desc {
    font-size: 0.8125rem;
    color: var(--c-text-muted) !important;
    font-style: italic;
    line-height: 1.5;
}

/* ── Separador mixto (pills + spec) ── */
.profile-attr-divider {
    height: 1px;
    background: var(--c-border);
    margin: 0;
}

/* ── Sub-grupo dentro de un card ── */
.profile-attr-subgroup {
    border-top: 1px solid var(--c-border);
}

.profile-attr-subgroup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4) var(--space-2) var(--space-6);
    background: color-mix(in srgb, var(--c-surface-2) 55%, transparent);
    border-bottom: 1px solid var(--c-border);
}

.profile-attr-subgroup__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-text) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.profile-attr-subgroup__val {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-primary) !important;
}

.profile-attr-subgroup__desc {
    font-size: 0.8125rem;
    color: var(--c-text-muted) !important;
    font-style: italic;
    margin: 0;
    padding: var(--space-1) var(--space-6);
    border-bottom: 1px solid var(--c-border);
    line-height: 1.5;
}

/* ── Tabs de etiquetas ── */
.profile-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 2px solid var(--c-border);
    margin-bottom: var(--space-3);
    overflow-x: auto;
    scrollbar-width: none;
}

.profile-tabs::-webkit-scrollbar { display: none; }

.profile-tabs__tab {
    padding: var(--space-2) var(--space-3);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--c-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.profile-tabs__tab:hover { color: var(--c-text); }

.profile-tabs__tab[aria-selected="true"] {
    color: var(--c-primary);
    border-bottom-color: var(--c-primary);
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════ */
.profile-breadcrumb {
    max-width: 1080px;
    margin: 0 auto;
    padding: var(--space-3) var(--space-4) 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px var(--space-1);
    font-size: 0.8125rem;
    color: var(--c-text-muted);
}

.profile-breadcrumb a {
    color: var(--c-edit);
    text-decoration: none;
}

.profile-breadcrumb a:hover { text-decoration: underline; }

.profile-breadcrumb__sep { opacity: 0.45; }

.profile-main > .profile-breadcrumb {
    max-width: none;
    margin: 0;
    padding: 0 0 var(--space-3);
}

.profile-breadcrumb--product {
    gap: 6px;
    align-items: center;
    max-width: none;
    margin: 0;
    padding: 0 0 var(--space-4);
}

.profile-catalog-page-header > .profile-breadcrumb--product {
    max-width: none;
    margin: 0;
    padding: 0 0 var(--space-4);
}

/* ══════════════════════════════════════════════════════════
   ESTADOS VACÍOS / BACK LINK
   ══════════════════════════════════════════════════════════ */
.profile-empty {
    color: var(--c-text-muted);
    font-size: 0.9375rem;
    padding: var(--space-5) 0;
    text-align: center;
}

.profile-back-row {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--c-border);
}

/* ══════════════════════════════════════════════════════════
   MAPA — Pin personalizado
   ══════════════════════════════════════════════════════════ */
.bnav-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: absolute;
    filter: drop-shadow(0 2px 6px rgba(60,64,67,.34));
    cursor: default;
}

/* Imagen circular */
.bnav-pin__img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--c-primary);
    padding: 3px;
    background: #ffffff;
    box-sizing: border-box;
    display: block;
}

/* Fallback: círculo con inicial */
.bnav-pin--letter .bnav-pin__letter-char {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    font-size: 1.375rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--c-primary);
    box-shadow: inset 0 0 0 3px #fff;
}

/* Etiqueta con el nombre del negocio */
.bnav-pin__label {
    background: #ffffff;
    color: #202124;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(60,64,67,.3);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Triángulo apuntando hacia el punto del mapa */
.bnav-pin::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--c-primary);
    margin-top: -2px;
}

/* ── Controles del tipo de mapa ──────────────────────────── */
.bnav-maptype {
    display: flex;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(60,64,67,.28);
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.bnav-maptype__btn {
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: #3c4043;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.bnav-maptype__btn:hover { color: #202124; }
.bnav-maptype__btn--active { background: #1a73e8; color: #fff; }

/* ── Panel de pasos de ruta ──────────────────────────────── */
.bnav-steps-panel {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    margin-top: var(--space-2);
    font-size: 0.875rem;
}

.bnav-summary {
    font-weight: 600;
    margin: 0 0 var(--space-2);
    color: var(--c-text);
}

.bnav-summary__sep { color: var(--c-text-muted); margin: 0 4px; }

.bnav-steps {
    margin: 0;
    padding-left: var(--space-5);
    color: var(--c-text-muted);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.bnav-step { line-height: 1.5; }

/* ══════════════════════════════════════════════════════════
   GALERÍA — overlay al hover
   ══════════════════════════════════════════════════════════ */
.profile-gallery__item {
    position: relative;
}

.profile-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: background .2s, opacity .2s;
}

.profile-gallery__item:hover .profile-gallery__overlay {
    background: rgba(0,0,0,.38);
    opacity: 1;
}


/* ══════════════════════════════════════════════════════════
   STICKY CTA MÓVIL (fijo en la parte inferior)
   ══════════════════════════════════════════════════════════ */
.profile-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: calc(var(--z-sticky) + 10);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    padding: var(--space-2) var(--space-4);
    padding-bottom: max(var(--space-2), env(safe-area-inset-bottom));
    border-top: 1px solid var(--c-border);
    display: flex;
    gap: var(--space-2);
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}

.profile-mobile-cta .btn {
    flex: 1;
    justify-content: center;
    padding: 12px var(--space-3);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.profile-mobile-cta__main {
    background: var(--c-primary);
    color: #fff;
    border: none;
}

.profile-mobile-cta__main:hover { background: var(--c-primary-hover); }

/* En desktop se oculta el CTA móvil; el layout no necesita offset */
@media (min-width: 768px) {
    .profile-mobile-cta { display: none; }
}

/* En móvil, offset inferior para que el contenido no quede tapado */
@media (max-width: 767px) {
    .profile { padding-bottom: 70px; }
}

/* ══════════════════════════════════════════════════════════
   BLOQUES DE CATÁLOGO — branch.php (strips horizontales)
   ══════════════════════════════════════════════════════════ */
.profile-cat-block {
    border-bottom: 1px solid var(--c-border);
    padding-bottom: var(--space-6);
    margin-bottom: var(--space-6);
}

.profile-cat-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-cat-block__name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 700;
    color: var(--c-text);
    margin: 0 0 var(--space-2);
    line-height: 1.2;
}

.profile-cat-block__desc {
    font-size: 0.9375rem;
    color: var(--c-text-muted);
    line-height: 1.65;
    margin: 0 0 var(--space-4);
}

.profile-cat-block__footer {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--c-border);
}

.profile-cat-block__cta {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: none;
}

.profile-cat-block__cta:hover { text-decoration: underline; }

/* Franja de sección dentro del bloque */
.profile-cat-section-strip {
    margin-bottom: var(--space-5);
}

.profile-cat-section-strip:last-of-type { margin-bottom: 0; }

.profile-cat-section-strip__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.profile-cat-section-strip__name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--c-text);
    margin: 0;
}

.profile-cat-section-strip__link {
    font-size: 0.8125rem;
    color: var(--c-primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-cat-section-strip__link:hover { text-decoration: underline; }

/* Scroll horizontal de tarjetas */
.profile-cat-strip {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.profile-cat-strip::-webkit-scrollbar { display: none; }

/* Tarjeta de producto en el strip */
.profile-strip-card {
    flex-shrink: 0;
    width: 148px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    scroll-snap-align: start;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

@media (min-width: 480px) { .profile-strip-card { width: 156px; } }
@media (min-width: 768px) { .profile-strip-card { width: 176px; } }

a.profile-strip-card:hover {
    border-color: var(--c-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.profile-strip-card__img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--c-surface-2);
    flex-shrink: 0;
}

.profile-strip-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

a.profile-strip-card:hover .profile-strip-card__img { transform: scale(1.05); }

.profile-strip-card__placeholder {
    position: relative;
    aspect-ratio: 1;
    background: var(--c-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--c-border);
    flex-shrink: 0;
}

.profile-promo-badge {
    position: absolute;
    bottom: var(--space-1);
    left: var(--space-1);
    background: var(--c-danger, #e53e3e);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    padding: 3px 6px;
    border-radius: var(--radius-sm, 4px);
    letter-spacing: 0.02em;
    pointer-events: none;
    white-space: nowrap;
    max-width: calc(100% - var(--space-2));
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-promo-badge--placeholder {
    bottom: var(--space-2);
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    text-align: center;
}

.profile-strip-card__body {
    padding: var(--space-2);
    flex: 1;
}

.profile-strip-card__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-text);
    margin: 0 0 var(--space-1);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.profile-strip-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--c-text);
    margin: 0;
}

.profile-strip-card__price strong { font-weight: 700; }

.profile-strip-card__price-old {
    color: var(--c-text-muted);
    font-size: 0.75rem;
    text-decoration: line-through;
}

.profile-strip-card__price-save {
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    color: var(--c-danger, #e53e3e);
    background: color-mix(in srgb, var(--c-danger, #e53e3e) 12%, transparent);
    padding: 2px 5px;
    border-radius: var(--radius-sm, 4px);
    white-space: nowrap;
}

.profile-strip-card__benefit {
    margin: 2px 0 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--c-danger, #e53e3e);
}

/* Tarjeta "+N más" al final del strip */
.profile-strip-card--more {
    align-items: center;
    justify-content: center;
    background: var(--c-bg);
    border-style: dashed;
    min-width: 80px;
    gap: var(--space-1);
}

.profile-strip-card--more:hover {
    background: var(--c-surface);
    border-color: var(--c-primary);
    border-style: solid;
}

.profile-strip-card__more-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-primary);
    display: block;
    text-align: center;
    line-height: 1;
}

.profile-strip-card__more-label {
    font-size: 0.75rem;
    color: var(--c-text-muted);
    display: block;
    text-align: center;
}

/* ══════════════════════════════════════════════════════════
   CATÁLOGO — jerarquía padre → subsecciones (catalog.php)
   ══════════════════════════════════════════════════════════ */
.profile-cat-parent {
    margin-bottom: var(--space-7);
    scroll-margin-top: 52px;
}

.profile-cat-parent__header {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--c-border);
}

/* Fila título + conteo */
.profile-cat-parent__title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
}

.profile-cat-parent__title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 700;
    color: var(--c-text);
    margin: 0;
}

/* Badge de conteo de productos */
.profile-cat-parent__count {
    font-size: 0.8125rem;
    color: var(--c-text-muted);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-cat-parent__desc {
    font-size: 0.9375rem;
    color: var(--c-text-muted);
    margin: var(--space-2) 0 0;
    line-height: 1.6;
}

/* Subsección dentro de un padre */
.profile-cat-subsec {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--c-border);
}

.profile-cat-subsec__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.profile-cat-subsec__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--c-text-muted);
    margin: 0;
}

.profile-cat-subsec__link {
    font-size: 0.8125rem;
    color: var(--c-primary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.profile-cat-subsec__link:hover { text-decoration: underline; }

/* ── Locales (plaza comercial) ──────────────────────────────────────────── */
.profile-locals__notice {
    margin: 0 0 1rem;
    padding: 0.65rem 1rem;
    background: #f0f9f4;
    border-left: 3px solid #1a7a50;
    border-radius: 6px;
    color: #1a5c3a;
    font-size: 0.875rem;
    line-height: 1.5;
}
.profile-locals__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 768px) {
    .profile-locals__list { grid-template-columns: repeat(2, 1fr); }
}

/* card base */
.profile-local-card {
    position: relative;
    min-height: 78px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--c-surface-subtle, #f8fafc);
    border: 1px solid rgba(36, 42, 48, 0.08);
}

/* cover card: gradient + image in one background shorthand — same pattern as .usr-reaction-item--cover */
.profile-local-card--has-cover {
    background:
        linear-gradient(90deg, #fff 0%, #fff 6%, transparent 95%),
        var(--local-cover, var(--c-surface-subtle, #f8fafc)) center/cover no-repeat;
    border-color: rgba(36, 42, 48, 0.12);
}

.profile-local-card__content {
    position: relative;
    padding: 13px 42px 13px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* company row */
.profile-local-card__company {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}
.profile-local-card__logo {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.75);
    color: var(--c-text-muted, #94a3b8);
}
.profile-local-card__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-local-card__company-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--c-text, #111);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 0 18px rgba(255,255,255,0.95), 0 1px 3px rgba(0,0,0,0.12);
}

/* branch row */
.profile-local-card__branch {
    margin: 0;
    padding-left: 29px;
}
.profile-local-card__branch-name {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--c-text-muted, #64748b);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 4px #fff, 0 0 10px #fff, 0 0 16px rgba(255,255,255,0.9), 0 1px 3px rgba(0,0,0,0.1);
}
a.profile-local-card__branch-name:hover,
a.profile-local-card__company-name:hover { color: var(--c-primary); text-decoration: underline; }

/* delete button (absolute, top-right) — hidden until card hover */
.profile-local-card__del {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid #f0c2c8;
    border-radius: 8px;
    padding: 0;
    background: #fff7f8;
    color: #de3f4f;
    cursor: pointer;
    line-height: 0;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}
.profile-local-card:hover .profile-local-card__del { opacity: 1; }
.profile-local-card__del:hover {
    background: #de3f4f;
    border-color: #de3f4f;
    color: #fff;
}
.profile-local-card__del svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-locals__empty {
    font-size: 0.875rem;
    color: var(--c-text-muted, #94a3b8);
    margin: 0.5rem 0 0;
}
.profile-locals__feedback {
    font-size: 0.82rem;
    margin-top: 8px;
}

/* ── Section loader + sb-loader overlay — defined in components/loader.css ── */

/* ── Upselling: paquetes en página de producto (Fase 5.e) ── */
.prod-bundles__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.prod-bundles__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.prod-bundle-card {
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    padding: 1rem;
    background: #fff;
}

.prod-bundle-card__name {
    font-size: 0.9375rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.prod-bundle-card__desc {
    font-size: 0.8125rem;
    color: var(--c-text-muted, #6b7280);
    margin: 0 0 0.5rem;
}

.prod-bundle-card__items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    list-style: none;
    margin: 0 0 0.625rem;
    padding: 0;
}

.prod-bundle-card__items li {
    font-size: 0.78rem;
    background: var(--c-bg-soft, #f9fafb);
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: 999px;
    padding: 2px 10px;
}

.prod-bundle-card__pricing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.prod-bundle-card__price {
    font-size: 1.0625rem;
    color: #065f46;
}

.prod-bundle-card__compare {
    font-size: 0.8125rem;
    color: var(--c-text-muted, #6b7280);
    text-decoration: line-through;
}

.prod-bundle-card__savings {
    font-size: 0.72rem;
    font-weight: 700;
    color: #065f46;
    background: #d1fae5;
    border-radius: 999px;
    padding: 2px 8px;
}

.prod-bundle-card__ask {
    font-size: 0.8125rem;
    color: var(--c-text-muted, #6b7280);
}

@media (min-width: 768px) {
    .prod-bundles__grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* ── Curación comunitaria: reportar dato obsoleto (Fase 5.f) ── */
.profile-report {
    max-width: 720px;
    margin: 1.5rem auto 0;
    padding: 0 1rem 2rem;
}

.profile-report__summary,
.profile-report__login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--c-text-muted, #6b7280);
    cursor: pointer;
    text-decoration: none;
}

.profile-report__summary:hover,
.profile-report__login:hover { color: var(--c-primary, #2563eb); }

.profile-report__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: var(--radius-lg, 12px);
    background: #fff;
    max-width: 440px;
}

.profile-report__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--c-text-muted, #6b7280);
}

.profile-report__field select,
.profile-report__field textarea {
    font-size: 0.9375rem;
    font-weight: 400;
    padding: 0.5rem;
    border: 1px solid var(--c-border, #d1d5db);
    border-radius: var(--radius-md, 8px);
}

.profile-report__feedback {
    font-size: 0.8125rem;
    color: #b91c1c;
    margin: 0;
}

.profile-report__done {
    font-size: 0.875rem;
    color: #065f46;
    margin: 0.75rem 0 0;
}

/* ── Landing pública de póliza prepago (Fase 6.B) ── */
.pol-pub {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.25rem 1rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pol-pub__breadcrumb a {
    font-size: 0.8125rem;
    color: var(--c-text-muted, #6b7280);
    text-decoration: none;
}

.pol-pub__breadcrumb a:hover { color: var(--c-primary, #2563eb); }

.pol-pub__flash {
    font-size: 0.875rem;
    border-radius: var(--radius-md, 8px);
    padding: 0.75rem 1rem;
    margin: 0;
}

.pol-pub__flash--warn { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }

.pol-pub__kicker {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-primary, #2563eb);
    margin: 0 0 0.25rem;
}

.pol-pub__name { font-size: 1.5rem; font-weight: 800; margin: 0; }

.pol-pub__desc {
    font-size: 0.9375rem;
    color: var(--c-text-muted, #6b7280);
    margin: 0.5rem 0 0;
}

.pol-pub__pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
}

.pol-pub__price { font-size: 1.75rem; font-weight: 800; color: #065f46; }
.pol-pub__period { font-size: 0.875rem; color: var(--c-text-muted, #6b7280); }

/* ── Landing pública de póliza (layout de 2 columnas, hiperconectada) ── */
.pol-pub--landing { max-width: 1100px; }

.pol-pub__shell { display: flex; flex-direction: column; gap: 1.25rem; }

.pol-pub__main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

.pol-pub__hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(135deg, #f5f3ff, #faf5ff);
    border: 1px solid #e9d5ff;
    border-radius: 16px;
    padding: 1.25rem;
}
.pol-pub__hero-copy { display: flex; flex-direction: column; }

.pol-pub__quickfacts { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.85rem; }
.pol-pub__quickfacts span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4b5563;
}
.pol-pub__quickfacts svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #6d28d9;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.pol-pub__deal-card {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    text-align: center;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.08);
}
.pol-pub__deal-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #6d28d9; }
.pol-pub__deal-value { display: flex; align-items: baseline; justify-content: center; gap: 0.3rem; margin: 0.2rem 0; }
.pol-pub__deal-value strong { font-size: 1.9rem; font-weight: 800; color: #6d28d9; line-height: 1; }
.pol-pub__deal-value span { font-size: 0.85rem; font-weight: 600; color: var(--c-text-muted, #6b7280); }
.pol-pub__deal-sub { font-size: 0.8rem; color: var(--c-text-muted, #6b7280); margin: 0 0 0.4rem; }

.pol-pub__section { display: flex; flex-direction: column; gap: 0.75rem; }
.pol-pub__section-head { display: flex; flex-direction: column; gap: 2px; }
.pol-pub__section-head span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #6d28d9; }
.pol-pub__section-head h2 { font-size: 1.15rem; font-weight: 800; margin: 0; color: var(--c-text, #111827); }

/* Tarjetas de servicios incluidos (hiperconectadas al producto) */
.pol-pub__items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}
.pol-pub__item-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
}
a.pol-pub__item-card { transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease; }
a.pol-pub__item-card:hover { border-color: #6d28d9; box-shadow: 0 6px 18px rgba(17, 24, 39, 0.1); transform: translateY(-2px); }
.pol-pub__item-thumb { position: relative; aspect-ratio: 1 / 1; background: #f5f3ff; display: flex; align-items: center; justify-content: center; }
.pol-pub__item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pol-pub__item-thumb > span:not(.pol-pub__item-badge) { font-size: 2rem; font-weight: 800; color: #c4b5fd; }
.pol-pub__item-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    max-width: calc(100% - 12px);
    background: #6d28d9;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}
.pol-pub__item-body { padding: 0.6rem 0.7rem 0.75rem; display: flex; flex-direction: column; gap: 3px; }
.pol-pub__item-name { margin: 0; font-size: 0.9rem; font-weight: 700; color: #111827; line-height: 1.25; }
.pol-pub__item-desc { margin: 0; font-size: 0.78rem; color: #6b7280; line-height: 1.35; }
.pol-pub__item-uses { margin: 0; font-size: 0.78rem; color: var(--c-text-muted, #6b7280); }
.pol-pub__item-price { margin: 0.15rem 0 0; font-size: 0.88rem; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.pol-pub__item-price s { color: #9ca3af; font-size: 0.8rem; }
.pol-pub__item-price strong { color: #065f46; font-weight: 800; }
.pol-pub__item-price span { color: var(--c-text-muted, #6b7280); font-size: 0.8rem; }
.pol-pub__item-link { margin-top: 4px; font-size: 0.78rem; font-weight: 700; color: #6d28d9; }

/* Cómo funciona */
.pol-pub__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; counter-reset: step; }
.pol-pub__step { display: flex; gap: 0.75rem; align-items: flex-start; }
.pol-pub__step-num {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ede9fe;
    color: #6d28d9;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pol-pub__step strong { display: block; font-size: 0.95rem; color: #111827; }
.pol-pub__step p { margin: 0.1rem 0 0; font-size: 0.85rem; color: var(--c-text-muted, #6b7280); line-height: 1.4; }

.pol-pub__terms-text { font-size: 0.84rem; color: var(--c-text-muted, #6b7280); line-height: 1.5; margin: 0; }

/* Galería en grid (collage, sin scroll horizontal) en la landing */
.pol-pub__items.pol-pub__media,
.pol-pub__media { margin: 0; }
.pol-pub__gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 6px;
}
.pol-pub__gallery-grid .pol-pub__gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    flex: none;
}
.pol-pub__gallery-grid .pol-pub__gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Tarjeta de compra (aside) */
.pol-pub__aside { min-width: 0; }
.pol-pub__buy-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #e9d5ff;
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: 0 8px 26px rgba(109, 40, 217, 0.1);
}
.pol-pub__buy-kicker { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #6d28d9; }
.pol-pub__buy-card h2 { font-size: 1.1rem; font-weight: 800; margin: 0; color: var(--c-text, #111827); }
.pol-pub__buy-price { display: flex; align-items: baseline; gap: 0.35rem; }
.pol-pub__buy-price strong { font-size: 1.9rem; font-weight: 800; color: #6d28d9; line-height: 1; }
.pol-pub__buy-price span { font-size: 0.85rem; font-weight: 600; color: var(--c-text-muted, #6b7280); }
.pol-pub__buy-period { font-size: 0.82rem; color: var(--c-text-muted, #6b7280); margin: 0; }
.pol-pub__buy-meta { margin: 0.15rem 0; }
.pol-pub__buy-fineprint { font-size: 0.75rem; color: #9ca3af; margin: 0.25rem 0 0; }
.pol-pub__secondary-link { font-size: 0.85rem; font-weight: 600; color: #6d28d9; text-decoration: none; margin-top: 0.25rem; }
.pol-pub__secondary-link:hover { text-decoration: underline; }

@media (min-width: 768px) {
    .pol-pub__hero { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem; }
    .pol-pub__hero-copy { flex: 1; }
    .pol-pub__deal-card { min-width: 180px; }
    .pol-pub__gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
}

@media (min-width: 1024px) {
    .pol-pub__shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 1.75rem; }
    .pol-pub__aside { position: sticky; top: 1.5rem; }
}

/* Página pública de promoción (reusa .pol-pub*) */
.pol-pub__badge {
    display: inline-block;
    align-self: flex-start;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 6px;
}
.promo-pub__orig { color: #9ca3af; font-size: 1.05rem; margin-right: 8px; }

/* Galería pública de promoción: collage en grid (sin scroll horizontal) */
.promo-pub__gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 6px;
}
.promo-pub__gallery-grid .pol-pub__gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    flex: none;
}
.promo-pub__gallery-grid .pol-pub__gallery-item img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
    .promo-pub__gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
}

.promo-pub__products-sec { margin: 1.25rem 0; }
.promo-pub__products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}
.promo-pub__product {
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.promo-pub__product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
}
.promo-pub__product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-pub__product-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #dc2626;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
}
a.promo-pub__product { text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
a.promo-pub__product:hover { box-shadow: 0 6px 18px rgba(0,0,0,.10); transform: translateY(-2px); }
.promo-pub__product-body { padding: 0.55rem 0.65rem 0.7rem; }
.promo-pub__product-name { margin: 0 0 3px; font-size: 0.88rem; font-weight: 600; color: #111827; line-height: 1.25; }
.promo-pub__product-desc { margin: 0 0 5px; font-size: 0.78rem; color: #6b7280; line-height: 1.35; }
.promo-pub__product-link { display: inline-block; margin-top: 4px; font-size: 0.78rem; font-weight: 600; color: var(--c-primary, #2563eb); }
.promo-pub__product-price { margin: 0; font-size: 0.9rem; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.promo-pub__product-price s { color: #9ca3af; font-size: 0.82rem; }
.promo-pub__product-price strong { color: #065f46; font-weight: 800; }

.pol-pub__supply {
    font-size: 0.75rem;
    font-weight: 700;
    background: #d1fae5;
    color: #065f46;
    border-radius: 999px;
    padding: 2px 10px;
}

.pol-pub__supply--out { background: #fee2e2; color: #b91c1c; }

.pol-pub__items-title { font-size: 1.0625rem; font-weight: 700; margin: 0 0 0.625rem; }

.pol-pub__items-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pol-pub__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: var(--radius-md, 8px);
    padding: 0.75rem 1rem;
    background: #fff;
}

.pol-pub__item-name { font-size: 0.9375rem; font-weight: 600; }
.pol-pub__item-benefit { font-size: 0.8125rem; color: #065f46; font-weight: 600; }
.pol-pub__item-uses { font-size: 0.78rem; color: var(--c-text-muted, #6b7280); }

.pol-pub__buy-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pol-pub__gateway {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--c-text-muted, #6b7280);
}

.pol-pub__gateway select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--c-border, #d1d5db);
    border-radius: var(--radius-md, 8px);
}

.pol-pub__cta {
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    align-items: center;
    font-size: 1rem;
}

.pol-pub__note,
.pol-pub__soldout {
    font-size: 0.8125rem;
    color: var(--c-text-muted, #6b7280);
    margin: 0;
}

.pol-pub__terms p {
    font-size: 0.8125rem;
    color: var(--c-text-muted, #6b7280);
    margin: 0;
}

@media (min-width: 768px) {
    .pol-pub { padding-top: 2rem; }
    .pol-pub__name { font-size: 1.875rem; }
    .pol-pub__buy-form { flex-direction: row; align-items: center; }
    .pol-pub__cta { min-width: 280px; }
}

/* ── Card colapsable de reservación (tras Ubicación) ── */
.profile-reserve-card { max-width: 720px; margin: 1.5rem auto 0; border: 1px solid var(--c-border, #e5e7eb); border-radius: var(--radius-lg, 12px); background: #fff; overflow: hidden; }
.profile-reserve-card[open] { box-shadow: 0 4px 18px rgba(7, 20, 39, 0.06); }
.profile-reserve-card__head { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.1rem; cursor: pointer; list-style: none; user-select: none; }
.profile-reserve-card__head::-webkit-details-marker { display: none; }
.profile-reserve-card__head:hover { background: var(--c-bg-soft, #f9fafb); }
.profile-reserve-card__icon { font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
.profile-reserve-card__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.profile-reserve-card__title { font-size: 1rem; font-weight: 700; color: var(--c-text, #111827); }
.profile-reserve-card__hint { font-size: 0.8125rem; color: var(--c-text-muted, #6b7280); }
.profile-reserve-card__caret { font-size: 1rem; color: var(--c-text-muted, #9ca3af); transition: transform 0.18s ease; flex: 0 0 auto; }
.profile-reserve-card[open] .profile-reserve-card__caret { transform: rotate(180deg); }
.profile-reserve-card__body { border-top: 1px solid var(--c-border, #eef0f2); }
/* Dentro de la card el título interno es redundante con el encabezado del summary. */
.profile-reserve-card__body .profile-reserve { margin-top: 0; }
.profile-reserve-card__body .profile-reserve__title { display: none; }

/* ── Solicitar reservación en perfil (Fase 7.A) ── */
.profile-reserve { max-width: 720px; margin: 1.5rem auto 0; padding: 1.25rem 1rem; }
.profile-reserve__title { font-size: 1.0625rem; font-weight: 700; margin: 0 0 0.5rem; }
.profile-reserve__instructions { font-size: 0.8125rem; color: var(--c-text-muted, #6b7280); margin: 0 0 0.75rem; }
.profile-reserve__form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 480px; }
.profile-reserve__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.profile-reserve__field { display: flex; flex-direction: column; gap: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--c-text-muted, #6b7280); flex: 1; min-width: 100px; }
.profile-reserve__field input, .profile-reserve__field textarea { font-size: 0.9375rem; font-weight: 400; padding: 0.5rem; border: 1px solid var(--c-border, #d1d5db); border-radius: var(--radius-md, 8px); }
.profile-reserve__field--static strong { font-size: 0.9375rem; font-weight: 600; color: var(--c-text, #111827); padding: 0.5rem; background: var(--c-bg-soft, #f9fafb); border: 1px solid var(--c-border, #e5e7eb); border-radius: var(--radius-md, 8px); }
.profile-reserve__picker { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.9375rem; font-weight: 400; padding: 0.5rem; border: 1px solid var(--c-border, #d1d5db); border-radius: var(--radius-md, 8px); background: #fff; color: var(--c-text, #111827); cursor: pointer; text-align: left; min-height: 0; transition: border-color .15s ease; }
.profile-reserve__picker:hover { border-color: var(--c-primary, #2563eb); }
.profile-reserve__picker-caret { color: var(--c-text-muted, #6b7280); flex: 0 0 auto; }
.profile-reserve__picker--empty [data-appt-service-label] { color: var(--c-text-muted, #6b7280); }
.profile-reserve__feedback { font-size: 0.8125rem; color: #b91c1c; margin: 0; }
.profile-reserve__done { font-size: 0.9375rem; color: #065f46; margin: 0; }

/* ── Widget de citas (Fase 7.B) ── */
.profile-appt { display: flex; flex-direction: column; gap: 0.75rem; max-width: 480px; }
.profile-appt__hint { font-size: 0.8125rem; color: var(--c-text-muted, #6b7280); margin: 0; }
.profile-appt__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 0.5rem; }
.profile-appt__slot { font-size: 0.875rem; font-weight: 600; padding: 0.5rem; border: 1px solid var(--c-border, #d1d5db); border-radius: var(--radius-md, 8px); background: #fff; color: var(--c-text, #111827); cursor: pointer; min-height: 40px; }
.profile-appt__slot:hover { border-color: var(--c-primary, #2563eb); color: var(--c-primary, #2563eb); }
.profile-appt__slot.is-on { background: var(--c-primary, #2563eb); color: #fff; border-color: var(--c-primary, #2563eb); }
.profile-appt__notes { font-size: 0.9375rem; padding: 0.5rem; border: 1px solid var(--c-border, #d1d5db); border-radius: var(--radius-md, 8px); }

/* ── Aplicar póliza en cita (integración 6↔7) ── */
.profile-appt__policy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.625rem 0.75rem; background: #ecfdf5; border: 1px solid #6ee7b7; border-radius: var(--radius-md, 8px); }
.profile-appt__policy-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: #065f46; }
.profile-appt__policy select { font-size: 0.875rem; padding: 4px 8px; border: 1px solid var(--c-border, #d1d5db); border-radius: var(--radius-sm, 6px); }

/* ── Lista de espera (Fase 7.G) ── */
.profile-appt__waitlist { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.usr-rsv-card--wl-offered { border-color: #6ee7b7; background: #ecfdf5; }

/* ── Pre-orden sobre reserva (Fase 7.H) ── */
.profile-preorder { border: 1px solid var(--c-border, #e5e7eb); border-radius: var(--radius-md, 8px); padding: 0.5rem 0.75rem; }
.profile-preorder__summary { font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.profile-preorder__results { list-style: none; margin: 0.5rem 0 0; padding: 0; border: 1px solid var(--c-border, #e5e7eb); border-radius: var(--radius-md, 8px); max-height: 180px; overflow-y: auto; }
.profile-preorder__results button { display: block; width: 100%; text-align: left; font-size: 0.875rem; padding: 0.5rem 0.75rem; background: none; border: none; border-bottom: 1px solid var(--c-border, #f3f4f6); cursor: pointer; }
.profile-preorder__results button:hover { background: var(--c-bg-soft, #f9fafb); }
.profile-preorder__cart { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.profile-preorder__item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.profile-preorder__item span:first-child { flex: 1; }
.profile-preorder__rm { background: none; border: none; color: #b91c1c; font-size: 1.05rem; cursor: pointer; padding: 0 4px; }
.profile-preorder__total { font-size: 0.8125rem; font-weight: 600; color: #065f46; margin: 0.5rem 0 0; }
.rsv-item__preorder { font-size: 0.8125rem; color: #065f46; margin: 0; }

/* ── Sección de Pólizas en el perfil de sucursal ────────────── */
.profile-policies__lead {
    font-size: 0.9rem;
    color: var(--c-text-muted, #6b7280);
    margin: 0 0 1rem;
}
.profile-policies__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}
.profile-policy-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.profile-policy-card:hover {
    border-color: #6d28d9;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.1);
    transform: translateY(-2px);
}
.profile-policy-card--out { opacity: 0.7; }
.profile-policy-card__img-wrap { position: relative; aspect-ratio: 16 / 9; background: var(--c-bg-soft, #f3f4f6); }
.profile-policy-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-policy-card__placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ede9fe, #f5f3ff);
    color: #6d28d9;
}
.profile-policy-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #b91c1c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
}
.profile-policy-card__body { padding: 0.8rem 0.9rem 0.95rem; display: flex; flex-direction: column; gap: 0.2rem; }
.profile-policy-card__name { font-size: 0.98rem; font-weight: 700; color: var(--c-text, #111827); margin: 0; }
.profile-policy-card__meta { font-size: 0.78rem; color: var(--c-text-muted, #6b7280); margin: 0; }
.profile-policy-card__price { font-size: 1.05rem; font-weight: 800; color: #6d28d9; margin: 0.25rem 0 0; }
.profile-policy-card__price span { font-size: 0.72rem; font-weight: 600; color: var(--c-text-muted, #6b7280); }
.profile-policy-card__cta { font-size: 0.82rem; font-weight: 700; color: #6d28d9; margin-top: 0.4rem; }

@media (min-width: 600px) {
    .profile-policies__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .profile-policies__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Sistema de paneles/tabs del centro del perfil ──────────────
   "Información" (base) y un panel por sección reemplazan el centro;
   la barra lateral derecha nunca se pierde. */
.profile-main[data-panels] [hidden] { display: none; }
/* Un panel activo se muestra aunque su contenido sea --mobile-only */
.profile-panel[data-panel-active] .profile-section--mobile-only { display: block; }

.profile-panelbar {
    margin: 0 0 var(--space-4);
}
.profile-panelbar__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--c-bg-soft, #f3f4f6);
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-text, #111827);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.profile-panelbar__back:hover {
    background: #fff;
    border-color: var(--c-primary, #6d28d9);
    color: var(--c-primary, #6d28d9);
}

/* En desktop la barra lateral ya muestra el contacto y los tabs siempre están
   visibles: ocultamos el tab "Contacto" y el botón "Volver a Información". */
@media (min-width: 768px) {
    .profile-nav__link[href="#contacto"] { display: none; }
    .profile-panelbar { display: none; }
}

/* ── Galería en la página pública de la póliza (carrusel CSS) ── */
.pol-pub__gallery { margin: 0 0 1.25rem; }
.pol-pub__gallery-track {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.4rem;
}
.pol-pub__gallery-item {
    position: relative;
    flex: 0 0 auto;
    width: min(82%, 420px);
    margin: 0;
    padding: 0;
    min-height: 0;
    scroll-snap-align: start;
    border-radius: 14px;
    overflow: hidden;
    background: var(--c-bg-soft, #f3f4f6);
    border: 1px solid var(--c-border, #e5e7eb);
    cursor: zoom-in;
    display: block;
}
.pol-pub__gallery-item:hover,
.pol-pub__gallery-item:focus-visible {
    background: var(--c-bg-soft, #f3f4f6);
    color: inherit;
    border-color: #6d28d9;
}
.pol-pub__gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.pol-pub__gallery-zoom {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.55);
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.pol-pub__gallery-item:hover .pol-pub__gallery-zoom,
.pol-pub__gallery-item:focus-visible .pol-pub__gallery-zoom { opacity: 1; }
.pol-pub__gallery-track::-webkit-scrollbar { height: 6px; }
.pol-pub__gallery-track::-webkit-scrollbar-thumb { background: var(--c-border, #d1d5db); border-radius: 999px; }

@media (min-width: 768px) {
    .pol-pub__gallery-item { width: min(48%, 380px); }
    .pol-pub__gallery-item:only-child { width: 100%; }
    .pol-pub__gallery-item:only-child img { aspect-ratio: 16 / 9; }
}

/* ── Widget público de renta de equipo (modo rental) ─────────── */
.profile-rental__meta {
    font-size: 0.8125rem;
    color: var(--c-text-muted, #6b7280);
    margin: 0.25rem 0 0.75rem;
}
.profile-rental__quote { margin: 0.5rem 0; }
.profile-rental__avail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--c-border, #e5e7eb);
    border-radius: 12px;
    background: var(--c-bg-soft, #f9fafb);
    font-size: 0.9rem;
}
.profile-rental__avail--out {
    border-color: #fecaca;
    background: #fef2f2;
}
.profile-rental__total {
    margin-left: auto;
    font-size: 1.1rem;
    font-weight: 800;
    color: #6d28d9;
}
.profile-reserve__feedback--ok  { color: #065f46; }
.profile-reserve__feedback--err { color: #b91c1c; }

/* ── Selector de dirección de entrega (servicio a domicilio) ── */
.profile-delivery { display: flex; flex-direction: column; gap: 0.3rem; }
.profile-delivery select {
    font-size: 0.9rem; padding: 0.5rem 0.6rem;
    border: 1px solid var(--c-border, #d1d5db); border-radius: 9px; background: #fff;
}
.profile-delivery__add { font-size: 0.78rem; font-weight: 600; color: #6d28d9; text-decoration: none; }
.profile-delivery__add:hover { text-decoration: underline; }

/* ── Nuestro equipo / especialistas (perfil público) ────────── */
.profile-team__grid { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
.profile-team-card { display: flex; gap: 0.85rem; padding: 0.9rem; border: 1px solid var(--c-border, #e5e7eb); border-radius: 14px; background: #fff; }
.profile-team-card__photo { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--c-bg-soft, #f3f4f6); }
.profile-team-card__photo--ph { display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; color: #6d28d9; background: linear-gradient(135deg, #ede9fe, #f5f3ff); }
.profile-team-card__body { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.profile-team-card__name { font-size: 1rem; font-weight: 700; margin: 0; color: var(--c-text, #111827); }
.profile-team-card__title { font-size: 0.85rem; font-weight: 600; color: #6d28d9; margin: 0; }
.profile-team-card__specs { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.25rem 0; }
.profile-team-card__spec { font-size: 0.72rem; font-weight: 600; background: #ede9fe; color: #5b21b6; padding: 2px 8px; border-radius: 999px; }
.profile-team-card__bio { font-size: 0.82rem; color: var(--c-text-muted, #6b7280); margin: 0.15rem 0 0; }
.profile-team-card__years { font-size: 0.75rem; color: var(--c-text-muted, #6b7280); margin: 0.2rem 0 0; }
@media (min-width: 700px) { .profile-team__grid { grid-template-columns: 1fr 1fr; } }

/* ── Página pública del especialista (/especialista/{slug}) ── */
.esp-page { max-width: 760px; margin: 0 auto; padding: 1rem; display: flex; flex-direction: column; gap: 1.25rem; }
.esp-hero { display: flex; gap: 1rem; align-items: flex-start; }
.esp-hero__photo { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.esp-hero__photo--ph { display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 700; color: #6d28d9; background: linear-gradient(135deg,#ede9fe,#f5f3ff); }
.esp-hero__name { font-size: 1.4rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.esp-verified { font-size: 0.72rem; font-weight: 700; color: #166534; background: #dcfce7; padding: 2px 8px; border-radius: 999px; }
.esp-hero__profession { font-size: 1rem; font-weight: 600; color: #6d28d9; margin: 0.15rem 0 0; }
.esp-hero__headline { font-size: 0.9rem; color: var(--c-text-muted,#6b7280); margin: 0.15rem 0 0; }
.esp-hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.5rem; font-size: 0.85rem; }
.esp-rating__stars { color: #f59e0b; letter-spacing: 1px; }
.esp-rating--none { color: var(--c-text-muted,#9ca3af); }
.esp-accepting { color: #166534; font-weight: 600; }
.esp-stats { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.esp-stat { flex: 1 1 30%; min-width: 90px; text-align: center; padding: 0.75rem; border: 1px solid var(--c-border,#e5e7eb); border-radius: 12px; }
.esp-stat strong { display: block; font-size: 1.4rem; font-weight: 800; color: #6d28d9; }
.esp-stat span { font-size: 0.76rem; color: var(--c-text-muted,#6b7280); }
.esp-section { border-top: 1px solid var(--c-border,#e5e7eb); padding-top: 1rem; }
.esp-section__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.6rem; }
.esp-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.esp-chip { font-size: 0.82rem; font-weight: 600; background: #ede9fe; color: #5b21b6; padding: 4px 11px; border-radius: 999px; }
.esp-bio { font-size: 0.92rem; line-height: 1.55; color: var(--c-text,#111827); margin: 0; }
.esp-meta-line { font-size: 0.85rem; color: var(--c-text-muted,#6b7280); margin: 0.5rem 0 0; }
.esp-creds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.esp-cred { display: flex; flex-direction: column; gap: 0.1rem; padding-left: 0.85rem; border-left: 3px solid #ede9fe; }
.esp-cred__kind { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: #7c3aed; }
.esp-cred__org, .esp-cred__years { font-size: 0.82rem; color: var(--c-text-muted,#6b7280); }
.esp-branches { display: flex; flex-direction: column; gap: 0.5rem; }
.esp-branch { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; border: 1px solid var(--c-border,#e5e7eb); border-radius: 12px; text-decoration: none; color: inherit; }
.esp-branch:hover { border-color: #6d28d9; }
.esp-branch__name { font-weight: 700; }
.esp-branch__cta { font-size: 0.85rem; font-weight: 700; color: #6d28d9; }
.esp-reviews { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.esp-review { padding: 0.8rem; border: 1px solid var(--c-border,#e5e7eb); border-radius: 12px; }
.esp-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.esp-review__stars { color: #f59e0b; }
.esp-review__author { font-weight: 600; }
.esp-review__badge { font-size: 0.7rem; font-weight: 700; color: #166534; background: #dcfce7; padding: 2px 7px; border-radius: 999px; }
.esp-review__body { font-size: 0.88rem; color: var(--c-text,#111827); margin: 0.4rem 0; }
.esp-review__branch { font-size: 0.76rem; color: var(--c-text-muted,#6b7280); }

/* Meta del banner en sub-páginas (rating, rango de precio) */
.profile-hero__bannermeta { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
.profile-hero__bannermeta-item { font-size: 0.85rem; color: rgba(255,255,255,.92); font-weight: 600; }
.profile-hero__bannermeta-item small { font-weight: 400; opacity: .8; }

/* ── Página pública de catálogo profesional ───────────────── */
.profile-menu-page {
    --menu-ink: #18202b;
    --menu-muted: #647184;
    --menu-line: #d8e1eb;
    --menu-accent: #0f766e;
    --menu-warm: #b45309;
    background: #f4f7fb;
}

.profile-menu-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #111827;
}

.profile-menu-hero__cover,
.profile-menu-hero__shade {
    position: absolute;
    inset: 0;
}

.profile-menu-hero__cover {
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.profile-menu-hero__shade {
    background:
        linear-gradient(90deg, rgba(9, 15, 25, .88), rgba(9, 15, 25, .58) 48%, rgba(9, 15, 25, .32)),
        linear-gradient(0deg, rgba(9, 15, 25, .9), rgba(9, 15, 25, .08) 70%);
}

.profile-menu-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
    color: #fff;
}

.profile-menu-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: .82rem;
    color: rgba(255,255,255,.68);
}

.profile-menu-crumbs a,
.profile-menu-crumbs b {
    color: inherit;
    text-decoration: none;
    font-weight: 650;
}

.profile-menu-crumbs a:hover { color: #fff; }

.profile-menu-identity {
    display: inline-flex;
    align-items: center;
    gap: .85rem;
    color: inherit;
    text-decoration: none;
    margin-bottom: 1.15rem;
}

.profile-menu-identity__avatar {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    border: 2px solid rgba(255,255,255,.9);
    background: #fff;
    color: var(--menu-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 1.65rem;
    font-weight: 800;
    box-shadow: 0 16px 40px rgba(0,0,0,.26);
}

.profile-menu-identity__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-menu-identity__text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.profile-menu-identity__text span {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.72);
    font-weight: 700;
}

.profile-menu-identity__text strong {
    font-size: 1.1rem;
    color: #fff;
}

.profile-menu-identity__text em {
    font-style: normal;
    color: rgba(255,255,255,.74);
    font-size: .9rem;
}

.profile-menu-hero__copy {
    max-width: 760px;
}

.profile-menu-hero__kicker {
    margin: 0 0 .55rem;
    color: rgba(255,255,255,.72);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.profile-menu-hero__copy h1 {
    margin: 0;
    font-size: clamp(2.15rem, 6vw, 4.6rem);
    line-height: .98;
    letter-spacing: 0;
    color: #fff;
}

.profile-menu-hero__copy p {
    max-width: 680px;
    margin: 1rem 0 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    color: rgba(255,255,255,.84);
}

.profile-menu-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.5rem;
}

.profile-menu-stats span {
    display: inline-flex;
    align-items: baseline;
    gap: .42rem;
    padding: .55rem .8rem;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 8px;
    background: rgba(255,255,255,.11);
    color: rgba(255,255,255,.84);
    backdrop-filter: blur(8px);
}

.profile-menu-stats strong {
    color: #fff;
    font-size: 1.2rem;
}

.profile-menu-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 1rem 1rem 3rem;
}

.profile-menu-sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    align-self: start;
    background: rgba(244,247,251,.96);
    border-bottom: 1px solid var(--menu-line);
    padding: .75rem 0;
}

.profile-menu-tools {
    display: grid;
    gap: .65rem;
}

.profile-menu-search {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--menu-muted);
    font-weight: 800;
}

.profile-menu-search input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--menu-line);
    border-radius: 8px;
    background: #fff;
    color: var(--menu-ink);
    font-size: .95rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    padding: 0 .8rem;
}

.profile-menu-filter {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    border: 1px solid var(--menu-line);
    border-radius: 8px;
    background: #fff;
    color: var(--menu-ink);
    font-weight: 750;
    cursor: pointer;
    padding: 0 .85rem;
}

.profile-menu-filter[aria-pressed="true"] {
    border-color: var(--menu-accent);
    background: #ecfdf5;
    color: #065f46;
}

.profile-menu-filter b {
    min-width: 1.5rem;
    min-height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef2f7;
    font-size: .78rem;
}

.profile-menu-nav {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    margin-top: .85rem;
    padding-bottom: .25rem;
    scrollbar-width: none;
}

.profile-menu-nav::-webkit-scrollbar { display: none; }

.profile-menu-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 38px;
    padding: 0 .8rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--menu-line);
    color: var(--menu-ink);
    text-decoration: none;
    font-size: .86rem;
    font-weight: 750;
}

.profile-menu-nav a:hover {
    border-color: var(--menu-accent);
    color: var(--menu-accent);
}

.profile-menu-nav b {
    color: var(--menu-muted);
    font-size: .78rem;
}

.profile-menu-content {
    min-width: 0;
}

.profile-menu-intro {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--menu-line);
    border-radius: 8px;
    background: #fff;
}

.profile-menu-intro h2 {
    margin: 0 0 .45rem;
    color: var(--menu-ink);
    font-size: 1rem;
}

.profile-menu-intro p {
    margin: 0;
    color: var(--menu-muted);
    line-height: 1.6;
}

.profile-menu-section {
    scroll-margin-top: 112px;
    margin-bottom: 1rem;
    border: 1px solid var(--menu-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.profile-menu-section[hidden] { display: none; }

.profile-menu-section--child {
    margin: 1rem;
    background: #fbfcfe;
}

.profile-menu-section__header {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: 1rem;
    border-bottom: 1px solid var(--menu-line);
}

.profile-menu-section__eyebrow {
    margin: 0 0 .25rem;
    color: var(--menu-accent);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 850;
}

.profile-menu-section__header h3 {
    margin: 0;
    color: var(--menu-ink);
    font-size: clamp(1.28rem, 2.6vw, 1.85rem);
    line-height: 1.14;
    letter-spacing: 0;
}

.profile-menu-section__header p {
    max-width: 760px;
    margin: .45rem 0 0;
    color: var(--menu-muted);
    line-height: 1.55;
}

.profile-menu-section__meta {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}

.profile-menu-section__meta span,
.profile-menu-section__meta a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 760;
    padding: 0 .72rem;
}

.profile-menu-section__meta span {
    background: #eef2f7;
    color: var(--menu-muted);
}

.profile-menu-section__meta a {
    background: #ecfdf5;
    color: #047857;
    text-decoration: none;
}

.profile-menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.profile-menu-product {
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: .85rem;
    padding: .9rem 1rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #edf1f6;
    background: #fff;
}

.profile-menu-product[hidden] { display: none; }

.profile-menu-product:hover {
    background: #f8fbfd;
}

.profile-menu-product__media {
    position: relative;
    width: 92px;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 850;
    font-size: 1.7rem;
}

.profile-menu-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-menu-product__promo {
    position: absolute;
    left: .4rem;
    top: .4rem;
    max-width: calc(100% - .8rem);
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .68rem;
    line-height: 1;
    padding: .28rem .45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu-product__body {
    min-width: 0;
    padding-right: 2.1rem;
}

.profile-menu-product__top {
    display: flex;
    gap: .65rem;
    align-items: baseline;
    justify-content: space-between;
}

.profile-menu-product h4 {
    margin: 0;
    color: var(--menu-ink);
    font-size: .98rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.profile-menu-product__link {
    color: inherit;
    text-decoration: none;
}

.profile-menu-product__link:hover {
    color: var(--menu-accent);
    text-decoration: underline;
}

.profile-menu-product__price {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: .35rem;
    flex-wrap: wrap;
    color: #065f46;
    font-size: .96rem;
    white-space: nowrap;
}

.profile-menu-product__price strong { font-weight: 850; }
.profile-menu-product__price s { color: #9aa7b6; font-size: .82rem; }

.profile-menu-product__save {
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    color: var(--c-danger, #e53e3e);
    background: color-mix(in srgb, var(--c-danger, #e53e3e) 12%, transparent);
    padding: 2px 6px;
    border-radius: var(--radius-sm, 4px);
    white-space: nowrap;
}

.profile-menu-product__saving {
    margin: .25rem 0 0;
    font-size: .8rem;
    font-weight: 700;
    color: var(--c-danger, #e53e3e);
}

.profile-menu-product__benefit {
    margin: .25rem 0 0;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--c-danger, #e53e3e);
}

.profile-menu-product__desc {
    margin: .4rem 0 0;
    color: var(--menu-muted);
    font-size: .88rem;
    line-height: 1.45;
}

.profile-menu-product__fav {
    position: absolute;
    right: .85rem;
    top: .85rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--menu-line);
    background: rgba(255,255,255,.94);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.profile-menu-product__fav:hover,
.profile-menu-product__fav--active {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff5f5;
}

.profile-menu-subsections {
    padding-bottom: .1rem;
}

.profile-menu-no-results {
    margin: 1rem 0 0;
    padding: 1rem;
    border: 1px dashed var(--menu-line);
    border-radius: 8px;
    color: var(--menu-muted);
    background: #fff;
}

@media (min-width: 760px) {
    .profile-menu-hero__inner {
        padding: 1.5rem 1.25rem 2.5rem;
    }

    .profile-menu-shell {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 1.25rem;
        padding-top: 1.25rem;
    }

    .profile-menu-sidebar {
        top: 1rem;
        border: 1px solid var(--menu-line);
        border-radius: 8px;
        padding: 1rem;
        background: #fff;
    }

    .profile-menu-nav {
        flex-direction: column;
        overflow: visible;
        padding-bottom: 0;
    }

    .profile-menu-nav a {
        width: 100%;
        justify-content: space-between;
        border-radius: 8px;
    }

    .profile-menu-section {
        scroll-margin-top: 24px;
    }

    .profile-menu-section__header {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        padding: 1.15rem 1.25rem;
    }
}

@media (min-width: 980px) {
    .profile-menu-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profile-menu-product:nth-last-child(-n+2) {
        border-bottom-color: transparent;
    }

    .profile-menu-product:nth-child(odd) {
        border-right: 1px solid #edf1f6;
    }
}

@media (max-width: 520px) {
    .profile-menu-product {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: .7rem;
        padding: .85rem;
    }

    .profile-menu-product__media {
        width: 76px;
    }

    .profile-menu-product__top {
        flex-direction: column;
        gap: .25rem;
    }

    .profile-menu-product__price {
        white-space: normal;
    }
}
