@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: #111;
    color: #cba462;
    overflow-x: hidden;
}

/* ------------------- Preloader ------------------- */
#preloader {
    position: fixed;
    background-color: #111;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 580px;
    opacity: 0;
    animation: logo-fade-in 1.5s ease-in-out forwards, logo-fade-out 1s ease-in-out 2.5s forwards;
}

@keyframes logo-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logo-fade-out {
    to {
        opacity: 0;
        transform: scale(1.02);
    }
}

/* ------------------- Main Content Fade ------------------- */
#main-content {
    /*margin-left: 250px;*/
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out;
}

#main-content.visible {
    opacity: 1;
    visibility: visible;
}

/* ------------------- Navbar fijo con logo ------------------- */
#navbar {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    position: fixed;
    top: 0;
    left: 80px;
    width: 160px;
    height: 100vh;
    background-color: transparent;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 999;
    transition: opacity 0.6s ease;
}

#navbar.hidden {
    opacity: 0;
    pointer-events: none;
}

.nav-logo {
    width: 300px;
    height: auto;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

/* ------------------- Enlaces del nav ------------------- */
.nav-links {
    margin-right: 110px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
}

.nav-links a {
    text-decoration: none;
    color: #cba462;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
    transform: scale(1.05);
}

/* ------------------- Video Section ------------------- */
.video-wrapper {
    display: flex;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    /* espacio superior para no tapar con el nav */
}

.video-card {
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    border: 2px solid #cba462;
    border-radius: 12px;
    overflow: hidden;
    background-color: #0a0f1a;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: scale(1.01);
    box-shadow:
        0 0 20px #cba462,
        /* brillo suave dorado */
        0 15px 25px rgba(0, 0, 0, 0.5);
    /* sombra normal */
    border-color: #e4b972;
    /* tono más claro de dorado */
}

/* ------------------- Formulario ------------------- */
.villa-form {
    max-width: 600px;
    margin: 0 auto;
    margin-top: 100px;
    background-color: #1e1e1e;
    color: rgb(210, 210, 210);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #cba462;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    font-family: 'Arial', sans-serif;
}

.villa-form h2 {
    margin-bottom: 1rem;
    color: #cba462;
    font-weight: bold;
    text-align: center;
}

.villa-form label {
    display: block;
    margin-top: 1.5rem;
    font-weight: bold;
    color: rgb(210, 210, 210);
}

.villa-form input,
.villa-form select,
.villa-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    margin-top: 0.25rem;
    background-color: #31302e;
    color: rgb(210, 210, 210);
    font-size: 1rem;
    resize: vertical;
}

.villa-form textarea {
    min-height: 120px;
}

.villa-form input::placeholder,
.villa-form textarea::placeholder {
    color: #888;
}

.villa-form button {
    margin-top: 1.5rem;
    width: 100%;
    padding: 1rem;
    background-color: #cba462;
    color: #0a0f1a;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.villa-form button:hover {
    background-color: #d9b066;
}

.form-mensaje {
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
}

/*
Los elementos inválidos se marcan en rojo
.villa-form input:invalid {
    border: 1px solid red;
}
*/

/* ------------------- Recorrido Virtual ------------------- */
.recorrido-virtual {
    margin-top: 100px;
    /*margin-left: 100px;*/
    background: linear-gradient(145deg, #1e1e1e, #2b2b2b);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 2px solid #cba462;
    border-bottom: 2px solid #cba462;
}

.recorrido-contenido {
    max-width: 700px;
    margin: 0 auto;
    color: rgb(220, 220, 220);
}

.recorrido-contenido h2 {
    font-size: 2rem;
    color: #cba462;
    margin-bottom: 1rem;
}

.recorrido-contenido p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgb(190, 190, 190);
}

.btn-recorrido {
    display: inline-block;
    background-color: #cba462;
    color: #0a0f1a;
    padding: 0.9rem 2rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-recorrido:hover {
    background-color: #d9b066;
}

.img-recorrido {
    width: 100%;
    max-width: 700px;
    border-radius: 12px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* ------------------- Footer ------------------- */
.villa-footer {
    border-top: 2px solid #cba462;
    padding: 2rem 1rem;
    text-align: center;
    font-family: 'Arial', sans-serif;
    /*margin-left: 100px;*/
}

.footer-contenido {
    max-width: 1000px;
    margin: 0 auto;
    color: rgb(200, 200, 200);
}

.villa-logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #cba462;
    margin-bottom: 0.8rem;
}

.footer-linea {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.footer-linea p {
    margin: 0;
}

.footer-linea a {
    color: #cba462;
    text-decoration: none;
}

.footer-linea a:hover {
    color: #e2c891;
}

.separator {
    color: #555;
}

.footer-copy {
    font-size: 0.85rem;
    color: #888;
}



















/* ------------------- Responsive ------------------- */
/* ------------------- Celulares Vertical ------------------- */
@media (max-width: 768px) {
    .logo {
        max-width: 250px;
    }

    /* Navbar pasa de vertical a horizontal */
    #navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1rem;
        background-color: #111;
        z-index: 999;
        border-bottom: 1px solid #cba462;
    }

    .nav-logo {
        width: 140px;
    }

    .nav-links {
        margin: 0;
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    /* Video section spacing */
    .video-wrapper {
        padding-top: 10rem;
    }

    .video-card {
        width: 100%;
        border-radius: 0;
    }

    /* Formulario */
    .villa-form {
        width: 95%;
        padding: 1.5rem;
        margin: 2rem auto 0;
    }

    .villa-form input,
    .villa-form select,
    .villa-form textarea {
        font-size: 1rem;
    }

    .villa-form button {
        padding: 0.9rem;
        font-size: 1rem;
    }

    /* Recorrido */
    .recorrido-contenido {
        padding: 0 0.5rem;
    }

    .recorrido-contenido h2 {
        font-size: 1.5rem;
    }

    .recorrido-contenido p {
        font-size: 1rem;
    }

    .img-recorrido {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    /* Footer */
    .footer-linea {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .footer-copy {
        font-size: 0.75rem;
    }
}

/* ------------------- Celulares Landscape ------------------- */
@media (max-width: 1024px) and (orientation: landscape) {
    .nav-logo {
        width: 180px;
        margin-top: 30px;
    }

    .nav-links a {
        font-size: 0.9rem;
        margin-left: 50px;
        color: white;
    }

    .villa-form {
        margin-top: 4rem;
    }

    .video-wrapper {
        padding-top: 4rem;
    }
}




/* ---------------------------------------------------------- */
/* ------------------- Tablets Vertical ------------------- */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    #navbar {
        margin-top: 50px;
        margin-left: 50px;
    }

    .nav-links a {
        color: white;
    }
}

/* ------------------- Tablets Landscape ------------------- */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    #navbar {
        margin-top: 50px;
        margin-left: 170px;
    }

    .nav-links a {
        color: white;
    }
}
