/* =========================================================
   PROMO PAGE
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background: #111827;
    color: #fff;
    overflow-x: hidden;
}


/* =========================================================
   CONTENEDOR PRINCIPAL
========================================================= */

.promo-page {

    width: 100%;
    min-height: 100vh;

    max-width: 500px;

    margin: 0 auto;

    padding:
        20px
        12px
        40px;

    position: relative;

    background:
        linear-gradient(
            180deg,
            #111827 0%,
            #172033 100%
        );
}





/* =========================================================
   BRILLO DECORATIVO DEL FONDO
========================================================= */

/* =========================================================
   CONTENEDOR
========================================================= */

.promo-page {
    position: relative;
    isolation: isolate;
}


/* =========================================================
   BRILLO DECORATIVO DEL FONDO
========================================================= */

.promo-page::before {

    content: "";

    position: absolute;

    top: -150px;
    left: 50%;

    width: 350px;
    height: 350px;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(59,130,246,.22),
            transparent 70%
        );

    pointer-events: none;

    z-index: -1;
}


/* =========================================================
   CONTENIDO
========================================================= */

.promo-page > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   BOTONES SUPERIORES
========================================================= */

.profile-home-button,
.profile-share-button,
.profile-actions-right {

    z-index: 20;
}














/* =========================================================
   HEADER
========================================================= */

.profile-header {

    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;
    
    padding-top: 45px;

    text-align: center;

    margin-bottom: 20px;
}


/* =========================================================
   AVATAR
========================================================= */

.profile-header .avatar {

    width: 120px;
    height: 120px;

    margin-bottom: 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background:
        rgba(255,255,255,.10);

    border:
        3px solid
        rgba(255,255,255,.90);

    box-shadow:
        0 12px 35px
        rgba(0,0,0,.40);
}

.profile-header .avatar img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================================
   NOMBRE
========================================================= */

.profile-name {

    margin: 0;

    color: #fff;

    font-size: 28px;

    line-height: 1.2;

    font-weight: 800;

    text-shadow:
        0 2px 8px
        rgba(0,0,0,.45);
}


/* =========================================================
   USERNAME
========================================================= */

.profile-header .username {

    margin-top: 5px;

    color:
        rgba(255,255,255,.65);

    font-size: 14px;

    font-weight: 500;
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.profile-header .description {

    width: 100%;

    max-width: 420px;

    margin:
        12px auto
        0;

    color:
        rgba(255,255,255,.82);

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   SLIDER DE TARJETAS
========================================================= */

.card-slider {

    width: 100%;

    max-width: 500px;

    margin:
        25px auto
        0;

    overflow: hidden;

    position: relative;

    border-radius: 28px;

    cursor: grab;

    touch-action: pan-y;

    box-shadow:
        0 25px 60px
        rgba(0,0,0,.35);
}

.card-slider:active {
    cursor: grabbing;
}


.card-track {

    display: flex;

    width: 200%;

    transition:
        transform .45s cubic-bezier(.22,.61,.36,1);

    will-change: transform;
}


.card-slide {

    width: 50%;

    flex:
        0 0 50%;

    display: flex;

    justify-content: center;
    align-items: center;

    overflow: hidden;

    border-radius: 28px;
}


.card-slide .card-front,
.card-slide .card-back {

    width: 100%;

    margin: 0;

    border-radius: 28px;

    overflow: hidden;
}


/* =========================================================
   INDICADORES
========================================================= */

.card-slider-dots {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    margin:
        13px 0
        25px;
}


.card-slider-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.30);

    transition:
        background .25s ease,
        transform .25s ease;
}


.card-slider-dot.active {

    background: #fff;

    transform: scale(1.35);
}


/* =========================================================
   PROMOCIONES
========================================================= */

.section-title {

    margin:
        25px 0
        15px;

    color: #fff;

    font-size: 22px;

    font-weight: 800;
}


/* =========================================================
   PROMOCIÓN
========================================================= */
/* =========================================================
   GRID DE PROMOCIONES
========================================================= */

.promotions-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));

    gap: 12px;
}


/* =========================================================
   PROMOCIÓN
========================================================= */

.promotion {

    width: 100%;

    margin: 0;

    padding: 14px;

    background:
        rgba(255,255,255,.10);

    border:
        1px solid
        rgba(255,255,255,.16);

    border-radius: 18px;

    box-shadow:
        0 10px 30px
        rgba(0,0,0,.20);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    min-width: 0;
}


/* =========================================================
   IMAGEN
========================================================= */

.promotion-image {

    width: 100%;

    aspect-ratio: 1 / 1;

    display: block;

    margin-bottom: 10px;

    border-radius: 12px;

    object-fit: cover;
}


/* =========================================================
   TÍTULO
========================================================= */

.promotion h3 {

    margin: 0 0 7px;

    color: #fff;

    font-size: 16px;

    font-weight: 800;

    line-height: 1.25;
}


/* =========================================================
   DESCRIPCIÓN
========================================================= */

.promotion-description {

    color:
        rgba(255,255,255,.75);

    font-size: 12px;

    line-height: 1.45;
}


