@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 5px 15px;
}

.header.scrolled .logo {
    height: 30px;
}

.fa-shopping-cart {
    color: #858383;
}

.menu-icon, .cart-icon {
    color: #858383;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
    
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dd0a17;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

.logo {
    height: 40px;
    transition: all 0.3s ease;
}
.favorites-title {
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.favorites-title h1 {
    font-size: 24px;
    color: #dd0a17;
}
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}

.profile-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 15px;
}

.profile-icon-wrapper {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px; /* Ancho fijo para mantener alineación con el icono */
}

.profile-icon {
    width: 120px;
    height: 120px;
    background-color: #e0e0e0;
    border-radius: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.fa-user {
    font-size: 60px;
    color: #dd0a17;
}

.profile-icon-wrapper h2 {
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.saldo-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-left: 10px;
}

.saldo-display {
    background-color: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.saldo-display h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 5px;
}

.saldo-display p {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toggle-saldo {
    display: flex;
    background: none;
    border: none;
    color: #dd0a17;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
    margin-top: 10px;
}

.cobrar-ahora-btn {
    font-family: 'Montserrat', sans-serif;
    background-color: #e0e0e0;;
    color: #dd0a17;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px;
    width: 100%;
    max-width: 200px;
    text-align: center;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popup-logo {
    width: 100px;
    margin-bottom: 20px;
}
.popup-content h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}
.popup-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}
.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.success-icon {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 20px;
}

#successStep h3 {
    color: #4CAF50;
    margin-bottom: 10px;
}

#successStep p {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-weight: bold;
}
#confirmationStep, #successStep {
    transition: opacity 0.3s ease-in-out;
}

.retirar-btn, .cancelar-btn {
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.retirar-btn {
    background-color: #dd0a17;
    color: #fff;
}

.cancelar-btn {
    background-color: #f5f5f5;
    color: #333;
}
.confirmation-message {
    display: none;
    margin-top: 20px;
}

.confirmation-message i {
    color: #4CAF50;
    font-size: 48px;
    margin-bottom: 10px;
}

.confirmation-message p {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.profile-section h2 {
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    width: 100%;
    margin-top: 0px;
}

.menu-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icon {
    width: 70px;
    height: 70px;
    background-color: #e0e0e0;
    border-radius: 20%;
    margin-bottom: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-item span {
    font-size: 12px;
    text-align: center;
    width: 100%;
    word-wrap: break-word;
    hyphens: auto;
}

.fa-gear, .fa-star, .cart2, .fa-bag-shopping, .fa-money-check-dollar, .fa-circle-check, .fa-handshake, .fa-circle-question {
    font-size: 35px;
    color: #dd0a17;
}
.fa-backward {
    color: #dd0a17;
    font-size: 35px;
}
.menu-item span.two-line {
    font-size: 11px;
    line-height: 1.2;
}

.search-section {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.search-section input {
    width: 100%;
    padding: 8px 15px;
    border: none;
    border-radius: 10px;
    background-color: #dd0a17; 
    color: #fff;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

.search-section input::placeholder {
    color: #fff;
}

.news-section {
    padding: 15px;
    background-color: #e0e0e0;
    border-radius: 10px;
    text-align: center;
    width: 100%;
}

.news-section h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.news-section p {
    font-size: 12px;
    margin-bottom: 3px;
}

.dots {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: #999;
    border-radius: 50%;
    margin: 0 3px;
}

.dot.active {
    background-color: #dd0a17;
}
.slider-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.slider-nav {
    position: absolute;
    top: 30%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-nav .prev, .slider-nav .next {
    color: #dd0a17;
    padding: 5px;
    cursor: pointer;
}

.slider-nav .prev {
    left: 10px;
}

.slider-nav .next {
    right: 10px;
}   
@media (max-width: 360px) {
    .profile-icon {
        width: 100px;
        height: 100px;
    }

    .fa-user {
        font-size: 50px;
    }

    .saldo-display h3 {
        font-size: 20px;
    }

    .saldo-display p {
        font-size: 12px;
    }

    .icon {
        width: 60px;
        height: 60px;
    }

    .fa-gear, .fa-star, .cart2, .fa-bag-shopping, .fa-money-check-dollar, .fa-circle-check, .fa-handshake, .fa-circle-question, .fa-money-bill {
        font-size: 25px;
    }

    .menu-item span {
        font-size: 10px;
    }

    .menu-item span.two-line {
        font-size: 9px;
    }
        .profile-icon-wrapper {
            width: 100px;
        }
    
        .profile-icon {
            width: 100px;
            height: 100px;
        }
    
        .fa-user {
            font-size: 50px;
        }
    
        .profile-icon-wrapper h2 {
            font-size: 16px;
        }
}
