/* ═══════════ Ocoa Vive · Web ═══════════ */
:root {
    --verde: #1D6B4A;
    --verde-oscuro: #134A33;
    --verde-claro: #E3EFE7;
    --tinta: #10231A;
    --texto-suave: #4A5B52;
    --naranja: #9A4A15;
    --arena: #F2B66B;
    --fondo: #EDF1EC;
    --superficie: #FFFFFF;
    --borde: #D5DED8;
    --oro: #B5701F;
    --sombra: 0 2px 10px rgba(16, 35, 26, .07);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    background: #DDE5DF;
    color: var(--tinta);
    font-family: 'Figtree', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
}

h1, h2, h3 {
    font-family: 'Bricolage Grotesque', 'Figtree', sans-serif;
    margin: 0;
    letter-spacing: -.3px;
}

/* ── Marco tipo teléfono ── */
.marco {
    max-width: 480px;
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--fondo);
    position: relative;
    box-shadow: 0 0 40px rgba(16, 35, 26, .12);
}

.contenido {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.pagina {
    padding: calc(16px + env(safe-area-inset-top)) 20px 8px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ── Barra de pestañas ── */
.tabs {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--superficie);
    border-top: 1px solid var(--borde);
    display: flex;
    justify-content: space-around;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    z-index: 10;
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 60px;
    padding-top: 4px;
    color: var(--texto-suave);
    font-size: 11px;
    font-weight: 600;
}

    .tab svg {
        width: 24px;
        height: 24px;
    }

    .tab.active {
        color: var(--verde);
        font-weight: 700;
    }

/* ── Textos ── */
.cejilla {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--verde);
}

.titulo-grande {
    font-size: 30px;
    line-height: 1.08;
}

.titulo-seccion {
    font-size: 19px;
}

.suave {
    color: var(--texto-suave);
}

.oro {
    color: var(--oro);
    font-weight: 700;
    font-size: 12px;
}

/* ── Encabezado ── */
.encabezado {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .encabezado .nombre {
        font-family: 'Bricolage Grotesque', sans-serif;
        font-weight: 700;
        font-size: 22px;
    }

/* ── Buscador ── */
.buscador {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--superficie);
    border-radius: 16px;
    padding: 0 16px;
    height: 52px;
    box-shadow: var(--sombra);
}

    .buscador input {
        flex: 1;
        border: 0;
        outline: none;
        background: transparent;
        font: inherit;
        font-size: 16px;
        color: var(--tinta);
    }

/* ── Filas que se deslizan de lado ── */
.carril {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin: 0 -20px;
    padding: 2px 20px 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

    .carril::-webkit-scrollbar {
        display: none;
    }

    .carril > * {
        scroll-snap-align: start;
        flex-shrink: 0;
    }

/* ── Chips de categoría ── */
.chip {
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #CBD6CF;
    background: var(--superficie);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--tinta);
    cursor: pointer;
}

    .chip.activo {
        background: var(--verde);
        border-color: var(--verde);
        color: #fff;
    }

/* ── Carrusel de destacados ── */
.destacado {
    position: relative;
    width: calc(100vw - 40px);
    max-width: 440px;
    height: 210px;
    border-radius: 22px;
    overflow: hidden;
    background: #BFD3C6;
    color: #fff;
}

    .destacado img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .destacado .franja {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 14px 18px;
        background: rgba(12, 30, 21, .78);
    }

    .destacado .etiqueta {
        font-size: 12px;
        font-weight: 700;
        color: #CDE6D8;
    }

    .destacado .nombre {
        font-family: 'Bricolage Grotesque', sans-serif;
        font-size: 22px;
        font-weight: 700;
    }

    .destacado .desc {
        font-size: 14px;
        color: #E2EEE7;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .destacado .pago {
        position: absolute;
        top: 12px;
        right: 12px;
        background: rgba(255,255,255,.9);
        color: var(--tinta);
        font-size: 11px;
        font-weight: 700;
        padding: 3px 8px;
        border-radius: 8px;
    }

