@import url("main.css");

/*
    PLANS.CSS

    Description: This css file is used for plans section in
    index.html page. Its includes all its containers, texts,
    items, and others.
*/

.plans {
    background: linear-gradient(
        to top,
        transparent 0%,
        #272727a0 80%,
        #0b0b0b 95%
    );

    overflow: hidden;
    flex-direction: column;
    padding-top: 75px;
}

.plans,
.plans__list {
    display: flex;
    align-items: center;
    justify-content: center;
}

.plans__list {
    width: 100%;
    flex-direction: column;
    gap: 30px;
    padding: 50px 0;
}

.plans__list > * {
    text-decoration: none;
}

.plans__item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    text-decoration: none;
    height: 200px;
    flex: 1 1 300px;
    width: 70%;
    max-width: 600px;
    padding: 10px;
    border: solid 5px var(--color-secondary);
    border-radius: 20px;
    background-color: var(--color-primary);
    background-image: url("../imgs/backgrounds/fondo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.plans__item-background-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plans__item > div {
    flex-basis: 50%;
    z-index: 10;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plans__item > div:last-of-type {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}

.plans__item-image-container {
    position: relative;
    width: 75%;
    height: 75%;
    border: solid 5px var(--color-secondary);
    border-radius: 20px;
    transform: perspective(10cm) rotateX(0deg) rotateY(-5deg) rotateZ(5deg);
    box-shadow: 5px 5px 0px var(--color-secondary);
}

.plans__item-image-container > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.plans__item-title {
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    line-height: 1em;
    display: inline-block;
    overflow-wrap: break-word;
    white-space: normal;
    color: var(--color-yellow);
}

/*
    Component: Texts

    Description: Styles for the texts inside the plans
    section.
*/

.plans__title {
    color: var(--color-white);
    text-align: center;
}

.plans__title span:nth-child(1) {
    color: var(--color-yellow);
}

.plans__item p {
    color: var(--color-yellow);
}

.plans__item-offer {
    font-weight: 500;
    font-size: 1rem;
}

/*
    Component: Scrollbar

    Description: Styles for the scrollbar inside plans
    section.
*/

.plans__list::-webkit-scrollbar-track {
    background-color: transparent;
}

.plans__list::-webkit-scrollbar {
    height: 10px;
}

/*
    Section: Responsive

    Description: Media queries that change styles plans
    section in index.html page.
*/

@media (max-width: 1800px) {
    .plans__item {
        width: 70%;
    }
}

@media (max-width: 1400px) {
    .plans__item {
        width: 90%;
    }
}

@media (max-width: 1024px) {
    .plans__item-title {
        font-size: 2.25rem;
    }

    .plans__item-offer {
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) and (max-height: 580px) {
    .plans__list {
        justify-content: center;
    }
}

@media (max-width: 992px), (max-height: 580px) {
    .plans {
        flex-direction: column;
    }

    .plans__item {
        width: auto;
    }

    .plans__item-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .plans__item {
        width: 100%;
    }

    .plans__item-title {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .plans__item {
        flex-direction: column;
        height: 400px;
    }

    .plans__item > div {
        flex-basis: content;
        width: 100%;
    }

    .plans__item-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 500px) {
    .plans__item-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 420px) {
    .plans__list {
        gap: 15px 50px;
    }

    .plans__item-title {
        font-size: 1.25rem;
    }

    .plans__item-offer {
        font-size: 0.8rem;
    }
}

/* RESPONSIVE HEIGHT */

@media (max-height: 830px) {
    .plans__list {
        padding: 50px 15px;
    }
}

@media (max-height: 500px) {
    .plans__list {
        padding: 15px 0;
    }
}

@media (max-height: 460px) {
    .plans__list {
        padding: 0;
    }
}

@media (max-height: 340px) {
    .plans__list {
        padding: 0;
    }
}
