/* Contenedor principal - ahora con Grid */
.contenedor {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Mantiene la proporción 2:1 */
    gap: 20px;
    max-width: 1200px;
    padding: 6rem 0 6rem 0;
}

/* Sección principal de la propiedad */
.detalle-propiedad {
    background: #f5f7fb;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    grid-column: 1; /* Ocupa la primera columna */
}

/* Barra lateral */
.barra-lateral {
    display: flex;
    flex-direction: column;
    gap: 20px;
    grid-column: 2;
    margin-top: -30%;
}

.detalle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Cambiado a flex-start */
    width: 100%;
}

/* Responsive - igual que en tu versión original */
@media (max-width: 990px) {
    .contenedor {
        grid-template-columns: 1fr; /* Una sola columna */
    }

    .detalle-propiedad, .barra-lateral {
        grid-column: 1; /* Ambos ocupan la columna única */
    }
    .barra-lateral{
        margin: 0;
    }
}


.titulo-info h1 {
    font-size: 29px;
    color: #333;
    font-weight: bold;
    line-height: 1.3;
    margin: 0;
    margin-left: 30px;
    text-align: left;
    max-width: 90%;
}

.titulo-info h1 span {
    color: rgb(50, 140, 123);
    font-size: 22px;
}

.tipo-operacion {
    font-size: 25px;
    margin: 0 0 5px 0;
    color: #333;
    font-weight: bold;
    color: #fff;
    background: rgb(50, 140, 123);
    padding: 5px 10px;
    border-radius: 50px;
    text-align: center;
    margin-left: 30px;
    font-size: 15px;
    width: 40%;
}

.tipo-operacion-vendida {
    font-size: 25px;
    margin: 0 0 5px 0;
    color: #333;
    font-weight: bold;
    color: #fff;
    background:#b92a2adf !important;
    padding: 5px 10px;
    border-radius: 50px;
    text-align: center;
    margin-left: 30px;
    font-size: 15px;
    width: 40%;
}
.precio-section {
    text-align: right;
    font-size: 24px;
    font-family: "Montserrat", sans-serif;
    font-weight:300;
}
.precio-moneda {
    margin: 0;
    color: rgb(50, 140, 123);
}
.precio-valor {
    margin: 0;
    color: rgb(50, 140, 123);
}
.tipo-propiedad {
    font-size: 16px;
    color: #555;
    text-align: right;
}

.estado-propiedad {
    background: rgb(50, 140, 123);
    color: white;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 14px;
    display: inline-block;
    margin-top: 5px;
}

/* Precio */

/* Galería */
.galeria-propiedad h2 {
    font-size: 18px;
    margin-top: 20px;
}
.slider-galeria {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.slider-galeria img {
    max-width: 800px;
    height: auto;
    width: 100%;
    border-radius: 5px;
    transition: opacity 0.5s ease-in-out;
    margin-top: 17px;
}

.slider-galeria button {
    position: absolute;
    background: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 9px;
}
.slider-galeria .anterior {
    left: 10px;
}
.slider-galeria .siguiente {
    right: 10px;
}

/* Descripción */
.descripcion-propiedad {
    margin-top: 20px;
    text-align: left;
}
.descripcion-propiedad h2 {
    font-size: 18px;
    margin-bottom: 10px;
}
.descripcion-propiedad p {
    color: #666;
}

/* Detalles de la propiedad */
.detalles-propiedad {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}
.detalles-propiedad h2 {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: left;
}
.detalles-propiedad ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.detalles-propiedad li {
    margin-bottom: 5px;
    color: #444;
    text-align: left; /* Alineación a la izquierda */
}
.detalles-propiedad strong {
    color: #333;
}

/* Información del agente */
.info-agente {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}
.info-agente h3 {
    font-size: 19px;
    margin-bottom: 10px;
}
.info-agente p {
    font-size: 17px;
    margin-bottom: 5px;
}

/* Propiedades recientes */
.propiedades-recientes {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}
.propiedades-recientes h3 {
    font-size: 16px;
    margin-bottom: 10px;
}
.propiedades-recientes ul {
    list-style: none;
    padding: 0;
}
.propiedades-recientes li {
    font-size: 14px;
    margin-bottom: 5px;
}
.propiedades-recientes a {
    color: rgb(50, 140, 123);
    text-decoration: none;
}
@media (max-width: 650px) {
    .contenedor {
        flex-direction: column;
    }
    .seccion-principal {
        order: 1;
        width: 100%;
    }

    .titulo-info h1 {
        font-size: 27px;
    }

    .precio-section{
        font-size: 20px;
    }
}

@media (max-width: 550px) {
    .titulo-info h1 {
        font-size: 24px;
    }
    .precio-section {
        font-size: 17px;
        text-align: left;
        margin-top: 2rem;
        font-weight: bold;
        margin-left: 30px;
    }
    .tipo-propiedad {
        font-size: 16px;
        color: #555;
        font-weight: bold;
        text-align: left;
    }
    .detalle-header{
        display: block;
    }

}
.hr-blur {
    border: 0;
    height: 1px;
    background: #09090921;
    box-shadow: 0 1px 8px rgba(32, 31, 31, 0.09);
    margin: 20px 0;
}

.contact-link {
    display: flex;
    align-items: center;
    padding: 3px 5px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.contact-link.whatsapp {
    color: #353535;
}

.contact-link.email {
    color: #353535;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-link i {
    font-size: 18px;
    margin-right: 5px;
    color: rgb(50, 140, 123);
}

.contact-link.whatsapp i {
    font-size: 20px;
    color: rgb(50, 140, 123);
}
.texto-agente {
    font-family: "Lato", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
}
/* LINKS PORTALES */
.portales-publicados {
margin-top: 2rem;
text-align: left;
background: #fff;
border-radius: 12px;
padding: 1rem;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.portales-publicados h4 {
margin-bottom: 1.2rem;
font-size: 1.2rem;
font-weight: 600;
color: #222;
border-bottom: 2px solid #ddd;
padding-bottom: 0.5rem;
}

.portales-iconos {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
gap: 16px;
padding: 0.5rem;
}

.portales-iconos a,
.portales-iconos button {
display: inline-flex;
align-items: center;
justify-content: center;
background: #f7f7f7;
border: 0px solid #ccc;
border-radius: 12px;
padding: 10px;
width: 60px;
height: 60px;
transition: all 0.3s ease-in-out;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
cursor: pointer;
}

.portales-iconos a:hover,
.portales-iconos button:hover {
transform: scale(1.08);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.portales-iconos a:focus,
.portales-iconos button:focus {
outline: 2px solid rgb(50, 140, 123);
outline-offset: 4px;
}

.portales-iconos img {
width: 50px;
height: 50px;
object-fit: contain;
border-radius: 12px;
}

/* Opcional: para modal backdrop si lo usas */
.modal-backdrop {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}

.modal-content {
background: #fff;
padding: 2rem;
border-radius: 16px;
max-width: 500px;
width: 90%;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.modal-links {
list-style: none;
padding: 0;
margin-top: 1rem;
}

.modal-links li {
margin-bottom: 0.5rem;
}

.modal-links a {
color: rgb(50, 140, 123);
text-decoration: none;
font-weight: 500;
}
.boton-cerrar {
    margin-top: 1.5rem;
    background-color: rgb(50, 140, 123);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.boton-cerrar:hover {
background-color: rgb(50, 140, 123);
transform: scale(1.05);
}