.anunciate {
    border-radius: 22px;
    padding: 20px;
    color: #fff;
    background: linear-gradient(135deg, #1D6B4A, #10231A);
}

    .anunciate .boton {
        margin-top: 10px;
    }

/* ── Tarjetas ── */
.tarjeta {
    background: var(--superficie);
    border-radius: 18px;
    box-shadow: var(--sombra);
}

.municipio {
    width: 130px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .municipio .color {
        height: 54px;
        border-radius: 10px;
    }

    .municipio .nombre {
        font-weight: 700;
        font-size: 14px;
    }

.fila-lugar {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
}

.miniatura {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

    .miniatura img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.fila-lugar .cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--verde);
}

.fila-lugar .nombre {
    font-weight: 700;
    font-size: 16px;
}

.fila-lugar .zona {
    font-size: 13px;
    color: var(--texto-suave);
}

.lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Botones ── */
.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 0;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

    .boton.verde {
        background: var(--verde);
        color: #fff;
    }

    .boton.claro {
        background: var(--verde-claro);
        color: var(--verde-oscuro);
    }

    .boton.arena {
        background: var(--arena);
        color: var(--tinta);
    }

/* ── Ficha de lugar ── */
.portada {
    position: relative;
    height: 280px;
    background: #BFD3C6;
}

    .portada img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.volver {
    position: absolute;
    top: calc(16px + env(safe-area-inset-top));
    left: 16px;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: #fff;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
}

.ficha {
    position: relative;
    margin-top: -24px;
    background: var(--fondo);
    border-radius: 24px 24px 0 0;
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.etiquetas {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.etiq {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--verde-claro);
    color: var(--verde-oscuro);
}

    .etiq.pago {
        background: #F7E3C8;
        color: #7A3A10;
    }

.info {
    padding: 4px 14px;
}

    .info > div {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 11px 0;
        font-size: 14px;
    }

        .info > div + div {
            border-top: 1px solid #E3E9E5;
        }

    .info .valor {
        font-weight: 600;
        text-align: right;
    }

.galeria img {
    width: 200px;
    height: 150px;
    border-radius: 14px;
    object-fit: cover;
}

.pildoras {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pildora {
    background: var(--superficie);
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
}

.acciones {
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: var(--superficie);
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
    z-index: 9;
}

    .acciones .boton {
        flex: 1;
    }

/* ── Pantalla de bienvenida (mientras carga) ── */
.splash {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--fondo);
}

    .splash img {
        border-radius: 22px;
    }

.splash-nombre {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: var(--tinta);
}

.splash-lema {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--verde);
}

/* ── Error de Blazor (de la plantilla) ── */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #FFF4E2;
    padding: .7rem 1.25rem;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: .75rem;
        top: .5rem;
    }

/* ═══════════ Negocios ═══════════ */
.chip.oscuro {
    background: var(--tinta);
    border-color: var(--tinta);
    color: #fff;
}

.pastilla {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #CBD6CF;
    border-radius: 16px;
    color: var(--verde);
    font-size: 12px;
    font-weight: 700;
}

.banner-registro {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1D6B4A, #10231A);
}

    .banner-registro .flecha {
        width: 46px;
        height: 46px;
        border-radius: 23px;
        flex-shrink: 0;
        background: var(--arena);
        color: var(--tinta);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        font-weight: 700;
    }

.negocio {
    display: flex;
    gap: 14px;
    padding: 12px;
    cursor: pointer;
}

    .negocio:active {
        transform: scale(.99);
    }

