@font-face {
    font-family: XTB Sans;
    src: url(https://xas.scdn5.secure.raxcdn.com/build/XTBSans-SemiBold.CBuUyXWy.woff2) format("woff2"),
        url(https://xas.scdn5.secure.raxcdn.com/build/XTBSans-SemiBold.BX6NR1XM.woff) format("woff"),
        url(https://xas.scdn5.secure.raxcdn.com/build/XTBSans-SemiBold.lEvuBa_y.otf) format("opentype");
    font-display: swap;
    font-style: normal;
    font-weight: 600;
    font-stretch: normal;
}


.progress {
    height: 30px;
    border-radius: 50px;
}

.progress-bar {
    background: #1e6dff;
    /* azul */
    border-radius: 50px;
    transition: width 0.1s ease-out;
    /* Transición suave para el ancho */
}

#progress-value {
    position: absolute;
    top: 50%;
    transform: translate(-180%, -50%);
    font-weight: bold;
    color: white;
    font-size: 16px;
    font-family: 'XTB Sans';
}

img.logo {
    float: right;
}

/* Estilos generales (para todos los dispositivos) */
.responsive-height.text-container {
    min-height: fit-content;
    justify-content: space-between;
}

.container-fluid>.row {
    min-height: fit-content;
    align-items: stretch;
}

.desktop {
    display: block;
}

.mobile {
    display: none;
}

body {
    font-family: 'Roboto', sans-serif !important;
    margin: 0;
    padding: 0;
    color: #131212;
    transition: all ease 0.3s;
}

p {
    font-size: 18px;
    line-height: 22px;

}

p.medium {
    font-size: 18px;
    line-height: 24px;
}

.center {
    text-align: center;
}

.h3,
h3 {
    font-size: 1.75rem;
    font-family: 'XTB Sans';
}

#section1 h1 {
    font-family: 'XTB Sans', sans-serif !important;
    font-size: 57px;
    line-height: 60px;
    color: #333;
    font-weight: 900;
    padding: 8% 8% 0 0;
    margin-top: 50px;
}

.footer-note p {
    font-size: 12px;
    line-height: 15px;
    margin-bottom: 4px;
}

small.footer-note {
    font-size: 13px;
}

input[type="number"] {
    padding: 7px 22px;
    border-radius: 0 !important;
    border: 1px solid #0f71ff;
    margin-right: 0;
    text-align: right;
    width: 60%;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 50%;
}

.form-label {
    margin-bottom: 0 !important;
    width: 48%;
}

.container-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-control {
    border-radius: 50px !important;
    padding: 0.75rem 1rem;
    border: 3px solid #007bff;
}

.form-control,
.input-group-text {
    border: 2px solid transparent !important;
    /* Borde transparente inicial */
    border-radius: 50px;
    background-image: linear-gradient(#fff, #fff),
        linear-gradient(55deg, #E9E9E9, #1070FF);
    background-origin: border-box;
    background-clip: padding-box, border-box !important;
    box-shadow: none;
}

.form-control.error-active {
    border: 2px solid red !important;
}

.gender-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gender-options input[type="radio"] {
    accent-color: #007bff;
    width: 1.25rem;
    height: 1.25rem;
}

.no-spinner {
    padding-right: 20px;
    /* Espacio para el símbolo */
    -moz-appearance: textfield;
    /* Para Firefox */
}

.no-spinner::-webkit-inner-spin-button,
.no-spinner::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.currency-symbol {
    position: absolute;
    right: 10px;
    /* Ajusta según sea necesario */
    pointer-events: none;
    /* Para que no interfiera con el clic en el input */
    /*top: 10px;*/
    font-size: 18px;
}

/* Ocultar los controles de spinner en navegadores modernos */
.no-spinner::-webkit-inner-spin-button,
.no-spinner::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.container-button {
    display: flex;
    justify-content: center;
}


/* Para Firefox */
.no-spinner {
    -moz-appearance: textfield;
}

p.subtitle {
    font-size: 26px;
    line-height: 32px;
}

/*header{
          position: fixed;
      }*/
/* margin */
.top2 {
    margin-top: 2%;
}

.top3 {
    margin-top: 3%;
}

.top5 {
    margin-top: 5%;
}

.bottom2 {
    margin-bottom: 2%;
}

.bottom3 {
    margin-bottom: 3%;
}

.bottom5 {
    margin-bottom: 5%;
}

.blue-shadow {
    -webkit-box-shadow: 0px 53px 61px -63px rgba(16, 112, 255, 0.58);
    -moz-box-shadow: 0px 53px 61px -63px rgba(16, 112, 255, 0.58);
    box-shadow: 0px 53px 61px -63px rgba(16, 112, 255, 0.58);
}

.left {
    text-align: left !important;
}

.logo-fixed {
    width: 60px;
    position: fixed;
    bottom: 0;
    right: 0;
}

.section {
    display: none;
    /* Ocultar todas las secciones inicialmente */
    /*height: 100vh;
          overflow: hidden;*/
    height: calc(var(--vh, 1vh) * 100);
    /* Usar la variable para la altura */
}

.section.active {
    display: block;
    /* Mostrar la sección activa */
}

.btn-xtb-index {
    cursor: pointer;
    font-family: 'XTB Sans';
    background-color: #FB0601;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 20px;
    color: white;
    margin: 12px 8px;
    transition: all ease 0.3s;
}

.btn-xtb-index.back {
    background-color: transparent;
    color: red;
    border: 3px solid red;

}

button.btn-xtb-index.disabled {
    background-color: grey;
    cursor: not-allowed;
    transform: none;
    transition: none;
}

.btn-xtb {
    background-color: #FB0601;
    border: none;
    border-radius: 50px;
    padding: 5px 30px;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 20px;
    color: white;
    transition: all ease 0.3s;
}

.btn-xtb-index:hover {
    transform: scale(1.05);
    transition: all ease 0.3s;
}

a.btn-xtb.big {
    font-size: 25px;
    padding: 10px 30px;
}

a.btn-xtb {
    text-decoration: none !important;
}

.btn-xtb-white {
    background-color: transparent;
    border: 1px solid #1070FF;
    border-radius: 50px;
    padding: 5px 30px;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 20px;
    color: #1070FF;
}

.modal-content {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.only-xs {
    display: none;
}

.only-desktop {
    display: block;
}

/***************************
       * SECTION 1
       * ************************/

.bg-img-index {
    height: calc(var(--vh, 1vh) * 100);
    background-image: url(https://logos.xtb.com/inf/your-retirement.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

#section1 p {
    font-size: 30px;
    line-height: 35px;
    margin-top: 45px;
}

.text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4% 6% !important;
    height: calc(var(--vh, 1vh) * 100);
}

/***************************
       * SECTION 2
       * ************************/

.bg-img-section2 {
    background-image: url(https://logos.xtb.com/inf/your-route.webp);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

#section2 h2,
#section3 h2,
#section4 h2 {
    font-family: 'XTB Sans', sans-serif !important;
    font-size: 42px;
    color: #333;
    font-weight: 900;
    text-align: left;
    line-height: 52px;
}

#section2 .content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-clicable {
    height: 100%;
    width: auto;
}

.img-container {
    display: inline-block;
    position: relative;
    /*justify-content: center;*/
    height: 65vh;
}

.btn-container {
    text-align: center;
}

button.btn-tv,
button.btn-entertainment,
button.btn-gym,
button.btn-delivery {
    border: none;
    background: transparent;
}

/*.btn-plus {
          background-color: #0f71ff;
          font-size: 35px;
          color: white;
          line-height: 0;
          height: 40px;
          width: 40px;
          border-radius: 50%;
          font-weight: 900;
          margin: 0px;
          text-decoration: none;
          border: none;
      }
      .btn-plus i{
          display: flex;
          align-items: center;
          justify-content: center;
      }
      @keyframes glow {
          0% {
              box-shadow: 0 0 5px rgba(15, 113, 255, 0.5);
              transform: scale(1);
          }
          50% {
              box-shadow: 0 0 15px rgba(15, 113, 255, 1);
              transform: scale(1.05);
          }
          100% {
              box-shadow: 0 0 5px rgba(15, 113, 255, 0.5);
              transform: scale(1);
          }
      }
  
      .btn-plus {
          display: inline-block; 
          animation: glow 1.5s infinite; 
          transition: transform 0.3s; 
      }*/

.btn-plus:hover {
    transform: scale(1.1);
}

.btn-plus {
    position: absolute;
}

.btn-plus.btn-tv {
    top: 40%;
    left: 15%;
}

.btn-plus.btn-delivery {
    bottom: 4%;
    left: 20%;
}

.btn-plus.btn-entertainment {
    top: 45%;
    right: 7%;
}

.btn-plus.btn-gym {
    bottom: 5%;
    right: 9%;
}

.result {
    background-color: #F6FAFF;
    padding: 2% 10%;
    text-align: center;
    height: calc(var(--vh, 1vh) * 100);
}

.content-result {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
}

h3.title-result {
    font-size: 25px;
}

small.tag {
    text-transform: uppercase;
    background: #0f71ff;
    padding: 2px 10px;
    color: white;
}

input[type="number"] {
    padding: 7px;
    border-radius: 0 !important;
    border: 1px solid #0f71ff;
    margin-right: 15px;
    text-align: center;
}

input::placeholder {
    color: #8fbdff;
}

/* Modal */

.form-items-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 55vh;
    justify-content: center;
}

.form-items-input {
    width: 33.33%;
}

.form-items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 5% !important;
    margin-bottom: 2%;
}

.form-item {
    width: 33.33% !important;
}

.form-items .form-item input[type=checkbox] {
    display: none;
}

.form-items .form-item input[type=checkbox]+label {
    position: relative;
    padding: 9px 30px;
    border: 2px solid #111111;
    border-radius: 30px;
    height: 100px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background-color: transparent;
    transition: 0.1s;
    color: #111111;
    line-height: 18px;
    text-align: center;
    justify-content: center;
    font-size: 18px;
}


.form-items .form-item input[type=checkbox]:checked+label {
    /* padding-left: 36px; */
    border-color: #1070FF;
    background-color: #E7F1FF;
    color: #1a1a1a;
    font-weight: 900;
    /* background-image: url(https://image.flaticon.com/icons/svg/1632/1632596.svg); */
}

/***************************
       * SECTION 3
       * ************************/
.bg-img-section3 {
    background-image: url(https://logos.xtb.com/inf/pension-covered.webp);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

#section3 {
    height: calc(var(--vh, 1vh) * 100);
    overflow-x: hidden;
}

#progressbarContent .progress {
    height: 40px;
    border-radius: 50px;
    background-color: #EBF3FE;
    margin: 3% 0 0 0;
}

#progressbarContent .text-value {
    display: flex;
    justify-content: space-between;
}

.result-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.text-result,
.number-result {
    width: 50%;
}

.number-result {
    padding: 10px 20px;
    text-align: right;
    border: 2px solid transparent !important;
    /* Borde transparente inicial */
    border-radius: 50px;
    background-image: linear-gradient(#fff, #fff),
        linear-gradient(55deg, #E9E9E9, #1070FF);
    background-origin: border-box;
    background-clip: padding-box, border-box !important;
    box-shadow: none;
}

.number-result.highlight-number {
    border: 3px solid #1070FF !important;
}

.text-result p {
    margin-bottom: 0;
    padding-right: 10%;
}

.number-result p {
    font-size: 20px;
    line-height: 23px;
    margin-bottom: 0;
    text-align: center;
    font-weight: 900;
}

.number-result.highlight-number p {
    font-size: 26px;
    line-height: 26px;
}

.container.container-image-result {
    display: flex;
    text-align: center;
    height: 40vh;
}

.result-image {
    text-transform: uppercase;
    font-size: 20px;
}

.result-image img {
    width: 200px;
}

.text-result-ahorro {
    margin-top: 25px;
}

.result-bank,
.result-save,
.result-save-invert,
.result-tv-month,
.result-tv-year {
    display: inline-block;
    border: 4px solid #111111;
    font-size: 30px;
    padding: 5px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: lowercase;
    margin: 0 5%;
}

.result-footer {
    background-color: #F6FAFF;
    padding: 3% 0;
    color: #111111;
    text-align: center;
    height: 40vh;
}

.legal {
    font-size: 12px;
    text-align: left !important;
    line-height: 11px;
    width: 94%;
    padding: 0 0 0 10px;
    /*position: absolute;*/
    bottom: 20px;
}

/****************************
       * SECTION 4
       * **************************/
.bg-img-section4 {
    background-image: url(https://logos.xtb.com/inf/saving-month.webp);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.container-select {
    display: flex;
    text-align: center;
}

.container-select .select p {
    font-size: 20px;
    font-family: 'XTB Sans';
    margin-top: 5%;
}

#conservative,
#moderate,
#agressive {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all ease 0.3s;
}

.container-select .select:hover {
    cursor: pointer;
    transform: scale(1.05);
    transition: all ease 0.3s;
}

.container-select .select img {
    border: 3px solid transparent;
}

.container-select .select:hover img {
    border: 3px solid #1e6dff;
    border-radius: 20px;
    transition: all ease 0.3s;
}


/****************************
       * SECTION5
       * *************************/
#section5 {
    background-image: url(https://logos.xtb.com/inf/ES_form_Investment_plans_2025_retina.png);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: contain;
    overflow-x: hidden;
}

#section4 .logo {
    float: right;
    margin-top: 50px;
}

.container-final-section {
    height: calc(var(--vh, 1vh) * 100);
    min-height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container-text-final h2 {
    font-size: 40px;
    margin-bottom: 15px;
    font-weight: 900;
}

.container-text-final p {
    font-size: 22px;
    line-height: 30px;
}

.box {
    display: flex;
    align-items: center;
    margin-top: 3% !important;
}

.box p {
    font-size: 15px;
    padding: 5px;
    margin-bottom: 0px;
}

.container-box {
    padding: 25px 30px;
    border: 1px solid #0f71ff;
    border-radius: 20px;
    backdrop-filter: blur(30px);
}

.container.container-final-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.colab-text-box {
    display: flex;
    width: 100%;
    padding-top: 40px;
    flex-direction: row;
    justify-content: end;
}

.container-result-bank-managing .money-managing,
.container-result-bank-managing .money-bank {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/***************************************************
       * M E D I A S   Q U E R I E S
       * *************************************************/

/*Pantallas muy grandes:*/
@media (max-width: 1600px) and (min-width: 1439px) {
    p.medium {
        font-size: 14px;
        line-height: 20px;
    }

    #section2 h2,
    #section3 h2,
    #section4 h2 {
        font-size: 50px;
        line-height: 50px;
    }

    #section2 h2 span,
    #section3 h2 span {
        font-size: 24px;
    }

    a.btn-plus img {
        width: 35px;
    }

    .form-items .form-item input[type=checkbox]+label {
        padding: 9px 20px;
        height: 80px;
        font-size: 18px;
    }

    .form-items-input {
        width: 60%;
    }

    .result-image img {
        width: 120px;
    }

    h3.text-center.bottom3.only-desktop.only-tablet {
        margin-bottom: 1% !important;
    }

    .result-footer {
        height: 50vh;
    }

    .container.container-image-result {
        height: auto;
    }

    .container-text-final p {
        font-size: 18px;
        line-height: 23px;
    }

    .container-text-final h2 {
        font-size: 30px;
    }

    .final-text {
        padding-top: 0;
    }

    .container-box {
        padding: 30px 30px 15px 30px;
    }

    a.btn-xtb.big {
        font-size: 22px;
    }

    .top5 {
        margin-top: 3%;
    }

    #section4 .logo {
        margin-top: 0;
    }

    #section1 p {
        font-size: 25px;
        line-height: 30px;
    }
}

