:root {
    --pages-ink: #15192f;
    --pages-muted: #697084;
    --pages-line: #e6e8f0;
    --pages-surface: #ffffff;
    --pages-background: #f6f7fb;
    --pages-primary: #6250e6;
    --pages-primary-soft: #efedff;
    --pages-mint: #54e7c1;
    --pages-navy: #0d1127;
    --pages-shadow: 0 24px 65px rgba(22, 26, 58, 0.09);
}

/* Encabezado de páginas internas */
.main > .hero-section {
    position: relative;
    display: flex;
    min-height: 340px;
    align-items: center;
    padding: 150px 0 72px !important;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 15%, rgba(101, 82, 238, 0.42), transparent 29%),
        radial-gradient(circle at 18% 100%, rgba(84, 231, 193, 0.13), transparent 25%),
        linear-gradient(135deg, #171c3c 0%, var(--pages-navy) 74%) !important;
    isolation: isolate;
}

.main > .hero-section.gradient-overlay::before {
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 1;
    -webkit-mask-image: linear-gradient(105deg, #000, transparent 84%);
    mask-image: linear-gradient(105deg, #000, transparent 84%);
}

.main > .hero-section::after {
    position: absolute;
    right: -130px;
    bottom: -265px;
    z-index: -1;
    width: 520px;
    height: 520px;
    border: 1px solid rgba(84, 231, 193, 0.17);
    border-radius: 50%;
    box-shadow:
        0 0 0 65px rgba(84, 231, 193, 0.022),
        0 0 0 130px rgba(84, 231, 193, 0.014);
    content: "";
}

.main > .hero-section .page-header-content {
    position: relative;
    z-index: 2;
    padding: 0 !important;
}

.main > .hero-section h1 {
    margin: 0;
    color: #ffffff !important;
    font-size: clamp(2.7rem, 5.2vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

@media (min-width: 992px) {
    .main > .hero-section .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .main > .hero-section h1 {
        white-space: nowrap;
    }
}

/* Documentos legales */
#DIVPageContainer {
    display: block;
    padding: 84px 20px 96px;
    background:
        radial-gradient(circle at 0 0, rgba(98, 80, 230, 0.07), transparent 26%),
        var(--pages-background) !important;
    box-shadow: none;
}

#DIVPageContainer > section {
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    padding: 0;
}

#DIVPageContainer .card {
    overflow: hidden;
    border: 1px solid var(--pages-line);
    border-radius: 30px;
    background: var(--pages-surface);
    box-shadow: var(--pages-shadow) !important;
}

#DIVPageContainer .card-body {
    padding: clamp(30px, 6vw, 68px) !important;
}

#DIVPageContainer h2 {
    position: relative;
    margin: 0 0 26px !important;
    padding-bottom: 24px;
    color: var(--pages-ink);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

#DIVPageContainer h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 62px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--pages-primary), var(--pages-mint));
    content: "";
}

#DIVPageContainer h3 {
    position: relative;
    margin-top: 38px !important;
    margin-bottom: 13px;
    padding-left: 18px;
    color: var(--pages-ink);
    font-size: clamp(1.22rem, 2vw, 1.48rem);
    font-weight: 800;
    line-height: 1.35;
    scroll-margin-top: 100px;
}

#DIVPageContainer h3::before {
    position: absolute;
    top: 0.16em;
    bottom: 0.16em;
    left: 0;
    width: 4px;
    border-radius: 99px;
    background: var(--pages-primary);
    content: "";
}

#DIVPageContainer h3.subpoint {
    margin-top: 27px !important;
    color: #34394e;
    font-size: 1.06rem !important;
}

#DIVPageContainer h3.subpoint::before {
    width: 3px;
    background: #9b8df2;
}

#DIVPageContainer p,
#DIVPageContainer li {
    color: var(--pages-muted);
    font-size: 0.98rem;
    line-height: 1.82;
}

#DIVPageContainer p {
    margin-bottom: 16px;
}

#DIVPageContainer ul,
#DIVPageContainer ol {
    margin: 17px 0 22px;
    padding: 18px 22px 18px 48px !important;
    border: 1px solid #ececf3;
    border-radius: 17px;
    background: #fafafe;
}

#DIVPageContainer ul {
    list-style: disc !important;
}

#DIVPageContainer ol {
    list-style: decimal !important;
}

#DIVPageContainer li {
    display: list-item !important;
    padding-left: 4px;
}

#DIVPageContainer li + li {
    margin-top: 7px;
}

#DIVPageContainer ul li::marker,
#DIVPageContainer ol li::marker {
    color: var(--pages-primary);
    font-weight: 800;
}

#DIVPageContainer strong {
    color: #34394e;
    font-weight: 750;
}

