/* 1. VARIABLES Y BASE*/
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Raleway:wght@300;400;600&display=swap');

:root {
    --primario: #1b4332;
    --secundario: #d4a373;
    --fondo: #ffffff;
    --blanco: #ffffff;
    --fuente-titulos: 'Playfair Display', serif;
    --fuente-texto: 'Raleway', sans-serif;
    --sombra: 0 10px 30px rgba(0, 0, 0, 0.15);
    --grid-verde: #3d5245;
    --grid-naranja: #fdf2e9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--fondo);
    font-family: var(--fuente-texto);
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
}

/* 2. NAVEGACIÓN*/
.nav-principal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 5%;
    background: rgba(245, 245, 220, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    z-index: 9000;
}

.logo-central {
    text-align: center;
    flex-shrink: 0;
}

.logo-central h1 {
    font-family: var(--fuente-titulos);
    font-size: 1.8rem;
    color: #000000;
    letter-spacing: 4px;
    margin: 0;
    line-height: 1;
}

.sub-logo span {
    font-size: 10px;
    color: #000000;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

.nav-bloque {
    display: flex;
    gap: 25px;
}

.nav-bloque a {
    text-decoration: none;
    color: #000000;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-bloque a:hover {
    color: var(--primario);
}

/* 3. HEADERS*/
.header-inicio,
.header-interno {
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.header-inicio {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('Imagenes/foto_principal_piscina.jpg');
}

.header-interno {
    height: 40vh;
    padding-top: 80px;
}

.header-servicios {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('Imagenes/foto_evento_cumple.jpg');
    background-position: center 49%;
}

.header-galeria-foto,
.header-contacto {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('Imagenes/flores_lilas.JPG');
    background-position: center 40%;
}

.header-lugar {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('Imagenes/flores4.JPG');
    background-position: center 40%;
}

.header-alojamiento {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('Imagenes/Cuarto_con_aire2.JPG');
    background-position: center 35%;
}

.titulo-pagina {
    font-family: var(--fuente-titulos);
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    color: var(--primario);
    margin: 40px 0;
    text-align: center;
}

/* 4. MOSAICOS*/
.seccion-lugar-premium {
    padding: 60px 0;
    width: 100%;
    overflow: hidden;
}

.bloque-mosaico {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background: var(--blanco);
    align-items: stretch;
}

.bloque-mosaico.invertido {
    flex-direction: row-reverse;
}

.contenedor-imagen-mosaico,
.mosaico-texto {
    flex: 1;
    min-width: 50%;
    display: flex;
}

.mosaico-imagen {
    width: 100%;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    transition: 0.8s ease;
}

.mosaico-texto {
    padding: 80px 8%;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.fondo-verde-lujo {
    background-color: var(--primario);
    border-left: 8px solid var(--secundario);
}

.fondo-gris-lujo {
    background-color: #fdf8f2;
    border-left: 8px solid var(--secundario);
}


.mosaico-texto h2 {
    color: var(--primario);
    font-family: var(--fuente-titulos);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 2.4rem;
    line-height: 1.1;
}

.mosaico-cabecera {
    display: flex;
    align-items: baseline;
    gap: 25px;
    margin-bottom: 10px;
    width: 100%;
    flex-wrap: wrap;
}

.mosaico-cabecera h2 {
    margin-bottom: 0 !important;
}

.mosaico-cabecera h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--secundario);
    margin-top: 10px;
    border-radius: 2px;
}

.mosaico-cabecera .boton-dorado-mosaico {
    margin-top: 0 !important;
    flex-shrink: 0;
    padding: 10px 22px !important;
    font-size: 0.8rem !important;
    border-radius: 50px;
}

@media (max-width: 900px) {
    .mosaico-cabecera {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.mosaico-texto h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--secundario);
    margin-top: 15px;
    border-radius: 2px;
}

.fondo-verde-lujo h2,
.fondo-verde-lujo p,
.fondo-verde-lujo .tag-categoria {
    color: white;
}


.fondo-verde-lujo h2::after {
    background-color: white;
}

/* Tags y detalles */
.tag-categoria {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secundario);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.usos-finca {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.tag {
    background-color: rgba(212, 163, 115, 0.1);
    color: #555;
    border: 1px solid rgba(212, 163, 115, 0.3);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.puntos-lujo {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.puntos-lujo li {
    color: white;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-size: 1.1rem;
    text-align: left;
}

.puntos-lujo li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secundario);
    font-weight: 900;
}

/* 5. CONTACTO Y FORMULARIOS*/
.seccion-contacto-foto {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('Imagenes/Patio_para_fondo.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 5% 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contacto-container {
    background: rgba(253, 250, 240, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    width: 100%;
    max-width: 1100px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.form-control {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-family: var(--fuente-texto);
    font-size: 1.1rem;
    background: var(--blanco);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--secundario);
    box-shadow: 0 0 12px rgba(212, 163, 115, 0.4);
}

.seccion-contacto-foto .btn {
    background-color: var(--secundario) !important;
    color: white !important;
    padding: 20px;
    border: none !important;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: 0.4s;
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.3);
    width: 100%;
}

.seccion-contacto-foto .btn:hover {
    background-color: #b0845a !important;
    transform: translateY(-3px);
}

/* 6. FOOTER Y LOGOS*/
.footer-premium {
    background: var(--primario);
    color: white;
    padding: 80px 5% 40px;
    text-align: center;
    width: 100%;
    display: block;
    clear: both;
}

.footer-logo-contenedor a {
    text-decoration: none !important;
    display: inline-block;
}

.logo-footer-img {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
    transition: 0.3s ease;
}

.footer-logo-texto {
    font-family: var(--fuente-titulos);
    font-size: 2.2rem;
    color: #ffffff;
    letter-spacing: 7px;
    text-transform: uppercase;
    text-decoration: none;
    margin: 0 auto;
    display: block;
    border-bottom: 2px solid var(--secundario);
    padding-bottom: 15px;
    width: fit-content;
}


.footer-logo-contenedor a:hover .logo-footer-img {
    transform: scale(1.05);
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
    letter-spacing: 1px;
}

/* 7. GALERÍA*/
.seccion-mural {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-mural {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.marco-foto {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.marco-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.marco-foto:hover img {
    transform: scale(1.1);
}

.overlay-foto {
    position: absolute;
    inset: 0;
    background: rgba(27, 67, 50, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    color: white;
    font-weight: bold;
}

.marco-foto:hover .overlay-foto {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: var(--blanco);
    display: flex;
    max-width: 1000px;
    width: 95%;
    max-height: 85vh;
    border-radius: 20px;
    overflow: hidden;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-img-container {
    flex: 1.4;
    background: #000;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-text-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--blanco);
}

.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    cursor: pointer;
}


/* 8. BOTONES*/
.btn,
.btn-dorado,
.boton-dorado-mosaico,
.btn-blanco,
.boton-blanco-mosaico,
.btn-seccion {
    display: inline-block;
    padding: 16px 40px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    text-align: center;
}

.btn,
.btn-dorado,
.boton-dorado-mosaico {
    background-color: var(--secundario);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3);
}

.btn-blanco,
.boton-blanco-mosaico {
    background-color: var(--blanco);
    color: var(--primario);
}

.btn-seccion {
    padding: 12px 28px;
    background: transparent;
    color: var(--primario);
    border: 1px solid var(--primario);
    border-radius: 2px;
}

.btn:hover,
.btn-dorado:hover,
.boton-dorado-mosaico:hover,
.btn-blanco:hover,
.boton-blanco-mosaico:hover,
.btn-seccion:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.btn-seccion:hover {
    background: var(--primario);
    color: white;
    box-shadow: 0 5px 15px rgba(27, 67, 50, 0.2);
}


/* 9. PÁGINA DE GRACIAS*/

.seccion-gracias-premium {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('Imagenes/Patio_para_fondo.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    box-sizing: border-box;
}

.tarjeta-cristal-gracias {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 50px 40px;
    border-radius: 15px;
    max-width: 650px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 50px;
}

.tarjeta-cristal-gracias h2 {
    font-family: var(--fuente-titulos);
    color: var(--primario);
    font-size: 3rem !important;
    margin-bottom: 20px;
}

.tarjeta-cristal-gracias p {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.divisor-dorado {
    width: 80px;
    height: 2px;
    background: var(--secundario);
    margin: 25px auto;
}

.tarjeta-cristal-gracias .btn-dorado {
    margin-top: 20px;
    display: inline-block !important;
}

/* 9. REGLAS RESPONSIVE*/

@media (max-width: 900px) {
    .nav-principal {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-bloque {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {

    .titulo-pagina {
        font-size: 2.2rem;
        margin: 20px 0;
        padding: 0 10px;
    }

    .bloque-mosaico,
    .bloque-mosaico.invertido {
        flex-direction: column;
    }

    .mosaico-texto {
        width: 100%;
        min-width: 100%;
        padding: 40px 10%;
    }

    .contenedor-imagen-mosaico {
        width: 100%;
        min-width: 100%;
        padding: 0;
    }

    .mosaico-imagen {
        min-height: 350px;
        display: block;
        width: 100%;
    }

    .nav-principal {
        padding: 10px;
        gap: 10px;
    }

    .logo-central h1 {
        font-size: 1.2rem;
    }

    .contacto-container,
    .tarjeta-cristal-gracias {
        padding: 30px 20px;
        width: 95%;
        margin-top: 80px;
    }

    .contacto-container {
        grid-template-columns: 1fr;
    }

    .mosaico-cabecera {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }

    .grid-mural {
        grid-template-columns: repeat(2, 1fr);
    }

    .marco-foto {
        height: 250px;
    }

    /*Botones*/
    .btn,
    .btn-dorado,
    .btn-blanco,
    .btn-seccion,
    .boton-dorado-mosaico,
    .boton-blanco-mosaico {
        width: 100%;
        padding: 15px 20px;
    }

    .puntos-lujo li {
        font-size: 0.95rem;
    }

    .modal-card {
        flex-direction: column;
        overflow-y: auto;
    }

    .modal-img-container {
        flex: none;
        height: 250px;
    }

    .modal-text-container {
        padding: 20px;
    }
}

.redes-flotantes-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.redes-lista {
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.redes-lista.mostrar-redes {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.icono-red {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
    text-decoration: none;
}

.icono-red img {
    width: 28px;
    height: 28px;
}

.email-icon {
    font-size: 22px;
    color: #1a2f23;
}

.icono-red:hover {
    transform: scale(1.15);
}

.btn-flotante-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #1a2f23;
    color: white;
    border: none;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-flotante-main:hover {
    background-color: #b08d57;
    transform: scale(1.05);
}

/* AJUSTE PARA EL MÓVIL*/
@media (max-width: 768px) {
    .redes-flotantes-container {
        bottom: 20px;
        right: 20px;
    }

    .btn-flotante-main {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

.contenedor-filtros-premium {
    text-align: center;
    padding: 40px 0;
    background: #fdfdfd;
    position: sticky;
    top: 80px;
    z-index: 10;
    margin-bottom: 40px;
}

/* 1. Movimiento suave para toda la página*/
html {
    scroll-behavior: smooth;
}

/* 2. El "freno" para que el Nav y los filtros no tapen el título*/
#exteriores,
#interiores,
#habitaciones {
    scroll-margin-top: 280px;
}

/* 3. Estilo extra para los títulos*/
.titulo-seccion-galeria {
    font-family: var(--fuente-titulos);
    font-size: 2rem;
    color: var(--primario);
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: 2px;
}