html {
    scroll-behavior: smooth;

}

body {
    position: absolute;
    width: 100%;
    height: 200vh;
    overflow-x: hidden;
    background-color: whitesmoke;
}

header {
    width: 100%;
    height: 9vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #181e50;
    position: absolute;
    z-index: 5;
    padding: 1vh;
}

#logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1vh;
    height: 100%;
    width: 25%;
}

#logo_img {
    width: 30%;
    height: 50px;
    background-image: url('/imagenes/logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

#logo_texto {
    color: whitesmoke;
    text-align: center;
    width: 100%;
    font-size: 14pt;
    font-weight: 650;
    font-family: "Manrope", sans-serif;

}

#barra_navegacion {
    width: 50%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lista_botones {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1vw;
    border-radius: 0.75rem;
}

.boton_navegacion {
    color: whitesmoke;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    text-align: center;
    font-size: 12pt;
    font-weight: 650;
    font-family: "Manrope", serif;
    transition: ease 0.5s;

}

.boton_info {
    border-radius: 200%;
    padding: 1rem;
    color: whitesmoke;
    height: 10%;
    width: 1%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    transition: ease-in-out 0.3s;
    font-size: 15pt;
    font-weight: bold;
    font-family: "Manrope", serif;
    margin-right: 2%;
    background-color: #181e50;
}

#contenedor_info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #181e50;
}


.boton_info a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #181e50;
}

.boton_info a>i {
    border-radius: 100%;
    background-color: #181e50;
}

#contenedor_banner {
    position: relative;
    width: 100%;
    height: 65%;
    overflow: hidden;
    background-color: #181e50;
}

#texto_banner,
#arrow {
    width: 80%;
    height: 70%;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -55%);

    z-index: 6;
    color: whitesmoke;
    font-size: 350%;
    font-weight: bolder;
    text-align: center;
    font-family: "Manrope", serif;
    justify-content: justify;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#arrow {
    transform: translate(-50%, -20%);
    animation: upDown 3s ease-in-out infinite;
}

@keyframes upDown {

    0%,
    100% {
        transform: translate(-50%, -25%);
        /* Posición inicial y final */
    }

    50% {
        transform: translate(-50%, -17%);
        /* Punto más bajo */
    }
}

.img_banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slideshow 12s infinite none;
    filter:
        brightness(40%) contrast(100%) sepia(100%) hue-rotate(190deg) saturate(500%);
}

@keyframes slideshow {

    0%,
    33.33%,
    100% {
        opacity: 0;
    }

    8.33%,
    25% {
        opacity: 1;
    }
}

#img1 {
    animation-delay: 0s;
}

#img2 {
    animation-delay: -3s;
}

#img3 {
    animation-delay: -6s;
}

#img4 {
    animation-delay: -9s;
}

#contenedor_formas {
    position: relative;
    height: 20%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    overflow: visible;
    top: -18%;
    margin-bottom: -20%;
}

.forma_fondo {
    position: absolute;
    height: 100%;
    width: 100%;
}

#fondo_1 {
    background-color: #F5F5F533;
    height: 100%;
    width: 100%;
    clip-path: polygon(0% 0%, 0% 90%, 100% 90%, 100% 30%);
    z-index: 0;
}

#fondo_2 {
    background-color: #F5F5F599;
    height: 100%;
    width: 100%;
    clip-path: polygon(0% 15%, 0% 90%, 100% 90%, 100% 45%);
    z-index: 1;
}

#fondo_3 {
    background-color: #F5F5F5CC;
    height: 100%;
    width: 100%;
    clip-path: polygon(0% 30%, 0% 90%, 100% 90%, 100% 60%);
    z-index: 2;
}

#fondo_4 {
    background-color: #F5F5F5FF;
    height: 100%;
    width: 100%;
    clip-path: polygon(0% 45%, 0% 90%, 100% 90%, 100% 75%);
    z-index: 4;
    top: 3;
}

#contenedor_cartas {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 1vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

hr {
    height: 10%;
    width: 100%;
    background-color: transparent;
    border: transparent;
}

