@font-face {
    font-family: "DMSans";
    src: url("/assets/fonts/tigo/DMSans-Medium.woff2") format("woff2"),
        url("/assets/fonts/tigo/DMSans-Medium.woff") format("woff"),
        url("/assets/fonts/tigo/DMSans-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DMSans";
    src: url("/assets/fonts/tigo/DMSans-MediumItalic.woff2") format("woff2"),
        url("/assets/fonts/tigo/DMSans-MediumItalic.woff") format("woff"),
        url("/assets/fonts/tigo/DMSans-MediumItalic.ttf") format("truetype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "DMSans";
    src: url("/assets/fonts/tigo/DMSans-Bold.woff2") format("woff2"),
        url("/assets/fonts/tigo/DMSans-Bold.woff") format("woff"),
        url("/assets/fonts/tigo/DMSans-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DMSans";
    src: url("/assets/fonts/tigo/DMSans-Black.woff2") format("woff2"),
        url("/assets/fonts/tigo/DMSans-Black.woff") format("woff"),
        url("/assets/fonts/tigo/DMSans-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Paleta de marca */
    --c-blue: #0a25c8;
    --c-blue-deep: #041a9e;
    --c-green-accent: #00F52D;
    --c-white: #ffffff;
    --c-ink: #0a0a1e;
    /* Superficies */
    --stage-pad: clamp(1rem, 5vw, 2rem);
    --radius-pill: 999px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "DMSans", "adjust-sans-serif", Helvetica, Arial, sans-serif;
}

html,
body {
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

body,
main {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: #0000a3;
    font-family: "DMSans", "adjust-sans-serif", Helvetica, Arial, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: 0;
    background: none;
}

figure,
p {
    margin: 0;
}

b,
strong {
    font-family: "DMSans", "adjust-sans-serif", Helvetica, Arial, sans-serif;
    font-weight: 700;
}

/* Utilities */
.d-none {
    display: none;
}

.frame-hidden {
    opacity: 0;
    visibility: hidden;
}


/* Layout */
.stage-bg {
    position: fixed;
    inset: 0;
    background-color: #0000a3;
}

.frame {
    position: absolute;
    inset: 0;
    z-index: 1;
    isolation: isolate;
    height: 100vh;
}

/* Background layers */
#bg-general-step2,
#bg-fqa-step2 {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bg-layer {
    position: relative;
    top: 0;
    z-index: 1;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.bg-layer--bottom {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    object-fit: cover;
}

.bg-layer--fqa {
    object-position: top center;
}

/* Wave layers */
.wave {
    position: absolute;
    right: 0;
    width: 100%;
    object-fit: cover;
    mix-blend-mode: color-burn;
}

.wave--up {
    top: 0;
}

.wave--down {
    bottom: 0;
}

.wave-up-1 {
    z-index: 3;
}

.wave-up-2 {
    z-index: 4;
}

.wave-up-3 {
    z-index: 5;
}

.wave-up-4 {
    z-index: 6;
}

.wave-down-1,
.wave-down-nor-1 {
    z-index: 2;
}

.wave-down-2 {
    z-index: 3;
}

.wave-down-3 {
    z-index: 4;
}

@media screen and (min-width: 768px) {
    .wave-down-1 {
        position: relative;
        bottom: auto;
        height: 100%;
        mix-blend-mode: normal;
    }

    .wave-up-3,
    .wave-up-4 {
        mix-blend-mode: normal;
    }

    .wave-mix-c-burn {
        mix-blend-mode: color-burn;
    }

    .hide-sd {
        display: none !important;
    }
}

@media screen and (min-width: 1200px) {
    .wave--up {
        transform: translateY(-10%);
    }

    .wave-up-2,
    .wave-up-4 {
        transform: translateY(-5%);
    }

    .wave-down-2,
    .wave-down-3 {
        transform: translateY(10%);
    }

    .wave-down-trans-zero {
        transform: translateY(0);
    }
}


.stage-info,
.stage-fqa {
    position: relative;
    padding: 1rem;
    z-index: 30;
    height: 100%;
    overflow: hidden;
    opacity: 0;
}


/* ---------- Marcas ---------- */
.brand {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 6;
}

.brand__logo {
    height: auto;
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.15));
}

.brand__logo--movistar {
    width: clamp(28px, 8vw, 50px);
}

.brand__logo--tigo {
    width: clamp(38px, 11vw, 65px);
}

/* ---------- Persona ---------- */
.figure {
    position: absolute;
    z-index: 3;
    /* Estado hero (mobile): grande, abajo */
    left: -46%;
    bottom: 0;
    width: 150%;
}

.figure__img {
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

/* ---------- Hero (estado 1) ---------- */
.hero {
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 15%;
    width: min(86%, 460px);
    transform: translateX(-50%);
    text-align: center;
}

.hero__title {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 18px rgba(0, 10, 186, 0.8));
}

.hero__pill {
    display: block;
    box-sizing: border-box;
    width: min(100%, 40em);
    height: auto;
    margin: clamp(1rem, 3vw, 1.4rem) auto 0;
    border: 2px solid #fff;
    border-radius: 999px;
    background-color: #000aba;
}

/* ---------- Panel (estado 2) ---------- */
.panel {
    position: relative;
    z-index: 5;
    text-align: center;
    margin: 1rem auto 0;
    max-width: 435px;
}

.panel__title {
    width: min(80%, 250px);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 4px 18px rgba(0, 10, 186, 0.8));
}

.panel__search {
    display: block;
    box-sizing: border-box;
    width: min(100%, 30em);
    height: auto;
    margin: 0 auto;
    margin-top: clamp(1rem, 4vw, 1.1rem);
    border: 2px solid #fff;
    border-radius: 999px;
    background-color: rgb(0, 10, 186);
}

.panel__legal {
    margin-top: 1.5rem;
    font-size: clamp(.85rem, 2.9vw, 1rem);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

/* ---------- Botón de llamada a la acción ---------- */
#cta_desk {
    display: none;
}

#cta_mov {
    margin-top: 1.5rem;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.9em;
    padding: 0.5em 0.5em 0.5em 1.3em;
    border-radius: 8px;
    background: var(--c-white);
    color: var(--c-ink);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.cta__icon {
    position: relative;
    flex: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: var(--c-green-accent);
    animation: cta-icon-bounce 2s infinite 7s;
}

@keyframes cta-icon-bounce {

    0%,
    10%,
    25%,
    40%,
    50%,
    100% {
        transform: translateY(0);
    }

    20% {
        transform: translateY(7px);
    }

    30% {
        transform: translateY(5px);
    }
}

.cta__text {
    white-space: nowrap;
}

/* ---------- Chat ---------- */
.chat {
    position: relative;
    z-index: 5;
    max-width: 435px;
    margin: 1.5rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.chat__heading {
    color: white;
    text-align: center;
    font-size: clamp(1.1rem, 6vw, 1.5rem);
    font-weight: 700;
}

.chat__list {
    position: relative;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    margin: 0;
    padding-inline-start: 0;
}

.chat__item {
    display: flex;
}

.chat__item--question {
    grid-row: 1;
    justify-content: flex-end;
}

.chat__item--answer {
    grid-row: 2;
    justify-content: flex-start;
}

/* chat bubbles */
.chat__bubble {
    position: relative;
    max-width: 94%;
    padding: .7rem 1rem;
    color: var(--c-ink);
    font-size: clamp(1rem, 4vw, 1.1rem);
    line-height: 1.35;
    overflow-wrap: break-word;
    border-radius: 18px;
}

.chat__bubble span {
    display: block;
}

.chat__bubble--question {
    background-color: #F0FFC2;
    border-bottom-right-radius: 0;
}

.chat__bubble--question::after {
    content: "";
    position: absolute;
    right: -11px;
    bottom: 0;
    width: 14px;
    height: 16px;
    background-color: inherit;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.chat__bubble--answer {
    background-color: var(--c-white);
    border-bottom-left-radius: 0;
}

.chat__bubble--answer::after {
    content: "";
    position: absolute;
    left: -11px;
    bottom: 0;
    width: 14px;
    height: 16px;
    background-color: inherit;
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

/* ---------- Barra inferior (mobile) ---------- */
.footer-bar {
    position: fixed;
    z-index: 34;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: .9rem 1rem .8rem;
    background: var(--c-white);
    color: var(--c-white);
    opacity: 0;
}

.footer-bar__img {
    display: block;
    margin: 0 auto;
}


/* CSS preguntas frecuentes */

.stage-fqa {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100vh;
    height: 100dvh;
    z-index: 20;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stage-fqa::-webkit-scrollbar {
    display: none;
}

.fqa__back {
    display: flex;
    margin: 0 auto 2rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.fqa__back-icon {
    display: block;
    width: 40px;
    height: 40px;
}

.fqa__head {
    max-width: 1080px;
    margin: 0 auto 2rem;
    text-align: center;
}

.fqa__title {
    margin: 0 0 1rem;
    color: var(--c-white);
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 700;
}

.fqa__search {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.fqa__search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fqa__search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    width: 14px;
    height: 14px;
    transform: translateY(-60%);
    color: #7a7f9a;
}

.fqa__search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.5rem;
    border: none;
    border-radius: 999px;
    background: var(--c-white);
    color: #333;
    font-size: 1rem;
}

.fqa__search-input::placeholder {
    color: #8a8a8a;
}

.fqa__search-clear {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    width: 16px;
    height: 16px;
    padding: 0;
    background: none;
    border: none;
    transform: translateY(-50%);
    cursor: pointer;
}

.fqa__search-clear i {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.fqa__search-clear i::before,
.fqa__search-clear i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #7a7f9a;
}

.fqa__search-clear i::before {
    transform: translateY(-50%) rotate(45deg);
}

.fqa__search-clear i::after {
    transform: translateY(-50%) rotate(-45deg);
}

.fqa__search-empty {
    color: var(--c-white);
    opacity: 0.85;
}

.fqa__panels {
    margin-bottom: 90px;
}

.fqa__list {
    max-width: 1080px;
    margin: 0 auto 1rem;
}

.fqa__group {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
}

.fqa__group-summary {
    display: grid;
    grid-template-columns: 1fr 24px;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--c-white);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.fqa__group-summary::-webkit-details-marker {
    display: none;
}

.fqa__group[open] {
    background: #fff;
}

.fqa__group[open] > .fqa__group-summary {
    color: #001EB4;
}

.fqa__group[open] > .fqa__group-summary .fqa__item-icon {
    transform: rotate(180deg);
}

.fqa__group[open] > .fqa__item {
    margin: 0 1.25rem;
}

.fqa__group[open] .fqa__item {
    border-bottom-color: rgba(0, 0, 90, 0.15);
}

.fqa__group[open] .fqa__item-summary,
.fqa__group[open] .fqa__item-answer {
    color: rgba(0, 0, 90, 1);
}

.fqa__group[open] > .fqa__item:last-child {
    margin-bottom: 0.5rem;
}

.fqa__list > .fqa__item:last-child {
    border-bottom: 0;
}

.fqa__item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.fqa__item-summary {
    display: grid;
    grid-template-columns: 1fr 24px;
    gap: 1rem;
    color: var(--c-white);
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
}

.fqa__item-summary::-webkit-details-marker {
    display: none;
}

.fqa__item-question {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    font-weight: 700;
}

.fqa__item-number {
    margin-right: 0.35rem;
}

.fqa__item-icon {
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("https://aprodmovistarcomsa.z13.web.core.windows.net/persons/movistar-ahora-es-tigo/arrow-fqa-green.svg?v=7373");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s ease;
}

.fqa__item-icon--blue {
    background-image: url("data:image/svg+xml,%3Csvg width=%2231%22 height=%2231%22 viewBox=%220 0 31 31%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cpath d=%22M15.0944 20.9401L20.879 15.1556L19.2214 13.4984L16.2849 16.4349V9.20317H13.8889V16.4349L10.9524 13.4984L9.29484 15.1556L15.0944 20.9401ZM15.0821 30.1587C12.9964 30.1587 11.036 29.763 9.20079 28.9714C7.36561 28.1799 5.76931 27.1057 4.4119 25.7488C3.0545 24.3919 1.97976 22.7963 1.1877 20.9619C0.395899 19.1275 0 17.1676 0 15.0821C0 12.9964 0.395767 11.036 1.1873 9.20079C1.97884 7.36561 3.05304 5.76931 4.40992 4.4119C5.7668 3.0545 7.36243 1.97976 9.19683 1.1877C11.0312 0.395899 12.9911 0 15.0766 0C17.1623 0 19.1228 0.395767 20.9579 1.1873C22.7931 1.97884 24.3894 3.05304 25.7468 4.40992C27.1042 5.7668 28.179 7.36243 28.971 9.19683C29.7628 11.0312 30.1587 12.9911 30.1587 15.0766C30.1587 17.1623 29.763 19.1228 28.9714 20.9579C28.1799 22.7931 27.1057 24.3894 25.7488 25.7468C24.3919 27.1042 22.7963 28.179 20.9619 28.971C19.1275 29.7628 17.1676 30.1587 15.0821 30.1587Z%22 fill=%22%2300005A%22/%3E%3C/svg%3E");
}

.fqa__item[open] .fqa__item-icon {
    transform: rotate(180deg);
}

.fqa__item-answer {
    margin: 0.75rem 1.3rem 0;
    color: var(--c-white);
    opacity: 0.9;
    padding-right: 30px;
    padding-left: .5rem;
    font-weight: 500;
}

.fqa__item-answer a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}


@media screen and (min-width: 768px) {

    .stage-info {
        padding: 2rem 1rem;
    }

    .figure {
        left: -8%;
        bottom: -12%;
        width: min(65%, 1000px);
    }

    .figure__img {
        -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
    }

    /* Hero */
    .hero {
        left: 47%;
        top: 26%;
        width: min(44%, 640px);
        transform: none;
        text-align: left;
    }

    .hero__pill {
        margin: 1.6rem 0 0;
    }

    /* Panel */
    .panel {
        position: absolute;
        left: 6%;
        top: 20%;
        width: min(46%, 640px);
        max-width: none;
        margin: 0;
        text-align: left;
    }

    .panel__title {
        width: min(80%, 440px);
        margin: 0;
        filter: none;
    }

    .panel__search {
        margin-left: 0;
    }

    .panel__legal {
        margin-top: 1.3rem;
        margin-bottom: 1.3rem;
        max-width: 60ch;
    }

    #cta_desk {
        display: inline-flex;
    }

    /* CTA  */
    .cta {
        left: 5%;
        bottom: auto;
        top: 62%;
        transform: none;
    }

    /* Chat */
    .chat {
        position: absolute;
        left: auto;
        right: 6%;
        top: 13%;
        bottom: auto;
        width: min(32%, 420px);
        max-width: none;
        margin: auto;
    }

    .chat__heading {
        display: none;
    }

    .chat__bubble {
        max-width: 84%;
    }

    /* CSS preguntas frecuentes */

    .stage-fqa {
        padding-top: 3rem;
    }

    .stage-fqa .brand {
        display: none;
    }

    .fqa__head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 2rem;
        text-align: center;
    }

    .fqa__title {
        grid-column: 2;
        margin: 0;
    }

    .fqa__search {
        grid-column: 3;
        justify-self: end;
        width: min(100%, 200px);
        margin: 0;
    }

    .fqa__item-summary {
        grid-template-columns: 1fr 30px;
    }

    .fqa__item-icon {
        width: 30px;
        height: 30px;
    }

    .fqa__item-answer {
        padding-right: 36px;
    }

}

@media screen and (min-width: 1400px) {
    .chat {
        right: 10%;
    }

    .panel {
        left: 10%;
        width: min(60%, 700px);
    }

    .panel__title {
        width: min(80%, 476px);
    }

    .panel__legal {
        max-width: 48ch;
        font-size: 1.2rem;
        margin-bottom: 3rem;
    }

    .cta {
        font-size: 1.1rem;
    }

}