/*(Monitores de alta definición)*/

/*Escritorios (pantallas grandes):*/

@media (max-width: 1440px) {
    .blue-shadow {
        -webkit-box-shadow: 0px 53px 61px -63px rgba(16, 112, 255, 0.58);
        -moz-box-shadow: 0px 53px 61px -63px rgba(16, 112, 255, 0.58);
        box-shadow: 0px 16px 38px -26px rgba(16, 112, 255, 0.58);
    }

    /* SECCIÓN 1 */
    #section1 p {
        font-size: 25px;
        line-height: 30px;
        margin-top: 45px;
    }

    button.btn-xtb-index img {
        width: 50px;
        margin-left: 20px;
    }

    .btn-xtb-index {
        padding: 10px 25px;
    }

    .text-container {
        padding: 5% !important;
    }

    /* SECCIÓN 2 */
    #section2 h2 span,
    #section3 h2 span {
        font-size: 25px;
    }

    #section2 h2,
    #section3 h2,
    #section4 h2 {
        font-size: 42px;
        line-height: normal;
    }

    .btn-plus img {
        width: 30px;
    }

    /*.img-clicable {
              width: 56%;
          }*/
    .form-items-input {
        width: 60%;
    }

    /*.btn-plus.btn-tv {
              top: 38%;
              left: 28%;
          }
          .btn-plus.btn-delivery {
              bottom: 7%;
              left: 33%;
          }
          .btn-plus.btn-entertainment {
              top: 45%;
              right: 25%;
          }
          .btn-plus.btn-gym {
              bottom: 5%;
              right: 26%;
          }*/
    #modalTv .form-items-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 55vh;
        justify-content: flex-;
    }

    .form-items .form-item input[type=checkbox]+label {
        border-radius: 25px;
        height: 70px;
    }

    .form-items .form-item.mini input[type=checkbox]+label {
        height: 50px;
    }

    /* SECCIÓN 3  */
    .result-bank,
    .result-save,
    .result-save-invert,
    .result-tv-month,
    .result-tv-year {
        font-size: 25px;
    }

    /* SECCIÓN 4 */
    /*.container-fluid.container-lg.container-final-section {
              justify-content: flex-start;
          }*/
    .container-box {
        padding: 35px;
    }

    .container-text-final p {
        font-size: 19px;
        line-height: 25px;
    }

    .result-image img {
        width: 120px;
    }

    .container.container-image-result {
        height: 35vh;
    }

    .result-footer {
        height: 45vh;
    }

}

