/* ═══════════ 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;
}

/* ═══════════ Anuncios patrocinados ═══════════ */
.anuncio-banner {
    position: relative;
    display: block;
    height: 160px;
    border-radius: 20px;
    overflow: hidden;
    background: #10231A;
    color: #fff;
    text-decoration: none;
}

    .anuncio-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .anuncio-banner .franja {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 10px 14px;
        background: rgba(12, 30, 21, .78);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .anuncio-banner .textos {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .anuncio-banner .pat {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1px;
        color: #F2B66B;
    }

    .anuncio-banner b {
        font-family: 'Bricolage Grotesque';
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .anuncio-banner small {
        font-size: 13px;
        color: #E2EEE7;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.anuncio-compacto {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
}

    .anuncio-compacto .foto {
        flex: none;
        width: 56px;
        height: 56px;
        border-radius: 12px;
        overflow: hidden;
        background: #FBE9DC;
        display: grid;
        place-items: center;
        font-size: 20px;
    }

        .anuncio-compacto .foto img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

    .anuncio-compacto .datos {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .anuncio-compacto .pat {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1px;
        color: #9A4A15;
    }

    .anuncio-compacto b {
        font-size: 15px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .anuncio-compacto small {
        font-size: 12px;
        color: #4A5B52;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .anuncio-banner .btn, .anuncio-compacto .btn {
        flex: none;
        padding: 6px 12px;
        border-radius: 10px;
        background: #F2B66B;
        color: #10231A;
        font-size: 13px;
        font-weight: 700;
    }


/* Encabezado del registro (sin enlaces) */
.registro-marca {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

    .registro-marca img {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .registro-marca span {
        font-family: 'Bricolage Grotesque', sans-serif;
        font-weight: 700;
        font-size: 18px;
        color: #10231A;
    }
/* ═══════════ Próximamente ═══════════ */
.pagina-sola {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    box-sizing: border-box;
}

.proximamente {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
}

    .proximamente .logo {
        width: 96px;
        height: 96px;
        border-radius: 24px;
    }

    .proximamente .etiqueta {
        font-weight: 700;
        font-size: 12px;
        letter-spacing: 1.4px;
        color: #C2662D;
    }

    .proximamente h1 {
        font-family: 'Bricolage Grotesque', sans-serif;
        font-size: 40px;
        margin: 0;
        color: #10231A;
    }

    .proximamente p {
        margin: 0;
        color: #4A5B52;
        font-size: 16px;
        line-height: 1.45;
    }

    .proximamente .tarjeta-negocio {
        margin-top: 18px;
        padding: 22px 20px;
        border-radius: 20px;
        width: 100%;
        box-sizing: border-box;
        background: linear-gradient(135deg, #1D6B4A, #10231A);
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

        .proximamente .tarjeta-negocio h2 {
            margin: 0;
            font-family: 'Bricolage Grotesque', sans-serif;
            font-size: 21px;
            color: #fff;
        }

        .proximamente .tarjeta-negocio p {
            color: #CFE3D7;
        }

    .proximamente .boton-registro {
        margin-top: 8px;
        display: inline-block;
        padding: 14px 24px;
        border-radius: 14px;
        background: #F2B66B;
        color: #10231A;
        font-weight: 700;
        font-size: 16px;
        text-decoration: none;
    }

        .proximamente .boton-registro:hover {
            background: #E9A24F;
            color: #10231A;
        }

/* Mensaje después de registrarse */
.gracias {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

    .gracias h2 {
        font-family: 'Bricolage Grotesque', sans-serif;
        font-size: 28px;
        margin: 0;
        color: #10231A;
    }

    .gracias p {
        margin: 0;
        color: #4A5B52;
        font-size: 16px;
        line-height: 1.45;
        max-width: 420px;
    }

/* ═══════════ Vista previa de la ficha (Mi negocio) ═══════════ */
.previa {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(16,35,26,.08);
}

.previa-foto {
    height: 170px;
    background: #BFD3C6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2F5D47;
    font-weight: 600;
}

    .previa-foto img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.previa-cuerpo {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .previa-cuerpo h2 {
        margin: 0;
        font-size: 22px;
        color: #10231A;
    }

    .previa-cuerpo p {
        margin: 0;
        color: #24382E;
        line-height: 1.35;
    }

.previa-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #C2662D;
}

.previa-estado {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    background: #E3E8E5;
    color: #3F4D46;
    font-size: 13px;
    font-weight: 700;
}

    .previa-estado i {
        width: 8px;
        height: 8px;
        border-radius: 4px;
        background: #7E8B84;
    }

    .previa-estado.abierto {
        background: #DCEDE3;
        color: #135F38;
    }

        .previa-estado.abierto i {
            background: #1D9A5B;
        }

.previa-datos {
    background: #F4F7F5;
    border-radius: 14px;
    padding: 2px 12px;
}

    .previa-datos > div {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding: 9px 0;
        font-size: 14px;
        border-bottom: 1px solid #E3E9E5;
    }

        .previa-datos > div:last-child {
            border-bottom: 0;
        }

    .previa-datos span {
        color: #4A5B52;
    }

    .previa-datos b {
        text-align: right;
        font-weight: 600;
        display: flex;
        flex-direction: column;
    }

    .previa-datos .linea {
        color: #10231A;
    }

.previa-nota {
    padding: 10px 16px;
    background: #FFF4E2;
    color: #7A3A10;
    font-size: 12px;
    text-align: center;
}
/* Reglas de la contraseña */
.reglas-clave {
    list-style: none;
    margin: 4px 0 6px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #6B7A72;
}

    .reglas-clave li::before {
        content: '○ ';
    }

    .reglas-clave li.ok {
        color: #157A47;
        font-weight: 600;
    }

        .reglas-clave li.ok::before {
            content: '✔ ';
        }

/* Botones de redes en la ficha */
.pildora.red {
    text-decoration: none;
    color: var(--tinta, #10231A);
    background: #fff;
    border: 1px solid #CBD6CF;
    font-weight: 700;
}

    .pildora.red:hover {
        background: #F1F5F2;
    }

/* ═══════════ Páginas legales ═══════════ */
.legal {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.55;
    color: #24382E;
}

    .legal h1 {
        font-family: 'Bricolage Grotesque', sans-serif;
        font-size: 30px;
        margin: 18px 0 4px;
        color: #10231A;
    }

    .legal h2 {
        font-family: 'Bricolage Grotesque', sans-serif;
        font-size: 20px;
        margin: 26px 0 6px;
        color: #10231A;
    }

    .legal h3 {
        font-size: 16px;
        margin: 16px 0 4px;
        color: #10231A;
    }

    .legal p, .legal li {
        font-size: 15px;
    }

    .legal ul {
        padding-left: 20px;
        margin: 6px 0;
    }

    .legal li {
        margin-bottom: 6px;
    }

    .legal a {
        color: #1D6B4A;
        font-weight: 600;
    }

/* Enlaces de privacidad y términos al pie */
.pie-legal {
    margin-top: 28px;
    text-align: center;
    font-size: 13px;
    color: #6B7A72;
}

    .pie-legal a {
        color: #1D6B4A;
        font-weight: 600;
        text-decoration: none;
    }

        .pie-legal a:hover {
            text-decoration: underline;
        }

/* ═══════════════════════════════════════════════════════════
   DISEÑO DE PC (pantallas de más de 960 px)
   En el teléfono nada de esto se aplica.
   ═══════════════════════════════════════════════════════════ */

/* En el teléfono, la barra y el pie de PC no se ven */
.barra-pc, .pie-pc {
    display: none;
}

@media (min-width: 960px) {

    html, body {
        background: var(--fondo);
    }

    /* ── Sin "teléfono estirado": todo el ancho ── */
    .marco {
        max-width: none;
        min-height: calc(100dvh - 72px);
        box-shadow: none;
    }

    .contenido {
        padding-bottom: 32px;
    }

    .pagina {
        max-width: 1240px;
        margin: 0 auto;
        padding: 28px 32px 16px;
        gap: 24px;
    }

    .titulo-grande {
        font-size: 40px;
    }

    .titulo-seccion {
        font-size: 24px;
    }

    /* ── Pestañas de abajo: ocultas ── */
    .tabs {
        display: none;
    }

    /* ── Barra superior ── */
    .barra-pc {
        display: block;
        position: sticky;
        top: 0;
        z-index: 1200;
        height: 72px;
        background: rgba(255, 255, 255, .94);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--borde);
    }

    .barra-pc-in {
        max-width: 1240px;
        height: 100%;
        margin: 0 auto;
        padding: 0 32px;
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .barra-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: 'Bricolage Grotesque', sans-serif;
        font-weight: 700;
        font-size: 20px;
    }

        .barra-logo img {
            width: 38px;
            height: 38px;
            border-radius: 11px;
        }

    .barra-nav {
        display: flex;
        gap: 4px;
        margin-left: 8px;
    }

    .barra-link {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 9px 14px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 15px;
        color: var(--texto-suave);
    }

        .barra-link svg {
            width: 18px;
            height: 18px;
        }

        .barra-link:hover {
            background: #F1F5F2;
            color: var(--tinta);
        }

        .barra-link.active {
            background: var(--verde-claro);
            color: var(--verde-oscuro);
        }

    .barra-cta {
        margin-left: auto;
        height: 42px;
        font-size: 14px;
    }

    /* ── Pie de página ── */
    .pie-pc {
        display: block;
        background: var(--tinta);
        color: #CFE3D7;
    }

    .pie-pc-in {
        max-width: 1240px;
        margin: 0 auto;
        padding: 32px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
    }

        .pie-pc-in b {
            display: block;
            color: #fff;
            font-size: 16px;
        }

        .pie-pc-in nav {
            display: flex;
            gap: 22px;
        }

        .pie-pc-in a {
            color: #fff;
        }

            .pie-pc-in a:hover {
                text-decoration: underline;
            }

    /* ── Filas que se deslizan → filas que bajan de línea ── */
    .carril {
        flex-wrap: wrap;
        overflow: visible;
        margin: 0;
        padding: 0;
        gap: 16px;
    }

    /* Destacados: 3 por fila */
    .destacado {
        width: calc((100% - 32px) / 3);
        max-width: none;
        height: 240px;
    }

    /* Eventos: 4 por fila */
    .tarjeta.evento {
        flex: 0 0 calc((100% - 48px) / 4);
    }

    /* Municipios: todos en una fila */
    .municipio {
        width: calc((100% - 96px) / 7);
        min-width: 130px;
    }

    /* Reseñas: 3 por fila */
    .resena-mini {
        width: calc((100% - 32px) / 3);
    }

    /* Carrusel compacto de eventos (Inicio): 3 a la vista */
    .ev-carrusel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        overflow: visible;
    }

    .ev-puntos {
        display: none;
    }

    /* ── Listas de negocios y lugares: 2 columnas ── */
    .lista {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    /* ── Mapa: toda la pantalla debajo de la barra ── */
    .mapa-pagina {
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: auto;
        max-width: none;
    }

    .mapa-arriba {
        max-width: 560px;
    }

    .mapa-abajo {
        left: auto;
        width: 400px;
        right: 24px;
        bottom: 24px;
    }

    /* ── Selector de ubicación: pantalla completa ── */
    .selector-fondo {
        max-width: none;
    }

    .selector-arriba, .selector-abajo {
        max-width: 480px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 32px);
    }

    /* ── Ficha del lugar (provisional, hasta el paso 4) ── */
    .portada {
        max-width: 1240px;
        height: 420px;
        margin: 24px auto 0;
        border-radius: 24px;
        overflow: hidden;
    }

    .ficha {
        max-width: 1240px;
        margin: 0 auto;
        background: transparent;
        padding: 28px 32px 120px;
    }

    .acciones {
        bottom: 0;
        max-width: 720px;
        border-radius: 18px 18px 0 0;
    }

    /* ── Página del evento: centrada ── */
    .ev-hero {
        height: 520px;
    }

        .ev-hero img {
            max-height: 420px;
        }

    .ev-hoja {
        max-width: 860px;
        margin: -28px auto 0;
    }
}

/* ═══ Arreglos generales ═══ */
/* Sin recuadro negro al cambiar de página (foco automático de Blazor) */
h1:focus, h1:focus-visible {
    outline: none;
}

/* ═══ Ficha del lugar: piezas que se reordenan ═══ */
/* En el teléfono, las dos columnas "desaparecen" y todo queda en una sola columna, en este orden */
.ficha-lado, .ficha-principal {
    display: contents;
}

.o1 {
    order: 1;
}

.o2 {
    order: 2;
}

.o3 {
    order: 3;
}

.o4 {
    order: 4;
}

.o5 {
    order: 5;
}

.o6 {
    order: 6;
}

.o7 {
    order: 7;
}

.o8 {
    order: 8;
}

.o9 {
    order: 9;
}

.ficha-bloque {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.acciones-pc, .ficha-foto-pc, .barra-perfil {
    display: none;
}

@media (min-width: 960px) {

    /* Inicio: el logo ya está en la barra */
    .encabezado {
        display: none;
    }

    /* Perfil en la barra */
    .barra-perfil {
        display: flex;
        width: 42px;
        height: 42px;
        border-radius: 21px;
        background: var(--verde-claro);
        color: var(--verde-oscuro);
        align-items: center;
        justify-content: center;
    }

        .barra-perfil svg {
            width: 20px;
            height: 20px;
        }

    /* ── Ficha en 2 columnas ── */
    .portada, .ficha ~ .acciones {
        display: none;
    }

    .ficha {
        max-width: 1240px;
        margin: 0 auto;
        padding: 28px 32px 48px !important;
        background: transparent;
        border-radius: 0;
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(340px, 1fr);
        gap: 32px;
        align-items: start;
    }

    .ficha-principal {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        gap: 26px;
    }

    .ficha-lado {
        grid-column: 2;
        grid-row: 1;
        position: sticky;
        top: 96px;
        display: flex;
        flex-direction: column;
        gap: 14px;
        background: var(--superficie);
        border-radius: 22px;
        padding: 24px;
        box-shadow: var(--sombra);
    }

        .ficha-lado h1 {
            font-size: 32px;
        }

        .ficha-lado .info {
            padding: 0;
            box-shadow: none;
            background: transparent;
        }

    /* Foto principal completa (sin cortar logos) */
    .ficha-foto-pc {
        display: block;
        height: 440px;
        border-radius: 24px;
        overflow: hidden;
        background: #F4F7F5;
    }

        .ficha-foto-pc img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

    /* Botones dentro de la tarjeta */
    .acciones-pc {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

        .acciones-pc .boton {
            height: 52px;
            width: 100%;
        }

    /* Galería en cuadrícula */
    .ficha .galeria {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

        .ficha .galeria img {
            width: 100%;
            height: 170px;
        }
}

/* ═══ Mapa: panel izquierdo en PC ═══ */
/* En el teléfono, el panel no existe como caja y la lista no se ve */
.mapa-panel {
    display: contents;
}

.mapa-lista {
    display: none;
}

@media (min-width: 960px) {

    .mapa-panel {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 400px;
        z-index: 1100;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 18px 16px 0;
        background: var(--fondo);
        border-right: 1px solid var(--borde);
    }

        .mapa-panel .mapa-arriba {
            position: static;
            max-width: none;
        }

        .mapa-panel .carril {
            flex-wrap: wrap;
            margin: 0;
            padding: 0;
            gap: 8px;
        }

        .mapa-panel .chip {
            height: 34px;
            padding: 0 12px;
            font-size: 13px;
            box-shadow: none;
            border-color: #CBD6CF;
        }

    .mapa-lista {
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex: 1;
        overflow-y: auto;
        padding-bottom: 16px;
    }

    .mapa-item {
        width: 100%;
        border: 2px solid transparent;
        font: inherit;
        color: inherit;
        cursor: pointer;
        text-align: left;
    }

        .mapa-item:hover {
            background: #F7FAF8;
        }

        .mapa-item.sel {
            border-color: var(--verde);
        }

    /* El mapa ocupa el resto, a la derecha del panel */
    .mapa-lienzo {
        left: 400px;
    }

    .mapa-abajo {
        left: auto;
        right: 24px;
        bottom: 24px;
        width: 380px;
    }
}

/* ═══ Inicio y Negocios en PC ═══ */
.hero-pc {
    display: none;
}

@media (min-width: 960px) {

    /* Cosas que solo se ven en el teléfono */
    .solo-movil {
        display: none !important;
    }

    /* ── Banner grande de Inicio ── */
    .hero-pc {
        display: flex;
        align-items: center;
        position: relative;
        min-height: 400px;
        padding: 48px;
        border-radius: 28px;
        overflow: hidden;
        background: linear-gradient(120deg, #2F6F55, #10231A);
        color: #fff;
    }

        .hero-pc > img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Sombra para que el texto se lea sobre cualquier foto */
        .hero-pc::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, rgba(12,30,21,.88), rgba(12,30,21,.45) 60%, rgba(12,30,21,.15));
        }

        .hero-pc .montanas {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 60%;
        }

    .hero-txt {
        position: relative;
        z-index: 1;
        max-width: 580px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

        .hero-txt h1 {
            font-size: 54px;
            line-height: 1.02;
            color: #fff;
        }

        .hero-txt p {
            margin: 0;
            font-size: 18px;
            color: #D7E9DE;
        }

        .hero-txt .buscador {
            margin-top: 6px;
        }

    .hero-botones {
        display: flex;
        gap: 10px;
    }

    /* ── Tarjetas con foto arriba (Inicio y Negocios) ── */
    .lista-fotos {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

        /* Inicio: "Para descubrir" */
        .lista-fotos .fila-lugar {
            flex-direction: column;
            align-items: stretch;
            padding: 0;
            overflow: hidden;
            gap: 0;
            transition: transform .15s, box-shadow .15s;
        }

            .lista-fotos .fila-lugar .miniatura {
                width: 100%;
                height: 180px;
                border-radius: 0;
            }

        .lista-fotos .fila-textos {
            padding: 14px 16px 16px;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        /* Negocios */
        .lista-fotos .negocio {
            flex-direction: column;
            padding: 0;
            gap: 0;
            overflow: hidden;
            transition: transform .15s, box-shadow .15s;
        }

        .lista-fotos .negocio-foto {
            width: 100%;
            height: 180px;
            border-radius: 0;
        }

            .lista-fotos .negocio-foto .estrella {
                top: 10px;
                left: 10px;
            }

        .lista-fotos .negocio-info {
            padding: 14px 16px 16px;
        }

        /* Efecto al pasar el ratón */
        .lista-fotos .fila-lugar:hover,
        .lista-fotos .negocio:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 22px rgba(16, 35, 26, .12);
        }
}

/* ═══ Explorar, Territorio, Guardados, Evento y páginas de una columna (PC) ═══ */
@media (min-width: 960px) {

    /* ── Explorar: municipios y distritos en 3 columnas ── */
    .lista:has(> .territorio) {
        grid-template-columns: repeat(3, 1fr);
    }

    .territorio {
        padding: 14px;
    }

    .territorio-color {
        width: 72px;
        height: 72px;
    }

    .parques {
        padding: 24px 28px;
    }

    /* ── Territorio: cabecera con bordes redondeados y centrada ── */
    .cabecera-territorio {
        max-width: 1240px;
        height: 260px;
        margin: 24px auto 0;
        border-radius: 24px;
    }

    /* Lugares del territorio: tarjetas de 3 en 3 */
    .lista:has(> .fila-lugar) {
        grid-template-columns: repeat(3, 1fr);
    }

    /* ── Guardados: tarjetas de 3 en 3 ── */
    .lista:has(> .guardado) {
        grid-template-columns: repeat(3, 1fr);
    }

    .guardado-foto {
        height: 190px;
    }

    .guardado {
        transition: transform .15s, box-shadow .15s;
    }

        .guardado:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 22px rgba(16, 35, 26, .12);
        }

    /* ── Página del evento ── */
    .ev-hero {
        max-width: 1240px;
        margin: 24px auto 0;
        border-radius: 24px;
        overflow: hidden;
    }

    .ev-hoja {
        max-width: 860px;
        margin: -28px auto 0;
        padding: 28px 32px 40px;
    }

    .ev-mini {
        height: 220px;
    }

    /* ── Páginas de una columna: registro, Mi negocio, restablecer ── */
    .pagina-sola {
        max-width: 680px;
        padding-top: 32px;
    }

        /* Las páginas legales, un poco más anchas para leer cómodo */
        .pagina-sola:has(.legal) {
            max-width: 800px;
        }

    /* Botón fijo "Guardar cambios" de Mi negocio, centrado */
    .acciones {
        bottom: 0;
        max-width: 680px;
        border-radius: 18px 18px 0 0;
    }

    /* ── Reseñas y Opinar: columna de lectura ── */
    .pagina:has(.resena),
    .pagina:has(.selector-estrellas) {
        max-width: 760px;
    }

    /* ── Detalles generales ── */
    .tarjeta.municipio,
    .tarjeta.evento,
    .resena-mini {
        transition: transform .15s, box-shadow .15s;
    }

        .tarjeta.municipio:hover,
        .tarjeta.evento:hover,
        .resena-mini:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 22px rgba(16, 35, 26, .12);
        }

    .boton:hover {
        filter: brightness(1.05);
    }

    .chip:hover {
        border-color: var(--verde);
    }
}

/* ═══════════ Conoce Ocoa ═══════════ */
.prov-hero {
    position: relative;
    min-height: 260px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(120deg, #2F6F55, #10231A);
    color: #fff;
    display: flex;
    align-items: flex-start;
}

    .prov-hero svg {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 45%;
        opacity: .9;
    }

.prov-hero-txt {
    position: relative;
    z-index: 1;
    padding: 24px 20px 90px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .prov-hero-txt h1 {
        font-size: 30px;
        color: #fff;
    }

    .prov-hero-txt p {
        margin: 0;
        font-size: 15px;
        line-height: 1.45;
        color: #D7E9DE;
    }

.prov-datos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

    .prov-datos .tarjeta {
        padding: 14px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .prov-datos b {
        font-family: 'Bricolage Grotesque', sans-serif;
        font-size: 24px;
        color: var(--verde);
    }

    .prov-datos span {
        font-size: 13px;
        color: var(--texto-suave);
    }

.prov-columnas, .prov-secciones {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prov-seccion {
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

    .prov-seccion h2 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .prov-seccion p {
        margin: 0;
        font-size: 15px;
        line-height: 1.5;
        color: #24382E;
    }

.prov-icono {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--verde-claro);
    display: grid;
    place-items: center;
    font-size: 22px;
}

.prov-tiempo {
    padding: 18px;
}

    .prov-tiempo h2 {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .prov-tiempo ol {
        list-style: none;
        margin: 0;
        padding: 0 0 0 18px;
        border-left: 3px solid var(--verde-claro);
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .prov-tiempo li {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

        .prov-tiempo li::before {
            content: '';
            position: absolute;
            left: -26px;
            top: 4px;
            width: 13px;
            height: 13px;
            border-radius: 50%;
            background: var(--verde);
            border: 3px solid #fff;
        }

        .prov-tiempo li b {
            color: var(--naranja);
            font-size: 14px;
        }

        .prov-tiempo li span {
            font-size: 14px;
            line-height: 1.45;
        }

.prov-enlace {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
}

@media (min-width: 960px) {
    .prov-hero {
        min-height: 340px;
    }

    .prov-hero-txt {
        padding: 48px 48px 120px;
        max-width: 760px;
    }

        .prov-hero-txt h1 {
            font-size: 50px;
        }

        .prov-hero-txt p {
            font-size: 17px;
        }

    .prov-datos {
        grid-template-columns: repeat(6, 1fr);
    }

    .prov-columnas {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
        gap: 24px;
        align-items: start;
    }

    .prov-secciones {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .prov-tiempo {
        position: sticky;
        top: 96px;
    }
}

/* ═══ Barra de PC en pantallas medianas ═══ */
@media (min-width: 960px) {
    .barra-logo, .barra-cta, .barra-link {
        white-space: nowrap;
    }
}

@media (min-width: 960px) and (max-width: 1180px) {
    .barra-pc-in {
        gap: 14px;
        padding: 0 20px;
    }

    .barra-nav {
        margin-left: 0;
        gap: 2px;
    }

    .barra-link {
        padding: 8px 10px;
        font-size: 14px;
    }

        .barra-link svg {
            display: none;
        }
    /* sin íconos para que quepa todo */
    .barra-cta {
        padding: 0 14px;
    }
}

/* Historia del territorio */
.historia-territorio {
    padding: 18px 20px;
    margin-top: 6px
}

    .historia-territorio h2 {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 19px;
        margin: 0 0 10px
    }

        .historia-territorio h2 span {
            width: 38px;
            height: 38px;
            border-radius: 12px;
            background: var(--verde-claro,#DCEDE3);
            display: grid;
            place-items: center;
            font-size: 18px
        }

    .historia-territorio p {
        margin: 0 0 10px;
        font-size: 15px;
        line-height: 1.6;
        color: #24382E
    }

        .historia-territorio p:last-child {
            margin-bottom: 0
        }

/* Territorio en PC: una sola columna, lugares en cuadrícula */
@media (min-width: 960px) {
    .ficha.ficha-territorio {
        display: flex;
        flex-direction: column;
        gap: 18px;
        grid-template-columns: none;
    }

    .ficha-territorio > * {
        grid-column: auto;
        order: 0;
    }

    .ficha-territorio .historia-territorio {
        max-width: 880px;
        padding: 22px 26px;
    }

        .ficha-territorio .historia-territorio p {
            font-size: 16px;
        }

    .ficha-territorio .titulo-seccion {
        margin-top: 10px;
    }

    .ficha-territorio .lista {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
        gap: 14px;
    }

    .ficha-territorio .fila-lugar {
        min-width: 0;
    }
}

/* Turismo y rutas (Conoce Ocoa) */
.prov-turismo {
    display: grid;
    gap: 12px
}

@media (min-width:700px) {
    .prov-turismo {
        grid-template-columns: repeat(2,1fr)
    }
}

@media (min-width:1100px) {
    .prov-turismo {
        grid-template-columns: repeat(3,1fr)
    }
}

/* Foto en la cabecera del territorio */
.cabecera-territorio {
    position: relative;
    overflow: hidden
}

.territorio-foto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.cabecera-territorio .volver {
    z-index: 2
}

/* Miniatura con foto en las tarjetas de municipios y distritos */
.territorio-color.con-foto {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    align-self: center
}

    .territorio-color.con-foto img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover
    }

/* Foto o color de cada municipio en Inicio */
.municipio-foto {
    height: 64px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    flex: none
}

    .municipio-foto img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover
    }

/* Foto en las tarjetas de territorio (Explorar) */
.territorio-color {
    position: relative;
    overflow: hidden
}

    .territorio-color img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover
    }

/* ═══ Anúnciate ═══ */
.an-pagina {
    gap: 22px
}

.an-hero {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(160deg,#10231A,#1D6B4A);
    color: #fff;
    min-height: 300px
}

    .an-hero svg {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 45%
    }

.an-hero-txt {
    position: relative;
    padding: 32px 24px 90px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 640px
}

.an-hero h1 {
    font-size: 32px;
    line-height: 1.1;
    color: #fff
}

.an-hero p {
    margin: 0;
    color: #D7E9DE;
    font-size: 16px;
    line-height: 1.5
}

.an-hero .boton {
    align-self: flex-start
}

.an-porque {
    display: grid;
    gap: 12px
}

    .an-porque .tarjeta {
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 4px
    }

    .an-porque span {
        font-size: 26px
    }

    .an-porque b {
        font-size: 16px
    }

    .an-porque small {
        color: var(--suave);
        font-size: 14px;
        line-height: 1.4
    }

.an-planes {
    display: grid;
    gap: 14px
}

.an-plan {
    position: relative;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

    .an-plan ul {
        margin: 4px 0 8px;
        padding-left: 20px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 15px;
        line-height: 1.4;
        flex: 1
    }

    .an-plan .boton {
        align-self: stretch;
        text-align: center
    }

.an-nombre {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--naranja)
}

.an-precio {
    font-family: "Bricolage Grotesque",sans-serif;
    font-weight: 800;
    font-size: 28px
}

.an-recomendado {
    outline: 2.5px solid var(--verde)
}

.an-cinta {
    position: absolute;
    top: -12px;
    right: 18px;
    background: var(--verde);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 12px
}

.an-pasos {
    margin: 0;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px
}

    .an-pasos li {
        display: flex;
        flex-direction: column;
        gap: 2px;
        font-size: 15px
    }

    .an-pasos span {
        color: var(--suave)
    }

.an-final {
    border-radius: 24px;
    background: var(--verde);
    color: #fff;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center
}

    .an-final h2 {
        color: #fff;
        font-size: 24px
    }

.an-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center
}

@media (min-width:960px) {
    .an-hero-txt {
        padding: 56px 48px 120px
    }

    .an-hero h1 {
        font-size: 46px
    }

    .an-porque {
        grid-template-columns: repeat(3,1fr)
    }

    .an-planes {
        grid-template-columns: repeat(3,1fr);
        align-items: stretch
    }
}
/* Enlace a los planes en Próximamente (claro, sobre la tarjeta verde) */
.tarjeta-negocio .enlace-planes {
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
    font-size: 15px;
    color: #F2D3A6;
    text-decoration: underline;
    text-underline-offset: 4px
}

    .tarjeta-negocio .enlace-planes:hover {
        color: #fff
    }