.room {
    fill: rgba(62, 216, 0, 0.4);
    fill-opacity: 1;
    stroke: #e9e9e9;
    stroke-width: 2px;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-opacity: 0.75;
    cursor: pointer;
}
.room:hover {
    fill: rgba(62, 216, 0, 0.9);
    fill-opacity: 1;
    stroke: #e9e9e938;
    stroke-width: 2px;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-opacity: 0.75;
    cursor: pointer;
}
.vendido {
    fill: rgba(255, 0, 0, 0.6) !important;
}

.room-emerald {
    fill: rgba(53, 145, 92, 0.4);
    fill-opacity: 1;
    stroke: #35915c38;
    stroke-width: 2px;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-opacity: 0.75;
    cursor: pointer;
}
.room-emerald:hover {
    fill: rgba(53, 145, 92, 0.8);
    fill-opacity: 1;
    stroke: #35915c38;
    stroke-width: 2px;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-opacity: 0.75;
    cursor: pointer;
}
.room-basil {
    fill: rgba(100, 118, 43, 0.4);
    fill-opacity: 1;
    stroke: #64762b38;
    stroke-width: 2px;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-opacity: 0.75;
    cursor: pointer;
}
.room-basil:hover {
    fill: rgba(100, 118, 43, 0.8);
    fill-opacity: 1;
    stroke: #64762b38;
    stroke-width: 2px;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-opacity: 0.75;
    cursor: pointer;
}
.room-moss {
    fill: rgba(144, 116, 87, 0.4);
    fill-opacity: 1;
    stroke: #90a65738;
    stroke-width: 2px;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-opacity: 0.75;
    cursor: pointer;
}
.room-moss:hover {
    fill: rgba(144, 116, 87, 0.8);
    fill-opacity: 1;
    stroke: #90a65738;
    stroke-width: 2px;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-opacity: 0.75;
    cursor: pointer;
}
.room-olive {
    fill: rgba(164, 200, 82, 0.4);
    fill-opacity: 1;
    stroke: #a4c85238;
    stroke-width: 2px;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-opacity: 0.75;
    cursor: pointer;
}
.room-olive:hover {
    fill: rgba(164, 200, 82, 0.8);
    fill-opacity: 1;
    stroke: #a4c85238;
    stroke-width: 2px;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-opacity: 0.75;
    cursor: pointer;
}
.room-fern {
    fill: rgba(89, 122, 104, 0.4);
    fill-opacity: 1;
    stroke: #597a6838;
    stroke-width: 2px;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-opacity: 0.75;
    cursor: pointer;
}
.room-fern:hover {
    fill: rgba(89, 122, 104, 0.8);
    fill-opacity: 1;
    stroke: #597a6838;
    stroke-width: 2px;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-opacity: 0.75;
    cursor: pointer;
}

.formulario-modal {
    z-index: 99991 !important;
}
.modal-chepina {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(40, 66, 55, 0.8);
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: all 0.35s ease-in;
    z-index: 8;
    padding: 20px;
}
.modal-content-2 {
    background-color: var(--primary);
}
.modal.is-visible {
    visibility: visible;
    opacity: 1;
}
.modal-dialog-2 {
    position: relative;
    max-width: 800px;
    max-height: 80vh;
    border-radius: 5px;
    background: var(--primary);
    cursor: default;
    border: 1px solid var(--primary);
}
.modal-dialog-2 > * {
    padding: 0px;
}
.qtip-inner {
    padding: 30px;
    background-color: rgba(255, 255, 255, .3);
}

/* MODIFICACIÓN: padding del qtip-inner para el nuevo layout */
.modal2 .qtip-inner {
    padding: 0px; /* Se elimina el padding original para usar el de .modal-content-wrapper */
}

.modal2 .modal-content {
    background-color: white;
}
.modal2 table,
.modal2 table th,
.modal2 table td {
    border: 1px solid #e6e6e6;
}

