#rm-ce-edificio {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.rm-ce-fachadas {
    position: relative;
    width: 100%;
    height: 100%;
}
.rm-ce-fachada {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    /* Desenfoca los 4 bordes de la foto para que se funda con el fondo de
       la seccion, en vez del corte recto de rectangulo -- dos gradientes
       (horizontal + vertical) superpuestos con "intersect" dejan opacos
       solo el centro, y transparentes las 4 orillas a la vez. */
    -webkit-mask-image:
        linear-gradient(to right, transparent, #000 6%, #000 94%, transparent),
        linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent, #000 6%, #000 94%, transparent),
        linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
    mask-composite: intersect;
}
.rm-ce-fachada.active {
    opacity: 1;
}
#rm-ce-edificio .rm-ce-hotspot,
#rm-ce-planta-viewer .rm-ce-hotspot {
    position: absolute;
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(139, 90, 43, 0.85);
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    -webkit-touch-callout: none;
    user-select: none;
    z-index: 2;
}
#rm-ce-edificio .rm-ce-hotspot:hover,
#rm-ce-edificio .rm-ce-hotspot:focus,
#rm-ce-planta-viewer .rm-ce-hotspot:hover,
#rm-ce-planta-viewer .rm-ce-hotspot:focus {
    background: rgba(139, 90, 43, 0.85);
    text-decoration: none;
}
/* Misma especificidad que la regla :hover/:focus de arriba: esta va
   despues en el CSS a proposito, para ganar el empate y no perder el
   fondo transparente del icono al pasar el raton. No reordenar. */
#rm-ce-edificio .rm-ce-hotspot.rm-ce-hotspot-icono,
#rm-ce-planta-viewer .rm-ce-hotspot.rm-ce-hotspot-icono {
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
    border-radius: 0;
}
.rm-ce-mini-ficha {
    position: absolute;
    transform: translate(-50%, -110%);
    pointer-events: none;
    z-index: 3;
}
.rm-ce-mini-ficha.rm-ce-mini-ficha-abajo {
    transform: translate(-50%, 10%);
}
.rm-ce-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}
.rm-ce-arrow-prev { left: 12px; }
.rm-ce-arrow-next { right: 12px; }

.rm-ce-fachada-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.rm-ce-fachada-tab {
    padding: 8px 18px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 0.85em;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 4px;
}
.rm-ce-fachada-tab.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

#rm-ce-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.rm-ce-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}
.rm-ce-modal-content {
    position: relative;
    background: #fff;
    max-width: 720px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    border-radius: 8px;
}
.rm-ce-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}
.rm-ce-ficha-nota-imagenes {
    margin: 6px 0 0;
    font-size: 11px;
    color: #8a94a0;
    font-style: italic;
    text-align: right;
}

.rm-ce-tarjeta {
    width: 320px;
    max-width: 320px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.rm-ce-tarjeta-plano {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #f5f5f5;
}
.rm-ce-tarjeta-info {
    padding: 8px 12px;
}
.rm-ce-tarjeta-nombre {
    margin: 0 0 4px;
    font-weight: 700;
}
.rm-ce-tarjeta-datos {
    margin: 0;
    font-size: 0.85em;
    color: #555;
}
.rm-ce-badge {
    display: inline-block;
    margin: 8px 8px 0;
    padding: 2px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.75em;
    font-weight: 600;
}
.rm-ce-estado-disponible { background: #2e7d32; }
.rm-ce-estado-reservado { background: #f39c12; }
.rm-ce-estado-vendido { background: #7f8c8d; }

#rm-ce-planta-viewer {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.rm-ce-planta-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.rm-ce-planta-tab {
    padding: 8px 16px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}
.rm-ce-planta-tab.active {
    background: #333;
    color: #fff;
    border-color: #333;
}
.rm-ce-planta-imagenes {
    position: relative;
}
.rm-ce-planta-imagen {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.rm-ce-planta-imagen.active {
    position: relative;
    opacity: 1;
}