.negocio-foto {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

    .negocio-foto img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .negocio-foto .estrella {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 26px;
        height: 26px;
        border-radius: 13px;
        background: var(--arena);
        border: 2px solid #fff;
        color: var(--tinta);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
    }

.negocio-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .negocio-info .cat {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .8px;
        text-transform: uppercase;
    }

    .negocio-info .nombre {
        font-family: 'Bricolage Grotesque', sans-serif;
        font-weight: 700;
        font-size: 17px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .negocio-info .desc {
        font-size: 13px;
        color: var(--texto-suave);
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .negocio-info .pie {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: auto;
        padding-top: 6px;
    }

    .negocio-info .zona {
        flex: 1;
        min-width: 0;
        font-size: 12px;
        font-weight: 600;
        color: var(--texto-suave);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .negocio-info .wa {
        width: 40px;
        height: 40px;
        border-radius: 20px;
        flex-shrink: 0;
        background: var(--verde-claro);
        color: var(--verde-oscuro);
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* ═══════════ Explorar ═══════════ */
.segmentos {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: #DDE5DF;
}

    .segmentos button {
        flex: 1;
        height: 40px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        font: inherit;
        font-size: 15px;
        font-weight: 700;
        color: #3E5248;
        cursor: pointer;
    }

        .segmentos button.activo {
            background: #fff;
            color: var(--tinta);
            box-shadow: 0 1px 2px rgba(16,35,26,.12);
        }

.territorio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.territorio-color {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

    .territorio-color svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

.territorio-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .territorio-info .nombre {
        font-weight: 700;
        font-size: 16px;
    }

    .territorio-info .desc {
        font-size: 13px;
        color: var(--texto-suave);
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .territorio-info .cuenta {
        font-size: 12px;
        font-weight: 700;
        color: var(--verde);
    }

.chevron {
    font-size: 26px;
    color: var(--texto-suave);
}

.parques {
    background: var(--tinta);
    color: #fff;
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pildora.oscura {
    background: #1F3F30;
    color: #fff;
}

.cabecera-territorio {
    position: relative;
    height: 200px;
    overflow: hidden;
}

    .cabecera-territorio svg {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 120px;
    }

/* ═══════════ Guardados ═══════════ */
.corazon {
    position: absolute;
    top: calc(16px + env(safe-area-inset-top));
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    border: 0;
    background: #fff;
    color: var(--tinta);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .corazon svg {
        width: 22px;
        height: 22px;
    }

    .corazon.lleno {
        color: #D2453A;
    }

    .corazon:active {
        transform: scale(.92);
    }

.guardado {
    overflow: hidden;
    cursor: pointer;
}

.guardado-foto {
    position: relative;
    height: 150px;
}

    .guardado-foto img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .guardado-foto .corazon {
        top: 10px;
        right: 10px;
    }

.guardado-info {
    padding: 12px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .guardado-info .cat {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .8px;
        text-transform: uppercase;
        color: var(--verde);
    }

    .guardado-info .nombre {
        font-family: 'Bricolage Grotesque', sans-serif;
        font-weight: 700;
        font-size: 18px;
    }

    .guardado-info .zona {
        font-size: 13px;
        color: var(--texto-suave);
    }

.vacio {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 40px 8px 0;
}

.vacio-icono {
    width: 88px;
    height: 88px;
    border-radius: 44px;
    background: var(--verde-claro);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════ Mapa ═══════════ */
.mapa-pagina {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    bottom: calc(64px + env(safe-area-inset-bottom));
    background: #DCE6DD;
}

.mapa-lienzo {
    position: absolute;
    inset: 0;
}

.mapa-arriba {
    position: absolute;
    top: calc(14px + env(safe-area-inset-top));
    left: 16px;
    right: 16px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .mapa-arriba .carril {
        margin: 0 -16px;
        padding: 2px 16px 6px;
    }

    .mapa-arriba .chip {
        box-shadow: 0 2px 6px rgba(16,35,26,.15);
        border-color: transparent;
    }

.sugerencias {
    padding: 4px 0;
    overflow: hidden;
}

.sugerencia {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    font: inherit;
    color: var(--tinta);
    cursor: pointer;
}

    .sugerencia:hover {
        background: #F3F6F3;
    }

.aviso-mapa {
    align-self: flex-start;
    background: rgba(16,35,26,.9);
    color: #fff;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 12px;
}

.mapa-abajo {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

    .mapa-abajo > * {
        pointer-events: auto;
    }

.boton-ubicacion {
    align-self: flex-end;
    width: 52px;
    height: 52px;
    border-radius: 26px;
    border: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .boton-ubicacion .anillo {
        width: 22px;
        height: 22px;
        border-radius: 11px;
        border: 3px solid #1F6FD1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .boton-ubicacion .anillo span {
            width: 7px;
            height: 7px;
            border-radius: 4px;
            background: #1F6FD1;
        }

.girando {
    width: 22px;
    height: 22px;
    border-radius: 11px;
    border: 3px solid #CFE0F5;
    border-top-color: #1F6FD1;
    animation: girar .8s linear infinite;
}

@keyframes girar {
    to {
        transform: rotate(360deg);
    }
}

.tarjeta-mapa {
    padding: 14px;
    box-shadow: 0 6px 20px rgba(16,35,26,.2);
}

    .tarjeta-mapa .miniatura img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cerrar {
    border: 0;
    background: transparent;
    font-size: 18px;
    color: var(--texto-suave);
    cursor: pointer;
    align-self: flex-start;
}

/* Pines */
.pin {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
}

    .pin.activo {
        border-color: var(--tinta);
    }

/* ═══════════ Reseñas ═══════════ */
.estrellas-texto {
    color: #E09B3D;
    letter-spacing: 1px;
}

.selector-estrellas {
    display: flex;
    gap: 6px;
}

    .selector-estrellas button {
        border: 0;
        background: transparent;
        padding: 0;
        cursor: pointer;
        font-size: 34px;
        line-height: 1;
        color: #E09B3D;
    }

.campo {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #F3F6F3;
    padding: 12px 14px;
    font: inherit;
    font-size: 16px;
    color: var(--tinta);
    resize: vertical;
}

    .campo:focus {
        outline: 2px solid var(--verde-claro);
    }

.boton:disabled {
    opacity: .6;
    cursor: default;
}

.resena {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--verde-claro);
    color: var(--verde-oscuro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
}

.reportar {
    align-self: flex-end;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #7A8A82;
    padding: 4px 8px;
}

.motivos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .motivos button {
        border: 1px solid var(--borde);
        background: #fff;
        border-radius: 12px;
        padding: 6px 10px;
        font: inherit;
        font-size: 12px;
        cursor: pointer;
    }

.resena-mini {
    width: 260px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .resena-mini p {
        margin: 0;
        font-size: 15px;
        line-height: 1.25;
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.invitar-resena {
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(135deg, #FFF4E2, #F7E3C8);
}

/* ═══════════ Registro ═══════════ */
.seccion-form {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .seccion-form h2 {
        font-size: 17px;
        margin-bottom: 4px;
    }

    .seccion-form > label {
        font-size: 13px;
        font-weight: 700;
        color: var(--texto-suave);
        margin-top: 4px;
    }

select.campo {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #4A5B52 50%), linear-gradient(135deg, #4A5B52 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.opcion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F3F6F3;
    padding: 8px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.opcion-larga {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
}

    .opcion input, .opcion-larga input {
        width: 18px;
        height: 18px;
        accent-color: var(--verde);
        flex-shrink: 0;
        margin-top: 1px;
    }

.ubicacion-elegida {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    background: var(--verde-claro);
    color: var(--verde-oscuro);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

    .ubicacion-elegida button {
        border: 0;
        background: transparent;
        color: #B3412D;
        font: inherit;
        cursor: pointer;
    }

.errores {
    background: #FBEBEB;
    color: #8A2A1F;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 14px;
}

    .errores ul {
        margin: 6px 0 0;
        padding-left: 18px;
    }

/* Selector de ubicación */
.selector-fondo {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #DCE6DD;
    max-width: 480px;
    margin: 0 auto;
}

.selector-mapa {
    position: absolute;
    inset: 0;
}

.selector-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -100%);
    font-size: 40px;
    z-index: 1100;
    pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.4));
}

.selector-arriba {
    position: absolute;
    top: calc(14px + env(safe-area-inset-top));
    left: 16px;
    right: 16px;
    z-index: 1100;
}

.selector-abajo {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ═══════════ Perfil ═══════════ */
.boton-perfil {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--verde-claro);
    color: var(--verde-oscuro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

/* ═══════════ Fotos del negocio ═══════════ */
.oculto {
    display: none;
}

label.boton {
    width: 100%;
}

.portada-edicion {
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    background: #DDE5DF;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .portada-edicion img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.galeria-edicion {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.galeria-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #DDE5DF;
}

    .galeria-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .galeria-item button {
        position: absolute;
        top: 4px;
        right: 4px;
        width: 28px;
        height: 28px;
        border-radius: 14px;
        border: 0;
        background: rgba(16,35,26,.8);
        color: #fff;
        font-size: 13px;
        cursor: pointer;
    }

/* ═══════════ Eventos ═══════════ */
.tarjeta.evento {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.evento-foto {
    position: relative;
    height: 150px;
    background: linear-gradient(135deg, #1D6B4A, #10231A);
}

    .evento-foto img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.evento-fecha {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 48px;
    padding: 5px 0;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    line-height: 1.05;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

    .evento-fecha b {
        display: block;
        font-family: 'Bricolage Grotesque';
        font-size: 20px;
        color: var(--naranja);
    }

    .evento-fecha span {
        font-size: 10px;
        font-weight: 700;
        color: var(--naranja);
        letter-spacing: .5px;
    }

.evento-etiqueta {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(16,35,26,.85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

    .evento-etiqueta.ahora {
        background: #D93F2B;
    }

    .evento-etiqueta.estatica {
        position: static;
        align-self: flex-start;
        background: #E3F1E8;
        color: var(--verde);
    }

        .evento-etiqueta.estatica.ahora {
            background: #FBEBEB;
            color: #B3412D;
        }

.evento-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .evento-info .nombre {
        font-weight: 700;
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .evento-info .zona {
        font-size: 13px;
        color: #4A5B52;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.evento-cartel {
    position: relative;
    background: #10231A;
    display: flex;
    justify-content: center;
}

    .evento-cartel img {
        max-width: 100%;
        max-height: 70vh;
        object-fit: contain;
        display: block;
    }

    .evento-cartel .sin-cartel {
        height: 220px;
        display: grid;
        place-items: center;
        font-size: 64px;
    }

.evento-dato {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
}

.evento-acciones {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .evento-acciones .boton {
        flex: 1 1 140px;
    }

/* ═══════════ Página del evento ═══════════ */
.ev-hero {
    position: relative;
    height: 450px;
    background: #0C1C14;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .ev-hero img {
        max-width: calc(100% - 48px);
        max-height: 330px;
        margin-top: 20px;
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(0,0,0,.45);
        object-fit: contain;
    }

.ev-arriba {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
}

.ev-circulo {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    border: 0;
    background: #fff;
    color: var(--tinta);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.ev-vercartel {
    position: absolute;
    right: 16px;
    bottom: 44px;
    height: 36px;
    padding: 0 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    color: var(--tinta);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.ev-hoja {
    position: relative;
    margin-top: -28px;
    background: var(--fondo, #EEF2EC);
    border-radius: 28px 28px 0 0;
    padding: 24px 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ev-pastilla {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #DCEDE3;
    color: #155238;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

    .ev-pastilla.ahora {
        background: #FBE4E1;
        color: #A92E22;
    }

        .ev-pastilla.ahora::before {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 4px;
            background: #D93F2B;
        }

    .ev-pastilla.termino {
        background: #E5EAE6;
        color: #4A5B52;
    }

.ev-tarjeta {
    background: #fff;
    border-radius: 18px;
    padding: 14px 16px;
}

.ev-barra {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

    .ev-barra .seg {
        flex: 1;
        height: 6px;
        border-radius: 3px;
        background: #D5DED8;
    }

        .ev-barra .seg.hecho {
            background: #1D6B4A;
        }

        .ev-barra .seg.hoy {
            background: #D93F2B;
        }

.ev-cuenta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}

    .ev-cuenta b {
        display: block;
        font-family: 'Bricolage Grotesque';
        font-size: 26px;
        color: var(--verde);
    }

    .ev-cuenta span {
        font-size: 12px;
        color: #4A5B52;
    }

.ev-fila {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

    .ev-fila + .ev-fila {
        border-top: 1px solid #E5EAE6;
    }

.ev-icono {
    flex: none;
    width: 44px;
    height: 50px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

    .ev-icono.fecha {
        background: #FBE9DC;
        color: #9A4A15;
        line-height: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

        .ev-icono.fecha b {
            font-family: 'Bricolage Grotesque';
            font-size: 19px;
        }

        .ev-icono.fecha small {
            font-size: 10px;
            font-weight: 700;
            margin-top: 2px;
        }

    .ev-icono.lugar {
        background: #E3EFE7;
        color: var(--verde);
    }

.ev-fila .textos {
    flex: 1;
    min-width: 0;
}

    .ev-fila .textos strong {
        display: block;
        font-size: 15px;
    }

    .ev-fila .textos span {
        font-size: 13px;
        color: #4A5B52;
    }

        .ev-fila .textos span.cerca {
            color: var(--verde);
            font-weight: 700;
        }

.ev-chico {
    flex: none;
    height: 44px;
    min-width: 44px;
    padding: 0 14px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1.5px solid #CBD6CF;
    background: #fff;
    color: var(--verde);
    font-weight: 700;
    font-size: 14px;
    display: grid;
    place-items: center;
    text-decoration: none;
}

.ev-mini {
    height: 150px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
}

.ev-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .ev-chips span {
        padding: 8px 14px;
        border-radius: 999px;
        background: #fff;
        border: 1px solid #CBD6CF;
        font-size: 14px;
        font-weight: 600;
    }

.ev-acciones {
    display: flex;
    gap: 10px;
}

    .ev-acciones .boton {
        flex: 1;
        height: 52px;
    }

.ev-invita {
    background: #10231A;
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

    .ev-invita button {
        height: 44px;
        padding: 0 16px;
        border-radius: 12px;
        border: 0;
        background: #F2B66B;
        color: #10231A;
        font: inherit;
        font-weight: 700;
        font-size: 14px;
        cursor: pointer;
    }

/* ═══════════ Carrusel compacto de eventos (Inicio) ═══════════ */
.ev-carrusel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 16px;
}

    .ev-carrusel::-webkit-scrollbar {
        display: none;
    }

.ev-compacta {
    flex: 0 0 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: #fff;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
}

    .ev-compacta .foto {
        position: relative;
        flex: none;
        width: 64px;
        height: 64px;
        border-radius: 12px;
        overflow: hidden;
        background: #FBE9DC;
    }

        .ev-compacta .foto img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

    .ev-compacta .fecha {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 2px 0;
        background: rgba(255,255,255,.92);
        text-align: center;
        font-size: 11px;
        font-weight: 700;
        color: #9A4A15;
    }

        .ev-compacta .fecha b {
            font-size: 13px;
        }

    .ev-compacta .datos {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 1px;
    }

    .ev-compacta .estado {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1px;
        color: var(--verde);
    }

        .ev-compacta .estado.ahora {
            color: #A92E22;
        }

    .ev-compacta .nombre {
        font-size: 15px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ev-compacta .lugar {
        font-size: 12px;
        color: #4A5B52;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ev-compacta .flecha {
        flex: none;
        font-size: 24px;
        color: #4A5B52;
        margin-right: 6px;
    }

.ev-puntos {
    display: flex;
    justify-content: center;
    gap: 6px;
}

    .ev-puntos span {
        width: 6px;
        height: 6px;
        border-radius: 3px;
        background: #C9D5CD;
        transition: width .2s, background .2s;
    }

        .ev-puntos span.activo {
            width: 16px;
            background: var(--naranja);
        }

/* ═══════════ Estadísticas (Mi negocio) ═══════════ */
.est {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.est-grande {
    font-family: 'Bricolage Grotesque';
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.est-cambio {
    flex: none;
    padding: 5px 10px;
    border-radius: 12px;
    background: #DCEDE3;
    color: #155238;
    font-size: 12px;
    font-weight: 700;
}

    .est-cambio.baja {
        background: #FBE4E1;
        color: #A92E22;
    }

.est-cuadros {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

    .est-cuadros div {
        background: #F3F6F3;
        border-radius: 12px;
        padding: 10px;
        display: flex;
        flex-direction: column;
    }

    .est-cuadros b {
        font-family: 'Bricolage Grotesque';
        font-size: 22px;
    }

    .est-cuadros span {
        font-size: 12px;
        font-weight: 600;
        color: #4A5B52;
    }

.est-barras {
    height: 122px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.est-col {
    width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

    .est-col .valor, .est-col .mes {
        font-size: 11px;
        font-weight: 600;
        color: #4A5B52;
    }

    .est-col .barra {
        width: 24px;
        border-radius: 6px 6px 2px 2px;
        background: #BFD9C9;
    }

        .est-col .barra.actual {
            background: #C2662D;
        }
.chip.chico {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

.chip.activo-suave {
    background: #DCEDE3;
    border-color: #1D6B4A;
    color: #10472F;
    font-weight: 700;
}

/* ═══════════ Abierto / cerrado ═══════════ */
.estado-hora {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #6B7A72;
    margin-top: 4px;
}

    .estado-hora::before {
        content: '';
        width: 7px;
        height: 7px;
        border-radius: 4px;
        background: #9AA5A0;
        flex: none;
    }

    .estado-hora.abierto {
        color: #157A47;
    }

        .estado-hora.abierto::before {
            background: #1D9A5B;
        }

    .estado-hora.grande {
        align-self: flex-start;
        font-size: 13px;
        padding: 5px 10px;
        border-radius: 12px;
        background: #EEF1EF;
        margin: 0;
    }

        .estado-hora.grande.abierto {
            background: #DCEDE3;
        }

.punto-verde {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #1D9A5B;
    margin-right: 4px;
}

.hor-fila {
    display: grid;
    grid-template-columns: 120px 1fr auto 1fr;
    gap: 6px;
    align-items: center;
    min-height: 48px;
}

.hor-dia {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.hor-hora {
    height: 40px;
    padding: 0 8px;
    font-size: 14px;
    min-width: 0;
}

/* ═══════════ Sin conexión ═══════════ */
#sin-conexion {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    padding: 8px 16px;
    padding-top: calc(8px + env(safe-area-inset-top));
    background: #FFF4E2;
    color: #7A3A10;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}
