:root {
    --bg-usd: #454545;
    --bg-eur: #0072c6;
    --bg-brl: #52c234;
    --bg-default: #a5a3c7;
    --bg-usd-gradient: linear-gradient(135deg, #222222 0%, #454545  51%, #b4b4b4b0  100%);
    --bg-eur-gradient: linear-gradient(135deg, #2a5298  0%, #1e3c72  51%, #4383f9b0 100%);
    --bg-brl-gradient: linear-gradient(135deg,#2b4325, #061700 51%, #d5d83cb0 100%);
    --bg-default-gradient: linear-gradient(135deg, #7b4397 0%, #dc2430  51%, #7b4397b0  100%);
    --bg-bandec-gradient: linear-gradient(135deg, #dc143c 0%, #6b0000 51%, #8b0000b0 100%);
    --bg-bpa-gradient: linear-gradient(135deg, #2c2c37b0 0%, #17172a 51%, #0b362e 100%);
    --bg-bm-gradient: linear-gradient(135deg, #19401a 0%, #2e7d32 51%, #4caf50b0 100%);
    --ripple-color: var(--bs-dark);
}

@keyframes fade-in-content {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

html, body {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
}

body, main {
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden !important;
    overflow-y: auto;
    animation: fade-in-content 0.5s ease-in-out;
}

.cover-container {
max-width: 42em;
}

.nav-masthead .nav-link {
color: var(--dark);
border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link + .nav-link {
margin-left: 1rem;
}

.nav-masthead .active {
color: var(--dark);
border-bottom-color: var(--dark);
}

.asteriskField {
    color: red;
}

.overflow-no-show {
    scrollbar-width: none;
    -ms-overflow-style: none; /* IE 10+ */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
}

.credit-card {
    min-width: 280px;
    aspect-ratio: 1.6/1; /* Proporción típica de tarjeta de crédito */
}

.credit-card-list {
    scrollbar-width: none;
    -ms-overflow-style: none; /* IE 10+ */
    overflow: hidden;
}

.credit-card-list-fade {
    position: relative;
}
.credit-card-list-fade::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to right, #ffffff 20%, #ffffffb3 50%, transparent 90%);
}

.credit-card-list-fade::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 25px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to left, #ffffff 20%, #ffffffb3 50%, transparent 90%);
}

.card-list {
    min-width: 100vw;
    max-width: 100vw;
    scrollbar-width: none;
    -ms-overflow-style: none; /* IE 10+ */
    overflow: hidden;
}

.card-list > div {
    min-width: 200px;
}

@media (max-width: 576px) {
    .credit-card {
        max-width: 90% !important;
        min-width: 280px !important;
        margin: 0 auto;
        aspect-ratio: 1.6/1; /* Mantiene la proporción en móvil */
    }

    .credit-card-container {
        max-width: 90% !important;
        min-width: 280px !important;
        margin: 0 auto;
    }

    .credit-card-list {
        max-height: 50vh;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
    }

    .mobile-scroll-container > div {
        scroll-snap-align: start;
        min-height: 45vh;
    }

    .credit-card-body {
        font-size: 0.85rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        padding: 1rem !important;
    }

    .letter-spacing {
        letter-spacing: 1px;
    }
}

@media (min-width: 577px) {
    .letter-spacing {
        letter-spacing: 2px;
    }

    .credit-card-body {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .credit-card {
        min-width: 270px !important;
        max-width: 85% !important;
    }

    .credit-card-container {
        max-width: 85% !important;
        min-width: 270px !important;
    }

    .credit-card-body {
        padding: 0.8rem !important;
        font-size: 0.8rem;
    }

    .bank-logo {
        height: 20px !important;
    }
}

@media (max-width: 360px) {
    .credit-card {
        min-width: 250px !important;
        max-width: 95% !important;
    }

    .credit-card-container {
        max-width: 95% !important;
        min-width: 250px !important;
    }
}


.bg-bm {
    background: #19401a;
    background: var(--bg-bm-gradient);
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
}

.bg-bm:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.bg-bpa {
    background: #828299;
    background: var(--bg-bpa-gradient);
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
}

.bg-bpa:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.bg-bandec {
    background: #DC143C;
    background: var(--bg-bandec-gradient);
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
}

.bg-bandec:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.bg-default {
    background: #a5a3c7;
    background: var(--bg-default-gradient);
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
}

.bg-default:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.bg-brl {
    background: #52c234;
    background: var(--bg-brl-gradient);
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
}

.bg-brl:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.bg-eur {
    background: #0072c6;
    background: var(--bg-eur-gradient);
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
}

.bg-eur:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.bg-usd {
    background: #0072c6;
    background: var(--bg-usd-gradient);
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
}

.bg-usd:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}

.title-gradient {
  background: var(--bg-default-gradient); /* colores del gradiente */
  -webkit-background-clip: text; /* para navegadores basados en WebKit */
  background-clip: text;
  color: transparent;
  font-weight: bolder;
  font-size: 4rem;
}

.bg-blur {
  background: rgba(255, 255, 255, 0.75); /* Fondo semitransparente */
  backdrop-filter: blur(100px);           /* Aplica el desenfoque */
  -webkit-backdrop-filter: blur(100px);   /* Soporte para Safari */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0);}
    to { opacity: 0; transform: translateY(20px);}
}

.floating-hide {
    opacity: 0;
    pointer-events: none;
    animation: fadeOut 0.4s forwards;
    display: block !important;
}

.floating-show {
    opacity: 1;
    pointer-events: auto;
    animation: fadeIn 0.4s;
    display: block !important;
}

.lottie-icon {
    width: 100%;
    max-width: 24px; /* o el tamaño máximo que desees */
    height: auto;
    aspect-ratio: 1 / 1; /* Mantiene la proporción cuadrada */
    display: block;
}

.skeleton-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    display: inline-block;
}
.skeleton-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    display: inline-block;
}

.bg-havana {
    background-image: url("/static/images/index/castillo_morro.jpeg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    z-index: 0;
    overflow: hidden;
}
.bg-havana::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75); /* Ajusta el valor para más o menos opacidad */
    pointer-events: none;
    z-index: 1;
}
.bg-havana > * {
    position: relative;
    z-index: 2;
}

.ripple-effect-global {
  position: fixed;
  border-radius: 50%;
  background-image: var(--bg-usd-gradient);
  pointer-events: none;
  z-index: 9999;
  left: 0;
  top: 0;
  transform: scale(0);
  animation: ripple-animation-global 0.6s ease-in-out;
}

@keyframes ripple-animation-global {
  to {
    transform: scale(1.5);
    opacity: 1;
  }
}
