* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Arial', sans-serif;
    background: #34b7f1;
    min-height: 100vh;
    color: #fff;
}

/* Botón flotante de perfil */
.floating-profile {
    position: fixed;
    top: 40px; 
    right: 2rem;
    background: linear-gradient(135deg, #128c7e, #075e54);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.floating-profile:hover {
    transform: scale(1.1);
}

.avatar-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #128c7e;
    font-size: 18px;
}

/* Menú de usuario (flotante) */
.user-menu {
    display: none;
    position: fixed;
    bottom: 190px; /* Ajustado para que aparezca sobre el botón */
    right: 2rem;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px;
    min-width: 200px;
    z-index: 1001;
}

.user-menu.active {
    display: block;
}

.user-info {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    color: #333;
}

.menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ff4757;
    font-weight: 500;
    margin-top: 10px;
    border-radius: 4px;
    text-decoration: none;
}

.menu-item:hover {
    background: #f8f9fa;
}
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #25d366, #128c7e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.tagline {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    flex: 1 1 100%;
}
/* Botones de Login y Registro */
.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}
.btn-auth {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 0.95rem;
}
.btn-login {
    background: linear-gradient(135deg, #128c7e, #075e54);
}
.btn-register {
    background: linear-gradient(135deg, #25d366, #34b7f1);
}
.btn-auth:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
/* Modales */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    transition: all 0.4s ease;
}
.modal-overlay.active .modal {
    transform: translateY(0);
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}
.close-modal:hover {
    color: #333;
}
.modal h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #25d366;
}
.submit-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #128c7e, #075e54);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(18, 140, 126, 0.4);
}
/* Imagen promocional */
.promo-image {
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #dcf8c6;
    padding: 1rem;
    text-align: center;
    color: #075e54;
    font-weight: bold;
    font-size: 1.2rem;
}
/* Selector de cartón */
.carton-selector {
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}
.carton-selector h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.carton-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.carton-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}
.carton-btn.active {
    background: linear-gradient(135deg, #25d366, #34b7f1);
    transform: scale(1.05);
}
.carton-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.3);
}
/* Botón flotante de reseñas (izquierda) */
.floating-review {
    position: fixed;
    bottom: 80px;
    left: 2rem;
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}
.floating-review:hover {
    transform: scale(1.1);
}
.floating-review i {
    font-size: 1.2rem;
}
/* Modal de reseñas */
.reviews-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem 0;
}
.review-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}
.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}
.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #128c7e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.2rem;
}
.review-user-info {
    flex: 1;
}
.review-username {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.2rem;
}
.review-date {
    font-size: 0.8rem;
    color: #888;
}
.review-stars {
    color: #ffd700;
    margin: 0.5rem 0;
}
.review-text {
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.review-media {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    margin-top: 0.5rem;
    object-fit: cover;
}
.add-review-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #eee;
}
.rating-input {
    display: flex;
    gap: 0.3rem;
    margin: 1rem 0;
}
.rating-star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}
.rating-star.active {
    color: #ffd700;
}
/* Estilos para móviles */
@media (max-width: 768px) {
    .auth-buttons {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    .btn-auth {
        flex: 1;
        max-width: 150px;
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }
    .modal {
        padding: 1.5rem;
        margin: 1rem;
    }
    .logo {
        font-size: 2rem;
    }
    .carton-buttons {
        gap: 0.3rem;
    }
    .carton-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    .floating-review {
        bottom: 80px;
        left: 1rem;
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
    }
}
/* Resto de estilos (adaptados) */
.lottery-info {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}
.lottery-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}
.lottery-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}
.info-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}
.info-card:hover {
    transform: translateY(-5px);
}
.info-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}
.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}
.info-card .value {
    font-size: 1.5rem;
    font-weight: bold;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.game-controls {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 2rem;
    text-align: center;
}
.quick-select {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.quick-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.search-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.search-input {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    width: 200px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.search-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #34b7f1, #25d366);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 183, 241, 0.4);
}
.game-modes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.mode-chip {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid transparent;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.mode-chip.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: scale(1.05);
}
.current-price {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.numbers-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
    max-height: 600px;
    overflow-y: auto;
    padding: 1rem;
    border: 2px dashed #ddd;
    border-radius: 15px;
}
.number-button {
    aspect-ratio: 1;
    border: 2px solid #ddd;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 50px;
}
.number-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
}
.number-button.available {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-color: #25d366;
    color: white;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}
.number-button.selected {
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    border-color: #ff4757;
    color: white;
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
    animation: pulse 0.5s ease-in-out;
}
.number-button.sold {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    border-color: #95a5a6;
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}
@keyframes pulse {
    0% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1.15);
    }
}
.number-status {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    font-size: 0.7rem;
}
.status-available {
    background: #27ae60;
}
.status-selected {
    background: #ff4757;
}
.status-sold {
    background: #95a5a6;
}
.floating-cart {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}
.floating-cart:hover {
    transform: scale(1.1);
}
.cart-count {
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}
.cart-total {
    margin-left: 0.5rem;
    font-size: 1.1rem;
}
.legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    font-weight: bold;
}
.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
.stats-summary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
    text-align: center;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    color: white;
}
.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
}
.stat-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}
@media (max-width: 768px) {
    .lottery-header {
        grid-template-columns: repeat(2, 1fr);
    }
    .container {
        padding: 1rem;
    }
    .numbers-grid {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 5px;
    }
    .number-button {
        min-height: 40px;
        font-size: 0.9rem;
    }
    .search-container {
        flex-direction: column;
        align-items: center;
    }
    .search-input {
        width: 100%;
        max-width: 250px;
    }
}

