/* Delicias Sorteos - Estilos Frontend */

.delicias-sorteo-widget {
    max-width: 600px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.delicias-sorteo-imagen {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.delicias-sorteo-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delicias-sorteo-contenido {
    padding: 30px;
}

.delicias-sorteo-badge {
    margin-bottom: 15px;
}

.delicias-sorteo-badge span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-activo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-finalizado {
    background: #6c757d;
    color: white;
}

.badge-proximo {
    background: #ffc107;
    color: #000;
}

.delicias-sorteo-titulo {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #2c3e50;
    line-height: 1.3;
}

.delicias-sorteo-premio {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.premio-label {
    font-size: 16px;
    font-weight: 600;
}

.premio-texto {
    font-size: 18px;
    font-weight: 700;
}

.delicias-sorteo-descripcion {
    margin: 20px 0;
    color: #555;
    line-height: 1.6;
}

.delicias-sorteo-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-personal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-numero {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-personal .stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.delicias-sorteo-accion {
    margin: 30px 0 20px 0;
}

.delicias-btn-participar {
    width: 100%;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.delicias-btn-participar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.delicias-btn-participar:active {
    transform: translateY(0);
}

.delicias-btn-participar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.participar-info {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #888;
}

.delicias-sorteo-participando {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    color: white;
    border-radius: 8px;
}

.check-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.delicias-sorteo-participando p {
    margin: 10px 0;
}

.probabilidad {
    font-size: 16px;
    margin: 15px 0;
}

.compartir-mensaje {
    font-size: 14px;
    opacity: 0.9;
}

.delicias-sorteo-ganador {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 8px;
}

.delicias-sorteo-ganador h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
}

.ganador-nombre {
    font-size: 32px;
    font-weight: 700;
    margin: 15px 0;
}

.ganador-felicitaciones {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.ganador-participacion {
    font-size: 16px;
    opacity: 0.9;
}

.delicias-sorteo-inactivo {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

.delicias-sorteo-login {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.delicias-form-participacion {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.delicias-form-participacion h3 {
    margin-top: 0;
    color: #2c3e50;
}

.delicias-form {
    margin-top: 20px;
}

.form-grupo {
    margin-bottom: 20px;
}

.form-grupo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-grupo input[type="text"],
.form-grupo input[type="email"],
.form-grupo input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-grupo input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-grupo {
    display: flex;
    align-items: flex-start;
}

.checkbox-grupo label {
    display: flex;
    align-items: flex-start;
    font-weight: 400;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    margin: 0;
}

.checkbox-grupo input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.ganador-telefono {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
}

.delicias-btn-login {
    display: inline-block;
    padding: 15px 40px;
    margin: 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.delicias-btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.registro-link {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.registro-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.delicias-sorteo-fecha-fin {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.delicias-sorteo-fecha-fin small {
    color: #888;
    font-size: 13px;
}

.delicias-mensaje-respuesta {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.delicias-mensaje-respuesta.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.delicias-mensaje-respuesta.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .delicias-sorteo-widget {
        margin: 20px;
    }
    
    .delicias-sorteo-contenido {
        padding: 20px;
    }
    
    .delicias-sorteo-titulo {
        font-size: 24px;
    }
    
    .premio-texto {
        font-size: 16px;
    }
    
    .delicias-sorteo-stats {
        grid-template-columns: 1fr 1fr;
    }
}

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

.delicias-sorteo-widget {
    animation: fadeIn 0.5s ease;
}
