@import url("fonts/stylesheet.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Lato', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #222222;
    font-weight: bold !important;
}

p {
    color: #656565;
}

ul {
    list-style: none;
}

a {
   text-decoration: none;
}

.nav-link {
    color: #222222;
    transition: color 0.3s ease-in-out;
}

.nav-item:hover .nav-link {
    color: #5C3AE2;
}

img {
    max-width: 100%;
    height: auto;
}

.text-purple {
    color: #5C3AE2;
}

.text-purple:hover {
    color: #5C3AE2;
}

header{
    position: relative;
    transition: background-color 0.3s ease-in-out;
}

header#scroll{
    position: fixed;
    width: 100%;
    background-color: #FFC800;
    z-index: 6;
}

footer {
    background-color: #222222;
}

footer p,
footer a,
footer li {
    color: white;
}

.btn-purple {
    background-color: #5C3AE2 !important;
    color: white !important;
}

.btn-purple:hover{
    color: white;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.btn-descargas > picture:last-of-type > img {
    box-shadow: 0 5px 5px rgba(0,0,0,0.2);
}

#home [href="#filosofia"]::after {
    content: url("../assets/abajo-circulo.svg");
    display: inline-flex;
    margin-left: 1rem;
    animation: upNdown 1s infinite ease-in-out;
}

.btn-descargas a img{
    transition: 0.3s ease-in-out;
}

.btn-descargas a:hover img{
    transform: scale(1.05);
}

#filosofia-col .btn::after{
    content: url("../assets/arrow-right-white.svg");
    display: inline-flex;
    transform: translate(0,5px);
    transition: all 0.3s ease-in-out;
}

#filosofia-col .btn:hover::after{
    transform: translate(5px,5px);
}

#deco1,
#deco2 {
    display: none;
}

.btn-overlay-purple {
    border: 3px solid #5C3AE2;
    color: #5C3AE2;
    font-weight: bold;
    padding: 10px 30px;
    font-size: 1.5rem;
    background-color: white;
    transition: background-color 0.3s ease-in-out;
}

.btn-overlay-purple:hover {
    color: white;
    background-color: #5C3AE2;
}

#reencuentros {
    background-color: #FFC800;
}

.slider-container {
    max-width: 800px;
    margin: auto;
    display: flex;
    justify-content: center;
    margin-top: 2em;
    position: relative;
}

.carta {
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    position: absolute;
    width: 33.33%;
    transition: all 400ms ease;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.carta:hover:not(.active).left {
    transform: translateX(-50%) rotate(-10deg) scale(0.9);
}

.carta:hover:not(.active).right {
    transform: translateX(50%) rotate(10deg) scale(0.9);
}

.carta.left {
    transform: translateX(-50%) scale(0.9);
    mix-blend-mode: luminosity;
}

.carta.right {
    transform: translateX(50%) scale(0.9);
    mix-blend-mode: luminosity;
}

.carta.active {
    z-index: 5;
    position: relative;
}

.carta-inner {
    position: relative;
    padding-bottom: 158.8235294118%;
}

ol {
    list-style-type: none;
    counter-reset: item;
    margin: 0;
    padding: 0;
}

ol > li {
    display: table;
    counter-increment: item;
    margin-bottom: 0.6em;
}

ol > li:before {
    content: counters(item, ".") ". ";
    display: table-cell;
    padding-right: 0.6em;
}

li ol > li {
    margin: 0;
}

li ol > li:before {
    content: counters(item, ".") " ";
}

#proximamente {
    min-height: 75vh;
}

@media screen and (min-width: 992px){
    .nav-item {
        margin: 0 1rem;
    }

    #home p,
    #caracteristicas p,
    #filosofia-col .btn,
    #filosofia-col p,
    aside p {
        font-size: 1.5rem;
    }

    #home h2.h1 {
        max-width: 400px;
    }

    .btn-descargas > a:first-of-type > picture img {
        padding-top: 9px;
    }

    .col-md-7  {
        position: relative;
    }

    #home .col-md-7 picture:first-of-type {
        position: absolute;
        right: 20%;
        z-index: 2;
    }

    #hover-phones picture img {
        transition: all 0.3s ease-in-out;
        position: relative;
    }

    #hover-phones picture:first-of-type img {
        z-index: 1;
    }

    #hover-phones:hover picture:first-of-type img {
        transform: rotate(-5deg);
        z-index: 2;
    }

    #hover-phones:hover picture:last-of-type img {
        transform: rotate(5deg);
        z-index: 1;
    }

    #filosofia {
        background-image: url("../assets/desktop/fondo-filosofia-desktop.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        background-position-y: -10vh;
        display: flex;
        justify-content: right;
        align-items: center;
        min-height: 900px;
    }

    #filosofia-col {
        margin-left: auto;
        max-width: 500px;
    }

    #caracteristicas .row .col-md-6{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #caracteristicas p,
    #caracteristicas h3{
        padding: 0 40px;
    }

    #deco1,
    #deco2 {
        display: block;
    }

    #deco1 {
        top: 30%;
        right: 5vw;
    }

    #deco2 {
        bottom: 22%;
        left: 0;
    }

    footer{
        padding: 50px 0;
    }

    footer .container{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #reencuentros{
        min-height: 800px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        background-size: cover;
        background-image: url("../assets/desktop/background-reencuentros.png");
        background-repeat: no-repeat;
        background-position-y: 5%;
        background-position-x: center;
    }

    #reencuentros h2{
        position: relative;
    }

    #reencuentros h2::after{
        content: url("../assets/flecha-vuelta.svg");
        position: absolute;
        top: -170px;
    }

    #descargar{
        background-size: cover;
        background-image: url("../assets/desktop/background-reencuentros.png");
        background-repeat: no-repeat;
        background-position-y: 95%;
        background-position-x: left;
        background-color: #F8F9FA;
        min-height: 600px;
    }

    .descarga{
        background: #fff;
        border-radius: 20px;
        padding: 2em;
        max-width: 800px;
        margin: auto;
        transform: translateY(1em);
    }

    aside {
        min-height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .carrusel .row {
        align-items: center;
    }
}