.modal p + p {
    margin-top: 1rem;
}
/* ANIMATIONS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
[data-animation] .modal-dialog {
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.51, 0.92, 0.24, 1.15);
}
[data-animation].is-visible .modal-dialog {
    opacity: 1;
    transition-delay: 0.2s;
}
[data-animation="slideInOutDown"] .modal-dialog {
    transform: translateY(100%);
}
[data-animation="slideInOutTop"] .modal-dialog {
    transform: translateY(-100%);
}
[data-animation="slideInOutLeft"] .modal-dialog {
    transform: translateX(-100%);
}
[data-animation="slideInOutRight"] .modal-dialog {
    transform: translateX(100%);
}
[data-animation="zoomInOut"] .modal-dialog {
    transform: scale(0.2);
}
[data-animation="rotateInOutDown"] .modal-dialog {
    transform-origin: top left;
    transform: rotate(-1turn);
}
[data-animation="mixInAnimations"].is-visible .modal-dialog {
    animation: mixInAnimations 2s 0.2s linear forwards;
}
[data-animation="slideInOutDown"].is-visible .modal-dialog,
[data-animation="slideInOutTop"].is-visible .modal-dialog,
[data-animation="slideInOutLeft"].is-visible .modal-dialog,
[data-animation="slideInOutRight"].is-visible .modal-dialog,
[data-animation="zoomInOut"].is-visible .modal-dialog,
[data-animation="rotateInOutDown"].is-visible .modal-dialog {
    transform: none;
}
@keyframes mixInAnimations {
    0% {
        transform: translateX(-100%);
    }
    10% {
        transform: translateX(0);
    }
    20% {
        transform: rotate(20deg);
    }
    30% {
        transform: rotate(-20deg);
    }
    40% {
        transform: rotate(15deg);
    }
    50% {
        transform: rotate(-15deg);
    }
    60% {
        transform: rotate(10deg);
    }
    70% {
        transform: rotate(-10deg);
    }
    80% {
        transform: rotate(5deg);
    }
    90% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

h3.oft {
    font-size: 1.2rem;
    color: white;
    padding: 0.2rem 0.9rem;
    font-weight: bold;
    line-height: 1.6rem;
    margin: 0;
    text-align: center;
}

.albare {
    background-color: #b9c688;
}

.green {
    background-color: #284237;
}

.balea {
    background-color: #9ebef2;
}

.oxygen {
    background-color: #6883a6;
    color: white !important;
}

.dorada {
    background-color: #ffedd7;
    color: black !important;
}

.zaguan {
    background-color: #F5F5DC;
    color: black !important;
}

.punta_miel {
    background-color: #003f55;
    color: white !important;
}

.qtip-content {
    padding: 0;
}
#mostrar table,
#mostrar select {
    padding: 0;
    text-align: center;
    font-size: 14px;
    /* ELIMINADO/SOBREESCRITO: width: 500px; - Ahora manejado por flexbox */
    margin: 0px;
}
#mostrar th {
    padding: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 300;
}
#mostrar td {
    padding: 0;
    text-align: center;
    font-size: 14px;
}

/* NUEVAS CLASES PARA EL LAYOUT FLEXBOX */
.modal-content-wrapper {
    display: flex; /* Habilita flexbox */
    justify-content: space-between; /* Espacio entre los elementos (tabla y imagen) */
    /* MODIFICACIÓN CRÍTICA: Centra verticalmente los elementos */
    align-items: center; /* ALINEAR VERTICALMENTE AL CENTRO */
    flex-wrap: wrap; /* Permite que los elementos salten a la siguiente línea en pantallas pequeñas */
    padding: 15px; /* Un poco de padding dentro del qtip-inner */
    max-height: calc(90vh - 50px); /* Ajusta la altura máxima para que el botón "Cotizar" quede visible, resta el alto de h3.oft y padding/margen adicionales */
    overflow-y: auto; /* Agrega scroll si el contenido es demasiado alto */
}

.table-container {
    flex: 1; /* Permite que la tabla ocupe el espacio disponible */
    min-width: 250px; /* Ancho mínimo para la tabla en pantallas grandes */
    max-width: 50%; /* La tabla no ocupará más del 50% del ancho disponible */
    box-sizing: border-box; /* Incluye padding y border en el ancho */
    padding-right: 15px; /* Espacio entre la tabla y la imagen */
}

.plan-image-container {
    flex: 1; /* Permite que la imagen ocupe el espacio disponible */
    min-width: 250px; /* Ancho mínimo para la imagen en pantallas grandes */
    max-width: 50%; /* La imagen no ocupará más del 50% del ancho disponible */
    display: flex; /* Para centrar la imagen dentro de su contenedor (si la imagen es más pequeña que el contenedor) */
    justify-content: center; /* Centra horizontalmente la imagen (si la imagen es más pequeña que el contenedor) */
    align-items: center; /* Centra verticalmente la imagen dentro de su propio contenedor */
    box-sizing: border-box;
    padding-left: 15px; /* Espacio entre la imagen y la tabla */
}

.department-plan-img {
    max-width: 100%; /* La imagen se ajustará al ancho de su contenedor */
    height: auto; /* Mantiene la proporción de la imagen */
    display: block; /* Elimina espacio extra debajo de la imagen */
    border-radius: 5px; /* Bordes ligeramente redondeados para la imagen */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sutil sombra */
}


/* MODIFICACIÓN DEL ANCHO DEL MODAL */
.modal2 .modal-dialog {
    max-width: 800px; /* Aumenta el ancho máximo para la tabla y la imagen */
    max-height: 90vh; /* Ajusta la altura máxima si es necesario */
    width: 90%; /* Ancho responsivo */
}

