/* styles.css */

/* Estilos generales */
html {
    color-scheme: light;
    scroll-behavior: smooth; /* Para un desplazamiento suave al hacer clic en "Ver alojamientos" */
}

body {
    font-family: 'Playfair Display', serif;
    margin: 0;
    padding: 0;
    background: #0c0c0c url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
    color: #ffffff;
    overflow-x: hidden;
}

/* Contenedor principal */
.container {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Utilidad para ocultar elementos */
.hidden {
    display: none !important;
}

/* Fondo para la sección de Cesium */
.cesium-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('img/marino.png') no-repeat center center fixed;
    background-size: cover;
    z-index: 0;
}

/* Sección de bienvenida */
.welcome-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    scroll-snap-align: start;
    margin: 0; /* Asegurar que no haya márgenes que desplacen los elementos */
    padding: 0; /* Asegurar que no haya paddings que desplacen los elementos */
    opacity: 1;
    visibility: visible;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1), visibility 2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clase para ocultar la sección de bienvenida después de la animación */
.welcome-section.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Asegurar que los hijos también se oculten */
.welcome-section.hidden * {
    opacity: 0;
    visibility: hidden;
}

.welcome-text {
    text-align: center;
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 1;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-text.hidden {
    opacity: 0;
    visibility: hidden;
}

.welcome-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    letter-spacing: 2px;
}

.welcome-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: #ffffff;
    margin: 10px 0 0;
    letter-spacing: 1px;
}

@media (min-width: 992px) {
    .welcome-text { bottom: 180px; }
}

body.pagina-index,
body.pagina-piso {
    padding-top: 0;
}

/* Nuevo contenedor para centrar el globo y el botón */
body.index-page .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

/*
 * The Cesium globe should remain perfectly circular and centered. Remove the
 * layout overrides that stretched the map container and changed the button
 * positioning. The base styles from `mapa.css` will handle centering.
 */

/* Align the globe and its action button vertically */
body.index-page #mapa {
    position: static;
    top: auto;
    left: auto;
    transform: translateX(70px);
    margin-top: -150px;
}

body.index-page #verAlojamientoBtn {
    position: static;
    bottom: auto;
    transform: none;
    margin-top: -20px;
    margin-left: 150px;
}

/* Centrado del contenedor que envuelve el mapa y las tarjetas */
.centrado-leaflet {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 20px 0;
}

/* --- CENTRADO Y TAMAÑO SOLO PARA 1920x1080 --- */
@media (min-width: 1919px) and (max-width: 1921px) and (min-height: 1079px) and (max-height: 1081px) {
    #mapa {
        position: absolute !important;
        left: 72.5% !important;
        top: 45% !important;
        /* Tamaño del globo: aumenta aquí */
        width: 900px !important;   /* antes 600px */
        height: 900px !important;  /* antes 600px */
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
    }
    #verAlojamientoBtn {
        position: absolute !important;
        left: 67% !important;
        bottom: 120px !important;
        /* Tamaño del botón: aumenta aquí */
        padding: 27px 65px !important;   /* antes 10px 20px */
        font-size: 1.5rem !important;    /* antes 1rem */
        border-radius: 28px !important;  /* para hacerlo más redondo si quieres */
        transform: translateX(-30%) !important;
        margin: 0 !important;
        z-index: 10;
    }
}
