body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rifa-card button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.rifa-card .fecha {
    color: #666;
}

.rifa-card .dias-restantes {
    /* Ajustar seg«ân necesidades */
    padding: 5px 10px;
    border-radius: 3px;
}

.rifa-card .dias-restantes:contains("Finalizado") {
    background-color: #ff4444;
    color: white;
}

.header-logo {
    max-width: 50px !important;
    display: none;
}

#headerTitle {
    font-size: 1.5em !important;
    font-weight: bold !important;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
}





.menu-lateral {
    position: fixed;
    top: 60px;
    right: -250px;
    width: 150px;
    background-color: #333;
    color: white;
    transition: right 0.3s ease;
    z-index: 999;
    text-align: left;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    border-radius: 5px;
}

.menu-lateral a {
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    font-size: 18px;
    display: block;
    transition: background-color 0.3s;
}

.menu-lateral a:hover {
    background-color: #575757;
}

.menu-lateral.active {
    right: 0;
}

/* Resto de estilos sin cambios */
.tipo-evento {
    font-size: 18px;
    font-weight: bold;
    color: #ff5722;
    text-transform: uppercase;
    background-color: #f1f1f1;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    display: inline-block;
}

.dias-restantes {
    font-size: 16px;
    color: white;
    background-color: #333;
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
    animation: bounce 1s infinite;
}

.progreso {
    width: 100%;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
    position: relative;
}

.barra {
    height: 20px;
    background: #ff9800;
}

.porcentaje-barra {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-weight: bold;
}

.rifa {
    max-width: 600px;
    margin: 50px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rifa-card {
    position: relative;
    margin-bottom: 20px;
    border: 3px solid red;
    padding: 5px;
    border-radius: 10px;
}

.rifa-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.precio {
    font-size: 20px;
    color: red;
    position: absolute;
    top: 10px;
    right: 10px;
    font-weight: bold;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: scale(1); }
    40% { transform: scale(1.2); }
    60% { transform: scale(1.1); }
}

button {
    background: #ff9800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    animation: bounce 4s infinite;
}

button:hover {
    background: #e68900;
}

footer {
    margin-top: 50px;
    padding: 10px;
    background: #333;
    color: white;
}

/* Modo Oscuro */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f4f4f4;
}

body.dark-mode header,
body.dark-mode .rifa,
body.dark-mode .rifa-card,
body.dark-mode footer {
    background-color: #2c2c2c;
    color: #f4f4f4;
}

body.dark-mode .navbar a {
    color: #f4f4f4;
}

body.dark-mode .menu-lateral {
    background-color: #333;
}

body.dark-mode .menu-lateral a {
    color: #f4f4f4;
}

body.dark-mode .menu-lateral a:hover {
    background-color: #575757;
}

body.dark-mode .progreso {
    background: #444;
}

body.dark-mode .barra {
    background: #ff9800;
}

body.dark-mode .dias-restantes {
    background-color: #555;
}

body.dark-mode .tipo-evento {
    background-color: #444;
    color: #ff5722;
}

/* Responsive para Celulares (max-width: 768px) */
@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .theme-toggle {
        bottom: 15px; /* Ajuste para pantallas pequeÃ±as */
        right: 15px;
    }

    .rifa {
        max-width: 100%;
        margin: 20px 10px;
        padding: 15px;
    }

    .rifa-card {
        margin-bottom: 15px;
    }

    .rifa-card img {
        height: 200px;
    }

    #headerTitle {
        font-size: 1.2em !important;
    }
}

/* Pantallas Grandes (min-width: 769px) */
