body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #ffffff;
    background-color: rgb(236, 38, 143);
}
body {
    overflow: hidden; /* Para evitar el scroll */
}

.section img {
    width: 85%;
    padding-bottom: 120px;
}
.section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    width: 100vw;
    box-sizing: border-box;
    padding: 0 4% !important; /* Espaciado horizontal para evitar el desbordamiento */
}
.section:nth-child(2) {
    text-align: center;
    height: 80vh !important;
    align-items: flex-end !important;
}
.section:nth-child(3), .section:nth-child(5) {
    justify-content: flex-start;
}
.section:nth-child(4), .section:nth-child(6) {
    justify-content: flex-end;
}
.section:nth-child(7) {
    flex-direction: column !important;
}
.section:nth-child(8) {
    flex-direction: column !important;
    height: 20vh !important;
}

.text-container {
    width: 100%; /* Ajustar al 100% del ancho disponible */
    max-width: 40vw; /* No exceder el 40% del ancho de la vista */
    box-sizing: border-box;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}
h1, p {
    margin: 0;
    word-wrap: break-word; /* Ajustar el texto largo para evitar el desbordamiento */
}
h1 {
    font-size: calc(1rem + 1.2vw);
    color: lemonchiffon;
    margin-bottom: 1.5%;
}
p {
    font-size: calc(0.8rem + 1vw);
}
#threejs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    height: 90%;
    pointer-events: none;
    z-index: 5;
}

.spinner {
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mapouter {
    width: 60%;
    height: 100%;
}

.contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 2%;
}

.contact p {
    margin-bottom: 1.5%;
}

.osm_canvas {
    width: 100%;
    height: 100%;
}

.social-icons {
    position: fixed;
    bottom: 20px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}
.social-icons a {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    border-radius: 60%;
    background-color: rgb(248, 101, 180);
}

a {
    text-decoration: none;
    color: inherit;
}