.carta {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2%;
    border-radius: 18px;
    /* Un solo valor */
    box-shadow: -7px -7px 16px 0 #ffffff, 7px 7px 10px -4px rgba(22, 28, 34, 0.411);
    padding: 30px;
    background: #e2e2e2;
    /* Fondo con más contraste */
}


.contenedor_texto {
    height: 100%;
    width: 80%;
    gap: 1vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

.img_card {
    border-radius: 20px;
    width: 30%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px rgba(128, 128, 128, 0.158) solid;
}

#sobremi_img {
    background-image: url("/imagenes/cartas/sobremi_img3.jpg");
}

#sesiones_img {
    background-image: url("/imagenes/cartas/sesiones.jpg");
}

#psico_img {
    background-image: url("/imagenes/cartas/psi_depo.jpg");
    background-position: bottom;
    filter: saturate(150%) sepia(50%);
}

.contenedor_texto>h1 {
    font-size: 20pt;
    font-weight: 650;
    font-family: "Manrope", serif;
    text-align: left;
}

.contenedor_texto>p {
    font-family: "Manrope", serif;
    font-size: 18px;
    line-height: 1.5em;
    text-align: justify;
    font-weight: 400;
    color: rgb(99, 99, 99);
}

.contenedor_texto>ul {
    width: 100%;
    height: auto;
    text-align: justify;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 1vh;
}

#carta_sesion>.contenedor_texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
}

.contenedor_texto>ul>li {
    font-family: "Manrope", serif;
    font-size: 18px;
    line-height: 1.5em;
    text-align: justify;
    font-weight: 400;
    color: rgb(99, 99, 99);
}


#carta_sobremi {
    width: 90%;
    position: relative;
    z-index: 1;
}


#carta_sesion {
    width: 90%;
    position: relative;
    z-index: 1;
}

#carta_psi {
    width: 90%;
    position: relative;
    z-index: 1;
}

.bold {
    font-weight: bolder;
}

#up {
    position: fixed;
    top: 88%;
    bottom: -50%;
    right: -50;
    left: 93%;
    width: 5%;
    height: 5%;
    background-color: #181e50;
    color: white;
    border-radius: 20px;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

#footer {
    position: relative;
    background-color: black;
    width: 100%;
    height: 9vh;
    color: whitesmoke;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#logo_foot {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5vw;
}

#logo_img_footer {
    width: 20px;
    height: 20px;
    filter: grayscale(100%);
    background-image: url('/imagenes/logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 10px;
}

a,
a:hover a:visited,
a:active,
a:focus {
    text-decoration: none;
    color: inherit;
}

.boton_navegacion:hover {
    background-color: #181e50;
    color: #78ceff;
}

#boton_wpp:hover {
    padding: 60%;
    background-color: #48d17a;
}

#boton_ig:hover {
    padding: 60%;
    background: linear-gradient(#405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

#boton_ln:hover {
    padding: 60%;
    background-color: #0A66C2;
}

#up:hover {
    background-color: #0015ce;
}

