/* Estilos generales */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    text-align: center;
    background: linear-gradient(-10deg, #18013A 50%, #18013A 50%);
    height: 100vh; /* Asegura que el fondo cubra toda la altura de la pantalla */
    color: #E6E6E6;
}

header.header {
    display: flex;
    width: 100%;
    opacity: 70%;
}

header.header .title {
    font-size: 24px;
    font-weight: bold;
}

header.header img {
    height: auto;
    width: 40px;
}

/* Contenedor de la cuadrícula */
.grid-container {
    display: grid;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

/* Estilos de las tarjetas */
.card {
    width: 100%;
    height: 180px;
    perspective: 1000px;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card.flip .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
}

.card-front {
    background: #712AFF;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #712AFF;
}

.card-back {
    background: white;
    border: 2px solid #712AFF;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card-back img {
    max-width: 100%;
    max-height: 100%;
}

/* Elementos decorativos */
.cards {
    position: absolute;
    left: 5%;
    top: 25%;
    z-index: -1;
}

.deco {
    position: absolute;
    right: 5%;
    top: 50%;
    margin-top: -200px;
    z-index: -1;
    height: 400px;
}

.square {
    position: absolute;
    left: 5%;
    top: 0;
    z-index: -1;
    height: 100vh;
}

.body-init {
    //background: #996BD9;
}

.init .m-up {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

body {
    color: white;
    height: 100vh;
    background-color: #E1DCF4;
    background: linear-gradient(-10deg, #18013A 50%, #18013A 50%);
    height: 100vh; /* Asegura que el fondo cubra toda la altura de la pantalla */
    margin: 0; /* Elimina los márgenes por defecto */
}
.text-content {
    max-width: 700px;
    width: 100%;
    margin: 0 5% 0 auto;
    padding: 50px 0 0 0;
}
.h1 {
    font-size: 100px;
    font-weight: bold;
    line-height: 100%;
    margin-bottom: 30px;
    text-align: left;
}
.description {
    font-size: 26px;
    line-height: 120%;
    text-align: left;
}
.buttons {
    padding-top: 30px;
    width: 100%;
    text-align: left;
}
.buttons .btn {
    border-radius: 50px;
    height: 70px;
    padding: 5px 40px;
    font-size: 26px;
    background-color: #996BD9;
    color: #20094B;
    font-weight: normal;
}
.cards {
    position: absolute;
    left: 5%;
    top: 25%;
    z-index: -1;
}

.curve {
    position: absolute;
    right: 30%;
    top: 0;
    z-index: -1;
    height: 100vh;
}

.square {
    position: absolute;
    left: 10%;
    top: 0;
    z-index: -1;
    height: 100vh;
}
.lines {
    position: absolute;
    right: 10%;
    bottom: 5%;
    z-index: -1;
}

.bg-desk {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    overflow: hidden;
    z-index: -1;
}

.bg-desk img {
    height: 100%;
}

.bg-mobile {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    overflow: hidden;
    z-index: -1;
    padding-top: 100px;
}

.bg-mobile img {
    width: 100%;
}

.intro {
    text-align: left;
    color: #FFC830;
}

.intro .header {
    color: white;
    opacity: 70%;
}

.intro .h1 {
    font-size: 64px;
    margin-bottom: 20px;
}

.intro .description {
    font-size: 48px;
    line-height: 120%;
    margin-bottom: 20px;
}

.intro .text-extra {
    font-size: 30px;
    color: white;
    margin-bottom: 30px;
}

.intro .image {
    margin-bottom: 20px;
    text-align: center;
}

.intro .image img {
    width: 250px;
}

.intro .buttons {
    display: flex;
    width: 100%;
    justify-content: flex-start;
}

.intro-desk {
    display: flex;
}
.intro-desk > div {
    width: 50%;
}

.intro-desk .image img {
    width: 400px;
}





/* RESULTADO */
.resultado {
    text-align: left;
    color: #FFC830;
}

.resultado .header {
    color: white;
    opacity: 70%;
}

.resultado .h1 {
    font-size: 72px;
    margin-bottom: 20px;
    margin-top: 60px;
}

.resultado .description {
    font-size: 52px;
    line-height: 120%;
    margin-bottom: 36px;
}

.resultado .text-extra {
    font-size: 25px;
    color: white;
    margin-bottom: 30px;
    width: 600px;
    line-height: 120%;
}

.resultado .buttons {
    display: flex;
    width: 100%;
    justify-content: flex-start;
}
/* RESULTADO */




.modal .modal-content {
    background-color: #18013A;
}

.modal .modal-header {
    border: none;
}

.modal .modal-footer {
    border: none;
    padding-top: 0;
    text-align: center;
    justify-content: center;
}

.modal .modal-footer .btn-secondary {
    background-color: rgba(255,255,255,0.5);
    border-radius: 0;
    color: #18013A;
}

.modal .tache {
    width: 30px;
}

.modal .image-area {
    margin-bottom: 55px;
}

.modal .modal-body .image-area .image {
    width: 300px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

.modal .modal-body .image img {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: -6px 6px 1px rgba(255,255,255,0.3);
}

.modal .modal-body .image .image-back {
    position: absolute;
    left: -13px;
    bottom: -15px;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 200, 48, 1);
    rotate: -4deg;
    box-shadow: -6px 6px 1px rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    z-index: -1;
}

#modal-text {
    background-color: #E1DCF4;
    color: #18013A;
    padding: 25px 15px;
    line-height: 120%;
    font-size: 18px;
    margin-bottom: 0;
    border-radius: 10px;
}


/* Diseño responsivo */
@media (min-width: 768px) {
    .desktop {
        display: block;
    }
    .mobile {
        display: none;
    }
    .grid-container {
        grid-template-columns: repeat(5, 1fr); /* 5 columnas para escritorio */
    }
    .card {
        height: 170px;
    }
    .init {

    }
}

@media (max-width: 767px) {
    .desktop {
        display: none;
    }
    .mobile {
        display: block;
    }
    .grid-container {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas para móvil */
    }
    .card {
        height: 110px;
    }
    .body-init {
        background-color: #E1DCF4;
        background: linear-gradient(0deg, #E1DCF4 50%, #18013A 50%);
    }
    .body-init > div {
        background-color: #18013A;
    }
    .init {

    }
    .init .text-extra {
        color: #18013A;
        font-size: 22px;
    }
    .init.content {
        padding: 0 30px;
    }
    .init .text-content {
        position: relative;
        z-index: 2;
    }
    .init .h1 {
        text-align: left;
        font-size: 60px;
        margin-top: 130px;
        margin-bottom: 10px;
    }
    .init .description {
        text-align: left;
        font-size: 20px;
        margin-bottom: 60px;
    }

    .init .buttons {
        text-align: center;
    }

    .buttons .btn {
        border-radius: 50px;
        height: auto;
        padding: 8px 30px;
        font-size: 22px;
        background-color: #996BD9;
        color: #20094B;
        font-weight: normal;
    }

    .intro {

    }
    .intro .content {
        padding: 0 20px;
    }
    .intro .h1 {
        margin-bottom: 15px;
        font-size: 50px;
    }
    .intro .description {
        margin-bottom: 15px;
        font-size: 32px;
    }
    .intro .text-extra {
        font-size: 18px;
        margin-bottom: 15px;
    }
    .intro .image {
        margin-bottom: 0;
        padding: 10px 0;
    }
    .intro .buttons {
        justify-content: center;
    }

    .resultado {

    }
    .resultado .content {
        padding: 0 20px;
    }
    .resultado .h1 {
        margin-top: 30px;
        margin-bottom: 25px;
        font-size: 50px;
        font-weight: 600;
    }
    .resultado .description {
        margin-bottom: 35px;
        font-size: 30px;
    }
    .resultado .text-extra {
        font-size: 22px;
        margin-bottom: 15px;
        width: 100%;
    }
    .resultado .image {
        margin-bottom: 0;
        padding: 10px 0;
    }

}
