/* =========================================
   H-REGEDIT
   STORE / CHECKOUT
========================================= */


/* =========================================
   RESET
========================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    min-height: 100vh;

    font-family: "Inter", sans-serif;

    background: #07090d;

    color: #f5f7fa;

    overflow-x: hidden;

}


button,
input,
select {

    font-family: inherit;

}


/* =========================================
   FONDO
========================================= */

.page-background {

    position: fixed;

    inset: 0;

    z-index: -2;

    background:

        radial-gradient(
            circle at 15% 15%,
            rgba(70, 110, 255, 0.13),
            transparent 35%
        ),

        radial-gradient(
            circle at 85% 70%,
            rgba(120, 70, 255, 0.10),
            transparent 38%
        ),

        #07090d;

}


.page-background::after {

    content: "";

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,0.018) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    mask-image:

        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );

}


/* =========================================
   CONTENEDOR
========================================= */

.regedit-container {

    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: auto;

    padding-bottom: 40px;

}


/* =========================================
   HEADER
========================================= */

.regedit-header {

    height: 90px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid
        rgba(255,255,255,0.07);

}


.back-button {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #aeb5c2;

    text-decoration: none;

    font-size: 14px;

    transition: 0.25s;

}


.back-button:hover {

    color: #ffffff;

    transform:
        translateX(-3px);

}


/* =========================================
   BRAND
========================================= */

.brand {

    display: flex;

    align-items: center;

    gap: 12px;

}


.brand-icon {

    width: 38px;

    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background: #ffffff;

    color: #07090d;

    font-weight: 800;

    font-size: 18px;

}


.brand-text {

    display: flex;

    flex-direction: column;

    gap: 2px;

}


.brand-text strong {

    font-size: 14px;

    letter-spacing: 0.08em;

}


.brand-text span {

    color: #737b89;

    font-size: 10px;

}


/* =========================================
   HERO
========================================= */

.regedit-hero {

    max-width: 720px;

    margin: auto;

    padding: 90px 0 65px;

    text-align: center;

}


.hero-label {

    display: inline-block;

    margin-bottom: 18px;

    color: #7f8cff;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 0.20em;

}


.regedit-hero h1 {

    font-size:
        clamp(
            45px,
            6vw,
            72px
        );

    line-height: 0.98;

    letter-spacing: -0.055em;

}


.regedit-hero h1 span {

    color: #8b94ff;

}


.regedit-hero p {

    max-width: 600px;

    margin: 25px auto 0;

    color: #7f8795;

    font-size: 15px;

    line-height: 1.8;

}


/* =========================================
   PRODUCTOS
========================================= */

.products-section {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;

}


/* =========================================
   TARJETA PRODUCTO
========================================= */

.regedit-card {

    position: relative;

    display: flex;

    flex-direction: column;

    padding: 32px;

    min-height: 530px;

    border:
        1px solid
        rgba(255,255,255,0.07);

    border-radius: 22px;

    background:

        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.015)
        );

    box-shadow:
        0 30px 70px
        rgba(0,0,0,0.18);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;

}


.regedit-card::before {

    content: "";

    position: absolute;

    width: 180px;

    height: 180px;

    top: -90px;

    right: -70px;

    border-radius: 50%;

    background:
        rgba(91,108,255,0.08);

    filter: blur(35px);

    pointer-events: none;

}


.regedit-card:hover {

    transform:
        translateY(-5px);

    border-color:
        rgba(130,145,255,0.22);

    box-shadow:
        0 35px 90px
        rgba(0,0,0,0.28);

}


/* =========================================
   ICONO PRODUCTO
========================================= */

.regedit-icon {

    width: 56px;

    height: 56px;

    display: grid;

    place-items: center;

    margin-bottom: 24px;

    border-radius: 15px;

    background:
        rgba(255,255,255,0.055);

    border:
        1px solid
        rgba(255,255,255,0.08);

    color: #ffffff;

    font-size: 20px;

    box-shadow:
        0 15px 35px
        rgba(0,0,0,0.20);

}