@media screen and (max-width: 992px) {
    .navbar-toggler,
    .navbar-toggler:focus {
        border: 3px solid #222222;
        margin-right: 1rem;
        box-shadow: none;
    }

    #hover-phones picture img {
        position: relative;
    }

    #hover-phones picture:first-of-type img {
        z-index: 1;
    }

    #scroll {
        top: 0;
    }

    #home {
        margin-top: 8rem;
    }

    #home .col-md-7 {
        margin-top: 2.5rem;
        width: 100%;
    }

    .btn-descargas {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .btn-descargas a:last-of-type img {
        box-shadow: 0 4px 5px rgba(0,0,0,0.25);
    }

    .hover-phones {
        width: 100%;
    }

    .navbar-toggler-icon {
        display: flex;
        background-image: url("../assets/bars-solid.svg");
    }

    #filosofia-col .btn {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #filosofia-col .btn::after {
        transform: translate(0, 4px);
    }

    #caracteristicas h2.h1 {
        margin-bottom: 2rem;
    }

    #reencuentros {
        padding: 4rem 0;
        margin: 3rem auto;
        overflow-y: hidden;
        position: relative;
    }

    #reencuentros::before,
    #reencuentros::after {
        content: '';
        width: 100%;
        height: 80px;
        background-color: white;
        border: 1px solid white;
        border-radius: 50%;
        left: 0;
        right: 0;
        margin: 0 auto;
        display: block;
        position: absolute;
    }

    #reencuentros::before {
        top: -40px;
    }

    #reencuentros::after {
        bottom: -40px;
    }

    .descarga{
        background: #fff;
        border-radius: 20px;
        padding: 2em;
        max-width: 800px;
        margin: auto;
        transform: translateY(1em);
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }

    aside {
        min-height: 300px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    #container .container {
        overflow-x: hidden;
    }

    .carrusel {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: scroll;
        column-gap: 40px;
        padding: 2rem 1rem;
        position: relative;
        cursor: grab;
    }

    .carrusel.active {
        cursor: grabbing;
    }

    .carrusel .row {
        min-width: 560px;
        border-radius: 5px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        padding: 10px;
        flex-direction: column-reverse;
    }

    .carrusel .row .col-lg-6 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .carrusel .col-texto {
        padding: 1rem 10px;
    }

    footer {
        padding: 2rem 0;
    }

    footer ul {
        padding: 0;
    }

    footer .container div:last-of-type {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media screen and (max-width: 768px) {
    .carrusel .row {
        min-width: 300px;
        flex-direction: column-reverse !important;
        justify-content: flex-start;
    }

    .carrusel > div:first-of-type {
        justify-content: flex-end;
    }

    .carrusel .flex-md-row.row.flex-column-reverse > div:first-of-type,
    .carrusel .row > div:last-of-type {
        min-height: 285px;
    }

    .carrusel .flex-md-row.row.flex-column-reverse > div:last-of-type {
        min-height: inherit;
    }

    .flex-md-row.row.flex-column-reverse {
        flex-direction: column !important;
    }

    .carrusel .col-texto {
        padding: 0 10px;
    }

    #home .row {
        flex-direction: column;
        justify-self: center;
        align-items: center;
    }
}

@media screen and (max-width: 576px){
    #descargar {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .descarga .row > div:first-of-type {
        display: none;
    }
    .descarga .col-sm-6 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .descarga .col-sm-6 h2 {
        text-align: center;
        margin: 1rem auto;
    }

    .descarga .btn-descargas {
        margin-top: 1rem;
    }

    footer .container {
        display: flex;
        flex-direction: column;
    }

    footer .container div {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 1rem auto;
    }

    footer p,
    footer li {
        text-align: center;
    }

    .navbar-nav {
        margin-top: 1rem;
    }

    .nav-item {
        padding: 10px;
    }

    .nav-item .nav-link {
        padding-left: 1rem;
        background-color: rgba(255,255,255,0.9);
        border-radius: 5px;
        text-transform: uppercase;
        text-align: center;
    }

    #hover-phones picture:last-of-type {
        position: absolute;
        right: 0;
        margin-right: auto;
    }
}

@keyframes upNdown {
    0% {
       transform: translateY(-2px);
    }

    50% {
        transform: translateY(5px);
    }

    100% {
        transform: translateY(-2px);
    }
}