#home {
    min-height: 55vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    margin-top: 0;
}

.slider-container {
    width: 100%;
    height: 92vh;
    position: relative;
    overflow: hidden;
    background: #000814;
    display: flex;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.home-content {
    position: relative;
    min-width: 100%;
    height: 100%;
    display: flex;
    padding: 0;
    gap: 0;
    box-sizing: border-box;
    margin: 0;
    z-index: 0;
    overflow: hidden;
}

.home-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/mapaBackground.webp');
    background-size: cover;
    background-position: center;
    filter: invert(1);
    opacity: 0.1;
    z-index: -1;
}

.home-text {
    flex: 1;
    padding: 4vh;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    font-family: var(--paragraph-font);
}

.home-text h1 {
    font-size: 10vh;
    color: var(--white-color);
    line-height: 1.2;
    margin-bottom: 2vh;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    font-family: var(--tittle-font);
}

.home-text p{
    font-size: 2.5vh;
    margin-bottom: 2vh;
    color: var(--white-color);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    line-height: 1.6;
    font-family: var(--paragraph-font);
}

.home-text a {
    align-self: flex-start;
    font-size: 3vh;
    font-family: var(--paragraph-font);
    background-color: var(--medium-color);
    border-radius: 0;
}

.home-image {
    flex: 0 0 60%;
    height: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
}

.home-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(80%);
}

.slider-button {
    position: absolute;
    top: 90%;
    transform: translateY(-50%);
    background: var(--medium-color);
    color: var(--white-color);
    border: none;
    width: 6vh;
    height: 6vh;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2vh;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    margin: 0;
    padding: 0;
}

.slider-button:hover {
    background: var(--yellow-color);
}

.slider-button.prev {
    left: 8%;
}

.slider-button.next {
    right: 8%;
}

.custom-video__container {
    position: relative;
    min-width: 100%;
    height: 100%;
    display: flex;
    padding: 0;
    gap: 0;
    box-sizing: border-box;
    margin: 0;
    z-index: 0;
    overflow: hidden;
}

.custom-video__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(80%);
}

.custom-video__control {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: transparent;
    padding: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    font-size: 10vh;
    font-weight: bold;
    white-space: nowrap;
    line-height: 0;
    pointer-events: none;
}

@media (orientation: portrait) {
    #home {
        width: 100%;
        height: 92vh;
    }

    #home a {
        font-size: 2vh;
        width: auto;
        padding: 1vh 5vh;
        align-self: center;
    }

    .slider-container {
        width: 100%;
        height: 92vh;
    }
    
    .home-content {
        flex-direction: column;
        padding: 0;
        gap: 1rem;
        width: 100%;
        height: 100%;
        flex-wrap: wrap;
        box-sizing: border-box;
    }

    .home-text {
        order: 2;
        padding: 0 1rem 0rem;
        text-align: center;
        max-width: 100%;
    }

    .home-text h1 {
        font-size: 3.4vh;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .home-text p {
        font-size: 1.6vh;
        max-width: 100%;
        margin: 0 0 1.5rem;
    }

    .home-text a {
        margin-top: 0rem;
        width: 100%;
        max-width: 250px;
        align-self: center;
    }

    .home-image {
        order: 1; /* Imagen va arriba */
        width: 100%;
        flex: 0 0 50%; /* 40% del espacio vertical */
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .home-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center; /* Centra la imagen */
    }

    .slider-button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: 45%; /* Posición más alta para botones */
    }
}