.regedit-label {

    display: block;

    margin-bottom: 8px;

    color: #7f8cff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.17em;

}


.regedit-card h2 {

    margin-bottom: 14px;

    font-size: 28px;

    letter-spacing: -0.035em;

}


.regedit-description {

    max-width: 470px;

    min-height: 55px;

    color: #858d9b;

    font-size: 13px;

    line-height: 1.7;

}


/* =========================================
   CARACTERISTICAS
========================================= */

.regedit-features {

    display: flex;

    flex-direction: column;

    gap: 11px;

    margin-top: 25px;

}


.regedit-feature {

    display: flex;

    align-items: center;

    gap: 10px;

    color: #c4cad3;

    font-size: 12px;

}


.regedit-feature i {

    width: 20px;

    height: 20px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(34,197,94,0.10);

    border:
        1px solid
        rgba(34,197,94,0.18);

    color: #42e879;

    font-size: 9px;

}


/* =========================================
   PRECIO
========================================= */

.regedit-price {

    display: flex;

    align-items: baseline;

    gap: 8px;

    margin-top: auto;

    padding-top: 30px;

}


.regedit-price span {

    color: #626a78;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.15em;

}


.regedit-price strong {

    color: #ffffff;

    font-size: 38px;

    letter-spacing: -0.05em;

}


/* =========================================
   BOTON COMPRAR
========================================= */

.buy-button {

    width: 100%;

    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 20px;

    border: 0;

    border-radius: 12px;

    background: #ffffff;

    color: #090b0f;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        box-shadow 0.25s ease;

}


.buy-button:hover {

    transform:
        translateY(-2px);

    opacity: 0.92;

    box-shadow:
        0 12px 35px
        rgba(255,255,255,0.10);

}


.buy-button:active {

    transform:
        translateY(0);

}


/* =========================================
   CHECKOUT
========================================= */

.checkout-section {

    max-width: 760px;

    margin: 80px auto 0;

    scroll-margin-top: 30px;

}


.checkout-card {

    padding: 38px;

    border:
        1px solid
        rgba(255,255,255,0.08);

    border-radius: 22px;

    background:
        rgba(255,255,255,0.025);

    box-shadow:
        0 30px 80px
        rgba(0,0,0,0.25);

}


/* =========================================
   CHECKOUT HEADER
========================================= */

.checkout-header {

    display: flex;

    align-items: center;

    gap: 16px;

    padding-bottom: 28px;

    margin-bottom: 28px;

    border-bottom:
        1px solid
        rgba(255,255,255,0.07);

}


.checkout-icon {

    width: 48px;

    height: 48px;

    display: grid;

    place-items: center;

    border-radius: 14px;

    background:
        rgba(255,255,255,0.07);

    color: #ffffff;

}


.checkout-header span {

    display: block;

    margin-bottom: 5px;

    color: #7e8796;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.15em;

}


.checkout-header h2 {

    font-size: 22px;

    letter-spacing: -0.02em;

}


/* =========================================
   PRODUCTO SELECCIONADO
========================================= */

.selected-product {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 30px;

    padding: 15px;

    border:
        1px solid
        rgba(255,255,255,0.07);

    border-radius: 14px;

    background:
        rgba(255,255,255,0.025);

}


.selected-product-info {

    display: flex;

    align-items: center;

    gap: 13px;

}


.selected-product-icon {

    width: 43px;

    height: 43px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border-radius: 11px;

    background:
        rgba(255,255,255,0.07);

    color: #ffffff;

}


.selected-product-info strong {

    display: block;

    margin-bottom: 4px;

    font-size: 13px;

}


.selected-product-info span {

    color: #68717f;

    font-size: 10px;

}


.selected-product-price {

    white-space: nowrap;

    font-size: 14px;

}