@media (max-width: 769px) {
    /* MODIFICACIONES PARA DISPOSITIVOS MÓVILES */
    #mostrar table,
    #mostrar select {
        padding: 0;
        text-align: center;
        font-size: 14px; /* Un poco más legible que 12px si hay espacio */
        width: 100% !important; /* Asegura que la tabla se ajuste al nuevo contenedor */
        margin: 0px;
    }
    #mostrar th,
    #mostrar td {
        font-size: 14px; /* Ajusta el tamaño de fuente para legibilidad */
    }
    .modal-dialog {
        max-width: 100%;
        max-height: 70vh;
    }

    /* MEDIA QUERY PARA EL NUEVO LAYOUT FLEXBOX EN MÓVILES */
    .modal-content-wrapper {
        flex-direction: column; /* Apila los elementos verticalmente en móviles */
        align-items: center; /* Centra los elementos apilados */
        padding: 10px; /* Ajusta padding para móviles */
    }

    .table-container,
    .plan-image-container {
        max-width: 100%; /* Cada elemento ocupa todo el ancho disponible */
        min-width: unset; /* Quita el min-width para móviles si no es necesario */
        padding-right: 0;
        padding-left: 0;
        margin-bottom: 15px; /* Espacio entre la tabla y la imagen cuando están apilados */
    }

    .modal2 .modal-dialog {
        max-width: 95%; /* Ajusta el ancho del modal para móviles */
    }
}


/* SECCIONES COMENTADAS ORIGINALMENTE */
/**
@media print, screen and (min-width: 40em){
.qtip-content{
width:200px;
}
}
.qtip-content .qtip-inner{
background:#fefefe;
color:#1d1d1b;
padding:0;
}
.qtip-content .qtip-inner table{
margin-bottom:0;
}
.qtip-content .qtip-inner table tbody th,.qtip-content .qtip-inner table tbody td{
padding:0;
}
.qtip-content .qtip-inner .septh{
background:#d5daeb;
}
.qtip-content .qtip-inner .septh.vendido{
background:#ffbcbf;
}
.qtip-content .qtip-inner .septh.apartado{
background:#fff5d0;
}
h3.oft.vendido{
background:#b11a42;
}
h3.oft.apartado{
background:#e6b341;
}
.map-cotizador{
position: relative; left: 19%;
width:60%;
}
.map-cotizador-arm{
position: relative; left: 27%;
width:42%;
}
.map-cabo-norte{
position: relative; left: 18%;
width:62%;
}
.map-altea{
position: relative;
width:100%;
}
.responsive-div{
width:400px;
}
@media (max-width:769px) {
.map-cotizador{
position: relative; left:0;
width:100%;
}
.map-cotizador-arm{
position: relative; left: 0;
width:100%;
}
.map-cabo-norte{
position: relative; left: 0;
width:100%;
}
.map-green{
position: relative; left: 0;
width:100%;
}
.responsive-div{
width:90%;
}
}
*/

#tabla1 {
    width: 100%;
    table-layout: fixed;
    padding: 1px 3px;
    border: 2px solid black;
    border-top-left-radius: 7px;
    border-bottom-right-radius: 7px;
}
#tabla1 th#fecha {
    text-align: right;
    padding: 0px;
}
#tabla1 th,
td {
    padding: 0px;
}
#t01 {
    width: 100%;
}
#t01 th {
    text-align: center;
    padding: 0px;
    /*
    color: white;
    border: 3px solid #E6007C;
    background-color: black;*/
}
#t01 td {
    text-align: center;
    padding: 0px;
    /*border: 2px solid black;*/
}
#t01 tr#ultimafila {
    text-align: center;
    /*border-bottom: 3px solid white;
    border-left: 3px solid white;
    */
}
/**table, td, th {
border: 0px solid rgba(0,0,0,0);
}**/
.elementor-21187 .elementor-element.elementor-element-ff85856 .eael-contact-form {
    padding: 20px;
}
.contenido-oculto1 {
    display: none;
}
.contenido-oculto2 {
    display: none;
}

.no-disponible {
    fill: rgba(64, 64, 64, 0.4);
    fill-opacity: 1;
    stroke: #e9e9e9;
    stroke-width: 2px;
    stroke-linecap: butt;
    stroke-linejoin: miter;
    stroke-opacity: 0.75;
    cursor: pointer;
}
.no-disponible:hover {
    fill: rgba(64, 64, 64, 0.6);
}
.vendido {
    fill: rgba(255, 0, 0, 0.6) !important;
}
.apartado {
    fill: rgba(255, 170, 0, 0.6) !important;
}
.modal2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transition: all 0.35s ease-in;
    z-index: 10;
    padding: 20px;
}
.modal2.is-visible {
    visibility: visible;
    opacity: 1;
}

.btn-map {
    margin-top: 1rem;
    display: inline-block !important;
    width: 150px !important;
    color: white !important;
    padding: 5px !important;
    margin-bottom: 5px !important;
    border: 2px solid var(--primary) !important;
    border-radius: 5px !important;
}

.btn-map2 {
    margin-top: 1rem;
    display: inline-block !important;
    width: 150px !important;
    color: black !important;
    padding: 5px !important;
    margin-bottom: 5px !important;
    border: 2px solid var(--primary) !important;
    border-radius: 5px !important;
}

#nivel-atras,
#masterplan {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.65, 0, 0.35, 1);
}