#DIVPageContainer a {
    color: #5947d8;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(89, 71, 216, 0.25);
    text-underline-offset: 3px;
}

#DIVPageContainer a:hover,
#DIVPageContainer a:focus {
    color: #3423af;
    text-decoration-color: currentColor;
}

/* Descarga principal del instalador */
.main > .hero-section + #download.video-promo {
    padding: 88px 0 !important;
    background:
        radial-gradient(circle at 95% 5%, rgba(84, 231, 193, 0.1), transparent 25%),
        var(--pages-background);
}

.main > .hero-section + #download.video-promo > .container > .row {
    margin: 0;
    padding: clamp(28px, 5vw, 58px);
    overflow: hidden;
    border: 1px solid var(--pages-line);
    border-radius: 32px;
    background: #ffffff;
    box-shadow: var(--pages-shadow);
}

.main > .hero-section + #download .download-content {
    padding-right: clamp(10px, 3vw, 38px);
}

.main > .hero-section + #download .download-content h2 {
    margin: 0 0 18px;
    color: var(--pages-ink);
    font-size: clamp(2.25rem, 4.2vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.main > .hero-section + #download .download-content p {
    color: var(--pages-muted);
    font-size: 1rem;
    line-height: 1.72;
}

.main > .hero-section + #download .download-content strong {
    color: #30354b;
}

.main > .hero-section + #download .download-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.main > .hero-section + #download .download-btn .btn {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    min-height: 50px;
    margin: 0 !important;
    padding: 12px 18px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: var(--pages-primary);
    box-shadow: 0 12px 27px rgba(98, 80, 230, 0.22);
    font-size: 0.88rem;
    font-weight: 800;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.main > .hero-section + #download .download-btn .btn:hover,
.main > .hero-section + #download .download-btn .btn:focus {
    color: #ffffff;
    background: #4f3dcc;
    box-shadow: 0 16px 34px rgba(98, 80, 230, 0.29);
    transform: translateY(-2px);
}

.main > .hero-section + #download .download-btn .mdi {
    font-size: 20px;
}

@media (min-width: 992px) {
    .main > .hero-section + #download .download-btn {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .main > .hero-section + #download .download-btn .btn {
        flex: 1 1 auto;
        justify-content: center;
        padding-right: 12px;
        padding-left: 12px;
        white-space: nowrap;
    }
}

.main > .hero-section + #download .badge {
    padding: 7px 13px !important;
    border: 1px solid rgba(98, 80, 230, 0.12);
    border-radius: 999px !important;
    color: #5847d7;
    background: var(--pages-primary-soft);
    font-size: 0.76rem;
    font-weight: 800;
}

.main > .hero-section + #download .download-content .mt-5 {
    margin-top: 30px !important;
    padding-top: 25px;
    border-top: 1px solid var(--pages-line);
}

.main > .hero-section + #download .download-content h5 {
    color: var(--pages-ink);
    font-size: 1rem;
    font-weight: 800;
}

.main > .hero-section + #download .alert {
    margin-top: 22px;
    border: 1px solid #f0dfae;
    border-radius: 14px;
    color: #755c19;
    background: #fff9e8;
}

.main > .hero-section + #download .embed-responsive {
    overflow: hidden;
    border: 1px solid #e8e9f0;
    border-radius: 25px;
    background: #f3f2fa;
    box-shadow: 0 18px 42px rgba(25, 28, 58, 0.1);
}

.main > .hero-section + #download video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tutorial para Windows */
#download.video-promo + section.gray-light-bg {
    padding: 100px 0 !important;
    background: #ffffff !important;
}

#download.video-promo + section.gray-light-bg > .container > .row {
    margin: 0;
    padding: clamp(26px, 4vw, 48px);
    border: 1px solid var(--pages-line);
    border-radius: 30px;
    background: var(--pages-background);
}

#download.video-promo + section .detail-info-wrap h2 {
    margin-bottom: 17px;
    color: var(--pages-ink);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

#download.video-promo + section .detail-info-wrap > p {
    color: var(--pages-muted);
    line-height: 1.72;
}

#download.video-promo + section .detail-info-wrap a {
    color: #5847d7;
    font-weight: 750;
}

.detail-info-box {
    height: 100%;
    padding: 26px 18px;
    border: 1px solid #e7e8f0;
    border-radius: 18px;
    text-align: center;
    background: #ffffff;
}

.detail-info-box > span {
    margin-bottom: 14px !important;
    border-radius: 14px !important;
    color: #5c4bdc !important;
    background: var(--pages-primary-soft) !important;
}

.detail-info-box h5 {
    color: var(--pages-ink);
    font-size: 0.94rem;
    font-weight: 800;
}