/* =========================================
   FORMULARIO
========================================= */

.form-group {

    margin-bottom: 23px;

}


.form-group label {

    display: block;

    margin-bottom: 9px;

    color: #d9dee6;

    font-size: 12px;

    font-weight: 600;

}


.form-group label span {

    color: #7f8cff;

}


.input-wrapper {

    position: relative;

}


.input-wrapper > i {

    position: absolute;

    left: 16px;

    top: 50%;

    z-index: 2;

    transform:
        translateY(-50%);

    color: #697281;

    font-size: 13px;

    pointer-events: none;

}


.form-input,
.form-select {

    width: 100%;

    height: 52px;

    padding:
        0 16px 0 45px;

    border:
        1px solid
        rgba(255,255,255,0.08);

    border-radius: 11px;

    outline: none;

    background:
        rgba(0,0,0,0.20);

    color: #ffffff;

    font-size: 13px;

    transition:
        border-color 0.25s,
        box-shadow 0.25s,
        background 0.25s;

}


.form-input:focus,
.form-select:focus {

    border-color:
        rgba(130,145,255,0.65);

    background:
        rgba(0,0,0,0.28);

    box-shadow:
        0 0 0 3px
        rgba(100,120,255,0.08);

}


.form-input::placeholder {

    color: #555e6b;

}


.form-select {

    appearance: none;

    cursor: pointer;

}


.form-select option {

    background: #101319;

    color: #ffffff;

}


/* =========================================
   PAGO
========================================= */

.payment-section {

    margin-top: 35px;

    padding-top: 30px;

    border-top:
        1px solid
        rgba(255,255,255,0.06);

}


.payment-heading {

    margin-bottom: 16px;

}


.payment-heading > span {

    color: #7e8795;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 0.15em;

}


.payment-heading h3 {

    margin-top: 6px;

    color: #dce0e7;

    font-size: 14px;

    font-weight: 600;

}


/* =========================================
   PAYPAL
========================================= */

.paypal-container {

    min-height: 55px;

    width: 100%;

}


/* =========================================
   PAGO CONFIRMADO
========================================= */

.payment-success {

    display: none;

    align-items: center;

    gap: 12px;

    margin-top: 15px;

    padding: 14px;

    border:
        1px solid
        rgba(34,197,94,0.20);

    border-radius: 12px;

    background:
        rgba(34,197,94,0.06);

}


.payment-success.show {

    display: flex;

    animation:
        paymentSuccessIn
        0.45s ease forwards;

}


@keyframes paymentSuccessIn {

    from {

        opacity: 0;

        transform:
            translateY(8px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


.payment-success-icon {

    width: 36px;

    height: 36px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(34,197,94,0.14);

    color: #22c55e;

}


.payment-success strong {

    display: block;

    margin-bottom: 3px;

    color: #ffffff;

    font-size: 12px;

}


.payment-success span {

    color: #718078;

    font-size: 10px;

}


/* =========================================
   BOTON ENVIAR
========================================= */

.submit-wrapper {

    margin-top: 28px;

}


.submit-button {

    position: relative;

    width: 100%;

    min-height: 56px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border: 0;

    border-radius: 12px;

    background:
        rgba(255,255,255,0.07);

    color:
        rgba(255,255,255,0.35);

    font-size: 13px;

    font-weight: 800;

    cursor: not-allowed;

    overflow: hidden;

    transition:
        background 0.35s ease,
        color 0.35s ease,
        transform 0.25s ease,
        box-shadow 0.35s ease;

}


.submit-button::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.08),
            transparent
        );

    transform:
        translateX(-100%);

}


.submit-button.unlocked {

    background: #ffffff;

    color: #090b0f;

    cursor: pointer;

    animation:
        unlockButton
        0.55s ease forwards;

}


.submit-button.unlocked::before {

    animation:
        buttonShine
        0.8s ease;

}


.submit-button.unlocked:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 35px
        rgba(255,255,255,0.12);

}