/*(Escritorios y pantallas medianas)*/

/*Laptops y pantallas pequeñas de escritorio:*/

@media (max-width: 1280px) {
    #section4 .container-final-section {
        max-width: 90% !important;
    }

    .container-text-final h2 {
        font-size: 30px;
        margin-bottom: 10px;
        font-weight: 900;
    }

    .container-box {
        padding: 15px;
    }

    .legal {
        line-height: 11px;
    }

    .img-container {
        padding-top: 7% !important;
    }

    #section4 h3 {
        font-size: 22px;
    }

    .box p {
        font-size: 15px;
        padding: 5px;
        line-height: 16px;
    }
}

/*(Laptops y pantallas pequeñas)*/

/*Tabletas (horizontal):*/

@media (max-width: 1200px) and (min-width: 900px) {
    #section4 .container-fluid.container-lg.container-md.container-final-section {
        min-width: 90% !important;
    }

    .container-text-final h2 {
        font-size: 30px;
        margin-bottom: 10px;
        font-weight: 900;
    }

    .container-box {
        padding: 15px;
    }

    .legal {
        line-height: 11px;
    }

    .img-container {
        padding-top: 7% !important;
    }

    #section2 h2,
    #section3 h2,
    #section4 h2 {
        font-size: 35px;
        line-height: 42px;
    }

    p.subtitle {
        font-size: 22px;
        line-height: 27px;
    }

    p.medium {
        font-size: 12px;
        line-height: 13px;
    }

    .container-final-section {
        max-width: 94% !important;
    }

    #section5 img.logo {
        float: right;
    }

    #section5 {
        background-position: left center;
        background-size: 40%;
    }
}

