@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: rgba(14, 30, 166, 1);
    --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: #00005a;
}

.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;
}

.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(100px, 15vw, 180px);
}

.brand__logo--tigo {
    width: clamp(100px, 20vw, 200px);
}

/* ---------- Persona ---------- */
.figure {
    position: absolute;
    z-index: 3;
    left: -35%;
    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%);
    /* filter: drop-shadow(0 0 20px rgba(0, 1, 90, 0.5)); */
}

/* ---------- 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;
}

.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: #00015A;
}

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

.panel__title {
    width: min(80%, 300px);
    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: #00015A;
}

.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;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

#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);
    color: var(--white);
    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;
}

/* Globo = forma dibujada solo con CSS (fondo + pestaña vía pseudo-elemento) */
.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: rgba(188, 192, 197, 1);
    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: rgba(0, 0, 90, 1);
}

.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: #212F40;
}

.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/empresas/movistar-ahora-es-tigo/arrow-fqa-white.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.2s ease;
}

.fqa__item-icon--blue {
    background-image: url("https://aprodmovistarcomsa.z13.web.core.windows.net/empresas/movistar-ahora-es-tigo/arrow-fqa-blue.svg");
}

.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) {
    /* Persona — estado hero: grande a la izquierda */

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

    .figure {
        left: auto;
        right: 3%;
        bottom: -12%;
        width: min(65%, 700px);
    }

    .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: 10%;
        top: 26%;
        width: min(50%, 700px);
        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 — en la columna izquierda, bajo el texto legal */
    .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;
    }

}

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

    .panel {
        left: 14%;
    }

}