.detail-info-box p {
    margin: 0;
    color: var(--pages-muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

#download.video-promo + section .embed-responsive {
    overflow: hidden;
    border-radius: 24px;
    background: #ecebf5;
    box-shadow: 0 18px 42px rgba(25, 28, 58, 0.1);
}

#download.video-promo + section video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tutorial para macOS */
#download.video-promo ~ .promo-new {
    padding: 110px 0 86px !important;
    background:
        radial-gradient(circle at 100% 0, rgba(98, 80, 230, 0.075), transparent 28%),
        var(--pages-background);
}

#download.video-promo ~ .promo-new .section-heading {
    margin-bottom: 52px !important;
}

#download.video-promo ~ .promo-new .section-heading h2 {
    margin-bottom: 16px;
    color: var(--pages-ink);
    font-size: clamp(2.35rem, 4.3vw, 4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

#download.video-promo ~ .promo-new .section-heading p {
    color: var(--pages-muted);
    font-size: 1.05rem;
}

#download.video-promo ~ .promo-new > .container > .row.align-items-center {
    margin-right: 0;
    margin-bottom: 22px !important;
    margin-left: 0;
    padding: clamp(25px, 4vw, 42px);
    border: 1px solid var(--pages-line);
    border-radius: 27px;
    background: #ffffff;
    box-shadow: 0 15px 42px rgba(25, 28, 58, 0.055);
}

#download.video-promo ~ .promo-new .badge {
    padding: 8px 13px !important;
    border: 1px solid rgba(98, 80, 230, 0.12);
    border-radius: 999px !important;
    color: #5847d7;
    background: var(--pages-primary-soft);
    font-size: 0.72rem;
    font-weight: 800;
}

#download.video-promo ~ .promo-new h4 {
    margin-top: 17px !important;
    color: var(--pages-ink);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
}

#download.video-promo ~ .promo-new .row.align-items-center p {
    color: var(--pages-muted);
    line-height: 1.7;
}

#download.video-promo ~ .promo-new .row.align-items-center img {
    width: 100%;
    border: 1px solid #e4e6ef;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(25, 28, 58, 0.12) !important;
}

@media (max-width: 991.98px) {
    .main > .hero-section {
        min-height: 300px;
        padding: 132px 0 62px !important;
    }

    #DIVPageContainer {
        padding-top: 64px;
        padding-bottom: 74px;
    }

    .main > .hero-section + #download.video-promo {
        padding: 68px 0 !important;
    }

    .main > .hero-section + #download .download-content {
        padding-right: 0;
        padding-bottom: 34px;
    }

    #download.video-promo + section.gray-light-bg,
    #download.video-promo ~ .promo-new {
        padding-top: 78px !important;
        padding-bottom: 68px !important;
    }

    #download.video-promo + section.gray-light-bg .detail-info-wrap {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .main > .hero-section {
        min-height: 270px;
        padding: 116px 0 54px !important;
    }

    .main > .hero-section h1 {
        font-size: clamp(2.35rem, 11vw, 3.4rem);
    }

    #DIVPageContainer {
        padding: 48px 14px 58px;
    }

    #DIVPageContainer .card {
        border-radius: 23px;
    }

    #DIVPageContainer .card-body {
        padding: 26px 22px !important;
    }

    #DIVPageContainer h2 {
        font-size: 2rem;
    }

    #DIVPageContainer h3 {
        margin-top: 31px !important;
        font-size: 1.18rem;
    }

    #DIVPageContainer p,
    #DIVPageContainer li {
        font-size: 0.93rem;
        line-height: 1.72;
    }

    #DIVPageContainer ul,
    #DIVPageContainer ol {
        padding: 15px 16px 15px 38px !important;
    }

    .main > .hero-section + #download.video-promo {
        padding: 50px 0 !important;
    }

    .main > .hero-section + #download.video-promo > .container > .row,
    #download.video-promo + section.gray-light-bg > .container > .row {
        padding: 25px 20px;
        border-radius: 24px;
    }

    .main > .hero-section + #download .download-content h2 {
        font-size: 2.25rem;
    }

    .main > .hero-section + #download .download-btn {
        display: grid;
    }

    .main > .hero-section + #download .download-btn .btn {
        justify-content: center;
        width: 100%;
    }

    .detail-info-box {
        margin-bottom: 16px;
    }

    #download.video-promo ~ .promo-new > .container > .row.align-items-center {
        padding: 24px 18px;
        border-radius: 22px;
    }

    #download.video-promo ~ .promo-new .row.align-items-center img {
        margin-top: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .main > .hero-section + #download .download-btn .btn {
        transition-duration: 0.01ms !important;
    }
}