/** ESTILOS DE ALERTAS **/

/* ================
   ALERTAS ESTILIZADAS
   ================ */
@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    70% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.alert-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.alert-modal {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
    overflow: hidden;
}

.alert-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #25d366, #34b7f1, #ff4757);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.alert-success { border-top: 5px solid #25d366; }
.alert-error { border-top: 5px solid #ff4757; }
.alert-warning { border-top: 5px solid #ffa500; }
.alert-info { border-top: 5px solid #34b7f1; }

.alert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.alert-success .alert-icon { color: #25d366; text-shadow: 0 0 10px rgba(37, 211, 102, 0.4); }
.alert-error .alert-icon { color: #ff4757; text-shadow: 0 0 10px rgba(255, 71, 87, 0.4); }
.alert-warning .alert-icon { color: #ffa500; text-shadow: 0 0 10px rgba(255, 165, 0, 0.4); }
.alert-info .alert-icon { color: #34b7f1; text-shadow: 0 0 10px rgba(52, 183, 241, 0.4); }

.alert-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
    font-family: 'Arial Black', sans-serif;
}

.alert-message {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.alert-btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.alert-success .alert-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.alert-error .alert-btn {
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    color: white;
}

.alert-warning .alert-btn {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    color: white;
}

.alert-info .alert-btn {
    background: linear-gradient(135deg, #34b7f1, #25d366);
    color: white;
}

.alert-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

/* Estilos para el menú de usuario (ya lo tenías, lo dejo por si acaso) */
.user-avatar {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

/* Menú de usuario (flotante) */
.user-menu {
    display: none;
    position: fixed;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px;
    min-width: 200px;
    z-index: 1001;
    top: 130px;
    height: 150px;
}
.user-info {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    color: #333;
}

.menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ff4757;
    font-weight: 500;
    margin-top: 10px;
    border-radius: 4px;
}

.menu-item:hover {
    background: #f8f9fa;
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu.active {
    animation: fadeInDown 0.3s ease forwards;
}


/*RESEÑAS*/

.rating-input {
    display: flex;
    gap: 5px;
    margin: 10px 0;
}

.rating-star {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
}

.rating-star.active,
.rating-star:hover {
    color: #ffd700;
}

.review-stars .fas {
    color: #ffd700;
}

.review-stars .far {
    color: #ddd;
}

.review-item {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.review-user-info {
    flex: 1;
}

.review-username {
    font-weight: bold;
    color: #333;
}

.review-date {
    font-size: 0.85rem;
    color: #777;
}

.review-stars {
    margin: 10px 0;
}

.review-text {
    margin: 10px 0;
    line-height: 1.5;
}

.review-media {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}


/* ====================== */
/* MODAL DE NUEVA RESEÑA */
/* ====================== */

#addReviewModal .modal {
    background: linear-gradient(135deg, #ffffff, #f0f2f5);
    border: 2px solid #e0e0e0;
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#addReviewModal h2 {
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #ff4757, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#addReviewModal .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

#addReviewModal .form-group input,
#addReviewModal .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

#addReviewModal .form-group input:focus,
#addReviewModal .form-group textarea:focus {
    outline: none;
    border-color: #ff4757;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.2);
}

/* Estilo para el área de subida de archivos */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-label {
    display: block;
    padding: 1rem;
    background: linear-gradient(135deg, #34b7f1, #25d366);
    color: white;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 183, 241, 0.3);
}

.file-upload-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 183, 241, 0.4);
}

.file-name {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Botón de envío mejorado */
#addReviewModal .submit-btn {
    background: linear-gradient(135deg, #ff4757, #ffa500);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.4);
}

#addReviewModal .submit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.6);
}

/* Estrellas en el modal de nueva reseña */
#addReviewModal .rating-star {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

#addReviewModal .rating-star.active,
#addReviewModal .rating-star:hover {
    color: #ffd700;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}


/* Botón flotante en la esquina superior derecha del modal */
.floating-add-review-top-right {
    position: absolute;
    bottom: 20px;      
    right: 20px;         /* A la derecha del modal */
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    color: white;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.floating-add-review-top-right i {
    font-size: 1.2rem;
}

.floating-add-review-top-right:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 71, 87, 0.6);
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
}
  /* Estilos para el Modal de Carrito */
        .modal-overlay#cartModal {
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(5px);
        }
        .modal-overlay#cartModal .modal {
            animation: slideUp 0.4s ease-out;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .cart-item {
            background: rgba(255,255,255,0.95);
            margin: 1rem 0;
            padding: 1rem;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            border-left: 5px solid #667eea;
        }
        .cart-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #eee;
        }
        .cart-numbers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
            gap: 0.5rem;
            margin-top: 0.5rem;
        }
        .cart-number {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 0.5rem;
            text-align: center;
            font-weight: bold;
            border-radius: 5px;
            font-size: 0.9rem;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        /* Estilos para el botón flotante de carrito */
        .floating-cart {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: linear-gradient(135deg, #ff4757, #e74c3c);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 50px;
            box-shadow: 0 4px 20px rgba(255,71,87,0.6);
            z-index: 1000;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: bold;
            transition: all 0.3s ease;
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        .floating-cart:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 6px 25px rgba(255,71,87,0.8);
        }
        .floating-cart .cart-count {
            background: white;
            color: #e74c3c;
            border-radius: 50%;
            width: 25px;
            height: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 0.9rem;
        }

        /* Botón flotante para subir comprobante */
        .floating-upload {
            position: fixed;
            bottom: 90px;
            right: 20px;
            background: linear-gradient(135deg, #ffa500, #ff6b6b);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 50px;
            box-shadow: 0 4px 20px rgba(255, 165, 0, 0.6);
            z-index: 1000;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: bold;
            transition: all 0.3s ease;
            animation: pulse 2s infinite;
        }
        .floating-upload:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 6px 25px rgba(255, 165, 0, 0.8);
        }

        /* Estilo para el modal de recordatorio */
        .alert-reminder {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            color: white;
            padding: 1rem;
            border-radius: 10px;
            margin: 1rem 0;
            text-align: center;
            font-weight: bold;
            animation: shake 0.5s ease-in-out;
        }
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }

          /* ================
           ESTILOS ADICIONALES PARA EL FLUJO DE COMPRA
           ================ */
        /* Estilos para el Modal de Carrito */
        .modal-overlay#cartModal {
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(5px);
        }
        .modal-overlay#cartModal .modal {
            animation: slideUp 0.4s ease-out;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .cart-item {
            background: rgba(255,255,255,0.95);
            margin: 1rem 0;
            padding: 1rem;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            border-left: 5px solid #667eea;
        }
        .cart-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #eee;
        }
        .cart-numbers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
            gap: 0.5rem;
            margin-top: 0.5rem;
        }
        .cart-number {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 0.5rem;
            text-align: center;
            font-weight: bold;
            border-radius: 5px;
            font-size: 0.9rem;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        /* Estilos para el botón flotante de carrito */
        .floating-cart {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: linear-gradient(135deg, #ff4757, #e74c3c);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 50px;
            box-shadow: 0 4px 20px rgba(255,71,87,0.6);
            z-index: 1000;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: bold;
            transition: all 0.3s ease;
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        .floating-cart:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 6px 25px rgba(255,71,87,0.8);
        }
        .floating-cart .cart-count {
            background: white;
            color: #e74c3c;
            border-radius: 50%;
            width: 25px;
            height: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 0.9rem;
        }
        /* Botón flotante para subir comprobante */
        .floating-upload {
            position: fixed;
            bottom: 90px;
            right: 20px;
            background: linear-gradient(135deg, #ffa500, #ff6b6b);
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 50px;
            box-shadow: 0 4px 20px rgba(255, 165, 0, 0.6);
            z-index: 1000;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: bold;
            transition: all 0.3s ease;
            animation: pulse 2s infinite;
        }
        .floating-upload:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 6px 25px rgba(255, 165, 0, 0.8);
        }
        /* Estilo para el modal de recordatorio */
        .alert-reminder {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24);
            color: white;
            padding: 1rem;
            border-radius: 10px;
            margin: 1rem 0;
            text-align: center;
            font-weight: bold;
            animation: shake 0.5s ease-in-out;
        }
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }



    .toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-left: 5px solid #ffc107;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease-out, opacity 0.3s ease;
    opacity: 0;
    max-width: 350px;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification i {
    font-size: 1.2rem;
}

.toast-notification.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
    border-left-color: #28a745;
}

.toast-notification.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    border-left-color: #dc3545;
}

.toast-notification.info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
    border-left-color: #17a2b8;
}



/* Animación de entrada suave */
#uploadModal.show {
    opacity: 1 !important;
    pointer-events: all !important;
}

#uploadModal.show > div {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Efecto hover en botón de cerrar */
#uploadModal button[onclick*="close"] {
    background: rgba(255,255,255,0.2) !important;
}
#uploadModal button[onclick*="close"]:hover {
    background: rgba(255,255,255,0.3) !important;
    transform: scale(1.1);
}

/* Efecto hover en botón de envío */
#uploadModal button[type="submit"]:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.6);
}

/* Efecto hover en área de arrastrar */
#uploadModal input[type="file"]:hover + div {
    border-color: #2ecc71;
    background: #e8f5e9;
}

#uploadModal input[type="file"]:focus + div {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.3);
}