/*(Tabletas en modo horizontal)*/

/*Tabletas (vertical):*/

@media (max-width: 900px) and (min-width: 768px) {
    .only-xs {
        display: none;
    }

    .only-desktop {
        display: none;
    }

    .only-tablet {
        display: block;
    }

    .btn-xtb,
    .btn-xtb-white {
        padding: 10px 60px;
        letter-spacing: 0;
        font-size: 25px;
        margin: 0 auto;
    }

    .btn-xtb-index {
        font-size: 35px;
    }

    #section1 p {
        margin-top: 15px;
    }

    /* SECCIÓN 2 */
    #section2 .logo {
        margin: 0 auto 15px auto;
    }

    .container.content-container.pt-3.pb-3 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: calc(var(--vh, 1vh) * 100);
    }

    #box,
    #text-xtb .final-text {
        width: 100%;
        margin-left: 0px;
        padding: 20px 6%;
    }

    .img-clicable {
        width: 100%;
    }

    .btn-plus img {
        width: 40px;
    }

    .btn-plus.btn-delivery {
        bottom: 7%;
        left: 20%;
    }

    .btn-plus.btn-entertainment {
        right: 5%;
    }

    .btn-plus.btn-gym {
        bottom: 3%;
        right: 9%;
    }

    .btn-plus.btn-tv {
        left: 8%;
    }

    .bg-tv,
    .bg-entertainment,
    .bg-gym,
    .bg-delivery {
        background-image: none;
        width: 100% !important;
        height: 50vh;
        overflow: hidden;
        margin-bottom: 50px;
    }

    .bg-tv {
        background-image: none;
        width: 100%;
        height: 40vh;
        overflow: hidden;
        margin-bottom: 50px;
    }

    #modalTv .form-items-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: calc(var(--vh, 1vh) * 100);
        justify-content: flex-start;
    }

    .form-items-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: calc(var(--vh, 1vh) * 100);
        justify-content: flex-start;
    }

    .result-bank,
    .result-save,
    .result-save-invert,
    .result-tv-month,
    .result-tv-year {
        display: inline-block;
        border: 4px solid #111111;
        font-size: 30px;
        padding: 5px 50px;
        border-radius: 50px;
        font-weight: 600;
        text-transform: lowercase;
        margin: 5% 1% 0 1%;
    }

    .result-bank,
    .result-save,
    .result-save-invert,
    .result-tv-month,
    .result-tv-year {
        font-size: 30px;
        margin-bottom: 40px;
    }

    .box-icon {
        margin-bottom: 25px;
    }

    .result-bank,
    .result-save,
    .result-save-invert {
        font-size: 28px;
    }

    p.text-result {
        font-size: 20px;
        margin-top: 10px;
        line-height: 30px;
    }

    small.tag {
        text-transform: uppercase;
        background: #0f71ff;
        padding: 2px 10px;
        color: white;
        font-size: 20px;
    }

    h3.title-result {
        font-size: 40px;
    }

    .result {
        height: calc(var(--vh, 1vh) * 100);
        padding: 10%;
    }

    .form-items {
        width: 100%;
    }

    .form-modal-container h2 {
        font-size: 35px;
    }

    .modal input {
        width: 100%;
        height: 70px;
        margin-bottom: 10px;
        text-align: center;
        font-size: 26px;
    }

    #gymBtn,
    #deliveryBtn,
    #ocioBtn,
    #continueBtn {
        width: 100%;
    }

    /* SECCIÓN 3 */
    /* modal */
    .container.container-image-result {
        display: flex;
        text-align: center;
        height: 40vh;
        flex-direction: row;
        justify-content: center;
    }

    /* margin */
    .top2-xs {
        margin-top: 5%;
    }

    .top3-xs {
        margin-top: 3%;
    }

    .top5-xs {
        margin-top: 5%;
    }

    .bottom2-xs {
        margin-bottom: 2%;
    }

    .bottom3-xs {
        margin-bottom: 3%;
    }

    .bottom5-xs {
        margin-bottom: 5%;
    }

    .container.container-image-result {
        display: flex;
        text-align: center;
        height: 40vh;
    }

    .modal-content {
        justify-content: flex-start;
    }

    .text-container {
        height: auto;
    }

    .img-container {
        height: auto;
    }

    .bg-img-index {
        height: calc(var(--vh, 1vh) * 50);
        background-image: url(https://logos.xtb.com/inf/your-retirement-mobile.webp);

    }

    .bg-img-section2 {
        height: calc(var(--vh, 1vh) * 50);
        background-image: url(https://logos.xtb.com/inf/your-route-mobile.webp);
    }

    .bg-img-section3 {
        height: calc(var(--vh, 1vh) * 50);
        background-image: url(https://logos.xtb.com/inf/pension-covered-mobile.webp);
    }

    .bg-img-section4 {
        height: calc(var(--vh, 1vh) * 50);
        background-image: url(https://logos.xtb.com/inf/saving-month-mobile.webp);
    }

    #section5 {
        background-image: none;
        overflow: hidden;
    }

}

@media (max-width: 768px) {

    #text-xtb {
        height: calc(var(--vh, 1vh) * 100);
        /* Ocupa el 100% de la altura de la ventana */
        display: flex;
        align-items: center;
        /* Centra verticalmente el contenido */
        justify-content: center;
        /* Centra horizontalmente el contenido */
    }

    #box {
        display: none;
        /* Ocultar la segunda sección inicialmente */
        height: calc(var(--vh, 1vh) * 100);
    }

    .section {
        display: none;
        height: calc(var(--vh, 1vh) * 100);
    }

    .only-xs {
        display: block;
    }

    .only-desktop {
        display: none;
    }

    /* margin */
    .top2-xs {
        margin-top: 5%;
    }

    .top3-xs {
        margin-top: 3%;
    }

    .top5-xs {
        margin-top: 5%;
    }

    .bottom2-xs {
        margin-bottom: 2%;
    }

    .bottom3-xs {
        margin-bottom: 3%;
    }

    .bottom5-xs {
        margin-bottom: 5%;
    }

    .logo {
        width: 100px;
        margin-top: 0 auto;
    }

    .btn-xtb {
        width: 100%;
    }

    img.img-clicable {
        width: 100%;
    }

    #section1 p {
        font-size: 18px;
        line-height: 21px;
        padding: 0 !important;
        margin-top: 0;
    }

    button.btn-xtb-index img {
        width: 30px;
        margin-left: 20px;
    }

    /* SECTION 1 */
    .bg-img-index {
        height: 35vh;
        background-image: url(https://logos.xtb.com/inf/your-retirement-mobile.webp);
    }

    #section1 h1 {
        font-size: 40px;
        line-height: 45px;
        margin: 50px 0 15px 0;
    }

    .btn-xtb-index {
        /*padding: 5px 0px 4px 8px;*/
        margin-top: 0px !important;
        font-size: 18px;
    }

    /* SECCIÓN 2 */
    #section2 {
        flex-direction: column;
        justify-content: center;
    }

    #section2 .logo {
        margin: 0 auto 15px auto;
    }

    #section2 h2,
    #section3 h2,
    #section4 h2 {
        font-size: 25px;
        line-height: 27px;
    }

    h3 {
        font-size: 18px;
        line-height: 20px;
    }

    p.subtitle {
        font-size: 18px;
        line-height: 22px;
        margin-bottom: 0;
    }

    .btn-plus img {
        width: 30px;
    }

    .btn-plus.btn-tv {
        top: 34%;
        left: 8%;
    }

    .btn-plus.btn-delivery {
        bottom: 2%;
        left: 20%;
    }

    .btn-plus.btn-entertainment {
        top: 36%;
        right: 5%;
    }

    .btn-plus.btn-gym {
        bottom: 3%;
        right: 9%;
    }

    #modal .btn-xtb,
    #modal .btn-xtb-white {
        font-size: 16px;
        margin-top: 15px;
        width: 45%;
        padding: 10px 0;
    }

    /* modales */
    .content-result {
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
    }

    button#continueBtn {
        width: 90%;
    }

    .form-modal-container h2 {
        padding: 19px 0 0 0;
        width: 100%;
        font-size: 22px;
    }

    form#deliveryForm {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        justify-content: center;
    }

    input[type="number"] {
        width: 100%;
        margin: 15px auto;
    }

    .form-item {
        width: 50% !important;
        padding: 0 !important;
    }

    .modal input {
        width: 100%;
        height: 40px;
        margin-bottom: 10px;
        text-align: center;
    }

    .bg-tv {
        background-image: none;
        height: 200px;
        overflow: hidden;
    }

    .bg-delivery,
    .bg-entertainment,
    .bg-gym {
        background-image: none;
        height: auto;
    }

    .content-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-wrap: nowrap;
        height: calc(var(--vh, 1vh) * 100);
        ;
    }

    .result {
        padding: 10% 8%;
    }

    #resultTv .btn-xtb,
    #resultEntertainment .btn-xtb,
    #resultDelivery .btn-xtb,
    #resultGym .btn-xtb {
        margin-top: 20px;
    }

    /* SECCIÓN 3 */
    .box-icon {
        width: 50% !important;
        margin-bottom: 20px;
    }

    .small-text {
        font-size: 8px;
    }

    .box-select {
        border-radius: 30px;
        padding: 5%;
    }

    .container.container-image-result {
        flex-direction: column;
        justify-content: flex-start;
        height: 45vh;
        /*padding: 40px 0;*/
    }

    .text-result-ahorro p {
        text-align: left;
        margin: 0 0 5px 0;
        font-size: 15px;
    }

    .result-bank,
    .result-save {
        font-size: 18px;
        margin: 0;
        width: 100%;
        padding: 0;
    }

    .modal-content-container {
        align-items: flex-start;
        align-content: flex-start;
        height: calc(var(--vh, 1vh) * 100);
    }

    .bg-tv {
        background-image: none;
        width: 100%;
        height: 30vh;
        overflow: hidden;
    }

    .form-items {
        width: 100%;
    }

    #modalTv .form-items-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: calc(var(--vh, 1vh) * 100);
        ;
        justify-content: flex-start;
    }

    .form-items-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: calc(var(--vh, 1vh) * 100);
        ;
        justify-content: flex-start;
    }

    #modal {
        height: 100vh;
        background: white;
    }

    #result h3 {
        font-size: 22px;
    }

    .modal-content {
        height: calc(var(--vh, 1vh) * 100);
        ;
        overflow: hidden;
    }

    .result-image {
        display: flex;
        align-items: center;
    }

    .result-image img {
        width: 25%;
    }

    .result-tv-month,
    .result-tv-year {
        font-size: 30px;
        margin: 7px auto;
        padding: 5px 20px;
        width: 80%;
    }

    .text-result {
        width: 100%;
    }

    .text-result-ahorro {
        width: 75%;
        padding: 0 10px;
    }

    .text-result p {
        text-align: left;
        font-size: 12px;
        line-height: 14px;
    }

    .result-footer {
        height: 60vh;
    }

    .result-save-invert {
        font-size: 20px;
    }

    .btn-container {
        display: flex;
        justify-content: space-around;
        margin-top: 30px;
    }

    .btn-xtb,
    .btn-xtb-white {
        font-size: 18px;
        padding: 10px 30px;
    }

    .legal {
        font-size: 10px;
        line-height: 8px;
        width: 100%;
        position: inherit;
    }

    button#continue-button {
        width: 50%;
    }

    #modal-form .btn-xtb {
        width: 100%;
    }

    #modal-form {
        padding: 20px 15px;
    }

    .img-container {
        height: auto;
    }

    .text-container {
        height: auto;
    }

    /* FINAL */
    #section4 {
        background-image: none;
        height: calc(var(--vh, 1vh) * 100);
        /*overflow: hidden;*/
    }

    #section4 .legal {
        left: 20px;
        width: 100%;
        position: inherit;
    }

    #section4 .logo {
        float: none;
        margin-top: 10px;
    }

    #section4 .container-final-section {
        padding: 0;
    }

    .container-text-final {
        padding: 0 20px;
    }

    .container-text-final h2 {
        font-size: 24px;
        margin-bottom: 10px;
        font-weight: 900;
    }

    .container-text-final p {
        font-size: 17px;
        line-height: 21px;
    }

    #box,
    #text-xtb .final-text {
        width: 100%;
        margin-left: 0px;
        padding: 20px 6%;
        padding-top: 8%;
        height: calc(var(--vh, 1vh) * 100);
        display: flex;
        flex-direction: column;
        /*justify-content: flex-end;*/
    }

    .final-image {
        overflow: hidden;
        margin: 10px auto;
    }

    .final-image img {
        height: 100%;
    }

    .btn-final-container {
        width: 100%;
        background: white;
        padding: 20px;
    }

    div#box {
        padding: 5%;
    }

    .box img {
        width: 20%;
        margin-right: 4px;
    }

    .box p {
        font-size: 15px;
        line-height: 17px;
        padding: 0;
    }

    .box {
        /* margin-top: 3% !important; */
        padding: 0 !important;
    }

    a.btn-xtb {
        text-decoration: none !important;
        width: 100%;
        display: block;
        text-align: center;
    }

    .btn-container {
        margin: 20px 0;
    }

    .container-box.row {
        width: 100%;
        padding: 20px;
        margin-top: 0;
        margin-right: 0;
        margin-left: 0;
    }

    .box {
        margin-top: 5% !important;
    }

    .final-box {
        /*background-image: url(https://logos.xtb.com/inf/your-retirement.webp);*/
        background-repeat: no-repeat;
        background-size: 65%;
        background-position: top right;
        height: calc(var(--vh, 1vh) * 100);
    }

    #text-xtb {
        height: calc(var(--vh, 1vh) * 100);
    }

    .form-items .form-item input[type=checkbox]+label {
        padding: 9px 10px;
        border-radius: 15px;
        height: 40px;
        line-height: 13px;
        font-size: 12px;
        margin: 0 3px;
    }

    a.btn-xtb.big {
        font-size: 18px;

    }

    .form-items-container,
    .result {
        height: calc(var(--vh, 1vh) * 100);
        justify-content: flex-start;
    }

    .small.tag {
        font-size: 18px;
    }

    #modal input[type="number"] {
        padding-right: 22px;
    }

    #result {
        justify-content: flex-start;
    }

    /*NEW*/
    .bg-img-section2 {
        height: calc(var(--vh, 1vh) * 30);
        background-image: url(https://logos.xtb.com/inf/your-route-mobile.webp);
    }

    .bg-img-section3 {
        height: calc(var(--vh, 1vh) * 30);
        background-image: url(https://logos.xtb.com/inf/pension-covered-mobile.webp);
    }

    .bg-img-section4 {
        height: calc(var(--vh, 1vh) * 30);
        background-image: url(https://logos.xtb.com/inf/saving-month-mobile.webp);
    }

    #section5 {
        background-image: none;
        overflow: hidden;
    }

    .form-label {
        margin-bottom: 0 !important;
        width: 40%;
        font-size: 12px;
        line-height: 14px;
    }

    #section3 {
        overflow: scroll;
    }

    .container-button {
        display: flex;
        flex-direction: column;
        margin-top: 5%;
    }

    .desktop {
        display: none;
    }

    .mobile {
        display: block;
    }

    .container-select .select p {
        font-size: 12px;
    }

    .container-select {
        display: flex;
        text-align: center;
        justify-content: space-around;
    }
}

/*(iPhone SE, algunos teléfonos Android)*/

@media (max-width: 320px) {}

/*(Teléfonos muy pequeños)*/