/* =========================================================
   DESCUENTO
========================================================= */

.discount {

    margin-top: 10px;

    color: #4ade80;

    font-size: 14px;

    font-weight: 800;
}


/* =========================================================
   CÓDIGO
========================================================= */

.promotion-code {

    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-top: 11px;

    padding: 8px;

    background:
        rgba(0,0,0,.25);

    border-radius: 9px;
}

.code-text {
    color: #fff;

    font-size: 12px;

    font-weight: 800;

    word-break: break-word;
}


.copy-button {

    width: 100%;

    border: 0;

    padding: 7px;

    border-radius: 7px;

    background:
        rgba(255,255,255,.16);

    color: #fff;

    cursor: pointer;

    font-size: 11px;
}


/* =========================================================
   TÉRMINOS
========================================================= */

.promotion-terms {

    margin-top: 10px;

    color:
        rgba(255,255,255,.60);

    font-size: 10px;

    line-height: 1.45;
}


/* =========================================================
   EXPIRACIÓN
========================================================= */

.promotion-expiration {

    margin-top: 9px;

    color:
        rgba(255,255,255,.50);

    font-size: 10px;
}


/* =========================================================
   WHATSAPP
========================================================= */

.whatsapp-button {

    display: block;

    width: 100%;

    margin-top: 11px;

    padding: 9px 6px;

    text-align: center;

    text-decoration: none;

    color: #fff;

    background: #16a34a;

    border-radius: 9px;

    font-size: 11px;

    font-weight: 700;
}











/* =========================================================
   SIN PROMOCIONES
========================================================= */

.no-promotions {

    padding: 25px;

    text-align: center;

    color:
        rgba(255,255,255,.60);

    background:
        rgba(255,255,255,.07);

    border-radius: 18px;
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 600px) {

    .promo-page {

        padding:
            15px
            9px
            30px;
    }

    .profile-header .avatar {

        width: 105px;
        height: 105px;
    }

    .profile-name {

        font-size: 24px;
    }

    .card-slider {

        border-radius: 23px;
    }

    .card-slide {

        border-radius: 23px;
    }
}


















/* =========================================================
   BOTÓN COMPARTIR
========================================================= */

.promo-page {
    position: relative;
}

.profile-share-button {

    position: absolute;

    top: 18px;
    right: 18px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255,255,255,.25);

    border-radius: 50%;

    background: rgba(255,255,255,.16);

    color: #ffffff;

    cursor: pointer;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 6px 20px rgba(0,0,0,.20);

    transition:
        transform .2s ease,
        background .2s ease;
}

.profile-share-button svg {

    width: 20px;
    height: 20px;
}

.profile-share-button:hover {

    background: rgba(255,255,255,.28);

    transform: scale(1.06);
}

.profile-share-button:active {

    transform: scale(.94);
}


/* =========================================================
   BOTÓN CASITA
========================================================= */

.profile-home-button {

    position: absolute;

    top: 18px;
    left: 18px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255,255,255,.25);

    border-radius: 50%;

    background: rgba(255,255,255,.16);

    color: #ffffff;

    cursor: pointer;

    text-decoration: none;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 6px 20px rgba(0,0,0,.20);

    transition:
        transform .2s ease,
        background .2s ease;
}

.profile-home-button svg {

    width: 20px;
    height: 20px;
}

.profile-home-button:hover {

    background: rgba(255,255,255,.28);

    transform: scale(1.06);
}

.profile-home-button:active {

    transform: scale(.94);
}


/* =========================================================
   FOOTER
========================================================= */

.profile-footer-wrapper {

    width: 100%;

    max-width: 430px;

    margin-top: 30px;

    color: rgba(255,255,255,.60);
}





















/* =========================================================
   BOTÓN PERFIL - CENTRADO SUPERIOR
========================================================= */

.profile-actions-right {

    position: absolute;

    top: 18px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;
}


/* =========================================================
   BOTÓN PERFIL
========================================================= */

.profile-user-button {

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255,255,255,.25);

    border-radius: 50%;

    background: rgba(255,255,255,.16);

    color: #ffffff;

    cursor: pointer;

    text-decoration: none;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 6px 20px rgba(0,0,0,.20);

    transition:
        transform .2s ease,
        background .2s ease;
}


/* =========================================================
   ICONO
========================================================= */

.profile-user-button svg {

    width: 20px;
    height: 20px;

    display: block;
}


/* =========================================================
   HOVER
========================================================= */

.profile-user-button:hover {

    background: rgba(255,255,255,.28);

    transform: scale(1.06);
}


/* =========================================================
   ACTIVE
========================================================= */

.profile-user-button:active {

    transform: scale(.94);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .profile-actions-right {

        top: 14px;
        left: 50%;

        transform: translateX(-50%);
    }

    .profile-user-button {

        width: 40px;
        height: 40px;
    }

    .profile-user-button svg {

        width: 19px;
        height: 19px;
    }

}















.profile-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    flex-shrink: 0;
}

.verified-badge svg {
    width: 100%;
    height: 100%;
    display: block;
}

