
/* Contenedor principal */
.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Video de fondo */
.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
}

/* Imagen de respaldo */
.video-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Oculta la imagen por defecto */
}

/* Si el video no se carga, muestra la imagen */
.video-container video:invalid + img {
    display: block;
}

/* Contenido adicional */
.banner {
    position: fixed;
    padding: 20px;
    background: #f4f4f4;
    text-align: center;
}

.banner h1 {
    margin: 0;
    padding: 20px;
    font-size: 2em;
}

.villa {
    position: relative;
    padding: 20px;
    background: #1B263B;
    text-align: center;
    color: white;
}

.villa div {
    display: flex;
    justify-content: center;
}

.villa p {
    width: 500px;
}


.ofertas {
    position: relative;
    padding: 20px;
    background: #E0E1DD;
    text-align: center;
}

.ofertas .t {
    display: flex;
    justify-content: center;
}

.ofertas .t div {
    background: #415a777c;
    margin: 30px;
    width: 200px;
    box-shadow: 0 5px 5px #000;
    padding: 10px;
}


.virtudes {
    padding: 20px;
    background: #415A77;
}

.virtudes h2 {
    width: 100%;
    text-align: center;
}

.virtudes .t {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.card {
    position: relative;
    width: 300px;
    height: 350px;
    margin: 50px;
}

.card .face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    overflow: hidden;
    transition: .5s;
}

.card .front {
    transform: perspective(600px) rotateY(0deg);
    box-shadow: 0 5px 10px #000;
}

.card .front img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .front h3 {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45px;
    line-height: 45px;
    color: #fff;
    background: rgba(0,0,0,.4);
    text-align: center;
}

.card .back {
    transform: perspective(600px) rotateY(180deg);
    background: rgb(3, 35, 54);
    padding: 15px;
    color: #f3f3f3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-shadow: 0 5px 10px #000;
}

.card .back h3 {
    font-size: 30px;
    margin-top: 20px;
    letter-spacing: 2px;
}

.card .back p {
    letter-spacing: 1px;
} 

.card:hover .front {
    transform: perspective(600px) rotateY(180deg);
}

.card:hover .back {
    transform: perspective(600px) rotateY(360deg);
}


.estancia {
    position: relative;
    padding: 20px;
    background: #E0E1DD;
    text-align: center;
}

.estancia .t {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.estancia .t div {
    background: #415a777c;
    padding: 10px;
    margin: 20px;
    width: 200px;
    height: 150px;
    box-shadow: 0 5px 5px #000;
}
