.header-t {
    width: 100%;
    height: 100px;
    background-color: #252e3f;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header {
    width: 728px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-celular {
    width: 320px;
    height: 100px;
    display: none;
}

.logo{
    color: #fff;
    font-size: 35px;
    font-weight: 600;
    height: 100px;
    line-height: 100px;
}

.menu-t {
    width: 100%;
    height: 60px;
    color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #38404e;
}

.menu {
    width: 1078px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cotizacion-t {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #38404e;
    position: relative;
}

.cotizacion {
    width: 1078px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    position: relative;
}

.cotizacion-content {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    justify-content: space-between;
    width: 100%;
    max-width: 1078px;
}

.cotizacion-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    background-color: #222530;
    border-radius: 8px;
    border: 1px solid #222530;
    flex: 1;
    min-width: 0;
    max-width: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
    height: 30px;
    justify-content: center;
    cursor: default;
}

.cotizacion-item:hover {
    border-color: #5ec168;
}

.cotizacion-tipo {
    font-size: 10px;
    font-weight: 400;
    color: #eee;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    text-align: center;
    line-height: 1.1;
    width: 100%;
    word-wrap: break-word;
    hyphens: auto;
}

.cotizacion-precios {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.cotizacion-precio {
    font-size: 12px;
    font-weight: 700;
    color: #e1e5ea;
    line-height: 1.1;
    white-space: nowrap;
}

.cotizacion-compra, .cotizacion-venta {
    display: none;
}

.cotizacion-compra::before, .cotizacion-venta::before {
    display: none;
}

.menu-btn {
    height: 60px;
    line-height: 60px;
    padding-left: 20px;
    padding-right: 20px;
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
}

.menu-t-celular {
    display: none;
}

/* Mejorar scroll horizontal en móvil */
@media (max-width: 850px) {
    .cotizacion {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .cotizacion-content {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }
}

@media (max-width: 700px) {
    .cotizacion {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .cotizacion-content {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }
}

/* Ocultar scrollbar en dispositivos móviles para mejor UX */
@media (max-width: 850px) {
    .header {
        display: none;
    }

    .header-celular {
        display: block;
        width: 728px;
    }

    .header-celular-menu {
        filter: invert();
        float: right;
        height: 18px;
        margin-top: calc(50px - 10px);
    }

    .logo {
        float: left;
        font-size: 25px;
    }

    .menu-t {
        display: none;
    }

    .cotizacion-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cotizacion-t {
        display: block;
        height: 60px;
        padding: 0;
        overflow: hidden;
        width: 90%;
        max-width: 600px;
    }

    .cotizacion {
        width: 100%;
        height: 60px;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .cotizacion::-webkit-scrollbar {
        display: none;
    }

    .cotizacion-content {
        width: max-content;
        max-width: none;
        gap: 15px;
        padding: 0;
        justify-content: flex-start;
        min-width: 100%;
        margin-left: 20px;
        padding-right: 0;
    }

    .cotizacion-content::after {
        content: '';
        min-width: 10px;
        height: 1px;
        flex-shrink: 0;
    }

    .cotizacion-item {
        flex: none;
        min-width: 220px;
        height: 30px;
    }

    .menu-t-celular {
        width: 100%;
        height: auto;
        background-color: #fff;
        display: none;
        justify-content: center;
        align-items: flex-start;
        flex-direction: column;
    }
    
    .menu-celular {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .menu-btn-celular {
        width: 100%;
        height: 60px;
        line-height: 60px;
        text-transform: uppercase;
        font-size: 13px;
        color: #333;
        text-align: center;
        border-bottom: 1px solid #f5f5f5;
    }

    .menu-celular-fin {
        width: 100%;
        height: 20px;
        background-color: #f5f5f5;
    }

}

@media (max-width: 700px) {
    .header {
        display: none;
    }

    .header-celular {
        display: block;
        width: 320px;
    }

    .menu-t {
        display: none;
    }

    .cotizacion-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cotizacion-t {
        display: block;
        height: 70px;
        padding: 0;
        overflow: hidden;
        width: 100%;
        max-width: 500px;
    }

    .cotizacion {
        width: 100%;
        height: 70px;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .cotizacion::-webkit-scrollbar {
        display: none;
    }

    .cotizacion-content {
        width: max-content;
        max-width: none;
        gap: 12px;
        padding: 0;
        justify-content: flex-start;
        min-width: 100%;
        margin-left: 20px;
        padding-right: 0;
    }

    .cotizacion-content::after {
        content: '';
        min-width: 10px;
        height: 1px;
        flex-shrink: 0;
    }

    .cotizacion-item {
        flex: none;
        min-width: 200px;
        height: 30px;
    }

    .menu-t-celular {
        width: 100%;
        height: auto;
        background-color: #fff;
        display: none;
        justify-content: center;
        align-items: flex-start;
        flex-direction: column;
    }
    
    .menu-celular {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .menu-btn-celular {
        width: 100%;
        height: 60px;
        line-height: 60px;
        text-transform: uppercase;
        font-size: 13px;
        color: #333;
        text-align: center;
        border-bottom: 1px solid #f5f5f5;
    }

    .menu-celular-fin {
        width: 100%;
        height: 20px;
        background-color: #f5f5f5;
    }

}

/* Wrapper para centrar la cotización en móvil */
.cotizacion-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* En desktop, el wrapper no debe interferir */
@media (min-width: 851px) {
    .cotizacion-wrapper {
        width: 100%;
        display: block;
    }
    
    .cotizacion-t {
        width: 100%;
    }
}

/* Animación de titileo para el estado de carga */
@keyframes titileo {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        opacity: 1;
    }
}

/* Aplicar animación al elemento con clase 'cargando' */
.cotizacion-item.cargando {
    animation: titileo 1s ease-in-out infinite;
    /* Debug: hacer más visible */
    border: 2px solid #363636 !important;
}