.title {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    p.sub {
        font-size: 14px;
        color: $mainColor;
        text-transform: uppercase;
        font-weight: bold;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }

    p.title-text {
        color: white;
        text-align: center;
        margin-top: 1rem;
        font-size: 20px;
        font-family: $titleFont;
    }

    &.wide {
        max-width: 1000px;
    }

    h1, h2 {
        text-align: center;
    }
    
    h1 {
        font-size: 60px;
    }

    h2 {
        font-size: 36px;
        @media #{$ipad} {
            font-size: 32px;
        }
    }

    &.white {
        h1, h2 {
            color: white;
        }
        p.title-text {
            color: #F1F5F9;
        }
    }
    &.small {
        p.sub {
            margin-bottom: 0;
        }
    }
}

.glasses-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    max-width: 600px;

    .glass-item {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 1rem;
        border-radius: 1rem;
        border: 1px solid rgba(white, 0.05);
        background-color: rgba(white, 0.05);
        backdrop-filter: blur(5px);

        img {
            width: 20px;
            margin-right: 1rem;
            margin-top: 3px;
        }

        span {
            color: white;
            text-align: left;
            display: block;
            line-height: 1.5;
        }
    }
}

.video-wrapper {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    margin-top: 3rem;
    .play-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: 60px;
        width: 60px;
        border-radius: 50%;
        background-color: $mainColor;
        color: white;
        font-size: 1.5rem;
        transition: all .2s;
        &:hover {
            background-color: #fff;
            color: $mainColor;
        }
    }
}

.main-section.blue {
    background-color: $black;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border-radius: 0.5rem;
    height: 100%;
    img {
        height: 56px;
    }
    h3, p {
    }

    h3 {
        margin: 1.5rem 0;
        font-size: 20px;
        color: white;
    }
    p {
        color: #94A3B8;
    }

    &.white {
        background-color: white;
        padding: 40px;
        box-shadow: 0px 0px 10px 0px rgba($mainColor, 0.5);
        transition: all .2s;

        &:hover {
            box-shadow: 0px 0px 40px 8px rgba($mainColor, 0.5);
        }

        h3 {
            color: $black;
        }
        p {
            color: #475569;
        }

    }
}

.card-img {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    img {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }
    .text-card {
        padding: 2rem;
        border: 1px solid #E2E8F0;
        border-top: 0;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        height: 100%;
    }
    h3 {
        font-size: 20px;
        margin-bottom: 1rem;
    }
    p {
        color: #475569;
        line-height: 1.5;
    }
}

.plan-card {
    border: 1px solid rgba(white, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    background-color: #171D29;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    * {
        color: white;
    }
    h3 {
        font-size: 28px;
        margin-bottom: 2rem;
    }
    .list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 3rem;
        
        .list-item {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            gap: 0.5rem;
            i {
                color: $mainColor;
            }
        }
    }
    .main-button {
        margin-top: auto;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    &.premium {
        border-color: $mainColor;
        position: relative;
        &:after {
            position: absolute;
            content: 'Recomendado';
            text-transform: uppercase;
            font-size: 12px;
            color:white;
            background-color: $mainColor;
            border-radius: 10000px;
            top: -8px;
            right: 32px;
            padding: 0 12px;
            font-family: $titleFont;
            font-weight: 500;
            letter-spacing: 2px;
        }
    }
}

.main-section.black {
    background-color: #101622;
}

.close-text {
    margin-top: 3rem;
    text-transform: uppercase;
    color: #94A3B8;
    text-align: center;
    font-weight: 600;
}

.main-section.blue-light {
    background-color: $mainColor;
}

.last-text {
    color: white;
    text-align: center;
    margin-top: 4rem;
}
/* Compensación de la barra fija al navegar con anclas (#inicio, #servicios, ...) */
section[id] {
    scroll-margin-top: $navbarOffset;

    @media #{$ipad} {
        scroll-margin-top: $navbarOffsetMobile;
    }
}

/* El nav es fixed con z-index 100: el modal debe quedar por encima */
.modal {
    z-index: 200;
}
