body { font-family: 'DM Sans', -apple-system, sans-serif; }

/* ── Variables globales ── */
:root {
    /* Brand tokens */
    --star:         #f59e0b;
    --gold-border:  #fde68a;
    --gold-shine:   #d97706;
    /* Surface */
    --bg:           #f4f6f9;
    --surface:      #ffffff;
    --border:       #d1d9e0;
    --border-light: #e8ecf0;
    /* Text */
    --text:         #0f1923;
    --text-2:       #374151;
    --text-3:       #6b7280;
    /* Status colors */
    --green:        #2d6a4f;
    --green-bg:     #eaf4ef;
    --red:          #b91c1c;
    --red-bg:       #fff0ee;
    --amber:        #c07c15;
    --amber-bg:     #fff7e6;
    --blue:         #1a6fa8;
    --blue-bg:      #e8f3fc;
    /* Accent — detail pages (overridden per palette) */
    --accent:       #b5714a;
    --accent-bg:    #fdf0e8;
    --accent-mid:   #e09c74;
}

/* Alpine x-cloak */
[x-cloak] { display: none !important; }

/* ── Utilidades ── */
.color-transition {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.font-lora { font-family: 'Lora', Georgia, serif; }

/* ── Layout base ── */
main { padding-top: 3px; }

/* ══════════════════════════════════════════════════════════
   SISTEMA DE PALETAS — ATRACTIVOS TURÍSTICOS
══════════════════════════════════════════════════════════ */
.palette-natural   { --accent:#2d6a4f; --accent-bg:#eaf4ef; --accent-mid:#52b788; }
.palette-costa     { --accent:#0077b6; --accent-bg:#e0f4ff; --accent-mid:#48cae4; }
.palette-cultural  { --accent:#2b4c7e; --accent-bg:#eef2f9; --accent-mid:#6b8fc4; }
.palette-rural     { --accent:#b5714a; --accent-bg:#fdf0e8; --accent-mid:#e09c74; }
.palette-religioso { --accent:#8a6e2f; --accent-bg:#fdf8ee; --accent-mid:#c4a055; }
.palette-deportivo { --accent:#c2410c; --accent-bg:#fff4ee; --accent-mid:#f97316; }
.palette-juvenil   { --accent:#3d7a00; --accent-bg:#f0fae6; --accent-mid:#7dba2f; }
.palette-default   { --accent:#475569;  --accent-bg:#f1f5f9;  --accent-mid:#94a3b8; }

/* ══════════════════════════════════════════════════════════
   SISTEMA DE PALETAS — EMPRESAS / ORGANIZACIONES
══════════════════════════════════════════════════════════ */
.palette-ent-gastro      { --accent:#c0392b; --accent-bg:#fdf0ee; --accent-mid:#e07060; }
.palette-ent-alojamiento { --accent:#1a6fa8; --accent-bg:#e8f4fd; --accent-mid:#5aaee0; }
.palette-ent-comercio    { --accent:#0d7a5f; --accent-bg:#e6f6f2; --accent-mid:#3db896; }
.palette-ent-salud       { --accent:#1565c0; --accent-bg:#e8f0fe; --accent-mid:#5c8fd6; }
.palette-ent-entrete     { --accent:#6d28d9; --accent-bg:#f3eeff; --accent-mid:#a78bfa; }
.palette-ent-servicios   { --accent:#b45309; --accent-bg:#fef3e2; --accent-mid:#d97706; }
.palette-ent-educacion   { --accent:#0f766e; --accent-bg:#e6faf8; --accent-mid:#2dd4bf; }
.palette-ent-deporte     { --accent:#c2410c; --accent-bg:#fff4ee; --accent-mid:#f97316; }

/* ══════════════════════════════════════════════════════════
   MARKDOWN
══════════════════════════════════════════════════════════ */
.md-body ul { list-style: disc; padding-left: 1.4em; margin: .5em 0; }
.md-body ol { list-style: decimal; padding-left: 1.4em; margin: .5em 0; }
.md-body li { margin-bottom: .25em; }
.md-body strong { font-weight: 700; }
.md-body em { font-style: italic; }
.md-body h2, .md-body h3, .md-body h4 { font-weight: 700; margin: .75em 0 .25em; }
.md-body p { margin-bottom: .5em; }
.md-body blockquote { border-left: 3px solid var(--accent); padding-left: .75em; opacity: .75; }

/* ══════════════════════════════════════════════════════════
   NAVBAR — TOPBAR / DEPT-PILL / DRAWER / BOTTOM SHEET
══════════════════════════════════════════════════════════ */
.dept-pill {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 20px; font-size: 14px;
    font-weight: 700; cursor: pointer; border: 1.5px solid transparent;
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
    white-space: nowrap;
}
.dept-pill-icon { font-size: 14px; line-height: 1; }
.dept-pill i { font-size: 10px; }

.drawer-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 10px; border-radius: 8px; font-size: 15px;
    font-weight: 500; color: var(--text-2); text-decoration: none;
    cursor: pointer; background: none; border: none; width: 100%;
    font-family: inherit; transition: background 0.12s;
}
.drawer-link:hover { background: var(--bg); }
.drawer-link i { width: 18px; text-align: center; color: var(--text-3); font-size: 14px; }
.drawer-link.danger { color: var(--red); }
.drawer-link.danger i { color: var(--red); }

/* ── BOTTOM SHEET ── */
.sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 301;
    background: var(--surface); border-radius: 20px 20px 0 0;
    max-height: 82vh; display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 640px) {
    .sheet {
        left: 50%; right: auto; transform: translateX(-50%);
        width: 500px; border-radius: 20px;
        bottom: 50%; margin-bottom: -300px;
    }
}
.sheet-gps {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700; padding: 5px 10px;
    border-radius: 7px; border: none; font-family: inherit;
    cursor: pointer; transition: background-color 0.4s ease, color 0.4s ease;
}
.sheet-search {
    margin: 0 16px 10px; display: flex; align-items: center; gap: 8px;
    background: var(--bg); border-radius: 9px;
    padding: 10px 12px; flex-shrink: 0;
}
.sheet-search i { color: var(--text-3); font-size: 13px; flex-shrink: 0; }
.sheet-search input {
    background: none; border: none; outline: none;
    font-family: inherit; font-size: 14px; color: var(--text); width: 100%;
}
.sheet-search input::placeholder { color: var(--text-3); font-size: 13px; }
.sheet-list { overflow-y: auto; padding: 0 8px 24px; flex: 1; scrollbar-width: thin; }

/* Dept items dentro del sheet */
.dept-item { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 9px; cursor: pointer; transition: background 0.1s; }
.dept-item:hover { background: var(--bg); }
.dept-item.active { background: #f0f4ff; }
.dept-ic { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.dept-body { flex: 1; min-width: 0; }
.dept-name { font-size: 15px; font-weight: 600; color: var(--text-2); }
.dept-item.active .dept-name { color: #1a56db; }
.dept-count { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.dept-check { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; background: #1a56db; display: flex; align-items: center; justify-content: center; transition: background-color 0.4s ease; }
.dept-check i { font-size: 9px; color: #fff; }

/* ══════════════════════════════════════════════════════════
   HERO — sección principal de cada lista
══════════════════════════════════════════════════════════ */
.hero {
    padding: 20px 16px 72px; position: relative;
    overflow: hidden; transition: background-color 0.4s ease;
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(255,255,255,.1) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 85%, rgba(0,0,0,.12) 0%, transparent 50%);
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }

.dept-zone {
    background: rgba(255,255,255,.13); border: 1.5px solid rgba(255,255,255,.25);
    border-radius: 12px; padding: 12px 16px; cursor: pointer;
    margin-bottom: 20px; transition: background 0.15s;
}
.dept-zone:hover { background: rgba(255,255,255,.2); }
.dept-zone-eyebrow {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; color: rgba(255,255,255,.55);
    display: flex; align-items: center; gap: 5px; margin-bottom: 6px;
}
.dept-zone-eyebrow i { font-size: 11px; color: rgba(255,255,255,.7); }
.dept-zone-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dept-zone-name { font-size: 22px; font-weight: 700; color: #fff; line-height: 1; }
.dept-zone-count { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 3px; }
.dept-zone-btn {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25);
    border-radius: 7px; padding: 7px 13px; font-size: 13px;
    font-weight: 700; color: #fff; white-space: nowrap; flex-shrink: 0;
}
.dept-zone-btn i { font-size: 10px; }

.hero h1 {
    font-size: clamp(26px, 7vw, 36px); font-weight: 700; color: #fff;
    line-height: 1.15; letter-spacing: -.02em; margin-bottom: 6px;
}
.hero-mid { color: rgba(255,255,255,.7); }
.hero-sub { font-size: 15px; color: rgba(255,255,255,.6); margin-bottom: 18px; }

.hero-search { position: relative; }
.hero-search i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-3); font-size: 14px; pointer-events: none;
}
.hero-search input {
    width: 100%; padding: 13px 14px 13px 42px;
    background: var(--surface); border: 1px solid transparent;
    border-radius: 10px; font-family: inherit; font-size: 14px;
    color: var(--text); outline: none; box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.hero-search input::placeholder { color: var(--text-3); }

/* Stats strip debajo del hero */
.hero-stats {
    display: flex; background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    border-top: 3px solid transparent;
    transition: border-top-color 0.4s ease;
}
.hero-stat {
    flex: 1; padding: 12px 8px; text-align: center;
    border-right: 1px solid var(--border-light);
}
.hero-stat:last-child { border-right: none; }
.hero-stat .num {
    display: block; font-size: 20px; font-weight: 700;
    line-height: 1; transition: color 0.4s ease;
}
.hero-stat .lbl {
    display: block; font-size: 12px; font-weight: 500;
    color: var(--text-3); margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   CONTENT — secciones de contenido del home
══════════════════════════════════════════════════════════ */
.content { max-width: 640px; margin: 0 auto; padding: 0 16px 100px; }
.sec-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; margin-top: 28px; }
.sec-header h2 { font-size: 17px; font-weight: 700; color: var(--text); }
.sec-link { font-size: 13px; font-weight: 600; text-decoration: none; transition: color 0.4s ease; }
.sec-link:hover { text-decoration: underline; }

/* Categorías */
.cat-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; width: 68px; padding: 10px 6px; background: var(--surface); border: 1px solid var(--border-light); border-radius: 10px; cursor: pointer; transition: border-color 0.13s; }
.cat-pill:hover { border-color: var(--border); }
.cat-pill.active { transition: background-color 0.4s ease, border-color 0.4s ease; }
.cat-pill-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.cat-pill-lbl { font-size: 11px; font-weight: 600; color: var(--text-2); text-align: center; line-height: 1.2; white-space: nowrap; }
.cat-pill.active .cat-pill-lbl { color: #fff; }

/* Featured cards */
.featured-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.featured-scroll::-webkit-scrollbar { display: none; }
.featured-card { flex-shrink: 0; width: 230px; background: var(--surface); border: 1.5px solid var(--gold-border); border-radius: 12px; overflow: hidden; scroll-snap-align: start; cursor: pointer; position: relative; transition: box-shadow 0.18s; }
.featured-card:hover { box-shadow: 0 4px 18px rgba(217,119,6,.14); }
.featured-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, #f59e0b, #d97706); z-index: 1; }
.fc-img { position: relative; height: 130px; overflow: hidden; }
.fc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.featured-card:hover .fc-img img { transform: scale(1.04); }
.fc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.5) 100%); }
.fc-badge-pro { position: absolute; top: 8px; right: 8px; z-index: 2; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 4px; background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; display: inline-flex; align-items: center; gap: 3px; }
.fc-badge-status { position: absolute; bottom: 8px; left: 8px; z-index: 2; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 4px; display: inline-flex; align-items: center; gap: 4px; }
.fc-badge-status.available { background: #2d6a4f; color: #fff; }
.fc-rating { position: absolute; bottom: 8px; right: 8px; z-index: 2; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.92); padding: 2px 7px; border-radius: 4px; display: inline-flex; align-items: center; gap: 3px; color: var(--text); }
.fc-rating i { color: var(--star); font-size: 10px; }
.fc-badge-pro svg, .fc-badge-status svg, .fc-rating svg { width: 10px; height: 10px; flex-shrink: 0; }
.fc-body { padding: 12px 13px; }
.fc-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; line-height: 1.2; }
.fc-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.fc-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 3px; }
.fc-loc { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 3px; }
.fc-loc i { font-size: 9px; }
.fc-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--border-light); }
.fc-price { font-size: 14px; font-weight: 700; }
.fc-price small { font-size: 10px; font-weight: 500; color: var(--text-3); }
.fc-wa { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 6px; background: var(--green-bg); border: 1px solid #a7f3d0; color: var(--green); text-decoration: none; }
.fc-wa:hover { background: #d1fae5; }
.fc-wa i { font-size: 13px; }

/* Attract cards */
.attract-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.attract-scroll::-webkit-scrollbar { display: none; }
.attract-card { flex-shrink: 0; width: 170px; background: var(--surface); border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; scroll-snap-align: start; cursor: pointer; }
.attract-card img { width: 100%; height: 100px; object-fit: cover; display: block; }
.attract-body { padding: 9px 11px 11px; }
.attract-chip { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 20px; display: inline-block; margin-bottom: 5px; }
.attract-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 3px; }
.attract-loc { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 3px; }
.attract-loc i { font-size: 8px; }

/* Info group */
.info-group { background: var(--surface); border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; }
.info-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; transition: background 0.12s; text-decoration: none; }
.info-item + .info-item { border-top: 1px solid var(--border-light); }
.info-item:hover { background: #fafbfc; }
.info-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.info-body { flex: 1; min-width: 0; }
.info-name { font-size: 15px; font-weight: 700; color: var(--text); }
.info-sub { font-size: 13px; color: var(--text-3); margin-top: 1px; }
.info-phone { font-size: 13px; font-weight: 700; margin-top: 2px; }
.info-chev { color: var(--border); font-size: 11px; }
.info-item.emergency { background: #7f1d1d; border-bottom: 1px solid #991b1b; }
.info-item.emergency:hover { background: #991b1b; }
.info-item.emergency .info-name, .info-item.emergency .info-sub { color: #fff; }
.emergency-num { font-size: 26px; font-weight: 700; color: #fff; line-height: 1; }

/* Svc group */
.svc-group { background: var(--surface); border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; }
.svc-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; transition: background 0.12s; }
.svc-item + .svc-item { border-top: 1px solid var(--border-light); }
.svc-item:hover { background: #fafbfc; }
.svc-avatar { width: 44px; height: 44px; flex-shrink: 0; border-radius: 9px; overflow: hidden; border: 1px solid var(--border-light); }
.svc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-body { flex: 1; min-width: 0; }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 2px; }
.svc-name { font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-rating { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.svc-rating i { color: var(--star); font-size: 10px; }
.svc-rating span { font-size: 11px; font-weight: 600; color: var(--text-3); }
.svc-meta { display: flex; align-items: center; gap: 6px; }
.svc-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 3px; }
.svc-loc { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 2px; }
.svc-loc i { font-size: 9px; }
.svc-chev { color: var(--border); font-size: 11px; flex-shrink: 0; }

/* Chips de color */
.chip-green { background: var(--green-bg); color: var(--green); }
.chip-amber { background: #fefce8; color: #92680a; }
.chip-blue  { background: #eff6ff;  color: #1a56db; }

/* ══════════════════════════════════════════════════════════
   COMPONENTES — DETALLE DE ATRACTIVO / ENTIDAD
══════════════════════════════════════════════════════════ */

/* Overlay hero atractivo */
.attraction-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(10,25,15,.68) 100%);
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 20px 20px 24px;
}
.palette-costa    .attraction-hero-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(5,20,40,.68) 100%); }
.palette-cultural .attraction-hero-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(30,15,5,.68) 100%); }

/* Chip glass sobre imagen */
.chip-glass {
    background: rgba(255,255,255,.2);
    color: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Línea divisora de secciones */
.sec-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

/* Animación del pin en mapa */
@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.14); opacity: .6; }
}
.map-pin-ring {
    background: rgba(45, 106, 79, .15);
    border: 1.5px solid rgba(45, 106, 79, .35);
    animation: ring-pulse 2.4s ease-in-out infinite;
}
.palette-costa    .map-pin-ring { background: rgba(0,119,182,.15); border-color: rgba(0,119,182,.35); }
.palette-cultural .map-pin-ring { background: rgba(181,113,74,.15); border-color: rgba(181,113,74,.35); }

/* Galería horizontal */
.gallery-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-thumb {
    flex-shrink: 0;
    width: 160px; height: 118px;
    scroll-snap-align: start;
    border-radius: 10px; overflow: hidden; cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .22s; }
.gallery-thumb:hover img { transform: scale(1.05); }

/* Mapa / ubicación */
.map-wrap {
    height: 175px; border-radius: 14px; overflow: hidden;
    position: relative; background: var(--accent-bg);
    border: 1px solid var(--border-light);
}
.map-pin-overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}

/* Atractivos cercanos */
.nearby-scroll {
    display: flex; gap: 10px; overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 4px;
}
.nearby-scroll::-webkit-scrollbar { display: none; }
.nearby-card {
    flex-shrink: 0; width: 180px;
    background: var(--surface); border: 1px solid var(--border-light);
    border-radius: 12px; overflow: hidden;
    scroll-snap-align: start; cursor: pointer;
    transition: border-color .15s; display: block;
}
.nearby-card:hover { border-color: var(--accent-mid); }
.nearby-card > img { width: 100%; height: 100px; object-fit: cover; display: block; }
.nearby-card-body  { padding: 10px 12px 12px; }
.nearby-card-chip  {
    display: inline-block;
    font-size: 9px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em;
    padding: 2px 7px; border-radius: 20px; margin-bottom: 6px;
}
.nearby-card-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 4px; }
.nearby-card-loc  { font-size: 11px; display: flex; align-items: center; gap: 4px; }

/* Lightbox */
.lb-close {
    position: absolute; top: 16px; right: 16px;
    width: 38px; height: 38px;
    background: rgba(255,255,255,.1); border: none; border-radius: 50%;
    color: #fff; font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.lb-close:hover { background: rgba(255,255,255,.2); }
.lb-img-wrap {
    max-width: min(92vw,760px);
    max-height: 72vh;
    display: flex; align-items: center; justify-content: center;
}
#lb-img { max-width: 100%; max-height: 72vh; border-radius: 10px; object-fit: contain; display: block; }
.lb-nav { display: flex; gap: 24px; margin-top: 20px; }
.lb-nav button {
    width: 44px; height: 44px;
    background: rgba(255,255,255,.1); border: none; border-radius: 50%;
    color: #fff; font-size: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.lb-nav button:hover { background: rgba(255,255,255,.22); }
.lb-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    font-size: 13px; color: rgba(255,255,255,.45);
}

/* Botones del bottom bar de detalle */
.btn-primary {
    flex: 1; padding: 14px;
    background: var(--accent); color: #fff;
    border: none; border-radius: 10px;
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: opacity .15s;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    text-decoration: none;
}
.btn-primary:hover { opacity: .88; }
.btn-secondary {
    flex: 1; padding: 14px;
    background: var(--surface); color: var(--text-2);
    border: 1px solid var(--border); border-radius: 10px;
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background .15s, color .15s, border-color .15s;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    text-decoration: none;
}
.btn-secondary:hover { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-mid); }

/* Degradado overlay imagen destacada de empresa */
.feat-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.55) 100%);
}

/* Borde entre items consecutivos */
.attr-item + .attr-item { border-top: 1px solid #e8ecf0; }

/* Degradado overlay imagen de empresa (lista) */
.entities-ca-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.48) 100%);
}

/* webkit scrollbar hiding — entities */
.entities-scroll-row::-webkit-scrollbar,
.entities-locality-scroll::-webkit-scrollbar,
.entities-filter-scroll::-webkit-scrollbar { display: none; }

/* Responsive — cards entities */
@media(min-width:400px) {
    .entities-ca-card { width: 265px; }
    .entities-cb-card { width: 160px; }
    .entities-cd-card { width: 190px; }
}
