/* Titulares */
main{
    min-height: 30vh;
}
.h2 {
    color: #222;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.subtitulo-seccion {
    color: var(--gris);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.link-volver{
    height: 1rem;
    font-size: 1rem;
}

/* Contenedor principal */
.container-inmueble {
    padding: 2.5rem 1rem 4rem;
    z-index: 20;
}
.card-inmueble {
    display: flex;
    gap: 2rem;
    background: var(--blanco);
    padding: 2rem;
    padding-top: 1rem;
    border-radius: 1.2rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}
.card-media {
    min-width: 320px;
    border-radius: 1rem;
    overflow: hidden;
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card-media img:hover {
    transform: scale(1.05);
}
.card-body-prop {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Características */
.lista-caracteristicas {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.lista-caracteristicas li {
    color: var(--gris);
    font-size: 1rem;
    line-height: 1.5;
}

/* Galería */

.galeria a {
    display: block;
    width: 100%;
    height: 100%;
}

.galeria a img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 0.6rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.galeria img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Sección detalle */
.seccion-detalle {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--gris-light);
    border-radius: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 0.6rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.001);
}
.btn-primary {
    background: var(--gris);
    color: #fff;
}
.btn-primary:hover {
    background: var(--gris-light);
    color: var(--gris);
    border: 2px solid rgba(0, 0, 0, 0.001);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--gris);
    color: var(--gris);
}
.btn-outline:hover {
    background: var(--gris);
    color: #fff;
}

/* Tarjetas destacadas */
.tarjeta-solucion {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.tarjeta-solucion:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.icono-solucion {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}
.titulo-solucion {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.texto-solucion {
    font-size: 0.95rem;
    color: var(--gris);
}

/* Galeria carrusel */
.imagen-inmueble{
    border: 1px solid var(--gris-light);
    cursor: pointer;
    height: 550px;
}
.img-galeria-wrapper {
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid var(--gris-light);
}

.img-galeria-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* VIDEO */

.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    display: block;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mapa-propiedad{
    width: 100%;
    height: 300px;
    border-radius: 1rem;
    overflow: hidden;
}

.mapa-propiedad iframe{
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Video */
.video-propiedad{
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    overflow: hidden;
}

.video-propiedad video{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}

.btn-play{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    padding: 0;
     transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.btn-play i{
    aspect-ratio: 1/1;
}

.btn-play:hover{
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .card-inmueble {
        flex-direction: column;
        padding: 1.5rem;
    }
}
@media (max-width: 576px) {
    .h2 {
        font-size: 1.8rem;
    }
    .galeria img {
        height: 110px;
    }
    .seccion-detalle {
        padding: 1.5rem;
    }
}