@keyframes unlockButton {

    0% {

        transform:
            scale(0.97);

    }

    50% {

        transform:
            scale(1.015);

    }

    100% {

        transform:
            scale(1);

    }

}


@keyframes buttonShine {

    to {

        transform:
            translateX(100%);

    }

}


/* =========================================
   SEGURIDAD
========================================= */

.security-box {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-top: 18px;

    padding: 14px;

    border:
        1px solid
        rgba(255,255,255,0.05);

    border-radius: 11px;

    background:
        rgba(255,255,255,0.018);

}


.security-box > i {

    margin-top: 2px;

    color: #7f8cff;

    font-size: 13px;

}


.security-box div {

    display: flex;

    flex-direction: column;

    gap: 4px;

}


.security-box strong {

    color: #cbd0d8;

    font-size: 10px;

}


.security-box span {

    color: #626b78;

    font-size: 9px;

    line-height: 1.6;

}


/* =========================================
   MENSAJE CHECKOUT
========================================= */

.checkout-message {

    display: none;

    margin-top: 18px;

    padding: 14px;

    border-radius: 11px;

    font-size: 11px;

    line-height: 1.5;

}


.checkout-message.show {

    display: block;

}


.checkout-message.success {

    color: #72ff9d;

    background:
        rgba(32,201,92,0.07);

    border:
        1px solid
        rgba(32,201,92,0.18);

}


.checkout-message.error {

    color: #ff7777;

    background:
        rgba(255,70,70,0.07);

    border:
        1px solid
        rgba(255,70,70,0.18);

}


/* =========================================
   FOOTER
========================================= */

.regedit-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 90px;

    padding-top: 25px;

    border-top:
        1px solid
        rgba(255,255,255,0.06);

    color: #535b68;

    font-size: 10px;

}


/* =========================================
   ANIMACION TARJETAS
========================================= */

.regedit-card {

    animation:
        cardAppear
        0.6s ease both;

}


.regedit-card:nth-child(2) {

    animation-delay: 0.10s;

}