@media (max-width: 667px) {

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

    body {
        width: 100%;
        min-height: 285vh;
        position: relative;
        display: grid;
        grid-template-rows: 0.7fr 1fr 4fr;
        grid-template-columns: 100%;
        overflow-y: scroll;
        overflow-x: hidden;
        vertical-align: baseline;
    }


    header {
        grid-row: 1/1;
        grid-column: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: 100%;
        padding: 1vh 0;
        position: absolute;
    }

    #logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 67%;
        width: 100%;
        gap: 10%;
    }

    #logo_img {
        width: 100%;
        height: 50%;
        background-image: url('/imagenes/logo.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }

    #logo_texto {
        color: whitesmoke;
        text-align: center;
        width: 100%;
        height: 10%;
        font-size: 24pt;
        font-weight: 650;
        font-family: "Manrope", sans-serif;
        flex-direction: column;
        align-items: baseline;
        justify-content: center;
    }

    #lista_botones {
        display: none;
    }

    .boton_navegacion {
        display: none;
    }

    a,
    a:hover a:visited,
    a:active,
    a:focus {
        text-decoration: none;
        color: inherit;
    }

    #boton_top {
        display: none;
    }

    .boton_info {
        border-radius: 200%;
        padding: 1rem;
        color: whitesmoke;
        height: 30%;
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        font-size: 20pt;
        font-weight: bold;
        font-family: "Manrope", serif;
        animation: none !important;
        transition: none !important;
    }

    #contenedor_info {
        width: 70%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        animation: none !important;
        transition: none !important;
    }


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

    .boton_info a>i {
        border-radius: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #barra_navegacion {
        display: none;
    }

    #contenedor_banner {
        position: absolute;
        grid-row: 2/2;
        grid-column: 1;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;

    }

    .img_banner {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        animation: slideshow 12s infinite none;
        filter:
            brightness(40%) contrast(100%) sepia(100%) hue-rotate(190deg) saturate(500%);
    }

    #arrow {
        display: none;
    }

    #texto_banner {
        position: absolute;
        top: 60%;
        width: 90%;
        height: 80%;
        z-index: 6;
        color: whitesmoke;
        font-size: 200%;
        font-weight: bolder;
        text-align: center;
        font-family: "Manrope", serif;
    }

    #contenedor_formas {
        display: none;
    }

    #contenedor_cartas {
        position: absolute;
        grid-row: 3/3;
        width: 100%;
        margin: 0 auto;
        height: 100%;
        padding: 1vh;
        height: 98%;
        margin-top: 2%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    hr {
        display: none;
    }

    .carta {
        position: absolute;
        width: 100%;
        height: 100%;
        gap: 2%;
        border-radius: 18px;
        box-shadow: none;
        background: #e2e2e2;
        margin: 4%;
        box-shadow: -7px -7px 16px 0 #ffffff, 7px 7px 10px -4px rgba(22, 28, 34, 0.411);
    }


    .contenedor_texto {
        height: 90%;
        width: 100%;
        gap: 1vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .img_card {
        display: none;
    }


    .contenedor_texto>h1 {
        font-size: 20pt;
        font-weight: 650;
        font-family: "Manrope", serif;
        text-align: center;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .contenedor_texto>p {
        font-family: "Manrope", serif;
        font-size: 14pt;
        line-height: 1.5em;
        text-align: justify;
        font: weight 15pt;
        color: rgb(99, 99, 99);
        width: 100%;
        height: auto;
    }

    .contenedor_texto>ul {
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2vh;
    }


    .contenedor_texto>ul>li {
        font-family: "Manrope", serif;
        font-size: 14pt;
        line-height: 1.5rem;
        text-align: left;
        font-weight: 400;
        color: rgb(99, 99, 99);
        width: 100%;
        font: weight 15pt;
    }


    #carta_sobremi {
        width: 100%;
        height: 100%;
        padding: 15px;
    }


    #carta_sesion {
        width: 100%;
        height: 100%;
        padding: 15px;
    }

    #carta_psi {
        width: 100%;
        height: 100%;
        padding: 15px;
        margin-bottom: 2vh;
    }

    #footer {
        grid-row: 4;
        grid-column: 1;
        position: auto;
        z-index: 1;
        /* Asegura que se muestre por encima de otros si fuera necesario */
        width: 100%;
        height: 100%;
        background-color: black;
        color: whitesmoke;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2vh;
        gap: 2vh;
        font-family: "Manrope", serif;
    }

    #logo_foot {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1vh;
    }

    #up {
        display: none;
    }

    .boton_info a>i {
        border-radius: 100%;
        background-color: transparent;
        animation: none !important;
        transition: none !important;
    }

    a,
    a:hover a:visited,
    a:active,
    a:focus {
        text-decoration: none;
        color: inherit;
        animation: none !important;
        transition: none !important;
    }

    .boton_navegacion:hover {
        background-color: #181e50;
        color: #78ceff;
    }

    #boton_wpp:hover {
        padding: inherit;

    }

    #boton_ig:hover {
        padding: inherit;
    }

    #boton_ln:hover {
        padding: inherit;
    }
}