@keyframes cardAppear {

    from {

        opacity: 0;

        transform:
            translateY(20px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* =========================================
   CHECKOUT ANIMACION
========================================= */

.checkout-card {

    animation:
        checkoutAppear
        0.7s ease both;

}


@keyframes checkoutAppear {

    from {

        opacity: 0;

        transform:
            translateY(25px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* =========================================
   RESPONSIVE 900
========================================= */

@media (max-width: 900px) {


    .regedit-hero {

        padding-top: 65px;

    }


    .products-section {

        grid-template-columns: 1fr;

        max-width: 650px;

        margin: auto;

    }


    .regedit-card {

        min-height: auto;

    }


    .checkout-section {

        margin-top: 60px;

    }

}


/* =========================================
   RESPONSIVE 600
========================================= */

@media (max-width: 600px) {


    .regedit-container {

        width:
            min(
                calc(100% - 24px),
                1180px
            );

    }


    .regedit-header {

        height: 75px;

    }


    .brand-text {

        display: none;

    }


    .regedit-hero {

        padding:
            50px 0 45px;

    }


    .regedit-hero h1 {

        font-size: 46px;

    }


    .regedit-hero p {

        font-size: 13px;

    }


    .regedit-card {

        padding: 24px;

        border-radius: 18px;

    }


    .regedit-card h2 {

        font-size: 25px;

    }


    .checkout-section {

        margin-top: 45px;

    }


    .checkout-card {

        padding:
            23px 17px;

        border-radius: 18px;

    }


    .checkout-header {

        padding-bottom: 22px;

        margin-bottom: 22px;

    }


    .checkout-header h2 {

        font-size: 19px;

    }


    .selected-product {

        align-items: flex-start;

    }


    .selected-product-price {

        font-size: 13px;

    }


    .regedit-footer {

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;

        margin-top: 60px;

    }

}


/* =========================================
   RESPONSIVE 400
========================================= */

@media (max-width: 400px) {


    .regedit-hero h1 {

        font-size: 40px;

    }


    .selected-product {

        flex-direction: column;

    }


    .selected-product-price {

        padding-left: 56px;

    }


    .checkout-header {

        align-items: flex-start;

    }

}
/* =========================================
   CHECKOUT OCULTO
========================================= */

#checkoutSection {

    display: none;

}


/* =========================================
   CHECKOUT VISIBLE
========================================= */

#checkoutSection.active {

    display: block;

}


/* =========================================
   ANIMACIÓN DE APERTURA
========================================= */

#checkoutSection.checkout-opening {

    animation:
        checkoutDrop
        0.65s
        cubic-bezier(0.22, 1, 0.36, 1)
        forwards;

}


/* =========================================
   KEYFRAMES
========================================= */

@keyframes checkoutDrop {

    0% {

        opacity: 0;

        transform:
            translateY(45px)
            scale(0.97);

        filter:
            blur(4px);

    }


    60% {

        opacity: 1;

        transform:
            translateY(-5px)
            scale(1.01);

        filter:
            blur(0);

    }


    100% {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

        filter:
            blur(0);

    }

}
/* =========================================
   CUPON
========================================= */

.coupon-section {

    margin-top: 30px;

    padding-top: 30px;

    border-top:
        1px solid
        rgba(255,255,255,0.06);

}


.coupon-section > label {

    display: block;

    margin-bottom: 9px;

    color: #d9dee6;

    font-size: 12px;

    font-weight: 600;

}


.coupon-section > label span {

    color: #7f8cff;

}


/* =========================================
   CUPON WRAPPER
========================================= */

.coupon-wrapper {

    display: flex;

    align-items: center;

    gap: 10px;

}


.coupon-wrapper .form-input {

    flex: 1;

}


/* =========================================
   BOTON APLICAR CUPON
========================================= */

.apply-coupon-button {

    height: 52px;

    padding:
        0 20px;

    flex-shrink: 0;

    border:
        1px solid
        rgba(130,145,255,0.20);

    border-radius: 11px;

    background:
        rgba(127,140,255,0.08);

    color: #aeb6ff;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.04em;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


.apply-coupon-button:hover {

    transform:
        translateY(-2px);

    border-color:
        rgba(130,145,255,0.45);

    background:
        rgba(127,140,255,0.14);

    color: #ffffff;

    box-shadow:
        0 10px 30px
        rgba(90,105,255,0.10);

}


.apply-coupon-button:active {

    transform:
        translateY(0);

}


/* =========================================
   RESULTADO CUPON
========================================= */

.coupon-result {

    display: none;

    align-items: center;

    gap: 10px;

    margin-top: 12px;

    padding: 12px 14px;

    border-radius: 11px;

    font-size: 10px;

    line-height: 1.5;

}


.coupon-result.show {

    display: flex;

    animation:
        couponResultIn
        0.35s ease forwards;

}


/* =========================================
   CUPON VALIDO
========================================= */

.coupon-result.success {

    border:
        1px solid
        rgba(34,197,94,0.20);

    background:
        rgba(34,197,94,0.06);

    color: #72ff9d;

}


.coupon-result.success i {

    color: #42e879;

}


/* =========================================
   CUPON INVALIDO
========================================= */

.coupon-result.error {

    border:
        1px solid
        rgba(255,70,70,0.18);

    background:
        rgba(255,70,70,0.07);

    color: #ff8585;

}


.coupon-result.error i {

    color: #ff7777;

}


/* =========================================
   ANIMACION RESULTADO CUPON
========================================= */

@keyframes couponResultIn {

    from {

        opacity: 0;

        transform:
            translateY(-5px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}
.coupon-wrapper {

    flex-direction: column;

    align-items: stretch;

}


.apply-coupon-button {

    width: 100%;

}